vueComponent / ant-design-vue-nuxt

MIT License
73 stars 8 forks source link

Uncaught TypeError: Cannot read properties of undefined (reading 'value') #28

Closed ezewu closed 11 months ago

ezewu commented 11 months ago
"nuxt": "^3.8.2"
"@ant-design-vue/nuxt": "^1.2.0"

app.vue里面添加

<script lang="ts" setup>
const handleMessage = () => {
  message.info("This is a normal message");
};
</script>
<template>
  <a-button @click="handleMessage"> button </a-button>
</template>

点击按钮时,控制台会报一个错

image
aibayanyu20 commented 11 months ago

包裹一层config-provider试一下

aibayanyu20 commented 11 months ago

update 4.0.8

ezewu commented 7 months ago

感谢