解决vue(antdv)报错: Warning: [antd: LocaleProvider] `LocaleProvider` is deprecated.
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了解决vue(antdv)报错: Warning: [antd: LocaleProvider] `LocaleProvider` is deprecated.相关的知识,希望对你有一定的参考价值。
参考技术A由于版本更新,LocaleProvider已经弃用,要用configprovider代替。
1.在组件引用的地方更改 eg:main.js
2.更改标签
将<a-locale-provider>标签换成<a-config-provider>标签
Warning: [antdv: LocaleProvider] `LocaleProvider` is deprecated. Please use `local
1.使用ant-vue始终报这个警告,因为ant-vue的新版本废弃了a-locale-provide
2.解决如下:
找到App.vue,将 <a-locale-provider :locale="locale"></a-locale-provider>修改为:
<a-config-provider :locale="locale"></a-config-provider>
以上是关于解决vue(antdv)报错: Warning: [antd: LocaleProvider] `LocaleProvider` is deprecated.的主要内容,如果未能解决你的问题,请参考以下文章
Warning: [antdv: LocaleProvider] `LocaleProvider` is deprecated. Please use `local
Warning: [antdv: DatePicker] `value` provides invalidate moment time. If you want to set empty value
Warning: [antdv: DatePicker] `value` provides invalidate moment time. If you want to set empty value
解决使用VueCli创建Vue项目报错:Warning: name can no longer contain capital letters