starfish-editor-custom 1.0.0 → 1.0.2

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 (53) hide show
  1. package/dist/ConditionModule.js +62 -62
  2. package/dist/ConditionSelect.js +32 -32
  3. package/dist/CustomDialog.js +3 -3
  4. package/dist/formStyle.js +25 -33
  5. package/dist/globalFormList.js +2 -2
  6. package/dist/jsonCode.js +4 -3
  7. package/dist/jsonEditor.js +3 -3
  8. package/dist/main.js +274 -330
  9. package/dist/starfish-editor.es.js +2 -2
  10. package/dist/style.css +1 -1
  11. package/dist/types/editor/src/common/ConditionSelect/ConditionGroup.vue.d.ts +18 -0
  12. package/dist/types/editor/src/common/ConditionSelect/ConditionModule.vue.d.ts +17 -0
  13. package/dist/types/editor/src/common/ConditionSelect/ConditionTanc.vue.d.ts +30 -0
  14. package/dist/types/editor/src/common/ConditionSelect.vue.d.ts +14 -36
  15. package/dist/types/editor/src/common/CustomDialog.vue.d.ts +12 -11
  16. package/dist/types/editor/src/common/Loading.vue.d.ts +2 -2
  17. package/dist/types/editor/src/common/jsonCode.vue.d.ts +9 -104
  18. package/dist/types/editor/src/components/ComponentList.vue.d.ts +2 -31
  19. package/dist/types/editor/src/components/FormPreview.vue.d.ts +8 -10
  20. package/dist/types/editor/src/components/Nav.vue.d.ts +2 -2
  21. package/dist/types/editor/src/components/PropsPanel.vue.d.ts +15 -23
  22. package/dist/types/editor/src/components/Shape.vue.d.ts +10 -9
  23. package/dist/types/editor/src/components/Workspace.vue.d.ts +9 -8
  24. package/dist/types/editor/src/components/globalFormList.vue.d.ts +3 -2
  25. package/dist/types/editor/src/components/jsonEditor.vue.d.ts +4 -3
  26. package/dist/types/editor/src/controller/action.d.ts +1 -1
  27. package/dist/types/editor/src/controller/form.d.ts +1 -1
  28. package/dist/types/editor/src/controller/history.d.ts +1 -1
  29. package/dist/types/editor/src/controller/shortcut.d.ts +1 -1
  30. package/dist/types/editor/src/controller/ui.d.ts +1 -1
  31. package/dist/types/editor/src/layouts/ControlEditSize.vue.d.ts +6 -12
  32. package/dist/types/editor/src/layouts/Framework.vue.d.ts +6 -18
  33. package/dist/types/editor/src/layouts/Resizer.vue.d.ts +7 -6
  34. package/dist/types/editor/src/layouts/ShortcutKey.vue.d.ts +4 -4
  35. package/dist/types/editor/src/starfish-editor.vue.d.ts +10 -16
  36. package/dist/types/editor/src/type.d.ts +8 -8
  37. package/dist/types/editor/src/utils/formKeycon.d.ts +1 -1
  38. package/package.json +55 -55
  39. package/src/common/ConditionSelect/ConditionGroup.vue +3 -3
  40. package/src/common/ConditionSelect/ConditionTanc.vue +1 -1
  41. package/src/common/ConditionSelect.vue +1 -1
  42. package/src/common/formJson.ts +34 -34
  43. package/src/common/formStyle.vue +5 -0
  44. package/src/common/jsonCode.vue +8 -2
  45. package/src/components/ComponentList.vue +8 -4
  46. package/src/components/FormPreview.vue +1 -1
  47. package/src/components/NavList.vue +6 -6
  48. package/src/components/PropsPanel.vue +1 -1
  49. package/src/components/Workspace.vue +1 -0
  50. package/src/main.ts +2 -2
  51. package/src/styles/component-list.scss +71 -64
  52. package/src/type.ts +1 -1
  53. package/stats.html +4905 -3677
@@ -17,11 +17,11 @@ import { resolveComponent, openBlock, createBlock, Teleport, createVNode, withCt
17
17
  import { _ as _export_sfc, f as formStore } from "./main.js";
18
18
  import "element-plus/dist/index.css";
19
19
  import "jsoneditor/dist/jsoneditor.min.css";
20
- import "starfish-form";
20
+ import "starfish-form-custom";
21
21
  import "mitt";
22
22
  import "element-plus";
23
23
  import "nanoid";
24
- import "starfish-form/dist/style.css";
24
+ import "starfish-form-custom/dist/style.css";
25
25
  import "clipboard";
26
26
  import "element-plus/es/components/tabs/style/css";
27
27
  import "element-plus/es/components/tab-pane/style/css";
@@ -235,6 +235,10 @@ const _sfc_main$2 = {
235
235
  }
236
236
  }
237
237
  };
238
+ const _hoisted_1$2 = /* @__PURE__ */ createTextVNode(" \u5220\u9664 ");
239
+ const _hoisted_2$2 = /* @__PURE__ */ createTextVNode("+\u6761\u4EF6");
240
+ const _hoisted_3$2 = /* @__PURE__ */ createTextVNode("\u4FDD\u5B58");
241
+ const _hoisted_4$2 = /* @__PURE__ */ createTextVNode("\u5173\u95ED");
238
242
  function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
239
243
  const _component_el_option = ElOption;
240
244
  const _component_el_select = ElSelect;
@@ -409,15 +413,14 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
409
413
  }, {
410
414
  default: withCtx((scope) => [
411
415
  createVNode(_component_el_button, {
412
- size: "small",
416
+ size: "default",
413
417
  type: "danger",
414
418
  onClick: withModifiers(($event) => $options.deleteRow(scope.$index, _ctx.index), ["prevent"])
415
419
  }, {
416
- default: withCtx(() => _cache[0] || (_cache[0] = [
417
- createTextVNode(" \u5220\u9664 ", -1)
418
- ])),
419
- _: 2,
420
- __: [0]
420
+ default: withCtx(() => [
421
+ _hoisted_1$2
422
+ ]),
423
+ _: 2
421
424
  }, 1032, ["onClick"])
422
425
  ]),
423
426
  _: 1
@@ -432,11 +435,10 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
432
435
  onClick: $options.onAddItem,
433
436
  style: { "width": "100%" }
434
437
  }, {
435
- default: withCtx(() => _cache[1] || (_cache[1] = [
436
- createTextVNode("+\u6761\u4EF6", -1)
437
- ])),
438
- _: 1,
439
- __: [1]
438
+ default: withCtx(() => [
439
+ _hoisted_2$2
440
+ ]),
441
+ _: 1
440
442
  }, 8, ["onClick"])) : createCommentVNode("", true)
441
443
  ]),
442
444
  _: 1
@@ -450,18 +452,16 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
450
452
  type: "primary",
451
453
  onClick: $options.saveJson
452
454
  }, {
453
- default: withCtx(() => _cache[2] || (_cache[2] = [
454
- createTextVNode("\u4FDD\u5B58", -1)
455
- ])),
456
- _: 1,
457
- __: [2]
455
+ default: withCtx(() => [
456
+ _hoisted_3$2
457
+ ]),
458
+ _: 1
458
459
  }, 8, ["onClick"]),
459
460
  createVNode(_component_el_button, { onClick: $options.closeDialog }, {
460
- default: withCtx(() => _cache[3] || (_cache[3] = [
461
- createTextVNode("\u5173\u95ED", -1)
462
- ])),
463
- _: 1,
464
- __: [3]
461
+ default: withCtx(() => [
462
+ _hoisted_4$2
463
+ ]),
464
+ _: 1
465
465
  }, 8, ["onClick"])
466
466
  ]),
467
467
  _: 1
@@ -611,7 +611,10 @@ const _sfc_main$1 = {
611
611
  }
612
612
  };
613
613
  const _hoisted_1$1 = { class: "control" };
614
- const _hoisted_2$1 = { class: "moreCondition" };
614
+ const _hoisted_2$1 = /* @__PURE__ */ createTextVNode("\u589E\u52A0\u6761\u4EF6");
615
+ const _hoisted_3$1 = /* @__PURE__ */ createTextVNode("\u5220\u9664");
616
+ const _hoisted_4$1 = /* @__PURE__ */ createTextVNode("\u7F16\u8F91");
617
+ const _hoisted_5$1 = { class: "moreCondition" };
615
618
  function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
616
619
  const _component_el_option = ElOption;
617
620
  const _component_el_select = ElSelect;
@@ -654,41 +657,38 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
654
657
  createVNode(_component_el_button, {
655
658
  type: "primary",
656
659
  onClick: $options.onAddItem,
657
- size: "small",
660
+ size: "default",
658
661
  disabled: !$props.result.type || $props.result.type == "data"
659
662
  }, {
660
- default: withCtx(() => _cache[3] || (_cache[3] = [
661
- createTextVNode("\u589E\u52A0\u6761\u4EF6", -1)
662
- ])),
663
- _: 1,
664
- __: [3]
663
+ default: withCtx(() => [
664
+ _hoisted_2$1
665
+ ]),
666
+ _: 1
665
667
  }, 8, ["onClick", "disabled"]),
666
668
  createVNode(_component_el_button, {
667
669
  type: "danger",
668
670
  onClick: $options.onDeleteItem,
669
- size: "small"
671
+ size: "default"
670
672
  }, {
671
- default: withCtx(() => _cache[4] || (_cache[4] = [
672
- createTextVNode("\u5220\u9664", -1)
673
- ])),
674
- _: 1,
675
- __: [4]
673
+ default: withCtx(() => [
674
+ _hoisted_3$1
675
+ ]),
676
+ _: 1
676
677
  }, 8, ["onClick"]),
677
678
  $props.result.type == "data" ? (openBlock(), createBlock(_component_el_button, {
678
679
  key: 0,
679
680
  type: "primary",
680
681
  onClick: $options.onEditData,
681
- size: "small"
682
+ size: "default"
682
683
  }, {
683
- default: withCtx(() => _cache[5] || (_cache[5] = [
684
- createTextVNode("\u7F16\u8F91", -1)
685
- ])),
686
- _: 1,
687
- __: [5]
684
+ default: withCtx(() => [
685
+ _hoisted_4$1
686
+ ]),
687
+ _: 1
688
688
  }, 8, ["onClick"])) : createCommentVNode("", true),
689
689
  createVNode(Transition, null, {
690
690
  default: withCtx(() => [
691
- withDirectives(createElementVNode("div", _hoisted_2$1, [
691
+ withDirectives(createElementVNode("div", _hoisted_5$1, [
692
692
  (openBlock(true), createElementBlock(Fragment, null, renderList($props.result.result, (item, index) => {
693
693
  return openBlock(), createElementBlock("div", {
694
694
  key: index,
@@ -817,9 +817,12 @@ const _sfc_main = {
817
817
  }
818
818
  }
819
819
  };
820
- const _hoisted_1 = { class: "conditionContainer" };
821
- const _hoisted_2 = { class: "stringlist" };
822
- const _hoisted_3 = ["innerHTML"];
820
+ const _hoisted_1 = /* @__PURE__ */ createElementVNode("div", { class: "tipContent" }, "\u6EE1\u8DB3\u4EE5\u4E0B\u6240\u6709\u6761\u4EF6\u65F6,\u6B64\u7EC4\u4EF6\u53EF\u7528", -1);
821
+ const _hoisted_2 = { class: "conditionContainer" };
822
+ const _hoisted_3 = { class: "stringlist" };
823
+ const _hoisted_4 = ["innerHTML"];
824
+ const _hoisted_5 = /* @__PURE__ */ createTextVNode("\u4FDD\u5B58");
825
+ const _hoisted_6 = /* @__PURE__ */ createTextVNode("\u5173\u95ED");
823
826
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
824
827
  const _component_ConditionGroup = resolveComponent("ConditionGroup");
825
828
  const _component_el_main = ElMain;
@@ -838,20 +841,19 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
838
841
  default: withCtx(() => [
839
842
  createVNode(_component_el_main, { class: "my-pageMain" }, {
840
843
  default: withCtx(() => [
841
- _cache[0] || (_cache[0] = createElementVNode("div", { class: "tipContent" }, "\u6EE1\u8DB3\u4EE5\u4E0B\u6240\u6709\u6761\u4EF6\u65F6,\u6B64\u7EC4\u4EF6\u53EF\u7528", -1)),
842
- createElementVNode("div", _hoisted_1, [
844
+ _hoisted_1,
845
+ createElementVNode("div", _hoisted_2, [
843
846
  createVNode(_component_ConditionGroup, {
844
847
  result: $data.result,
845
848
  onUpdate: $options.handleUpdateForce,
846
849
  fieldList: $data.leftField
847
850
  }, null, 8, ["result", "onUpdate", "fieldList"]),
848
- createElementVNode("div", _hoisted_2, [
849
- createElementVNode("pre", { innerHTML: $data.stringLink }, null, 8, _hoisted_3)
851
+ createElementVNode("div", _hoisted_3, [
852
+ createElementVNode("pre", { innerHTML: $data.stringLink }, null, 8, _hoisted_4)
850
853
  ])
851
854
  ])
852
855
  ]),
853
- _: 1,
854
- __: [0]
856
+ _: 1
855
857
  }),
856
858
  createVNode(_component_el_footer, {
857
859
  class: "my-Footer",
@@ -862,18 +864,16 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
862
864
  type: "primary",
863
865
  onClick: $options.saveJson
864
866
  }, {
865
- default: withCtx(() => _cache[1] || (_cache[1] = [
866
- createTextVNode("\u4FDD\u5B58", -1)
867
- ])),
868
- _: 1,
869
- __: [1]
867
+ default: withCtx(() => [
868
+ _hoisted_5
869
+ ]),
870
+ _: 1
870
871
  }, 8, ["onClick"]),
871
872
  createVNode(_component_el_button, { onClick: $options.closeDialog }, {
872
- default: withCtx(() => _cache[2] || (_cache[2] = [
873
- createTextVNode("\u5173\u95ED", -1)
874
- ])),
875
- _: 1,
876
- __: [2]
873
+ default: withCtx(() => [
874
+ _hoisted_6
875
+ ]),
876
+ _: 1
877
877
  }, 8, ["onClick"])
878
878
  ]),
879
879
  _: 1
@@ -12,15 +12,15 @@ import "element-plus/es/components/input/style/css";
12
12
  import "element-plus/es/components/table-column/style/css";
13
13
  import "element-plus/es/components/select/style/css";
14
14
  import "element-plus/es/components/option/style/css";
15
- import { defineComponent, ref, reactive, toRefs, toRaw, resolveComponent, openBlock, createBlock, Teleport, createVNode, withCtx, createElementVNode, createElementBlock, Fragment, renderList, createCommentVNode, withModifiers, createTextVNode } from "vue";
15
+ import { defineComponent, ref, reactive, toRefs, toRaw, resolveComponent, openBlock, createBlock, Teleport, createVNode, withCtx, createElementBlock, Fragment, renderList, createCommentVNode, withModifiers, createElementVNode, createTextVNode } from "vue";
16
16
  import { _ as _export_sfc, f as formStore } from "./main.js";
17
17
  import "element-plus/dist/index.css";
18
18
  import "jsoneditor/dist/jsoneditor.min.css";
19
- import "starfish-form";
19
+ import "starfish-form-custom";
20
20
  import "mitt";
21
21
  import "element-plus";
22
22
  import "nanoid";
23
- import "starfish-form/dist/style.css";
23
+ import "starfish-form-custom/dist/style.css";
24
24
  import "clipboard";
25
25
  import "element-plus/es/components/message/style/css";
26
26
  import "element-plus/es/components/tabs/style/css";
@@ -223,6 +223,12 @@ const _sfc_main = defineComponent({
223
223
  };
224
224
  }
225
225
  });
226
+ const _hoisted_1 = /* @__PURE__ */ createElementVNode("div", { class: "tipContent" }, "\u6EE1\u8DB3\u4EE5\u4E0B\u6240\u6709\u6761\u4EF6\u65F6,\u6B64\u7EC4\u4EF6\u53EF\u7528", -1);
227
+ const _hoisted_2 = /* @__PURE__ */ createTextVNode(" \u5220\u9664 ");
228
+ const _hoisted_3 = /* @__PURE__ */ createTextVNode("+\u5E76\u6761\u4EF6");
229
+ const _hoisted_4 = /* @__PURE__ */ createTextVNode("+\u6216\u6761\u4EF6");
230
+ const _hoisted_5 = /* @__PURE__ */ createTextVNode("\u4FDD\u5B58");
231
+ const _hoisted_6 = /* @__PURE__ */ createTextVNode("\u5173\u95ED");
226
232
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
227
233
  const _component_el_option = ElOption;
228
234
  const _component_el_select = ElSelect;
@@ -249,7 +255,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
249
255
  default: withCtx(() => [
250
256
  createVNode(_component_el_main, { class: "my-pageMain" }, {
251
257
  default: withCtx(() => [
252
- _cache[3] || (_cache[3] = createElementVNode("div", { class: "tipContent" }, "\u6EE1\u8DB3\u4EE5\u4E0B\u6240\u6709\u6761\u4EF6\u65F6,\u6B64\u7EC4\u4EF6\u53EF\u7528", -1)),
258
+ _hoisted_1,
253
259
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.andData, (table, index) => {
254
260
  return openBlock(), createElementBlock("div", {
255
261
  class: "tableContainer",
@@ -398,15 +404,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
398
404
  }, {
399
405
  default: withCtx((scope) => [
400
406
  createVNode(_component_el_button, {
401
- size: "small",
407
+ size: "default",
402
408
  type: "danger",
403
409
  onClick: withModifiers(($event) => _ctx.deleteRow(scope.$index, index), ["prevent"])
404
410
  }, {
405
- default: withCtx(() => _cache[0] || (_cache[0] = [
406
- createTextVNode(" \u5220\u9664 ", -1)
407
- ])),
408
- _: 2,
409
- __: [0]
411
+ default: withCtx(() => [
412
+ _hoisted_2
413
+ ]),
414
+ _: 2
410
415
  }, 1032, ["onClick"])
411
416
  ]),
412
417
  _: 2
@@ -420,11 +425,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
420
425
  text: "",
421
426
  onClick: ($event) => _ctx.onAddItem(index)
422
427
  }, {
423
- default: withCtx(() => _cache[1] || (_cache[1] = [
424
- createTextVNode("+\u5E76\u6761\u4EF6", -1)
425
- ])),
426
- _: 2,
427
- __: [1]
428
+ default: withCtx(() => [
429
+ _hoisted_3
430
+ ]),
431
+ _: 2
428
432
  }, 1032, ["onClick"])
429
433
  ]);
430
434
  }), 128)),
@@ -433,15 +437,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
433
437
  text: "",
434
438
  onClick: _ctx.onOrItem
435
439
  }, {
436
- default: withCtx(() => _cache[2] || (_cache[2] = [
437
- createTextVNode("+\u6216\u6761\u4EF6", -1)
438
- ])),
439
- _: 1,
440
- __: [2]
440
+ default: withCtx(() => [
441
+ _hoisted_4
442
+ ]),
443
+ _: 1
441
444
  }, 8, ["onClick"])
442
445
  ]),
443
- _: 1,
444
- __: [3]
446
+ _: 1
445
447
  }),
446
448
  createVNode(_component_el_footer, {
447
449
  class: "my-Footer",
@@ -452,18 +454,16 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
452
454
  type: "primary",
453
455
  onClick: _ctx.saveJson
454
456
  }, {
455
- default: withCtx(() => _cache[4] || (_cache[4] = [
456
- createTextVNode("\u4FDD\u5B58", -1)
457
- ])),
458
- _: 1,
459
- __: [4]
457
+ default: withCtx(() => [
458
+ _hoisted_5
459
+ ]),
460
+ _: 1
460
461
  }, 8, ["onClick"]),
461
462
  createVNode(_component_el_button, { onClick: _ctx.closeDialog }, {
462
- default: withCtx(() => _cache[5] || (_cache[5] = [
463
- createTextVNode("\u5173\u95ED", -1)
464
- ])),
465
- _: 1,
466
- __: [5]
463
+ default: withCtx(() => [
464
+ _hoisted_6
465
+ ]),
466
+ _: 1
467
467
  }, 8, ["onClick"])
468
468
  ]),
469
469
  _: 1
@@ -5,11 +5,11 @@ import { defineComponent, ref, computed, openBlock, createBlock, withCtx, create
5
5
  import { _ as _export_sfc } from "./main.js";
6
6
  import "element-plus/dist/index.css";
7
7
  import "jsoneditor/dist/jsoneditor.min.css";
8
- import "starfish-form";
8
+ import "starfish-form-custom";
9
9
  import "mitt";
10
10
  import "element-plus";
11
11
  import "nanoid";
12
- import "starfish-form/dist/style.css";
12
+ import "starfish-form-custom/dist/style.css";
13
13
  import "element-plus/es/components/footer/style/css";
14
14
  import "element-plus/es/components/button/style/css";
15
15
  import "clipboard";
@@ -29,7 +29,7 @@ import "element-plus/es/components/tree/style/css";
29
29
  import "element-plus/es/components/tooltip/style/css";
30
30
  import "gesto";
31
31
  import "keycon";
32
- var CustomDialog_vue_vue_type_style_index_0_scoped_true_lang = "";
32
+ var CustomDialog_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".MyDialogBody[data-v-81022734]{position:relative}.fullscreen[data-v-81022734]{width:100%!important;height:100%!important;margin:0;padding:0}\n")();
33
33
  const _sfc_main = defineComponent({
34
34
  props: {
35
35
  dialogclass: String,
package/dist/formStyle.js CHANGED
@@ -9,11 +9,11 @@ import { Codemirror } from "vue-codemirror";
9
9
  import { _ as _export_sfc } from "./main.js";
10
10
  import "element-plus/dist/index.css";
11
11
  import "jsoneditor/dist/jsoneditor.min.css";
12
- import "starfish-form";
12
+ import "starfish-form-custom";
13
13
  import "mitt";
14
14
  import "element-plus";
15
15
  import "nanoid";
16
- import "starfish-form/dist/style.css";
16
+ import "starfish-form-custom/dist/style.css";
17
17
  import "clipboard";
18
18
  import "element-plus/es/components/message/style/css";
19
19
  import "element-plus/es/components/tabs/style/css";
@@ -30,6 +30,7 @@ import "element-plus/es/components/drawer/style/css";
30
30
  import "element-plus/es/components/tree/style/css";
31
31
  import "gesto";
32
32
  import "keycon";
33
+ var formStyle_vue_vue_type_style_index_0_lang = /* @__PURE__ */ (() => ".cm-gutters.cm-gutters-before{background:#133F63}\n")();
33
34
  const _sfc_main = defineComponent({
34
35
  ControlType: "FormStyle",
35
36
  isHide: true,
@@ -83,27 +84,18 @@ const _sfc_main = defineComponent({
83
84
  classArray.forEach((cItem) => {
84
85
  const caItem = cItem.trim();
85
86
  if (caItem.indexOf(".", 1) !== -1) {
86
- const newClass = caItem.substring(
87
- caItem.indexOf(".") + 1,
88
- caItem.indexOf(".", 1)
89
- );
87
+ const newClass = caItem.substring(caItem.indexOf(".") + 1, caItem.indexOf(".", 1));
90
88
  if (newClass) {
91
89
  cssNameArray.push(newClass.trim());
92
90
  }
93
91
  } else if (caItem.indexOf(" ") !== -1) {
94
- const newClass = caItem.substring(
95
- caItem.indexOf(".") + 1,
96
- caItem.indexOf(" ")
97
- );
92
+ const newClass = caItem.substring(caItem.indexOf(".") + 1, caItem.indexOf(" "));
98
93
  if (newClass) {
99
94
  cssNameArray.push(newClass.trim());
100
95
  }
101
96
  } else {
102
97
  if (caItem.indexOf("{") !== -1) {
103
- const newClass = caItem.substring(
104
- caItem.indexOf(".") + 1,
105
- caItem.indexOf("{")
106
- );
98
+ const newClass = caItem.substring(caItem.indexOf(".") + 1, caItem.indexOf("{"));
107
99
  cssNameArray.push(newClass.trim());
108
100
  } else {
109
101
  const newClass = caItem.substring(caItem.indexOf(".") + 1);
@@ -155,8 +147,11 @@ const _hoisted_3 = {
155
147
  key: 0,
156
148
  class: "item_require"
157
149
  };
158
- const _hoisted_4 = { class: "control" };
159
- const _hoisted_5 = { class: "custom_code" };
150
+ const _hoisted_4 = /* @__PURE__ */ createElementVNode("span", { class: "tip iconfontui icon-tishi" }, null, -1);
151
+ const _hoisted_5 = { class: "control" };
152
+ const _hoisted_6 = { class: "custom_code" };
153
+ const _hoisted_7 = /* @__PURE__ */ createTextVNode("\u786E\u5B9A");
154
+ const _hoisted_8 = /* @__PURE__ */ createTextVNode("\u5173\u95ED");
160
155
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
161
156
  const _component_el_tooltip = ElTooltip;
162
157
  const _component_el_button = ElButton;
@@ -174,14 +169,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
174
169
  content: _ctx.item.data.tip,
175
170
  placement: "top"
176
171
  }, {
177
- default: withCtx(() => _cache[1] || (_cache[1] = [
178
- createElementVNode("span", { class: "tip iconfontui icon-tishi" }, null, -1)
179
- ])),
180
- _: 1,
181
- __: [1]
172
+ default: withCtx(() => [
173
+ _hoisted_4
174
+ ]),
175
+ _: 1
182
176
  }, 8, ["content"])) : createCommentVNode("", true)
183
177
  ]),
184
- createElementVNode("div", _hoisted_4, [
178
+ createElementVNode("div", _hoisted_5, [
185
179
  createVNode(_component_el_button, {
186
180
  style: { "width": "100%" },
187
181
  onClick: _ctx.onStyleSet,
@@ -198,7 +192,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
198
192
  width: "1000"
199
193
  }, {
200
194
  default: withCtx(() => [
201
- createElementVNode("div", _hoisted_5, [
195
+ createElementVNode("div", _hoisted_6, [
202
196
  createVNode(_component_codemirror, {
203
197
  modelValue: _ctx.code,
204
198
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.code = $event),
@@ -219,18 +213,16 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
219
213
  type: "primary",
220
214
  onClick: _ctx.saveCssStyle
221
215
  }, {
222
- default: withCtx(() => _cache[2] || (_cache[2] = [
223
- createTextVNode("\u786E\u5B9A", -1)
224
- ])),
225
- _: 1,
226
- __: [2]
216
+ default: withCtx(() => [
217
+ _hoisted_7
218
+ ]),
219
+ _: 1
227
220
  }, 8, ["onClick"]),
228
221
  createVNode(_component_el_button, { onClick: _ctx.closeCodeDialog }, {
229
- default: withCtx(() => _cache[3] || (_cache[3] = [
230
- createTextVNode("\u5173\u95ED", -1)
231
- ])),
232
- _: 1,
233
- __: [3]
222
+ default: withCtx(() => [
223
+ _hoisted_8
224
+ ]),
225
+ _: 1
234
226
  }, 8, ["onClick"])
235
227
  ]),
236
228
  _: 1
@@ -2,11 +2,11 @@ import { defineComponent, inject, computed, openBlock, createElementBlock, Fragm
2
2
  import { _ as _export_sfc } from "./main.js";
3
3
  import "element-plus/dist/index.css";
4
4
  import "jsoneditor/dist/jsoneditor.min.css";
5
- import "starfish-form";
5
+ import "starfish-form-custom";
6
6
  import "mitt";
7
7
  import "element-plus";
8
8
  import "nanoid";
9
- import "starfish-form/dist/style.css";
9
+ import "starfish-form-custom/dist/style.css";
10
10
  import "element-plus/es";
11
11
  import "element-plus/es/components/base/style/css";
12
12
  import "element-plus/es/components/footer/style/css";
package/dist/jsonCode.js CHANGED
@@ -4,11 +4,11 @@ import { Codemirror } from "vue-codemirror";
4
4
  import { _ as _export_sfc } from "./main.js";
5
5
  import "element-plus/dist/index.css";
6
6
  import "jsoneditor/dist/jsoneditor.min.css";
7
- import "starfish-form";
7
+ import "starfish-form-custom";
8
8
  import "mitt";
9
9
  import "element-plus";
10
10
  import "nanoid";
11
- import "starfish-form/dist/style.css";
11
+ import "starfish-form-custom/dist/style.css";
12
12
  import "element-plus/es";
13
13
  import "element-plus/es/components/base/style/css";
14
14
  import "element-plus/es/components/footer/style/css";
@@ -30,6 +30,7 @@ import "element-plus/es/components/tree/style/css";
30
30
  import "element-plus/es/components/tooltip/style/css";
31
31
  import "gesto";
32
32
  import "keycon";
33
+ var jsonCode_vue_vue_type_style_index_0_lang = /* @__PURE__ */ (() => ".\\37c 2 .cm-gutters{background:#133F63;border-right:1px solid #1C4E7E}\n")();
33
34
  const _sfc_main = defineComponent({
34
35
  components: {
35
36
  Codemirror
@@ -65,7 +66,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
65
66
  onInput: _cache[1] || (_cache[1] = ($event) => _ctx.onUpdateValue($event.target.innerText)),
66
67
  placeholder: "json\u5BFC\u5165",
67
68
  mode: "text/json",
68
- style: { height: "400px" },
69
+ style: { height: "400px", "margin-bottom": "16px" },
69
70
  extensions: _ctx.extensions
70
71
  }, null, 8, ["modelValue", "extensions"])
71
72
  ]);
@@ -1,13 +1,13 @@
1
- import { defineComponent, ref, inject, computed, onMounted, openBlock, createElementBlock, toRaw } from "vue";
1
+ import { defineComponent, ref, inject, computed, onMounted, toRaw, openBlock, createElementBlock } from "vue";
2
2
  import JSONEditor from "jsoneditor";
3
3
  import { _ as _export_sfc } from "./main.js";
4
4
  import "element-plus/dist/index.css";
5
5
  import "jsoneditor/dist/jsoneditor.min.css";
6
- import "starfish-form";
6
+ import "starfish-form-custom";
7
7
  import "mitt";
8
8
  import "element-plus";
9
9
  import "nanoid";
10
- import "starfish-form/dist/style.css";
10
+ import "starfish-form-custom/dist/style.css";
11
11
  import "element-plus/es";
12
12
  import "element-plus/es/components/base/style/css";
13
13
  import "element-plus/es/components/footer/style/css";