Vue3 使用 Ant Design Vue 生成 Script Setup 代码示例
<template>
<div>
<a-input v-model='inputValue' />
<a-button type='primary' @click='handleClick'>点击</a-button>
</div>
</template>
<script setup>
import { ref } from 'vue';
const inputValue = ref('');
const handleClick = function () {
console.log(inputValue.value);
}
</script>
原文地址: https://www.cveoy.top/t/topic/mEMk 著作权归作者所有。请勿转载和采集!