mirror of
https://github.com/xiangshu233/vue3-vant4-mobile.git
synced 2025-04-05 06:22:45 +08:00
v-model practice notes
This commit is contained in:
parent
1aece88fb3
commit
e64431a266
@ -1,17 +1,15 @@
|
||||
<template>
|
||||
<div>
|
||||
<van-cell title="单元格" :is-link="true" />
|
||||
<van-cell title="单元格" :is-link="true" value="内容" />
|
||||
<van-cell title="单元格" is-link arrow-direction="down" value="内容" />
|
||||
<van-cell title="单元格" is-link />
|
||||
<van-cell title="单元格" is-link value="内容" />
|
||||
<van-cell title="单元格" is-link arrow-direction="down" value="内容" />
|
||||
<van-cell :border="false" title="个人信息" :is-link="true" to="/" />
|
||||
<van-cell title="URL 跳转" is-link url="https://github.com" />
|
||||
<van-cell title="路由跳转" is-link to="/" />
|
||||
<p class="text-30px mb-50px"> vue3 v-model 的变化</p>
|
||||
input: <input v-model="name" />
|
||||
<p> {{ name }}</p>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts"></script>
|
||||
<script setup lang="ts">
|
||||
import { ref } from 'vue';
|
||||
|
||||
const name = ref('Alice');
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
Loading…
x
Reference in New Issue
Block a user