refactor(docs): use setup sugar simplify input demo (#4845)

This commit is contained in:
云游君
2021-12-15 17:32:09 +08:00
committed by GitHub
parent efb48a61fd
commit 59a0c4cf7a
15 changed files with 169 additions and 222 deletions

View File

@ -2,13 +2,7 @@
<el-input v-model="input" placeholder="Please input" />
</template>
<script lang="ts">
import { defineComponent, ref } from 'vue'
export default defineComponent({
setup() {
return {
input: ref(''),
}
},
})
<script lang="ts" setup>
import { ref } from 'vue'
const input = ref('')
</script>