安装 ant-design-vue
配置main.js
引用DatePicker组件
<a-date-picker v-model="drawerForm.startDate"></a-date-picker>
产品分类: uniapp/App
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: win11
HBuilderX类型: 正式
HBuilderX版本号: 4.29
手机系统: Android
手机系统版本号: Android 9.0
手机厂商: 模拟器
手机机型: A64主控芯片
页面类型: vue
vue版本: vue3
打包方式: 云端
项目创建方式: HBuilderX
安装 ant-design-vue
配置main.js
引用DatePicker组件
<a-date-picker v-model="drawerForm.startDate"></a-date-picker>
正常使用组件,正常弹出日期选择框
运行到手机模拟器报错,先是报错
../../../../works/broadcast-app/node_modules/ant-design-vue/es/form/utils/validateUtil.js (4:16): Error when using sourcemap for reporting an error: Can't resolve original location of error.
11:28:58.616 ../../../../works/broadcast-app/node_modules/ant-design-vue/es/form/utils/validateUtil.js (4:24): Error when using sourcemap for reporting an error: Can't resolve original location of error.
11:28:58.624 ../../../../works/broadcast-app/node_modules/ant-design-vue/es/vc-tree/TreeNode.js (4:13): Error when using sourcemap for reporting an error: Can't resolve original location of error.
11:28:58.632 ../../../../works/broadcast-app/node_modules/ant-design-vue/es/vc-tree/TreeNode.js (4:21): Error when using sourcemap for reporting an error: Can't resolve original location of error.
项目可以正常运行,之后点击组件的时候报错
[Vue warn]: Unhandled error during execution of native event handler
at <PickermonthCellRender=undefineddateRender=undefinedrenderExtraFooter=undefined ...>
at <ADatePickerclass="flex-item"modelValue=""onUpdate:modelValue=fn>
at <Broadcastrelease__pageId=3__pagePath="pages/broadcastrelease/broadcastrelease"__pageQuery={"type":"timedBroadcast"} ...>
11:29:18.550 TypeError: inputRef.value.focus is not a function
uniapp引入ant-design-vue运行到app报错,运行到h5正常,是不兼容app吗
0 个回复