arco-design-vue
arco-design-vue copied to clipboard
关闭Options API 很多不兼容方法,例如InputNumber增减按钮报错、form.validate方法报错等
- [x] I'm sure this does not appear in the issue list of the repository
Basic Info
- Package Name And Version: @arco-design/[email protected]
- Framework version: Vue3
- Browser: chrome116.0.5845.96
What is expected?
各组件事件与方法可正常使用
Steps to reproduce
vite.config.ts 关闭Options API
export default defineConfig({
define: {
VUE_OPTIONS_API: false
}
}
InputNumber增减按钮报
runtime-core.esm-bundler.js:221 Uncaught TypeError: _a2.focus is not a function
at handleStepButton (input-number.js:214:53)
at onMousedown (input-number.js:290:31)
at callWithErrorHandling (runtime-core.esm-bundler.js:158:18)
at callWithAsyncErrorHandling (runtime-core.esm-bundler.js:166:17)
at HTMLButtonElement.invoker (runtime-dom.esm-bundler.js:278:5)
form.validate方法报错
SignInView.vue:23 Uncaught (in promise) TypeError: formRef.value.validate is not a function
at Proxy.handleSignIn (SignInView.vue:23:17)
at $setup.usePassword._createVNode.onClick._cache.