<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>
Vue3 使用 Ant Design Vue 生成 Script Setup 代码示例

原文地址: https://www.cveoy.top/t/topic/mEMk 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录