@fecp/designer 5.5.25 → 5.5.26
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,14 +3,12 @@ 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 zh_cn_default from "../node_modules/element-plus/
|
|
7
|
-
|
|
8
|
-
window.ElementPlus = {
|
|
9
|
-
...window.ElementPlus || {},
|
|
10
|
-
locale: zh_cn_default
|
|
11
|
-
};
|
|
12
|
-
}
|
|
6
|
+
import zh_cn_default from "../node_modules/element-plus/es/locale/lang/zh-cn.mjs";
|
|
7
|
+
import ElementPlus from "element-plus";
|
|
13
8
|
const install = (app) => {
|
|
9
|
+
app.use(ElementPlus, {
|
|
10
|
+
locale: zh_cn_default
|
|
11
|
+
});
|
|
14
12
|
app.use(fecVue);
|
|
15
13
|
app.component("fecDevDesigner", layout);
|
|
16
14
|
};
|
|
@@ -1,25 +1,11 @@
|
|
|
1
1
|
import packageJSON from "../../package.json.mjs";
|
|
2
|
-
import { h } from "vue";
|
|
3
|
-
import { ElConfigProvider } from "element-plus";
|
|
4
|
-
import zh_cn_default from "../../../../node_modules/element-plus/dist/locale/zh-cn.mjs";
|
|
5
2
|
const install = {
|
|
6
3
|
withInstall: function(name, comp) {
|
|
7
4
|
name = name.charAt(0).toUpperCase() + name.slice(1);
|
|
8
|
-
|
|
9
|
-
name
|
|
10
|
-
inheritAttrs: true,
|
|
11
|
-
render() {
|
|
12
|
-
return h(
|
|
13
|
-
ElConfigProvider,
|
|
14
|
-
{ locale: zh_cn_default },
|
|
15
|
-
() => h(comp, this.$attrs, this.$slots)
|
|
16
|
-
);
|
|
17
|
-
}
|
|
5
|
+
comp.install = (app) => {
|
|
6
|
+
app.component(packageJSON.prefix + name, comp);
|
|
18
7
|
};
|
|
19
|
-
|
|
20
|
-
app.component(packageJSON.prefix + name, WrappedComp);
|
|
21
|
-
};
|
|
22
|
-
return WrappedComp;
|
|
8
|
+
return comp;
|
|
23
9
|
}
|
|
24
10
|
};
|
|
25
11
|
export {
|
package/lib/designer/index.js
CHANGED
|
@@ -5,14 +5,12 @@ 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
|
-
const zhCn = require("../node_modules/element-plus/
|
|
9
|
-
|
|
10
|
-
window.ElementPlus = {
|
|
11
|
-
...window.ElementPlus || {},
|
|
12
|
-
locale: zhCn.default
|
|
13
|
-
};
|
|
14
|
-
}
|
|
8
|
+
const zhCn = require("../node_modules/element-plus/es/locale/lang/zh-cn.js");
|
|
9
|
+
const ElementPlus = require("element-plus");
|
|
15
10
|
const install = (app) => {
|
|
11
|
+
app.use(ElementPlus, {
|
|
12
|
+
locale: zhCn.default
|
|
13
|
+
});
|
|
16
14
|
app.use(index$1.default);
|
|
17
15
|
app.component("fecDevDesigner", index$2.default);
|
|
18
16
|
};
|
|
@@ -1,27 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const _package = require("../../package.json.js");
|
|
4
|
-
const vue = require("vue");
|
|
5
|
-
const ElementPlus = require("element-plus");
|
|
6
|
-
const zhCn = require("../../../../node_modules/element-plus/dist/locale/zh-cn.js");
|
|
7
4
|
const install = {
|
|
8
5
|
withInstall: function(name, comp) {
|
|
9
6
|
name = name.charAt(0).toUpperCase() + name.slice(1);
|
|
10
|
-
|
|
11
|
-
name
|
|
12
|
-
inheritAttrs: true,
|
|
13
|
-
render() {
|
|
14
|
-
return vue.h(
|
|
15
|
-
ElementPlus.ElConfigProvider,
|
|
16
|
-
{ locale: zhCn.default },
|
|
17
|
-
() => vue.h(comp, this.$attrs, this.$slots)
|
|
18
|
-
);
|
|
19
|
-
}
|
|
7
|
+
comp.install = (app) => {
|
|
8
|
+
app.component(_package.default.prefix + name, comp);
|
|
20
9
|
};
|
|
21
|
-
|
|
22
|
-
app.component(_package.default.prefix + name, WrappedComp);
|
|
23
|
-
};
|
|
24
|
-
return WrappedComp;
|
|
10
|
+
return comp;
|
|
25
11
|
}
|
|
26
12
|
};
|
|
27
13
|
exports.default = install;
|