@fecp/designer 5.5.24 → 5.5.25

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.
@@ -1,4 +1,4 @@
1
- const version = "5.5.24";
1
+ const version = "5.5.25";
2
2
  const packageJson = {
3
3
  version
4
4
  };
@@ -1,4 +1,4 @@
1
- import DialogDialog from "./index.vue.mjs";
1
+ import DialogDialog from "./index.vue2.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.vue.mjs";
1
+ import DialogGlobalDialog from "./index.vue2.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,25 @@
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";
2
5
  const install = {
3
6
  withInstall: function(name, comp) {
4
7
  name = name.charAt(0).toUpperCase() + name.slice(1);
5
- comp.install = (app) => {
6
- app.component(packageJSON.prefix + name, comp);
8
+ const WrappedComp = {
9
+ name: comp.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
+ }
7
18
  };
8
- return comp;
19
+ WrappedComp.install = (app) => {
20
+ app.component(packageJSON.prefix + name, WrappedComp);
21
+ };
22
+ return WrappedComp;
9
23
  }
10
24
  };
11
25
  export {
@@ -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.24";
3
+ const version = "5.5.25";
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.vue.js");
3
+ const index = require("./index.vue2.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.vue.js");
3
+ const index = require("./index.vue2.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,27 @@
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");
4
7
  const install = {
5
8
  withInstall: function(name, comp) {
6
9
  name = name.charAt(0).toUpperCase() + name.slice(1);
7
- comp.install = (app) => {
8
- app.component(_package.default.prefix + name, comp);
10
+ const WrappedComp = {
11
+ name: comp.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
+ }
9
20
  };
10
- return comp;
21
+ WrappedComp.install = (app) => {
22
+ app.component(_package.default.prefix + name, WrappedComp);
23
+ };
24
+ return WrappedComp;
11
25
  }
12
26
  };
13
27
  exports.default = install;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fecp/designer",
3
- "version": "5.5.24",
3
+ "version": "5.5.25",
4
4
  "main": "lib/designer/index.js",
5
5
  "module": "es/designer/index.mjs",
6
6
  "files": [