@fangzhongya/page 0.0.28 → 0.0.30

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 (46) hide show
  1. package/dist/components/control/draggable.d.ts +2 -2
  2. package/dist/components/design/design-drag2.cjs +0 -3
  3. package/dist/components/design/design-drag2.js +1 -4
  4. package/dist/components/design/design-resizable2.cjs +3 -2
  5. package/dist/components/design/design-resizable2.js +5 -4
  6. package/dist/components/design/resizable.cjs +1 -4
  7. package/dist/components/design/resizable.js +1 -4
  8. package/dist/components/design/resizable2.cjs +2 -2
  9. package/dist/components/design/resizable2.js +2 -2
  10. package/dist/components/editor/view2.cjs +40 -27
  11. package/dist/components/editor/view2.js +41 -28
  12. package/dist/components/generated/index2.cjs +27 -13
  13. package/dist/components/generated/index2.js +23 -9
  14. package/dist/components/index.css +140 -57
  15. package/dist/components/index2.cjs +66 -407
  16. package/dist/components/index2.js +55 -396
  17. package/dist/components/right/custom/index2.cjs +4 -2
  18. package/dist/components/right/custom/index2.js +5 -3
  19. package/dist/components/set/border.cjs +4 -0
  20. package/dist/components/set/border.js +4 -0
  21. package/dist/components/set/border2.cjs +76 -0
  22. package/dist/components/set/border2.js +76 -0
  23. package/dist/components/set/index.cjs +4 -0
  24. package/dist/components/set/index.js +4 -0
  25. package/dist/components/set/index2.cjs +199 -0
  26. package/dist/components/set/index2.js +199 -0
  27. package/dist/components/set/util.cjs +45 -0
  28. package/dist/components/set/util.d.ts +16 -0
  29. package/dist/components/set/util.js +45 -0
  30. package/dist/components/top/index.cjs +4 -0
  31. package/dist/components/top/index.js +4 -0
  32. package/dist/components/top/index2.cjs +414 -0
  33. package/dist/components/top/index2.js +414 -0
  34. package/dist/config/util.d.ts +10 -20
  35. package/dist/design/design.d.ts +1 -1
  36. package/dist/effect/draggable.cjs +2 -2
  37. package/dist/effect/draggable.d.ts +1 -1
  38. package/dist/effect/draggable.js +2 -2
  39. package/dist/effect/effect.d.ts +1 -1
  40. package/dist/expand/components.cjs +1 -1
  41. package/dist/expand/components.js +1 -1
  42. package/dist/render/render.d.ts +1 -1
  43. package/dist/viewer/draggable.d.ts +1 -1
  44. package/dist/viewer/viewer.d.ts +1 -1
  45. package/package.json +2 -2
  46. package/dist/components/design/resizable.css +0 -80
@@ -1,7 +1,7 @@
1
- export declare function getDraggableDiv(slots: Array<ControlDesign>, assembly: ControlDesign, params: ObjAny, callback: Function, key?: string): globalThis.VNode<import('vue').RendererNode, import('vue').RendererElement, {
1
+ export declare function getDraggableDiv(slots: Array<ControlDesign>, assembly: ControlDesign, params: ObjAny, callback: Function, key?: string): import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
2
2
  [key: string]: any;
3
3
  }>;
4
- export declare function getResizableDiv(slots: Array<ControlDesign>, assembly: ControlDesign, params: ObjAny, callback: Function, key?: string): globalThis.VNode<import('vue').RendererNode, import('vue').RendererElement, {
4
+ export declare function getResizableDiv(slots: Array<ControlDesign>, assembly: ControlDesign, params: ObjAny, callback: Function, key?: string): import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
5
5
  [key: string]: any;
6
6
  }>;
7
7
  export declare function getGridDiv(obj: ControlDesign, config: ObjAny, params: ObjAny, temps: Array<TempsObject>): {
@@ -66,9 +66,6 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
66
66
  return vue.openBlock(), vue.createElementBlock("div", {
67
67
  class: vue.normalizeClass(vue.unref(cs)())
68
68
  }, [
69
- vue.createElementVNode("div", {
70
- class: vue.normalizeClass(vue.unref(cs)("name"))
71
- }, vue.toDisplayString(props.slotName), 3),
72
69
  vue.createVNode(vue.unref(Draggable), {
73
70
  class: vue.normalizeClass([vue.unref(cs)("draggable")]),
74
71
  "item-key": "id",
@@ -1,4 +1,4 @@
1
- import { defineComponent, inject, computed, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, toDisplayString, createVNode, isRef, createSlots, withCtx, mergeProps, withModifiers, renderSlot, createCommentVNode } from "vue";
1
+ import { defineComponent, inject, computed, openBlock, createElementBlock, normalizeClass, unref, createVNode, isRef, createSlots, withCtx, mergeProps, withModifiers, renderSlot, createCommentVNode, createElementVNode, toDisplayString } from "vue";
2
2
  import Draggable from "vuedraggable";
3
3
  import "./design-operate.js";
4
4
  import { getClass } from "../../utils/index.js";
@@ -64,9 +64,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
64
64
  return openBlock(), createElementBlock("div", {
65
65
  class: normalizeClass(unref(cs)())
66
66
  }, [
67
- createElementVNode("div", {
68
- class: normalizeClass(unref(cs)("name"))
69
- }, toDisplayString(props.slotName), 3),
70
67
  createVNode(unref(Draggable), {
71
68
  class: normalizeClass([unref(cs)("draggable")]),
72
69
  "item-key": "id",
@@ -2,10 +2,11 @@
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
3
  const vue = require("vue");
4
4
  const Draggable = require("vuedraggable");
5
- const resizable = require("./resizable.cjs");
5
+ require("./resizable.cjs");
6
6
  require("./design-operate.cjs");
7
7
  const util = require("../../config/util.cjs");
8
8
  const index = require("../../utils/index.cjs");
9
+ const resizable_vue_vue_type_script_setup_true_lang = require("./resizable2.cjs");
9
10
  const designOperate_vue_vue_type_script_setup_true_lang = require("./design-operate2.cjs");
10
11
  const defaultSize = 10;
11
12
  const _sfc_main = /* @__PURE__ */ vue.defineComponent({
@@ -132,7 +133,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
132
133
  }, [
133
134
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(value), (element, index2) => {
134
135
  return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
135
- !element.design?.hide ? (vue.openBlock(), vue.createBlock(resizable.default, {
136
+ !element.design?.hide ? (vue.openBlock(), vue.createBlock(resizable_vue_vue_type_script_setup_true_lang.default, {
136
137
  key: 0,
137
138
  class: vue.normalizeClass([
138
139
  vue.unref(cs)("resizable-item"),
@@ -1,10 +1,11 @@
1
1
  import { defineComponent, ref, computed, inject, onMounted, openBlock, createElementBlock, normalizeClass, unref, createVNode, isRef, withCtx, createElementVNode, Fragment, renderList, createBlock, withModifiers, createCommentVNode, renderSlot, createTextVNode, toDisplayString } from "vue";
2
2
  import Draggable from "vuedraggable";
3
- import VueDraggableResizable from "./resizable.js";
3
+ import "./resizable.js";
4
4
  import "./design-operate.js";
5
5
  import { getComponObj } from "../../config/util.js";
6
6
  import { getClass } from "../../utils/index.js";
7
- import _sfc_main$1 from "./design-operate2.js";
7
+ import _sfc_main$1 from "./resizable2.js";
8
+ import _sfc_main$2 from "./design-operate2.js";
8
9
  const defaultSize = 10;
9
10
  const _sfc_main = /* @__PURE__ */ defineComponent({
10
11
  __name: "design-resizable",
@@ -130,7 +131,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
130
131
  }, [
131
132
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(value), (element, index) => {
132
133
  return openBlock(), createElementBlock(Fragment, null, [
133
- !element.design?.hide ? (openBlock(), createBlock(VueDraggableResizable, {
134
+ !element.design?.hide ? (openBlock(), createBlock(_sfc_main$1, {
134
135
  key: 0,
135
136
  class: normalizeClass([
136
137
  unref(cs)("resizable-item"),
@@ -161,7 +162,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
161
162
  key: 0,
162
163
  class: normalizeClass([unref(cs)("allow")])
163
164
  }, null, 2)) : createCommentVNode("", true),
164
- createVNode(_sfc_main$1, {
165
+ createVNode(_sfc_main$2, {
165
166
  "model-value": unref(value),
166
167
  assembly: element,
167
168
  index,
@@ -1,7 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
3
  const resizable_vue_vue_type_script_setup_true_lang = require("./resizable2.cjs");
4
- ;/* empty css */
5
- const _pluginVue_exportHelper = require("../../_virtual/_plugin-vue_export-helper.cjs");
6
- const VueDraggableResizable = /* @__PURE__ */ _pluginVue_exportHelper.default(resizable_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-2f18084c"]]);
7
- exports.default = VueDraggableResizable;
4
+ exports.default = resizable_vue_vue_type_script_setup_true_lang.default;
@@ -1,7 +1,4 @@
1
1
  import _sfc_main from "./resizable2.js";
2
- /* empty css */
3
- import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
4
- const VueDraggableResizable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-2f18084c"]]);
5
2
  export {
6
- VueDraggableResizable as default
3
+ _sfc_main as default
7
4
  };
@@ -547,10 +547,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
547
547
  class: vue.normalizeClass([__props.classNameHandle, `${__props.classNameHandle}-${handle}`]),
548
548
  style: vue.normalizeStyle({ display: vue.unref(enabled) && __props.resizable ? "block" : "none" })
549
549
  }, [
550
- vue.renderSlot(_ctx.$slots, handle, {}, void 0, true)
550
+ vue.renderSlot(_ctx.$slots, handle)
551
551
  ], 6);
552
552
  }), 128)),
553
- vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
553
+ vue.renderSlot(_ctx.$slots, "default")
554
554
  ], 6);
555
555
  };
556
556
  }
@@ -545,10 +545,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
545
545
  class: normalizeClass([__props.classNameHandle, `${__props.classNameHandle}-${handle}`]),
546
546
  style: normalizeStyle({ display: unref(enabled) && __props.resizable ? "block" : "none" })
547
547
  }, [
548
- renderSlot(_ctx.$slots, handle, {}, void 0, true)
548
+ renderSlot(_ctx.$slots, handle)
549
549
  ], 6);
550
550
  }), 128)),
551
- renderSlot(_ctx.$slots, "default", {}, void 0, true)
551
+ renderSlot(_ctx.$slots, "default")
552
552
  ], 6);
553
553
  };
554
554
  }
@@ -6,6 +6,8 @@ const vue = require("vue");
6
6
  const toJsons = require("@fangzhongya/utils/basic/string/toJsons");
7
7
  const util = require("../../render/util.cjs");
8
8
  const index = require("../../utils/index.cjs");
9
+ require("./look-over.cjs");
10
+ const lookOver_vue_vue_type_script_setup_true_lang = require("./look-over2.cjs");
9
11
  const _sfc_main = /* @__PURE__ */ vue.defineComponent({
10
12
  __name: "view",
11
13
  props: {
@@ -31,38 +33,49 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
31
33
  const cs = index.getClass("editor-view");
32
34
  const props = __props;
33
35
  const emit = __emit;
34
- const lookOver = vue.inject("lookOver");
36
+ const lookOver = vue.reactive({
37
+ // 弹框名称
38
+ title: "",
39
+ // 头展示
40
+ top: "",
41
+ // 是否展示弹框
42
+ box: false,
43
+ // 输入的值
44
+ value: ""
45
+ });
35
46
  function onClick() {
36
- if (lookOver) {
37
- Object.keys(props).forEach((v) => {
38
- lookOver[v] = props[v] || "";
39
- });
40
- if (props.type == "9") {
41
- lookOver.value = util.getDesignMinStr(
42
- props.modelValue
43
- );
44
- } else {
45
- const value = toJsons.toJSONSStringify(props.modelValue, 4);
46
- lookOver.value = value;
47
- }
48
- lookOver.box = true;
47
+ Object.keys(props).forEach((v) => {
48
+ lookOver[v] = props[v] || "";
49
+ });
50
+ if (props.type == "9") {
51
+ lookOver.value = util.getDesignMinStr(props.modelValue);
52
+ } else {
53
+ const value = toJsons.toJSONSStringify(props.modelValue, 4);
54
+ lookOver.value = value;
49
55
  }
56
+ lookOver.box = true;
50
57
  }
51
58
  return (_ctx, _cache) => {
52
59
  const _component_Button = index$1.Button;
53
- return vue.openBlock(), vue.createElementBlock("div", {
54
- class: vue.normalizeClass(vue.unref(cs)()),
55
- onClick: _cache[0] || (_cache[0] = ($event) => onClick())
56
- }, [
57
- vue.renderSlot(_ctx.$slots, "default", {}, () => [
58
- vue.createVNode(_component_Button, { text: "" }, {
59
- default: vue.withCtx(() => [..._cache[1] || (_cache[1] = [
60
- vue.createTextVNode("查看", -1)
61
- ])]),
62
- _: 1
63
- })
64
- ])
65
- ], 2);
60
+ return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
61
+ vue.createElementVNode("div", {
62
+ class: vue.normalizeClass(vue.unref(cs)()),
63
+ onClick: _cache[0] || (_cache[0] = ($event) => onClick())
64
+ }, [
65
+ vue.renderSlot(_ctx.$slots, "default", {}, () => [
66
+ vue.createVNode(_component_Button, { text: "" }, {
67
+ default: vue.withCtx(() => [..._cache[2] || (_cache[2] = [
68
+ vue.createTextVNode("查看", -1)
69
+ ])]),
70
+ _: 1
71
+ })
72
+ ])
73
+ ], 2),
74
+ vue.createVNode(lookOver_vue_vue_type_script_setup_true_lang.default, vue.mergeProps(vue.unref(lookOver), {
75
+ modelValue: vue.unref(lookOver).box,
76
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vue.unref(lookOver).box = $event)
77
+ }), null, 16, ["modelValue"])
78
+ ], 64);
66
79
  };
67
80
  }
68
81
  });
@@ -1,9 +1,11 @@
1
1
  import { Button } from "@fangzhongya/fang-ui/components/button/index";
2
2
  import "@fangzhongya/fang-ui/components/button/style/index2.scss";
3
- import { defineComponent, inject, openBlock, createElementBlock, normalizeClass, unref, renderSlot, createVNode, withCtx, createTextVNode } from "vue";
3
+ import { defineComponent, reactive, openBlock, createElementBlock, Fragment, createElementVNode, normalizeClass, unref, renderSlot, createVNode, withCtx, createTextVNode, mergeProps } from "vue";
4
4
  import { toJSONSStringify } from "@fangzhongya/utils/basic/string/toJsons";
5
5
  import { getDesignMinStr } from "../../render/util.js";
6
6
  import { getClass } from "../../utils/index.js";
7
+ import "./look-over.js";
8
+ import _sfc_main$1 from "./look-over2.js";
7
9
  const _sfc_main = /* @__PURE__ */ defineComponent({
8
10
  __name: "view",
9
11
  props: {
@@ -29,38 +31,49 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
29
31
  const cs = getClass("editor-view");
30
32
  const props = __props;
31
33
  const emit = __emit;
32
- const lookOver = inject("lookOver");
34
+ const lookOver = reactive({
35
+ // 弹框名称
36
+ title: "",
37
+ // 头展示
38
+ top: "",
39
+ // 是否展示弹框
40
+ box: false,
41
+ // 输入的值
42
+ value: ""
43
+ });
33
44
  function onClick() {
34
- if (lookOver) {
35
- Object.keys(props).forEach((v) => {
36
- lookOver[v] = props[v] || "";
37
- });
38
- if (props.type == "9") {
39
- lookOver.value = getDesignMinStr(
40
- props.modelValue
41
- );
42
- } else {
43
- const value = toJSONSStringify(props.modelValue, 4);
44
- lookOver.value = value;
45
- }
46
- lookOver.box = true;
45
+ Object.keys(props).forEach((v) => {
46
+ lookOver[v] = props[v] || "";
47
+ });
48
+ if (props.type == "9") {
49
+ lookOver.value = getDesignMinStr(props.modelValue);
50
+ } else {
51
+ const value = toJSONSStringify(props.modelValue, 4);
52
+ lookOver.value = value;
47
53
  }
54
+ lookOver.box = true;
48
55
  }
49
56
  return (_ctx, _cache) => {
50
57
  const _component_Button = Button;
51
- return openBlock(), createElementBlock("div", {
52
- class: normalizeClass(unref(cs)()),
53
- onClick: _cache[0] || (_cache[0] = ($event) => onClick())
54
- }, [
55
- renderSlot(_ctx.$slots, "default", {}, () => [
56
- createVNode(_component_Button, { text: "" }, {
57
- default: withCtx(() => [..._cache[1] || (_cache[1] = [
58
- createTextVNode("查看", -1)
59
- ])]),
60
- _: 1
61
- })
62
- ])
63
- ], 2);
58
+ return openBlock(), createElementBlock(Fragment, null, [
59
+ createElementVNode("div", {
60
+ class: normalizeClass(unref(cs)()),
61
+ onClick: _cache[0] || (_cache[0] = ($event) => onClick())
62
+ }, [
63
+ renderSlot(_ctx.$slots, "default", {}, () => [
64
+ createVNode(_component_Button, { text: "" }, {
65
+ default: withCtx(() => [..._cache[2] || (_cache[2] = [
66
+ createTextVNode("查看", -1)
67
+ ])]),
68
+ _: 1
69
+ })
70
+ ])
71
+ ], 2),
72
+ createVNode(_sfc_main$1, mergeProps(unref(lookOver), {
73
+ modelValue: unref(lookOver).box,
74
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unref(lookOver).box = $event)
75
+ }), null, 16, ["modelValue"])
76
+ ], 64);
64
77
  };
65
78
  }
66
79
  });
@@ -1,12 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const index$3 = require("@fangzhongya/fang-ui/components/window/index");
3
+ const index$4 = require("@fangzhongya/fang-ui/components/window/index");
4
4
  require("@fangzhongya/fang-ui/components/window/style/index2.scss");
5
- const index$2 = require("@fangzhongya/fang-ui/components/button/index");
5
+ const index$3 = require("@fangzhongya/fang-ui/components/button/index");
6
6
  require("@fangzhongya/fang-ui/components/button/style/index2.scss");
7
7
  const es = require("element-plus/es");
8
8
  require("element-plus/es/components/base/style/css");
9
9
  require("element-plus/es/components/form/style/css");
10
+ const index$2 = require("@fangzhongya/fang-ui/components/switchs/index");
11
+ require("@fangzhongya/fang-ui/components/switchs/style/index2.scss");
10
12
  require("element-plus/es/components/form-item/style/css");
11
13
  const index$1 = require("@fangzhongya/fang-ui/components/inputs/index");
12
14
  require("@fangzhongya/fang-ui/components/inputs/style/index2.scss");
@@ -96,6 +98,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
96
98
  };
97
99
  const onSubmit = () => {
98
100
  const name2 = status.value.name;
101
+ if (!name2) {
102
+ es.ElMessage.error("请填写组件名称");
103
+ return false;
104
+ }
99
105
  if (arr.includes(name2)) {
100
106
  es.ElMessage.error("当前组件名称不能使用");
101
107
  return false;
@@ -119,16 +125,17 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
119
125
  return (_ctx, _cache) => {
120
126
  const _component_Inputs = index$1.Inputs;
121
127
  const _component_el_form_item = es.ElFormItem;
128
+ const _component_Switchs = index$2.Switchs;
122
129
  const _component_el_form = es.ElForm;
123
- const _component_Button = index$2.Button;
124
- const _component_Window = index$3.Window;
130
+ const _component_Button = index$3.Button;
131
+ const _component_Window = index$4.Window;
125
132
  return vue.openBlock(), vue.createElementBlock("div", {
126
133
  class: vue.normalizeClass(vue.unref(cs)())
127
134
  }, [
128
135
  vue.createVNode(_component_Window, {
129
- title: "生成组件的配置",
136
+ title: "生成模板的配置",
130
137
  modelValue: vue.unref(value),
131
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => vue.isRef(value) ? value.value = $event : null)
138
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => vue.isRef(value) ? value.value = $event : null)
132
139
  }, {
133
140
  default: vue.withCtx(() => [
134
141
  vue.createElementVNode("div", {
@@ -156,10 +163,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
156
163
  ]),
157
164
  _: 1
158
165
  }),
159
- vue.createVNode(_component_el_form_item, {
160
- required: "",
161
- label: "组件展示名称"
162
- }, {
166
+ vue.createVNode(_component_el_form_item, { label: "组件展示名称" }, {
163
167
  default: vue.withCtx(() => [
164
168
  vue.createVNode(_component_Inputs, {
165
169
  class: "input-li",
@@ -168,6 +172,16 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
168
172
  }, null, 8, ["modelValue"])
169
173
  ]),
170
174
  _: 1
175
+ }),
176
+ vue.createVNode(_component_el_form_item, { label: "否内组件" }, {
177
+ default: vue.withCtx(() => [
178
+ vue.createVNode(_component_Switchs, {
179
+ default: false,
180
+ modelValue: vue.unref(status).inline,
181
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => vue.unref(status).inline = $event)
182
+ }, null, 8, ["modelValue"])
183
+ ]),
184
+ _: 1
171
185
  })
172
186
  ]),
173
187
  _: 1
@@ -177,9 +191,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
177
191
  class: vue.normalizeClass(vue.unref(cs)("box-footer"))
178
192
  }, [
179
193
  vue.createVNode(_component_Button, {
180
- onClick: _cache[2] || (_cache[2] = ($event) => value.value = false)
194
+ onClick: _cache[3] || (_cache[3] = ($event) => value.value = false)
181
195
  }, {
182
- default: vue.withCtx(() => [..._cache[4] || (_cache[4] = [
196
+ default: vue.withCtx(() => [..._cache[5] || (_cache[5] = [
183
197
  vue.createTextVNode("取消", -1)
184
198
  ])]),
185
199
  _: 1
@@ -188,7 +202,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
188
202
  type: "primary",
189
203
  onClick: onSubmit
190
204
  }, {
191
- default: vue.withCtx(() => [..._cache[5] || (_cache[5] = [
205
+ default: vue.withCtx(() => [..._cache[6] || (_cache[6] = [
192
206
  vue.createTextVNode("确定", -1)
193
207
  ])]),
194
208
  _: 1
@@ -5,6 +5,8 @@ import "@fangzhongya/fang-ui/components/button/style/index2.scss";
5
5
  import { ElMessage, ElMessageBox, ElFormItem, ElForm } from "element-plus/es";
6
6
  import "element-plus/es/components/base/style/css";
7
7
  import "element-plus/es/components/form/style/css";
8
+ import { Switchs } from "@fangzhongya/fang-ui/components/switchs/index";
9
+ import "@fangzhongya/fang-ui/components/switchs/style/index2.scss";
8
10
  import "element-plus/es/components/form-item/style/css";
9
11
  import { Inputs } from "@fangzhongya/fang-ui/components/inputs/index";
10
12
  import "@fangzhongya/fang-ui/components/inputs/style/index2.scss";
@@ -94,6 +96,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
94
96
  };
95
97
  const onSubmit = () => {
96
98
  const name = status.value.name;
99
+ if (!name) {
100
+ ElMessage.error("请填写组件名称");
101
+ return false;
102
+ }
97
103
  if (arr.includes(name)) {
98
104
  ElMessage.error("当前组件名称不能使用");
99
105
  return false;
@@ -117,6 +123,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
117
123
  return (_ctx, _cache) => {
118
124
  const _component_Inputs = Inputs;
119
125
  const _component_el_form_item = ElFormItem;
126
+ const _component_Switchs = Switchs;
120
127
  const _component_el_form = ElForm;
121
128
  const _component_Button = Button;
122
129
  const _component_Window = Window;
@@ -124,9 +131,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
124
131
  class: normalizeClass(unref(cs)())
125
132
  }, [
126
133
  createVNode(_component_Window, {
127
- title: "生成组件的配置",
134
+ title: "生成模板的配置",
128
135
  modelValue: unref(value),
129
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => isRef(value) ? value.value = $event : null)
136
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => isRef(value) ? value.value = $event : null)
130
137
  }, {
131
138
  default: withCtx(() => [
132
139
  createElementVNode("div", {
@@ -154,10 +161,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
154
161
  ]),
155
162
  _: 1
156
163
  }),
157
- createVNode(_component_el_form_item, {
158
- required: "",
159
- label: "组件展示名称"
160
- }, {
164
+ createVNode(_component_el_form_item, { label: "组件展示名称" }, {
161
165
  default: withCtx(() => [
162
166
  createVNode(_component_Inputs, {
163
167
  class: "input-li",
@@ -166,6 +170,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
166
170
  }, null, 8, ["modelValue"])
167
171
  ]),
168
172
  _: 1
173
+ }),
174
+ createVNode(_component_el_form_item, { label: "否内组件" }, {
175
+ default: withCtx(() => [
176
+ createVNode(_component_Switchs, {
177
+ default: false,
178
+ modelValue: unref(status).inline,
179
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => unref(status).inline = $event)
180
+ }, null, 8, ["modelValue"])
181
+ ]),
182
+ _: 1
169
183
  })
170
184
  ]),
171
185
  _: 1
@@ -175,9 +189,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
175
189
  class: normalizeClass(unref(cs)("box-footer"))
176
190
  }, [
177
191
  createVNode(_component_Button, {
178
- onClick: _cache[2] || (_cache[2] = ($event) => value.value = false)
192
+ onClick: _cache[3] || (_cache[3] = ($event) => value.value = false)
179
193
  }, {
180
- default: withCtx(() => [..._cache[4] || (_cache[4] = [
194
+ default: withCtx(() => [..._cache[5] || (_cache[5] = [
181
195
  createTextVNode("取消", -1)
182
196
  ])]),
183
197
  _: 1
@@ -186,7 +200,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
186
200
  type: "primary",
187
201
  onClick: onSubmit
188
202
  }, {
189
- default: withCtx(() => [..._cache[5] || (_cache[5] = [
203
+ default: withCtx(() => [..._cache[6] || (_cache[6] = [
190
204
  createTextVNode("确定", -1)
191
205
  ])]),
192
206
  _: 1