@bdsoft/element 1.1.20 → 1.1.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +7 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -28,10 +28,15 @@ const useElement = {
|
|
|
28
28
|
if (!bdsdk) {
|
|
29
29
|
console.warn('[main.js]useElement函数升级!改写方式:app.use(useElement, { bdsdk }); 如果不检测异常可忽略')
|
|
30
30
|
}
|
|
31
|
-
|
|
31
|
+
if (!options?.ElementPlus) {
|
|
32
|
+
console.warn('[main.js]useElement函数升级!改写方式:app.use(useElement, { ElementPlus:ElementPlus });')
|
|
33
|
+
}
|
|
34
|
+
if (!options?.zhCn) {
|
|
35
|
+
console.warn('[main.js]useElement函数升级!改写方式:app.use(useElement, { ElementPlus:ElementPlus });')
|
|
36
|
+
}
|
|
32
37
|
// 安装 ElementPlus
|
|
33
38
|
app.use(options.ElementPlus, {
|
|
34
|
-
locale: zhCn,
|
|
39
|
+
locale: options.zhCn,
|
|
35
40
|
zIndex: 3000
|
|
36
41
|
})
|
|
37
42
|
|