@bdsoft/element 1.1.19 → 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 +9 -4
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -19,7 +19,7 @@ window.ElementPlusIconVue = ElementPlusIconsVue
|
|
|
19
19
|
import LoadComponent from './src/utils/coms/load.jsx'
|
|
20
20
|
// 自定义的所有组件
|
|
21
21
|
import * as components from './src/index.js'
|
|
22
|
-
|
|
22
|
+
|
|
23
23
|
// 定义 useElement 为 Vue 插件
|
|
24
24
|
const useElement = {
|
|
25
25
|
install(app, options = {}) {
|
|
@@ -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
|
-
app.use(ElementPlus, {
|
|
34
|
-
locale: zhCn,
|
|
38
|
+
app.use(options.ElementPlus, {
|
|
39
|
+
locale: options.zhCn,
|
|
35
40
|
zIndex: 3000
|
|
36
41
|
})
|
|
37
42
|
|