arco-design-vue icon indicating copy to clipboard operation
arco-design-vue copied to clipboard

关闭Options API 很多不兼容方法,例如InputNumber增减按钮报错、form.validate方法报错等

Open lamb opened this issue 2 years ago • 0 comments

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.._cache. (SignInView.vue:99:35) at callWithErrorHandling (runtime-core.esm-bundler.js:158:18) at callWithAsyncErrorHandling (runtime-core.esm-bundler.js:166:17) at emit (runtime-core.esm-bundler.js:664:5) at runtime-core.esm-bundler.js:7422:45 at Proxy.handleClick (button.js:82:7) at _ctx.href.createElementBlock.onClick._cache.._cache. (button.js:123:78) at callWithErrorHandling (runtime-core.esm-bundler.js:158:18) at callWithAsyncErrorHandling (runtime-core.esm-bundler.js:166:17)

lamb avatar Sep 09 '23 05:09 lamb