@fecp/designer 5.5.117 → 5.5.118

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.
@@ -3,7 +3,6 @@ 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 "element-plus";
7
6
  const install = (app) => {
8
7
  app.use(fecVue);
9
8
  app.component("fecDevDesigner", layout);
@@ -1,4 +1,4 @@
1
- const version = "5.5.117";
1
+ const version = "5.5.118";
2
2
  const packageJson = {
3
3
  version
4
4
  };
@@ -1,4 +1,4 @@
1
- import DialogDialog from "./index.vue2.mjs";
1
+ import DialogDialog from "./index.vue.mjs";
2
2
  import { ref } from "vue";
3
3
  function useDialogDialog() {
4
4
  const dialogDialogVisible = ref(false);
@@ -1,4 +1,4 @@
1
- import DialogGlobalDialog from "./index.vue2.mjs";
1
+ import DialogGlobalDialog from "./index.vue.mjs";
2
2
  import { ref } from "vue";
3
3
  function useDialogGlobalDialog() {
4
4
  const dialogGlobalDialogVisible = ref(false);
@@ -61,8 +61,8 @@ import _export_sfc from "../../../../../_virtual/_plugin-vue_export-helper.mjs";
61
61
  import "../../../components/TemplateSelector.vue.mjs";
62
62
  import "../../table/default.mjs";
63
63
  /* empty css */
64
- /* empty css */
65
- /* empty css */
64
+ /* empty css */
65
+ /* empty css */
66
66
  import "../../../store/index.mjs";
67
67
  /* empty css */
68
68
  const _hoisted_1 = {
@@ -1,11 +1,19 @@
1
+ import { h } from "vue";
2
+ import { ElConfigProvider } from "element-plus";
3
+ import zh_cn_default from "../../../../node_modules/element-plus/dist/locale/zh-cn.mjs";
1
4
  import packageJSON from "../../package.json.mjs";
2
5
  const install = {
3
6
  withInstall: function(name, comp) {
4
- name = name.charAt(0).toUpperCase() + name.slice(1);
5
- comp.install = (app) => {
6
- app.component(packageJSON.prefix + name, comp);
7
+ const prefixName = packageJSON.prefix + name.charAt(0).toUpperCase() + name.slice(1);
8
+ const WrapComp = {
9
+ render() {
10
+ return h(ElConfigProvider, { locale: zh_cn_default }, () => h(comp));
11
+ }
7
12
  };
8
- return comp;
13
+ WrapComp.install = (app) => {
14
+ app.component(prefixName, WrapComp);
15
+ };
16
+ return WrapComp;
9
17
  }
10
18
  };
11
19
  export {
@@ -5,7 +5,6 @@ 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
- require("element-plus");
9
8
  const install = (app) => {
10
9
  app.use(index$1.default);
11
10
  app.component("fecDevDesigner", index$2.default);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const version = "5.5.117";
3
+ const version = "5.5.118";
4
4
  const packageJson = {
5
5
  version
6
6
  };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("./index.vue2.js");
3
+ const index = require("./index.vue.js");
4
4
  const Vue = require("vue");
5
5
  function useDialogDialog() {
6
6
  const dialogDialogVisible = Vue.ref(false);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("./index.vue2.js");
3
+ const index = require("./index.vue.js");
4
4
  const Vue = require("vue");
5
5
  function useDialogGlobalDialog() {
6
6
  const dialogGlobalDialogVisible = Vue.ref(false);
@@ -63,8 +63,8 @@ const _pluginVue_exportHelper = require("../../../../../_virtual/_plugin-vue_exp
63
63
  require("../../../components/TemplateSelector.vue.js");
64
64
  require("../../table/default.js");
65
65
  ;/* empty css */
66
- ;/* empty css */
67
- ;/* empty css */
66
+ ;/* empty css */
67
+ ;/* empty css */
68
68
  require("../../../store/index.js");
69
69
  ;/* empty css */
70
70
  const _hoisted_1 = {
@@ -1,13 +1,21 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const Vue = require("vue");
4
+ const ElementPlus = require("element-plus");
5
+ const zhCn = require("../../../../node_modules/element-plus/dist/locale/zh-cn.js");
3
6
  const _package = require("../../package.json.js");
4
7
  const install = {
5
8
  withInstall: function(name, comp) {
6
- name = name.charAt(0).toUpperCase() + name.slice(1);
7
- comp.install = (app) => {
8
- app.component(_package.default.prefix + name, comp);
9
+ const prefixName = _package.default.prefix + name.charAt(0).toUpperCase() + name.slice(1);
10
+ const WrapComp = {
11
+ render() {
12
+ return Vue.h(ElementPlus.ElConfigProvider, { locale: zhCn.default }, () => Vue.h(comp));
13
+ }
9
14
  };
10
- return comp;
15
+ WrapComp.install = (app) => {
16
+ app.component(prefixName, WrapComp);
17
+ };
18
+ return WrapComp;
11
19
  }
12
20
  };
13
21
  exports.default = install;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fecp/designer",
3
- "version": "5.5.117",
3
+ "version": "5.5.118",
4
4
  "main": "lib/designer/index.js",
5
5
  "module": "es/designer/index.mjs",
6
6
  "files": [