mirror of
https://github.com/element-plus/element-plus.git
synced 2025-08-15 03:06:25 +08:00
refactor(docs): use setup sugar simplify input demo (#4845)
This commit is contained in:
@ -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>
|
||||
|
Reference in New Issue
Block a user