@fecp/designer 5.5.116 → 5.5.117
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/es/designer/index.mjs
CHANGED
|
@@ -3,18 +3,20 @@ import layout from "./src/layout/index.vue.mjs";
|
|
|
3
3
|
/* empty css */
|
|
4
4
|
import devStore from "./src/store/designer.mjs";
|
|
5
5
|
import fecVue from "../packages/vue/index.mjs";
|
|
6
|
-
import
|
|
7
|
-
import ElementPlus from "element-plus";
|
|
6
|
+
import "element-plus";
|
|
8
7
|
const install = (app) => {
|
|
9
|
-
app.use(ElementPlus, {
|
|
10
|
-
locale: zh_cn_default
|
|
11
|
-
});
|
|
12
8
|
app.use(fecVue);
|
|
13
9
|
app.component("fecDevDesigner", layout);
|
|
14
10
|
};
|
|
11
|
+
function useZhCn(app, ElementPlus, zhCn) {
|
|
12
|
+
app.use(ElementPlus, {
|
|
13
|
+
locale: zhCn
|
|
14
|
+
});
|
|
15
|
+
}
|
|
15
16
|
const index = {
|
|
16
17
|
install,
|
|
17
|
-
devStore
|
|
18
|
+
devStore,
|
|
19
|
+
useZhCn
|
|
18
20
|
};
|
|
19
21
|
export {
|
|
20
22
|
index as default
|
package/lib/designer/index.js
CHANGED
|
@@ -5,17 +5,19 @@ const index$2 = ;/* empty css */
|
|
|
5
5
|
;/* empty css */
|
|
6
6
|
const designer = require("./src/store/designer.js");
|
|
7
7
|
const index$1 = require("../packages/vue/index.js");
|
|
8
|
-
|
|
9
|
-
const ElementPlus = require("element-plus");
|
|
8
|
+
require("element-plus");
|
|
10
9
|
const install = (app) => {
|
|
11
|
-
app.use(ElementPlus, {
|
|
12
|
-
locale: zhCn.default
|
|
13
|
-
});
|
|
14
10
|
app.use(index$1.default);
|
|
15
11
|
app.component("fecDevDesigner", index$2.default);
|
|
16
12
|
};
|
|
13
|
+
function useZhCn(app, ElementPlus, zhCn) {
|
|
14
|
+
app.use(ElementPlus, {
|
|
15
|
+
locale: zhCn
|
|
16
|
+
});
|
|
17
|
+
}
|
|
17
18
|
const index = {
|
|
18
19
|
install,
|
|
19
|
-
devStore: designer.default
|
|
20
|
+
devStore: designer.default,
|
|
21
|
+
useZhCn
|
|
20
22
|
};
|
|
21
23
|
exports.default = index;
|