@fangzhongya/page 0.0.2 → 0.0.4

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.
Files changed (84) hide show
  1. package/dist/{array-m4xM7bY6.cjs → array-4LX9CzGP.cjs} +6 -6
  2. package/dist/{array-DNzTqnWI.js → array-B4I7zu_1.js} +1 -1
  3. package/dist/assemblys/index.d.ts +10 -0
  4. package/dist/{boolean-O7ClnMtA.js → boolean-8I01WKNW.js} +1 -1
  5. package/dist/{boolean-BrAyoMWr.cjs → boolean-CEop3NmC.cjs} +6 -6
  6. package/dist/{button-editor-C5HmDQZY.cjs → button-editor-B3rKUx1C.cjs} +22 -22
  7. package/dist/{button-editor-B9Hwtqh3.js → button-editor-C6p8oF_z.js} +1 -1
  8. package/dist/{choice-DfHgWwQd.js → choice-D3asXVji.js} +1 -1
  9. package/dist/{choice-C2_KDs8f.cjs → choice-DTCEQkpw.cjs} +9 -9
  10. package/dist/{class-wYp7_2ao.js → class-Bg_6_V0W.js} +1 -1
  11. package/dist/{class-D5OY1alc.cjs → class-DXUIm1Wt.cjs} +12 -12
  12. package/dist/{code-Bi6mCasH.cjs → code-Bk8zthm4.cjs} +11 -11
  13. package/dist/{code-BR3C6XHK.js → code-JbiRUVbE.js} +1 -1
  14. package/dist/{codes-CUdIl60P.cjs → codes-BaLeteiv.cjs} +59 -58
  15. package/dist/{codes-4Mb8F7yh.js → codes-CwY3esXg.js} +2 -1
  16. package/dist/{color-BmeGoq56.cjs → color-ByjqtFCn.cjs} +6 -6
  17. package/dist/{color-DiUa8kw0.js → color-XdiHpIkY.js} +1 -1
  18. package/dist/components/control/config.d.ts +10 -0
  19. package/dist/components/control/design.d.ts +12 -0
  20. package/dist/components/control/draggable.d.ts +9 -0
  21. package/dist/components/output/prettier.d.ts +1 -0
  22. package/dist/components/output/util.d.ts +55 -0
  23. package/dist/components/output/vue/index.d.ts +2 -0
  24. package/dist/components/output/vue/toCodeString.d.ts +7 -0
  25. package/dist/components/right/currency/index.d.ts +1 -0
  26. package/dist/components/right/editdata/currency/index.d.ts +1 -0
  27. package/dist/components/right/editdata/util.d.ts +1 -0
  28. package/dist/components/util.d.ts +4 -0
  29. package/dist/config/assembly.d.ts +10 -0
  30. package/dist/config/attrconfig.d.ts +4 -0
  31. package/dist/config/basics.d.ts +9 -0
  32. package/dist/config/elements.d.ts +3 -0
  33. package/dist/config/template.d.ts +3 -0
  34. package/dist/config/util.d.ts +50 -0
  35. package/dist/config.d.ts +11 -0
  36. package/dist/{container-MDOC4zc5.cjs → container-Di9HhbKs.cjs} +5 -5
  37. package/dist/design/design.d.ts +19 -0
  38. package/dist/design/util.d.ts +7 -0
  39. package/dist/{editor-B4tRH4Du.js → editor-CF6IDzox.js} +2 -2
  40. package/dist/{editor-DPwBedZ2.cjs → editor-CuFRRBY8.cjs} +7 -7
  41. package/dist/{emits-B7KwdqmA.cjs → emits-C8U39lG8.cjs} +7 -7
  42. package/dist/{emits-Ca-GNz_C.cjs → emits-DIHXvC6q.cjs} +13 -13
  43. package/dist/{emits-CHkGnd-Y.js → emits-Dis5-w1h.js} +2 -2
  44. package/dist/{emits-D2Rl4rjw.js → emits-hahcekXd.js} +1 -1
  45. package/dist/{general-UJlyOZvQ.cjs → general-Cdhgy8fB.cjs} +6 -6
  46. package/dist/{general-DxwEYB6g.js → general-Dj0mM4aG.js} +1 -1
  47. package/dist/{grid-item-Dp497fop.cjs → grid-item-Be7UvEWG.cjs} +10 -10
  48. package/dist/{grid-item-Cmdo7s5E.js → grid-item-DIF6dztk.js} +1 -1
  49. package/dist/{grid-layout-eQkarQXt.js → grid-layout-09hwQT_O.js} +2 -2
  50. package/dist/{grid-layout-T6cqoGHe.cjs → grid-layout-DjfzAgOn.cjs} +24 -24
  51. package/dist/{icon-Df2JcOTJ.js → icon-6wnuAtiI.js} +1 -1
  52. package/dist/{icon-pkpHgiKt.cjs → icon-Bbww2bu0.cjs} +9 -9
  53. package/dist/{index-DyWEL-aT.cjs → index-D-yctocb.cjs} +1329 -8110
  54. package/dist/{index-DN34gSCV.js → index-VRjqaZ9O.js} +90 -6871
  55. package/dist/index.cjs +3 -3
  56. package/dist/index.d.ts +6 -0
  57. package/dist/index.js +3 -3
  58. package/dist/{number-C3VpEtV8.js → number-CXeSfiTs.js} +1 -1
  59. package/dist/{number-CflHfHtP.cjs → number-DHcYFkya.cjs} +10 -10
  60. package/dist/{object-ozr75zb0.cjs → object-CLjwv4iT.cjs} +6 -6
  61. package/dist/{object-DBCu1gwK.js → object-C_ziuSo-.js} +1 -1
  62. package/dist/{page-z22w7mwk.cjs → page-CM5fy4FM.cjs} +31 -31
  63. package/dist/page.cjs +1 -1
  64. package/dist/page.d.ts +2 -0
  65. package/dist/{position-kgl0BpQL.cjs → position-N_mgkxl1.cjs} +7 -7
  66. package/dist/{props-D7vQsQVi.cjs → props-MkE1UwfX.cjs} +95 -95
  67. package/dist/{props-6xREXIbi.js → props-cW8C1KnK.js} +1 -1
  68. package/dist/render/common.d.ts +33 -0
  69. package/dist/render/config.d.ts +45 -0
  70. package/dist/render/render.d.ts +22 -0
  71. package/dist/render/util.d.ts +21 -0
  72. package/dist/{slots-Bh6P4SS6.cjs → slots-DiixZcDi.cjs} +17 -17
  73. package/dist/{string-DnjyAONX.js → string-C6pRLehe.js} +1 -1
  74. package/dist/{string-Cj2nmHmv.cjs → string-NZs9D-zg.cjs} +6 -6
  75. package/dist/{style-IOBZgXpF.cjs → style-B_wIl7NP.cjs} +13 -13
  76. package/dist/{style-D0hLGzVR.js → style-C8hMapR_.js} +1 -1
  77. package/dist/{style-CfAbL6Bz.cjs → style-DOjley_0.cjs} +12 -12
  78. package/dist/{style-c2dTkxib.js → style-IIEjy6zk.js} +2 -2
  79. package/dist/utils/copy.d.ts +7 -0
  80. package/dist/utils/css.d.ts +13 -0
  81. package/dist/utils/index.d.ts +22 -0
  82. package/dist/utils/render.d.ts +6 -0
  83. package/dist/utils/shared.d.ts +5 -0
  84. package/package.json +8 -7
@@ -2,9 +2,9 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const index$1 = require("@fangzhongya/fang-ui/components/edit-data/index");
4
4
  require("@fangzhongya/fang-ui/components/edit-data/style/index2.scss");
5
- const require$$0 = require("vue");
6
- const index = require("./index-DyWEL-aT.cjs");
7
- const _sfc_main = /* @__PURE__ */ require$$0.defineComponent({
5
+ const vue = require("vue");
6
+ const index = require("./index-D-yctocb.cjs");
7
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
8
8
  __name: "array",
9
9
  props: {
10
10
  /**
@@ -37,9 +37,9 @@ const _sfc_main = /* @__PURE__ */ require$$0.defineComponent({
37
37
  const emit = __emit;
38
38
  return (_ctx, _cache) => {
39
39
  const _component_EditData = index$1.EditData;
40
- return require$$0.openBlock(), require$$0.createBlock(index._sfc_main, require$$0.normalizeProps(require$$0.guardReactiveProps(props)), {
41
- default: require$$0.withCtx(() => [
42
- require$$0.createVNode(_component_EditData, {
40
+ return vue.openBlock(), vue.createBlock(index._sfc_main, vue.normalizeProps(vue.guardReactiveProps(props)), {
41
+ default: vue.withCtx(() => [
42
+ vue.createVNode(_component_EditData, {
43
43
  isJson: "",
44
44
  isConfirmUpdate: "",
45
45
  type: __props.config.type,
@@ -1,7 +1,7 @@
1
1
  import { EditData } from "@fangzhongya/fang-ui/components/edit-data/index";
2
2
  import "@fangzhongya/fang-ui/components/edit-data/style/index2.scss";
3
3
  import { defineComponent, createBlock, openBlock, normalizeProps, guardReactiveProps, withCtx, createVNode } from "vue";
4
- import { a as _sfc_main$1 } from "./index-DN34gSCV.js";
4
+ import { a as _sfc_main$1 } from "./index-VRjqaZ9O.js";
5
5
  const _sfc_main = /* @__PURE__ */ defineComponent({
6
6
  __name: "array",
7
7
  props: {
@@ -0,0 +1,10 @@
1
+ import { App } from 'vue';
2
+ declare const all: {
3
+ PageContainer: any;
4
+ PageGridItem: any;
5
+ PageGridLayout: any;
6
+ PagePosition: any;
7
+ };
8
+ export { all };
9
+ declare const _default: (app: App) => void;
10
+ export default _default;
@@ -1,7 +1,7 @@
1
1
  import { Switch } from "@fangzhongya/fang-ui/components/switch/index";
2
2
  import "@fangzhongya/fang-ui/components/switch/style/index2.scss";
3
3
  import { defineComponent, createBlock, openBlock, normalizeProps, guardReactiveProps, withCtx, createVNode, mergeProps } from "vue";
4
- import { a as _sfc_main$1 } from "./index-DN34gSCV.js";
4
+ import { a as _sfc_main$1 } from "./index-VRjqaZ9O.js";
5
5
  const _sfc_main = /* @__PURE__ */ defineComponent({
6
6
  __name: "boolean",
7
7
  props: {
@@ -2,9 +2,9 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const index$1 = require("@fangzhongya/fang-ui/components/switch/index");
4
4
  require("@fangzhongya/fang-ui/components/switch/style/index2.scss");
5
- const require$$0 = require("vue");
6
- const index = require("./index-DyWEL-aT.cjs");
7
- const _sfc_main = /* @__PURE__ */ require$$0.defineComponent({
5
+ const vue = require("vue");
6
+ const index = require("./index-D-yctocb.cjs");
7
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
8
8
  __name: "boolean",
9
9
  props: {
10
10
  /**
@@ -37,9 +37,9 @@ const _sfc_main = /* @__PURE__ */ require$$0.defineComponent({
37
37
  const emit = __emit;
38
38
  return (_ctx, _cache) => {
39
39
  const _component_Switch = index$1.Switch;
40
- return require$$0.openBlock(), require$$0.createBlock(index._sfc_main, require$$0.normalizeProps(require$$0.guardReactiveProps(props)), {
41
- default: require$$0.withCtx(() => [
42
- require$$0.createVNode(_component_Switch, require$$0.mergeProps(props.config?.config, {
40
+ return vue.openBlock(), vue.createBlock(index._sfc_main, vue.normalizeProps(vue.guardReactiveProps(props)), {
41
+ default: vue.withCtx(() => [
42
+ vue.createVNode(_component_Switch, vue.mergeProps(props.config?.config, {
43
43
  modelValue: props.modelValue[props.prop],
44
44
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => props.modelValue[props.prop] = $event),
45
45
  onBlur: _cache[1] || (_cache[1] = () => emit("blur"))
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  const index$1 = require("@fangzhongya/fang-ui/components/button/index");
3
3
  require("@fangzhongya/fang-ui/components/button/style/index2.scss");
4
- const require$$0 = require("vue");
5
- const index = require("./index-DyWEL-aT.cjs");
6
- const _sfc_main = /* @__PURE__ */ require$$0.defineComponent({
4
+ const vue = require("vue");
5
+ const index = require("./index-D-yctocb.cjs");
6
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
7
7
  __name: "button-editor",
8
8
  props: {
9
9
  prop: {
@@ -45,7 +45,7 @@ const _sfc_main = /* @__PURE__ */ require$$0.defineComponent({
45
45
  const cs = index.getClass("editor-button");
46
46
  const props = __props;
47
47
  const emit = __emit;
48
- const editorObj = require$$0.inject("editor");
48
+ const editorObj = vue.inject("editor");
49
49
  function submit(v) {
50
50
  if (v) {
51
51
  emit("update:modelValue", v);
@@ -56,7 +56,7 @@ const _sfc_main = /* @__PURE__ */ require$$0.defineComponent({
56
56
  }
57
57
  }
58
58
  function setBox() {
59
- require$$0.nextTick(() => {
59
+ vue.nextTick(() => {
60
60
  if (editorObj) {
61
61
  Object.keys(props).forEach((v) => {
62
62
  editorObj[v] = props[v] || "";
@@ -77,47 +77,47 @@ const _sfc_main = /* @__PURE__ */ require$$0.defineComponent({
77
77
  });
78
78
  return (_ctx, _cache) => {
79
79
  const _component_Button = index$1.Button;
80
- return require$$0.openBlock(), require$$0.createElementBlock("div", {
81
- class: require$$0.normalizeClass(require$$0.unref(cs)()),
82
- onClick: _cache[0] || (_cache[0] = require$$0.withModifiers(($event) => onClick(), ["stop"]))
80
+ return vue.openBlock(), vue.createElementBlock("div", {
81
+ class: vue.normalizeClass(vue.unref(cs)()),
82
+ onClick: _cache[0] || (_cache[0] = vue.withModifiers(($event) => onClick(), ["stop"]))
83
83
  }, [
84
- require$$0.renderSlot(_ctx.$slots, "default", {}, () => [
85
- props.but == 1 ? (require$$0.openBlock(), require$$0.createBlock(_component_Button, {
84
+ vue.renderSlot(_ctx.$slots, "default", {}, () => [
85
+ props.but == 1 ? (vue.openBlock(), vue.createBlock(_component_Button, {
86
86
  key: 0,
87
87
  type: "primary"
88
88
  }, {
89
- default: require$$0.withCtx(() => [..._cache[1] || (_cache[1] = [
90
- require$$0.createTextVNode("方法", -1)
89
+ default: vue.withCtx(() => [..._cache[1] || (_cache[1] = [
90
+ vue.createTextVNode("方法", -1)
91
91
  ])]),
92
92
  _: 1
93
- })) : props.but == 2 ? (require$$0.openBlock(), require$$0.createBlock(_component_Button, {
93
+ })) : props.but == 2 ? (vue.openBlock(), vue.createBlock(_component_Button, {
94
94
  key: 1,
95
95
  type: "primary"
96
96
  }, {
97
- default: require$$0.withCtx(() => [..._cache[2] || (_cache[2] = [
98
- require$$0.createTextVNode("事件", -1)
97
+ default: vue.withCtx(() => [..._cache[2] || (_cache[2] = [
98
+ vue.createTextVNode("事件", -1)
99
99
  ])]),
100
100
  _: 1
101
- })) : props.but ? (require$$0.openBlock(), require$$0.createBlock(_component_Button, {
101
+ })) : props.but ? (vue.openBlock(), vue.createBlock(_component_Button, {
102
102
  key: 2,
103
103
  type: "primary"
104
104
  }, {
105
- default: require$$0.withCtx(() => [
106
- require$$0.createTextVNode(require$$0.toDisplayString(props.but), 1)
105
+ default: vue.withCtx(() => [
106
+ vue.createTextVNode(vue.toDisplayString(props.but), 1)
107
107
  ]),
108
108
  _: 1
109
- })) : (require$$0.openBlock(), require$$0.createElementBlock("svg", {
109
+ })) : (vue.openBlock(), vue.createElementBlock("svg", {
110
110
  key: 3,
111
- class: require$$0.normalizeClass(require$$0.unref(cs)("icon")),
111
+ class: vue.normalizeClass(vue.unref(cs)("icon")),
112
112
  viewBox: "0 0 1024 1024",
113
113
  xmlns: "http://www.w3.org/2000/svg",
114
114
  "data-v-ea893728": ""
115
115
  }, [..._cache[3] || (_cache[3] = [
116
- require$$0.createElementVNode("path", {
116
+ vue.createElementVNode("path", {
117
117
  fill: "currentColor",
118
118
  d: "M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640V512z"
119
119
  }, null, -1),
120
- require$$0.createElementVNode("path", {
120
+ vue.createElementVNode("path", {
121
121
  fill: "currentColor",
122
122
  d: "m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"
123
123
  }, null, -1)
@@ -1,7 +1,7 @@
1
1
  import { Button } from "@fangzhongya/fang-ui/components/button/index";
2
2
  import "@fangzhongya/fang-ui/components/button/style/index2.scss";
3
3
  import { defineComponent, inject, createElementBlock, openBlock, withModifiers, normalizeClass, unref, renderSlot, createBlock, withCtx, createTextVNode, toDisplayString, createElementVNode, nextTick } from "vue";
4
- import { g as getClass } from "./index-DN34gSCV.js";
4
+ import { g as getClass } from "./index-VRjqaZ9O.js";
5
5
  const _sfc_main = /* @__PURE__ */ defineComponent({
6
6
  __name: "button-editor",
7
7
  props: {
@@ -3,7 +3,7 @@ import "element-plus/es/components/base/style/css";
3
3
  import "element-plus/es/components/select/style/css";
4
4
  import "element-plus/es/components/option/style/css";
5
5
  import { defineComponent, createBlock, openBlock, normalizeProps, guardReactiveProps, withCtx, createVNode, createElementBlock, Fragment, renderList } from "vue";
6
- import { a as _sfc_main$1 } from "./index-DN34gSCV.js";
6
+ import { a as _sfc_main$1 } from "./index-VRjqaZ9O.js";
7
7
  const _sfc_main = /* @__PURE__ */ defineComponent({
8
8
  __name: "choice",
9
9
  props: {
@@ -4,9 +4,9 @@ const es = require("element-plus/es");
4
4
  require("element-plus/es/components/base/style/css");
5
5
  require("element-plus/es/components/select/style/css");
6
6
  require("element-plus/es/components/option/style/css");
7
- const require$$0 = require("vue");
8
- const index = require("./index-DyWEL-aT.cjs");
9
- const _sfc_main = /* @__PURE__ */ require$$0.defineComponent({
7
+ const vue = require("vue");
8
+ const index = require("./index-D-yctocb.cjs");
9
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
10
10
  __name: "choice",
11
11
  props: {
12
12
  /**
@@ -64,17 +64,17 @@ const _sfc_main = /* @__PURE__ */ require$$0.defineComponent({
64
64
  return (_ctx, _cache) => {
65
65
  const _component_el_option = es.ElOption;
66
66
  const _component_el_select = es.ElSelect;
67
- return require$$0.openBlock(), require$$0.createBlock(index._sfc_main, require$$0.normalizeProps(require$$0.guardReactiveProps(props)), {
68
- default: require$$0.withCtx(() => [
69
- require$$0.createVNode(_component_el_select, {
67
+ return vue.openBlock(), vue.createBlock(index._sfc_main, vue.normalizeProps(vue.guardReactiveProps(props)), {
68
+ default: vue.withCtx(() => [
69
+ vue.createVNode(_component_el_select, {
70
70
  modelValue: props.modelValue[props.prop],
71
71
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => props.modelValue[props.prop] = $event),
72
72
  clearable: "",
73
73
  placeholder: "请选择"
74
74
  }, {
75
- default: require$$0.withCtx(() => [
76
- (require$$0.openBlock(true), require$$0.createElementBlock(require$$0.Fragment, null, require$$0.renderList(props.config.options, (item, key) => {
77
- return require$$0.openBlock(), require$$0.createBlock(_component_el_option, {
75
+ default: vue.withCtx(() => [
76
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(props.config.options, (item, key) => {
77
+ return vue.openBlock(), vue.createBlock(_component_el_option, {
78
78
  key,
79
79
  label: setLabel(item),
80
80
  value: setProp(item)
@@ -3,7 +3,7 @@ import "element-plus/es/components/base/style/css";
3
3
  import "element-plus/es/components/select/style/css";
4
4
  import "element-plus/es/components/option/style/css";
5
5
  import { defineComponent, inject, computed, createBlock, openBlock, unref, isRef, withCtx, createElementBlock, Fragment, renderList } from "vue";
6
- import { e as extractCssClass } from "./index-DN34gSCV.js";
6
+ import { e as extractCssClass } from "./index-VRjqaZ9O.js";
7
7
  const _sfc_main = /* @__PURE__ */ defineComponent({
8
8
  __name: "class",
9
9
  props: {
@@ -4,9 +4,9 @@ const es = require("element-plus/es");
4
4
  require("element-plus/es/components/base/style/css");
5
5
  require("element-plus/es/components/select/style/css");
6
6
  require("element-plus/es/components/option/style/css");
7
- const require$$0 = require("vue");
8
- const index = require("./index-DyWEL-aT.cjs");
9
- const _sfc_main = /* @__PURE__ */ require$$0.defineComponent({
7
+ const vue = require("vue");
8
+ const index = require("./index-D-yctocb.cjs");
9
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
10
10
  __name: "class",
11
11
  props: {
12
12
  type: { type: String, default: "" },
@@ -21,12 +21,12 @@ const _sfc_main = /* @__PURE__ */ require$$0.defineComponent({
21
21
  setup(__props, { emit: __emit }) {
22
22
  const props = __props;
23
23
  const emit = __emit;
24
- const layout = require$$0.inject("layout");
25
- const options = require$$0.computed(() => {
24
+ const layout = vue.inject("layout");
25
+ const options = vue.computed(() => {
26
26
  const style = layout.value.config?.style || "";
27
27
  return index.extractCssClass(style);
28
28
  });
29
- const value = require$$0.computed({
29
+ const value = vue.computed({
30
30
  set(arr) {
31
31
  emit("update:modelValue", arr.join(" "));
32
32
  },
@@ -42,9 +42,9 @@ const _sfc_main = /* @__PURE__ */ require$$0.defineComponent({
42
42
  return (_ctx, _cache) => {
43
43
  const _component_el_option = es.ElOption;
44
44
  const _component_el_select = es.ElSelect;
45
- return require$$0.openBlock(), require$$0.createBlock(_component_el_select, {
46
- modelValue: require$$0.unref(value),
47
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => require$$0.isRef(value) ? value.value = $event : null),
45
+ return vue.openBlock(), vue.createBlock(_component_el_select, {
46
+ modelValue: vue.unref(value),
47
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(value) ? value.value = $event : null),
48
48
  multiple: "",
49
49
  filterable: "",
50
50
  "allow-create": "",
@@ -52,9 +52,9 @@ const _sfc_main = /* @__PURE__ */ require$$0.defineComponent({
52
52
  "reserve-keyword": false,
53
53
  placeholder: "选择或者输入样式名称"
54
54
  }, {
55
- default: require$$0.withCtx(() => [
56
- (require$$0.openBlock(true), require$$0.createElementBlock(require$$0.Fragment, null, require$$0.renderList(require$$0.unref(options), (item) => {
57
- return require$$0.openBlock(), require$$0.createBlock(_component_el_option, {
55
+ default: vue.withCtx(() => [
56
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(options), (item) => {
57
+ return vue.openBlock(), vue.createBlock(_component_el_option, {
58
58
  key: item,
59
59
  label: item,
60
60
  value: item
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const require$$0 = require("vue");
4
- const index = require("./index-DyWEL-aT.cjs");
5
- const _sfc_main = /* @__PURE__ */ require$$0.defineComponent({
3
+ const vue = require("vue");
4
+ const index = require("./index-D-yctocb.cjs");
5
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
6
6
  __name: "code",
7
7
  props: {
8
8
  /**
@@ -36,17 +36,17 @@ const _sfc_main = /* @__PURE__ */ require$$0.defineComponent({
36
36
  setup(__props, { emit: __emit }) {
37
37
  const props = __props;
38
38
  const emit = __emit;
39
- const codeValue = require$$0.ref("");
39
+ const codeValue = vue.ref("");
40
40
  return (_ctx, _cache) => {
41
- return require$$0.openBlock(), require$$0.createBlock(index._sfc_main$1, require$$0.mergeProps(props, {
41
+ return vue.openBlock(), vue.createBlock(index._sfc_main$1, vue.mergeProps(props, {
42
42
  onBlur: _cache[1] || (_cache[1] = () => emit("blur")),
43
- value: require$$0.unref(codeValue),
44
- "onUpdate:value": _cache[2] || (_cache[2] = ($event) => require$$0.isRef(codeValue) ? codeValue.value = $event : null)
43
+ value: vue.unref(codeValue),
44
+ "onUpdate:value": _cache[2] || (_cache[2] = ($event) => vue.isRef(codeValue) ? codeValue.value = $event : null)
45
45
  }), {
46
- default: require$$0.withCtx(() => [
47
- require$$0.createVNode(index._sfc_main$2, {
48
- modelValue: require$$0.unref(codeValue),
49
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => require$$0.isRef(codeValue) ? codeValue.value = $event : null)
46
+ default: vue.withCtx(() => [
47
+ vue.createVNode(index._sfc_main$2, {
48
+ modelValue: vue.unref(codeValue),
49
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(codeValue) ? codeValue.value = $event : null)
50
50
  }, null, 8, ["modelValue"])
51
51
  ]),
52
52
  _: 1
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, ref, createBlock, openBlock, mergeProps, unref, isRef, withCtx, createVNode } from "vue";
2
- import { b as _sfc_main$1, c as _sfc_main$2 } from "./index-DN34gSCV.js";
2
+ import { b as _sfc_main$1, c as _sfc_main$2 } from "./index-VRjqaZ9O.js";
3
3
  const _sfc_main = /* @__PURE__ */ defineComponent({
4
4
  __name: "code",
5
5
  props: {
@@ -10,15 +10,16 @@ const index$1 = require("@fangzhongya/fang-ui/components/button/index");
10
10
  require("@fangzhongya/fang-ui/components/button/style/index2.scss");
11
11
  const index$2 = require("@fangzhongya/fang-ui/components/inputs/index");
12
12
  require("@fangzhongya/fang-ui/components/inputs/style/index2.scss");
13
- const require$$0 = require("vue");
14
- const index = require("./index-DyWEL-aT.cjs");
13
+ const vue = require("vue");
14
+ const index = require("./index-D-yctocb.cjs");
15
+ const Draggable = require("vuedraggable");
15
16
  const _hoisted_1 = { class: "handle codes-li" };
16
17
  const _hoisted_2 = { key: 0 };
17
18
  const _hoisted_3 = { class: "codes-box" };
18
19
  const _hoisted_4 = { class: "dfrac" };
19
20
  const _hoisted_5 = { class: "code" };
20
21
  const _hoisted_6 = { class: "footer" };
21
- const _sfc_main = /* @__PURE__ */ require$$0.defineComponent({
22
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
22
23
  __name: "codes",
23
24
  props: {
24
25
  /**
@@ -49,7 +50,7 @@ const _sfc_main = /* @__PURE__ */ require$$0.defineComponent({
49
50
  setup(__props, { emit: __emit }) {
50
51
  const props = __props;
51
52
  const emit = __emit;
52
- const drag = require$$0.ref(false);
53
+ const drag = vue.ref(false);
53
54
  const dragOptions = {
54
55
  animation: 200,
55
56
  group: "description",
@@ -61,11 +62,11 @@ const _sfc_main = /* @__PURE__ */ require$$0.defineComponent({
61
62
  { label: "param", value: 1 },
62
63
  { label: "data", value: 2 }
63
64
  ];
64
- const box = require$$0.ref(false);
65
+ const box = vue.ref(false);
65
66
  const onDelete = (index2) => {
66
67
  value.value.splice(index2, 1);
67
68
  };
68
- const value = require$$0.ref([]);
69
+ const value = vue.ref([]);
69
70
  const getValue = (obj) => {
70
71
  if (obj.isVar) {
71
72
  return obj.varName + " = " + obj.value;
@@ -73,7 +74,7 @@ const _sfc_main = /* @__PURE__ */ require$$0.defineComponent({
73
74
  return obj.value;
74
75
  }
75
76
  };
76
- const codeData = require$$0.ref({
77
+ const codeData = vue.ref({
77
78
  value: "",
78
79
  isVar: false,
79
80
  varName: "",
@@ -118,43 +119,43 @@ const _sfc_main = /* @__PURE__ */ require$$0.defineComponent({
118
119
  const _component_Switch = index$4.Switch;
119
120
  const _component_Selects = index$5.Selects;
120
121
  const _component_Window = index$3.Window;
121
- return require$$0.openBlock(), require$$0.createElementBlock("div", null, [
122
- require$$0.createVNode(index._sfc_main$1, require$$0.mergeProps(props, {
122
+ return vue.openBlock(), vue.createElementBlock("div", null, [
123
+ vue.createVNode(index._sfc_main$1, vue.mergeProps(props, {
123
124
  onBlur: _cache[3] || (_cache[3] = () => emit("blur")),
124
- value: require$$0.unref(value),
125
- "onUpdate:value": _cache[4] || (_cache[4] = ($event) => require$$0.isRef(value) ? value.value = $event : null),
125
+ value: vue.unref(value),
126
+ "onUpdate:value": _cache[4] || (_cache[4] = ($event) => vue.isRef(value) ? value.value = $event : null),
126
127
  default: []
127
128
  }), {
128
- default: require$$0.withCtx(() => [
129
- require$$0.createVNode(require$$0.unref(index.Draggable), require$$0.mergeProps(dragOptions, {
129
+ default: vue.withCtx(() => [
130
+ vue.createVNode(vue.unref(Draggable), vue.mergeProps(dragOptions, {
130
131
  class: "codes-ul",
131
132
  onStart: _cache[0] || (_cache[0] = ($event) => drag.value = true),
132
133
  onEnd: _cache[1] || (_cache[1] = ($event) => drag.value = false),
133
- modelValue: require$$0.unref(value),
134
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => require$$0.isRef(value) ? value.value = $event : null),
134
+ modelValue: vue.unref(value),
135
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => vue.isRef(value) ? value.value = $event : null),
135
136
  "item-key": (key) => key,
136
137
  handle: ".handle"
137
138
  }), {
138
- item: require$$0.withCtx(({ element, index: index2 }) => [
139
- require$$0.createElementVNode("div", _hoisted_1, [
140
- require$$0.createVNode(_component_Inputs, {
139
+ item: vue.withCtx(({ element, index: index2 }) => [
140
+ vue.createElementVNode("div", _hoisted_1, [
141
+ vue.createVNode(_component_Inputs, {
141
142
  readonly: "",
142
143
  "model-value": getValue(element)
143
144
  }, null, 8, ["model-value"]),
144
- require$$0.createVNode(_component_Button, {
145
+ vue.createVNode(_component_Button, {
145
146
  type: "primary",
146
147
  onClick: ($event) => onSet(element, index2)
147
148
  }, {
148
- default: require$$0.withCtx(() => [..._cache[10] || (_cache[10] = [
149
- require$$0.createTextVNode("设置", -1)
149
+ default: vue.withCtx(() => [..._cache[10] || (_cache[10] = [
150
+ vue.createTextVNode("设置", -1)
150
151
  ])]),
151
152
  _: 1
152
153
  }, 8, ["onClick"]),
153
- require$$0.createVNode(_component_Button, {
154
+ vue.createVNode(_component_Button, {
154
155
  onClick: ($event) => onDelete(index2)
155
156
  }, {
156
- default: require$$0.withCtx(() => [..._cache[11] || (_cache[11] = [
157
- require$$0.createTextVNode("删除", -1)
157
+ default: vue.withCtx(() => [..._cache[11] || (_cache[11] = [
158
+ vue.createTextVNode("删除", -1)
158
159
  ])]),
159
160
  _: 1
160
161
  }, 8, ["onClick"])
@@ -162,69 +163,69 @@ const _sfc_main = /* @__PURE__ */ require$$0.defineComponent({
162
163
  ]),
163
164
  _: 1
164
165
  }, 16, ["modelValue", "item-key"]),
165
- !require$$0.unref(value) || require$$0.unref(value).length == 0 ? (require$$0.openBlock(), require$$0.createElementBlock("span", _hoisted_2, "暂无设置")) : require$$0.createCommentVNode("", true)
166
+ !vue.unref(value) || vue.unref(value).length == 0 ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2, "暂无设置")) : vue.createCommentVNode("", true)
166
167
  ]),
167
- footer: require$$0.withCtx(() => [
168
- require$$0.createVNode(_component_Button, { onClick: onAdd }, {
169
- default: require$$0.withCtx(() => [..._cache[12] || (_cache[12] = [
170
- require$$0.createTextVNode("添加", -1)
168
+ footer: vue.withCtx(() => [
169
+ vue.createVNode(_component_Button, { onClick: onAdd }, {
170
+ default: vue.withCtx(() => [..._cache[12] || (_cache[12] = [
171
+ vue.createTextVNode("添加", -1)
171
172
  ])]),
172
173
  _: 1
173
174
  })
174
175
  ]),
175
176
  _: 1
176
177
  }, 16, ["value"]),
177
- require$$0.createVNode(_component_Window, {
178
+ vue.createVNode(_component_Window, {
178
179
  isMin: false,
179
180
  title: "设置" + (props.config?.title || props.label),
180
- modelValue: require$$0.unref(box),
181
- "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => require$$0.isRef(box) ? box.value = $event : null)
181
+ modelValue: vue.unref(box),
182
+ "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => vue.isRef(box) ? box.value = $event : null)
182
183
  }, {
183
- default: require$$0.withCtx(() => [
184
- require$$0.createElementVNode("div", _hoisted_3, [
185
- require$$0.createElementVNode("div", _hoisted_4, [
186
- require$$0.createVNode(_component_Switch, {
187
- modelValue: require$$0.unref(codeData).isVar,
188
- "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => require$$0.unref(codeData).isVar = $event)
184
+ default: vue.withCtx(() => [
185
+ vue.createElementVNode("div", _hoisted_3, [
186
+ vue.createElementVNode("div", _hoisted_4, [
187
+ vue.createVNode(_component_Switch, {
188
+ modelValue: vue.unref(codeData).isVar,
189
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => vue.unref(codeData).isVar = $event)
189
190
  }, null, 8, ["modelValue"]),
190
- _cache[13] || (_cache[13] = require$$0.createElementVNode("span", { class: "ml-10" }, "生成变量", -1)),
191
- require$$0.unref(codeData).isVar ? (require$$0.openBlock(), require$$0.createElementBlock(require$$0.Fragment, { key: 0 }, [
192
- require$$0.createVNode(_component_Selects, {
191
+ _cache[13] || (_cache[13] = vue.createElementVNode("span", { class: "ml-10" }, "生成变量", -1)),
192
+ vue.unref(codeData).isVar ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
193
+ vue.createVNode(_component_Selects, {
193
194
  class: "ml-10",
194
195
  style: { "width": "90px" },
195
196
  default: 0,
196
197
  options,
197
- modelValue: require$$0.unref(codeData).varPosit,
198
- "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => require$$0.unref(codeData).varPosit = $event)
198
+ modelValue: vue.unref(codeData).varPosit,
199
+ "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => vue.unref(codeData).varPosit = $event)
199
200
  }, null, 8, ["modelValue"]),
200
- require$$0.createVNode(_component_Inputs, {
201
+ vue.createVNode(_component_Inputs, {
201
202
  class: "ml-10",
202
203
  clearable: "",
203
204
  placeholder: "变量名称",
204
- modelValue: require$$0.unref(codeData).varName,
205
- "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => require$$0.unref(codeData).varName = $event)
205
+ modelValue: vue.unref(codeData).varName,
206
+ "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => vue.unref(codeData).varName = $event)
206
207
  }, null, 8, ["modelValue"])
207
- ], 64)) : require$$0.createCommentVNode("", true)
208
+ ], 64)) : vue.createCommentVNode("", true)
208
209
  ]),
209
- require$$0.createElementVNode("div", _hoisted_5, [
210
- require$$0.createVNode(index._sfc_main$2, {
211
- modelValue: require$$0.unref(codeData).value,
212
- "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => require$$0.unref(codeData).value = $event)
210
+ vue.createElementVNode("div", _hoisted_5, [
211
+ vue.createVNode(index._sfc_main$2, {
212
+ modelValue: vue.unref(codeData).value,
213
+ "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => vue.unref(codeData).value = $event)
213
214
  }, null, 8, ["modelValue"])
214
215
  ]),
215
- require$$0.createElementVNode("div", _hoisted_6, [
216
- require$$0.createVNode(_component_Button, { onClick: onCancel }, {
217
- default: require$$0.withCtx(() => [..._cache[14] || (_cache[14] = [
218
- require$$0.createTextVNode("取消", -1)
216
+ vue.createElementVNode("div", _hoisted_6, [
217
+ vue.createVNode(_component_Button, { onClick: onCancel }, {
218
+ default: vue.withCtx(() => [..._cache[14] || (_cache[14] = [
219
+ vue.createTextVNode("取消", -1)
219
220
  ])]),
220
221
  _: 1
221
222
  }),
222
- require$$0.createVNode(_component_Button, {
223
+ vue.createVNode(_component_Button, {
223
224
  type: "primary",
224
225
  onClick: onSubmit
225
226
  }, {
226
- default: require$$0.withCtx(() => [..._cache[15] || (_cache[15] = [
227
- require$$0.createTextVNode("确定", -1)
227
+ default: vue.withCtx(() => [..._cache[15] || (_cache[15] = [
228
+ vue.createTextVNode("确定", -1)
228
229
  ])]),
229
230
  _: 1
230
231
  })
@@ -9,7 +9,8 @@ import "@fangzhongya/fang-ui/components/button/style/index2.scss";
9
9
  import { Inputs } from "@fangzhongya/fang-ui/components/inputs/index";
10
10
  import "@fangzhongya/fang-ui/components/inputs/style/index2.scss";
11
11
  import { defineComponent, ref, createElementBlock, openBlock, createVNode, mergeProps, unref, isRef, withCtx, createTextVNode, createCommentVNode, createElementVNode, Fragment } from "vue";
12
- import { b as _sfc_main$1, D as Draggable, c as _sfc_main$2 } from "./index-DN34gSCV.js";
12
+ import { b as _sfc_main$1, c as _sfc_main$2 } from "./index-VRjqaZ9O.js";
13
+ import Draggable from "vuedraggable";
13
14
  const _hoisted_1 = { class: "handle codes-li" };
14
15
  const _hoisted_2 = { key: 0 };
15
16
  const _hoisted_3 = { class: "codes-box" };
@@ -3,9 +3,9 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const es = require("element-plus/es");
4
4
  require("element-plus/es/components/base/style/css");
5
5
  require("element-plus/es/components/color-picker/style/css");
6
- const require$$0 = require("vue");
7
- const index = require("./index-DyWEL-aT.cjs");
8
- const _sfc_main = /* @__PURE__ */ require$$0.defineComponent({
6
+ const vue = require("vue");
7
+ const index = require("./index-D-yctocb.cjs");
8
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
9
9
  __name: "color",
10
10
  props: {
11
11
  /**
@@ -38,9 +38,9 @@ const _sfc_main = /* @__PURE__ */ require$$0.defineComponent({
38
38
  const emit = __emit;
39
39
  return (_ctx, _cache) => {
40
40
  const _component_el_color_picker = es.ElColorPicker;
41
- return require$$0.openBlock(), require$$0.createBlock(index._sfc_main, require$$0.normalizeProps(require$$0.guardReactiveProps(props)), {
42
- default: require$$0.withCtx(() => [
43
- require$$0.createVNode(_component_el_color_picker, {
41
+ return vue.openBlock(), vue.createBlock(index._sfc_main, vue.normalizeProps(vue.guardReactiveProps(props)), {
42
+ default: vue.withCtx(() => [
43
+ vue.createVNode(_component_el_color_picker, {
44
44
  modelValue: props.modelValue[props.prop],
45
45
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => props.modelValue[props.prop] = $event)
46
46
  }, null, 8, ["modelValue"])
@@ -2,7 +2,7 @@ import { ElColorPicker } from "element-plus/es";
2
2
  import "element-plus/es/components/base/style/css";
3
3
  import "element-plus/es/components/color-picker/style/css";
4
4
  import { defineComponent, createBlock, openBlock, normalizeProps, guardReactiveProps, withCtx, createVNode } from "vue";
5
- import { a as _sfc_main$1 } from "./index-DN34gSCV.js";
5
+ import { a as _sfc_main$1 } from "./index-VRjqaZ9O.js";
6
6
  const _sfc_main = /* @__PURE__ */ defineComponent({
7
7
  __name: "color",
8
8
  props: {
@@ -0,0 +1,10 @@
1
+ export declare function getAbsolute(obj: ControlDesign, config?: ObjAny): void;
2
+ /**
3
+ * 生成插槽代码
4
+ * @param obj
5
+ * @param is
6
+ * @returns
7
+ */
8
+ export declare function getDesignSlots(obj: ControlRender, callback: (slots: ControlRender[], key: string, obj: TempsObjectKey) => void): {
9
+ [key: string]: any;
10
+ };