@gct-paas/excel 0.1.23 → 0.1.24

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 (77) hide show
  1. package/dist/{agg-design-B485eEtY.js → agg-design-BE5eFcq0.js} +1 -1
  2. package/dist/{agg-style-zIhxDQI2.js → agg-style-QlO3PVaS.js} +1 -1
  3. package/dist/{attach-fields-editor-Dy1bN4Aq.js → attach-fields-editor-DNhfTsft.js} +1 -1
  4. package/dist/{barcode-design-Cw3ChYzU.js → barcode-design-Ds2P_-Nm.js} +1 -1
  5. package/dist/{base-font-editor-fpBDIpYD.js → base-font-editor-BKN5HPtV.js} +84 -25
  6. package/dist/{boolean-design-CMY1NvJx.js → boolean-design-C0Isn-jj.js} +8 -3
  7. package/dist/{boolean-props-CXd_zo-H.js → boolean-props-DDg6R4pe.js} +2 -2
  8. package/dist/{boolean-style-Bwn-w6Vd.js → boolean-style-CzRGaXNa.js} +32 -9
  9. package/dist/{cell-upload-DtUd8zB6.js → cell-upload-BIPN1Qh_.js} +1 -1
  10. package/dist/{date-range-editor-CbvWtTZu.js → date-range-editor-B01L0e3H.js} +1 -1
  11. package/dist/{date-time-props-HkqTfmXs.js → date-time-props-C3jRf2LD.js} +2 -2
  12. package/dist/{date-time-style-C6mVoPbF.js → date-time-style-K8AVLBvc.js} +1 -1
  13. package/dist/{decimal-display-mode-DOmLtCGz.js → decimal-display-mode-Cus0Slsz.js} +1 -1
  14. package/dist/{decimal-props-CRsHxz1d.js → decimal-props-dtICiGOQ.js} +3 -3
  15. package/dist/{decimal-style-DO4ROgq5.js → decimal-style-EfyEDVzI.js} +1 -1
  16. package/dist/{default-value-editor.vue_vue_type_script_setup_true_name_default-value-editor_lang-Dqz0oW0Y.js → default-value-editor.vue_vue_type_script_setup_true_name_default-value-editor_lang-B27g8v5V.js} +1 -1
  17. package/dist/{diagonal-design-DSI944Jp.js → diagonal-design-BmGrJev_.js} +1 -1
  18. package/dist/{double-props-pw1mzMKu.js → double-props-7TIIBh6u.js} +3 -3
  19. package/dist/{double-style-DtsZ-k10.js → double-style-DlZ0wEbL.js} +1 -1
  20. package/dist/{enum-design-BWcD5nJ8.js → enum-design-Bimq8s8j.js} +9 -9
  21. package/dist/{enum-props-BYEq0j1n.js → enum-props-BSMCFIFi.js} +2 -2
  22. package/dist/{enum-style-C4gEWyWv.js → enum-style-sG5DPwxr.js} +7 -7
  23. package/dist/excel.css +111 -55
  24. package/dist/{exceljs.min-DGKleauA.js → exceljs.min-CQuJzgXh.js} +1 -1
  25. package/dist/{expression-design-D-t2dkee.js → expression-design-CLfSSfXM.js} +1 -1
  26. package/dist/{expression-style-CYgNzm7c.js → expression-style-C6KFVri_.js} +1 -1
  27. package/dist/{file-design-BfCxFUVB.js → file-design-DMCOlCBf.js} +1 -1
  28. package/dist/{file-props-DYyaq1fr.js → file-props-L9S8Nf31.js} +1 -1
  29. package/dist/{font-editor-CUQ-uX8Y.js → font-editor-BDyMjcw6.js} +1 -1
  30. package/dist/{image-design-DP_erJjS.js → image-design-Ckm9vbjv.js} +1 -1
  31. package/dist/{image-props-CF0qOMl7.js → image-props-BvXoJwIE.js} +1 -1
  32. package/dist/{index-CB8l6mFL.js → index-3PGTvcdn.js} +2 -1
  33. package/dist/{index-CdaNfYLE.js → index-B2dCmlfS.js} +54 -24
  34. package/dist/{index-BO21uzcy.js → index-BT70n7N3.js} +1 -1
  35. package/dist/{index-Bz8M9Mln.js → index-CU6EFmnG.js} +1 -1
  36. package/dist/{index-2E2k77Mp.js → index-DbNxa2CY.js} +1 -1
  37. package/dist/{index-BTAd2V7f.js → index-f-6blU00.js} +2 -3
  38. package/dist/index.es.js +1 -1
  39. package/dist/{integer-props-BFcLFx5P.js → integer-props-BmQZ0AHU.js} +2 -2
  40. package/dist/{integer-style-Dnermx3g.js → integer-style-B6mcVCU1.js} +1 -1
  41. package/dist/{org-props-CGSr5vBf.js → org-props-DLusFjvS.js} +1 -1
  42. package/dist/{org-style-CXs2pG6E.js → org-style-9BaDs90S.js} +1 -1
  43. package/dist/{pagination-design-Dy8hlT-1.js → pagination-design-BDNanSYh.js} +1 -1
  44. package/dist/paper-widget-design-dOfn89l9.js +4 -0
  45. package/dist/{qrcode-design-Cbqb-yWl.js → qrcode-design-V3Kuah3m.js} +1 -1
  46. package/dist/{ref-autofill-editor-BF6nRqWg.js → ref-autofill-editor-1pOiaURA.js} +1 -1
  47. package/dist/{ref-props-lNA1ikVB.js → ref-props-CpnxcBCi.js} +2 -2
  48. package/dist/{ref-style-sATuD-j-.js → ref-style-OSp-Rjuz.js} +1 -1
  49. package/dist/{regex-editor-B4H6oUzp.js → regex-editor-DnWDHB5T.js} +1 -1
  50. package/dist/{select-render-type-editor.vue_vue_type_script_setup_true_lang-CVMraRrv.js → select-render-type-editor.vue_vue_type_script_setup_true_lang-DrkZPjxx.js} +1 -1
  51. package/dist/{signature-design-7HumYOQU.js → signature-design-B3xqgwJd.js} +1 -1
  52. package/dist/{signature-props-CB6C305K.js → signature-props-BWhInYU5.js} +2 -2
  53. package/dist/{single-field-drop-PQGKA2za.js → single-field-drop-CPiavuQD.js} +1 -1
  54. package/dist/src/nocode-base/src/types/fields/i-switch.d.ts +2 -0
  55. package/dist/{text-design-BvdLsdrT.js → text-design-1nJufu5G.js} +1 -1
  56. package/dist/{text-design-CaNDnT6K.js → text-design-ztaW7thY.js} +1 -1
  57. package/dist/{text-props-B-1Pd7T_.js → text-props-DAA15H4v.js} +2 -2
  58. package/dist/{text-style-Dc1qKOif.js → text-style-CUKgx-kL.js} +1 -1
  59. package/dist/{trace-design-Cz9oOcMi.js → trace-design-DRBYOS13.js} +1 -1
  60. package/dist/{trace-props-Bd7RIYGS.js → trace-props-D47QpyJH.js} +4 -4
  61. package/dist/{trace-style-BEJyw_H3.js → trace-style-be8PXFsf.js} +1 -1
  62. package/dist/{user-props-DZjVNaGe.js → user-props-BB0Vcch3.js} +1 -1
  63. package/dist/{user-style-ByfzJ6fg.js → user-style-C-QXQ1ti.js} +1 -1
  64. package/dist/{value-editor.vue_vue_type_style_index_0_lang-BFXbRbwW.js → value-editor.vue_vue_type_style_index_0_lang-DycxpaAS.js} +1 -1
  65. package/dist/{widget-barcode-BbzJjixG.js → widget-barcode-CMO87Hmu.js} +2 -2
  66. package/dist/{widget-diagonal-C0FmAvs-.js → widget-diagonal-CSZndGwY.js} +2 -2
  67. package/dist/{widget-image-BGJik8Ks.js → widget-image-CExyPp-E.js} +1 -1
  68. package/dist/{widget-line-D30nzorH.js → widget-line-CT9PROAE.js} +1 -1
  69. package/dist/{widget-pagination-C3-oYS-M.js → widget-pagination-CvStItAL.js} +2 -2
  70. package/dist/{widget-power-mKWuNVOP.js → widget-power-BK8gMkjB.js} +2 -2
  71. package/dist/{widget-qrcode-CIFK-3XT.js → widget-qrcode-DkC4aj6u.js} +2 -2
  72. package/dist/{widget-rangelimit-BRAlTG7f.js → widget-rangelimit-DOwSYluI.js} +2 -2
  73. package/dist/{widget-serialnumber-ZM6hEQKn.js → widget-serialnumber-Dt7j7OJV.js} +1 -1
  74. package/dist/{widget-text-BrswIiuT.js → widget-text-BSXu4P8B.js} +3 -3
  75. package/dist/{widget-timediff-BGOWmPYX.js → widget-timediff-DtDRLTxc.js} +1 -1
  76. package/package.json +1 -1
  77. package/dist/paper-widget-design-D6SgvBa5.js +0 -4
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, computed, openBlock, createElementBlock, toDisplayString } from "vue";
2
- import { u as useModelFields } from "./index-CdaNfYLE.js";
2
+ import { u as useModelFields } from "./index-B2dCmlfS.js";
3
3
  const _sfc_main = /* @__PURE__ */ defineComponent({
4
4
  __name: "agg-design",
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, computed, openBlock, createBlock } from "vue";
2
- import { B as BaseFontEditor } from "./base-font-editor-fpBDIpYD.js";
2
+ import { B as BaseFontEditor } from "./base-font-editor-BKN5HPtV.js";
3
3
  const _sfc_main = /* @__PURE__ */ defineComponent({
4
4
  __name: "agg-style",
5
5
  props: {
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, computed, openBlock, createBlock, unref, normalizeClass } from "vue";
2
2
  import { message } from "ant-design-vue";
3
3
  import { a as useNamespace } from "./use-namespace-qtLS8nEh.js";
4
- import { u as useModelFields, b as useDrop, T as TransferType, d as getFieldIcon, M as MultipleDrop, e as FieldConfig } from "./index-CdaNfYLE.js";
4
+ import { u as useModelFields, b as useDrop, T as TransferType, d as getFieldIcon, M as MultipleDrop, e as FieldConfig } from "./index-B2dCmlfS.js";
5
5
  import { F as FIELD_TYPE, _ as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-Bomssr4x.js";
6
6
  const _sfc_main = /* @__PURE__ */ defineComponent({
7
7
  __name: "attach-fields-editor",
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, ref, computed, watch, openBlock, createElementBlock, normalizeStyle, normalizeClass, createElementVNode, toDisplayString, createCommentVNode } from "vue";
2
2
  import { pick } from "lodash-es";
3
- import { h as useSpreadSheet, u as useModelFields, p as loadBwip } from "./index-CdaNfYLE.js";
3
+ import { h as useSpreadSheet, u as useModelFields, p as loadBwip } from "./index-B2dCmlfS.js";
4
4
  import { m as PaperWidgeValueType, _ as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-Bomssr4x.js";
5
5
  import "dayjs";
6
6
  import "ant-design-vue";
@@ -1,7 +1,9 @@
1
- import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, Fragment, createElementVNode, normalizeClass, unref, createVNode, withCtx, createBlock, createCommentVNode } from "vue";
1
+ import { defineComponent, ref, computed, watch, resolveComponent, openBlock, createElementBlock, Fragment, createElementVNode, normalizeClass, unref, createVNode, withCtx, createBlock, createSlots, createTextVNode, createCommentVNode } from "vue";
2
2
  import { a as useNamespace } from "./use-namespace-qtLS8nEh.js";
3
- import { F as FormItem } from "./index-CdaNfYLE.js";
3
+ import { F as FormItem } from "./index-B2dCmlfS.js";
4
4
  import { _ as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-Bomssr4x.js";
5
+ const DEFAULT_LETTER_SPACE = 8;
6
+ const DEFAULT_OPTION_GAP = 12;
5
7
  const _sfc_main = /* @__PURE__ */ defineComponent({
6
8
  __name: "base-font-editor",
7
9
  props: {
@@ -17,6 +19,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
17
19
  const ns = useNamespace("base-font-editor");
18
20
  const props = __props;
19
21
  const emit = __emit;
22
+ const letterSpaceFocused = ref(false);
23
+ const optionGapFocused = ref(false);
24
+ const letterSpaceDraft = ref(
25
+ props.letterSpace ?? (props.showOptionGap ? DEFAULT_LETTER_SPACE : void 0)
26
+ );
27
+ const optionGapDraft = ref(props.optionGap ?? DEFAULT_OPTION_GAP);
20
28
  const fontSizeOptions = Array.from({ length: 8 }, (_, i) => i * 2 + 10).map((num) => ({
21
29
  label: num,
22
30
  value: num
@@ -29,22 +37,50 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
29
37
  emit("update:fontSize", v);
30
38
  }
31
39
  });
32
- const _letterSpace = computed({
33
- get() {
34
- return props.letterSpace;
35
- },
36
- set(v) {
37
- emit("update:letterSpace", v);
40
+ watch(
41
+ () => props.letterSpace,
42
+ (value) => {
43
+ if (!letterSpaceFocused.value) {
44
+ letterSpaceDraft.value = value ?? (props.showOptionGap ? DEFAULT_LETTER_SPACE : void 0);
45
+ }
38
46
  }
39
- });
40
- const _optionGap = computed({
41
- get() {
42
- return props.optionGap;
43
- },
44
- set(v) {
45
- emit("update:optionGap", v);
47
+ );
48
+ watch(
49
+ () => props.optionGap,
50
+ (value) => {
51
+ if (!optionGapFocused.value) {
52
+ optionGapDraft.value = value ?? DEFAULT_OPTION_GAP;
53
+ }
46
54
  }
47
- });
55
+ );
56
+ const handleLetterSpaceFocus = () => {
57
+ letterSpaceFocused.value = true;
58
+ };
59
+ const handleLetterSpaceUpdate = (value) => {
60
+ if (value != null) {
61
+ emit("update:letterSpace", value);
62
+ }
63
+ };
64
+ const handleOptionGapFocus = () => {
65
+ optionGapFocused.value = true;
66
+ };
67
+ const handleOptionGapUpdate = (value) => {
68
+ if (value != null) {
69
+ emit("update:optionGap", value);
70
+ }
71
+ };
72
+ const restoreLetterSpaceDefault = () => {
73
+ letterSpaceFocused.value = false;
74
+ if (!props.showOptionGap || letterSpaceDraft.value != null) return;
75
+ letterSpaceDraft.value = DEFAULT_LETTER_SPACE;
76
+ emit("update:letterSpace", DEFAULT_LETTER_SPACE);
77
+ };
78
+ const restoreOptionGapDefault = () => {
79
+ optionGapFocused.value = false;
80
+ if (optionGapDraft.value != null) return;
81
+ optionGapDraft.value = DEFAULT_OPTION_GAP;
82
+ emit("update:optionGap", DEFAULT_OPTION_GAP);
83
+ };
48
84
  return (_ctx, _cache) => {
49
85
  const _component_a_select = resolveComponent("a-select");
50
86
  const _component_a_input_number = resolveComponent("a-input-number");
@@ -77,12 +113,25 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
77
113
  }, {
78
114
  default: withCtx(() => [
79
115
  createVNode(_component_a_input_number, {
80
- value: _letterSpace.value,
81
- "onUpdate:value": _cache[1] || (_cache[1] = ($event) => _letterSpace.value = $event),
116
+ value: letterSpaceDraft.value,
117
+ "onUpdate:value": [
118
+ _cache[1] || (_cache[1] = ($event) => letterSpaceDraft.value = $event),
119
+ handleLetterSpaceUpdate
120
+ ],
82
121
  disabled: __props.disabled,
83
122
  precision: 0,
84
- size: __props.showOptionGap ? "small" : void 0
85
- }, null, 8, ["value", "disabled", "size"])
123
+ size: __props.showOptionGap ? "small" : void 0,
124
+ onFocus: handleLetterSpaceFocus,
125
+ onBlur: restoreLetterSpaceDefault
126
+ }, createSlots({ _: 2 }, [
127
+ __props.showOptionGap ? {
128
+ name: "addonAfter",
129
+ fn: withCtx(() => [
130
+ _cache[3] || (_cache[3] = createTextVNode("px", -1))
131
+ ]),
132
+ key: "0"
133
+ } : void 0
134
+ ]), 1032, ["value", "disabled", "size"])
86
135
  ]),
87
136
  _: 1
88
137
  }, 8, ["class", "label"])) : createCommentVNode("", true)
@@ -98,14 +147,24 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
98
147
  }, {
99
148
  default: withCtx(() => [
100
149
  createVNode(_component_a_input_number, {
101
- value: _optionGap.value,
102
- "onUpdate:value": _cache[2] || (_cache[2] = ($event) => _optionGap.value = $event),
150
+ value: optionGapDraft.value,
151
+ "onUpdate:value": [
152
+ _cache[2] || (_cache[2] = ($event) => optionGapDraft.value = $event),
153
+ handleOptionGapUpdate
154
+ ],
103
155
  disabled: __props.disabled,
104
156
  precision: 0,
105
157
  min: 0,
106
158
  max: 100,
107
- size: "small"
108
- }, null, 8, ["value", "disabled"])
159
+ size: "small",
160
+ onFocus: handleOptionGapFocus,
161
+ onBlur: restoreOptionGapDefault
162
+ }, {
163
+ addonAfter: withCtx(() => [..._cache[4] || (_cache[4] = [
164
+ createTextVNode("px", -1)
165
+ ])]),
166
+ _: 1
167
+ }, 8, ["value", "disabled"])
109
168
  ]),
110
169
  _: 1
111
170
  }, 8, ["class", "label"])
@@ -114,7 +173,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
114
173
  };
115
174
  }
116
175
  });
117
- const BaseFontEditor = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-dd554509"]]);
176
+ const BaseFontEditor = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b2e6daa3"]]);
118
177
  export {
119
178
  BaseFontEditor as B
120
179
  };
@@ -1,9 +1,10 @@
1
1
  import { defineComponent, computed, openBlock, createElementBlock, createVNode, unref, normalizeStyle, withCtx, Fragment, renderList, createBlock, createCommentVNode } from "vue";
2
- import { C as CellWidgetRenderComp, S as SelectEx, a as CellWidgetDesign } from "./index-CdaNfYLE.js";
2
+ import { C as CellWidgetRenderComp, S as SelectEx, a as CellWidgetDesign } from "./index-B2dCmlfS.js";
3
3
  import { x as BooleanShowMode, _ as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-Bomssr4x.js";
4
4
  import { isNil } from "lodash-es";
5
5
  import "dayjs";
6
6
  import "ant-design-vue";
7
+ const DEFAULT_OPTION_GAP = 12;
7
8
  const _sfc_main = /* @__PURE__ */ defineComponent({
8
9
  __name: "boolean-design",
9
10
  props: {
@@ -12,6 +13,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
12
13
  },
13
14
  setup(__props) {
14
15
  const props = __props;
16
+ const optionGap = computed(() => props.fieldWidget.optionGap ?? DEFAULT_OPTION_GAP);
15
17
  const iconType = computed(() => {
16
18
  return {
17
19
  [CellWidgetRenderComp.Radio]: "radio",
@@ -60,6 +62,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
60
62
  if (!isNil(props.fieldWidget.iconLabelSpace)) {
61
63
  result["--gct-select-ex-icon-label-space"] = props.fieldWidget.iconLabelSpace + "px";
62
64
  }
65
+ result["--gct-select-ex-option-gap"] = `${optionGap.value}px`;
63
66
  return result;
64
67
  });
65
68
  return (_ctx, _cache) => {
@@ -74,6 +77,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
74
77
  direction: __props.fieldWidget.direction,
75
78
  "label-position": __props.fieldWidget.labelPosition,
76
79
  "null-value": nullValue.value,
80
+ "icon-label-space": __props.fieldWidget.iconLabelSpace,
81
+ "option-gap": optionGap.value,
77
82
  style: normalizeStyle(styleVars.value),
78
83
  size: "small"
79
84
  }, {
@@ -94,12 +99,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
94
99
  }), 128)) : createCommentVNode("", true)
95
100
  ]),
96
101
  _: 1
97
- }, 8, ["disabled", "options", "value", "show-mode", "icon-type", "direction", "label-position", "null-value", "style"])
102
+ }, 8, ["disabled", "options", "value", "show-mode", "icon-type", "direction", "label-position", "null-value", "icon-label-space", "option-gap", "style"])
98
103
  ]);
99
104
  };
100
105
  }
101
106
  });
102
- const booleanDesign = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-1bfa29ba"]]);
107
+ const booleanDesign = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-39d9ca90"]]);
103
108
  export {
104
109
  booleanDesign as default
105
110
  };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, createElementVNode, toDisplayString, createBlock, createCommentVNode } from "vue";
2
- import { F as FormItem } from "./index-CdaNfYLE.js";
3
- import { A as AttachFieldEditor } from "./attach-fields-editor-Dy1bN4Aq.js";
2
+ import { F as FormItem } from "./index-B2dCmlfS.js";
3
+ import { A as AttachFieldEditor } from "./attach-fields-editor-DNhfTsft.js";
4
4
  import { _ as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-Bomssr4x.js";
5
5
  const _hoisted_1 = { style: { "float": "right" } };
6
6
  const _hoisted_2 = { class: "option-container" };
@@ -3,9 +3,11 @@ import { x as BooleanShowMode } from "./dynamic-table-action.vue_vue_type_style_
3
3
  import "lodash-es";
4
4
  import "dayjs";
5
5
  import "ant-design-vue";
6
- import { C as CellWidgetRenderComp, F as FormItem } from "./index-CdaNfYLE.js";
7
- import { B as BaseFontEditor } from "./base-font-editor-fpBDIpYD.js";
8
- import { _ as _sfc_main$1, a as _sfc_main$2 } from "./select-render-type-editor.vue_vue_type_script_setup_true_lang-CVMraRrv.js";
6
+ import { C as CellWidgetRenderComp, F as FormItem } from "./index-B2dCmlfS.js";
7
+ import { B as BaseFontEditor } from "./base-font-editor-BKN5HPtV.js";
8
+ import { _ as _sfc_main$1, a as _sfc_main$2 } from "./select-render-type-editor.vue_vue_type_script_setup_true_lang-DrkZPjxx.js";
9
+ const DEFAULT_LETTER_SPACE = 8;
10
+ const DEFAULT_OPTION_GAP = 12;
9
11
  const _sfc_main = /* @__PURE__ */ defineComponent({
10
12
  __name: "boolean-style",
11
13
  props: {
@@ -22,6 +24,23 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
22
24
  Object.assign(props.widget, v);
23
25
  }
24
26
  });
27
+ const isRadioOrCheckbox = computed(
28
+ () => [CellWidgetRenderComp.Radio, CellWidgetRenderComp.Checkbox].includes(
29
+ formState.value.renderComp
30
+ )
31
+ );
32
+ const letterSpace = computed({
33
+ get: () => props.widget.iconLabelSpace ?? DEFAULT_LETTER_SPACE,
34
+ set: (value) => {
35
+ formState.value.iconLabelSpace = value ?? DEFAULT_LETTER_SPACE;
36
+ }
37
+ });
38
+ const optionGap = computed({
39
+ get: () => props.widget.optionGap ?? DEFAULT_OPTION_GAP,
40
+ set: (value) => {
41
+ formState.value.optionGap = value ?? DEFAULT_OPTION_GAP;
42
+ }
43
+ });
25
44
  const ShowModeOptions = [
26
45
  {
27
46
  label: $t("sys.component.fieldTypeProps.bothTrueAndFalse"),
@@ -61,18 +80,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
61
80
  ]),
62
81
  _: 1
63
82
  }, 8, ["label"])) : createCommentVNode("", true),
64
- createVNode(BaseFontEditor, {
83
+ isRadioOrCheckbox.value ? (openBlock(), createBlock(BaseFontEditor, {
84
+ key: 1,
65
85
  "font-size": formState.value.fontSize,
66
86
  "onUpdate:fontSize": _cache[2] || (_cache[2] = ($event) => formState.value.fontSize = $event),
67
- "letter-space": formState.value.iconLabelSpace,
68
- "onUpdate:letterSpace": _cache[3] || (_cache[3] = ($event) => formState.value.iconLabelSpace = $event),
87
+ "letter-space": letterSpace.value,
88
+ "onUpdate:letterSpace": _cache[3] || (_cache[3] = ($event) => letterSpace.value = $event),
89
+ "option-gap": optionGap.value,
90
+ "onUpdate:optionGap": _cache[4] || (_cache[4] = ($event) => optionGap.value = $event),
91
+ "show-option-gap": true,
69
92
  disabled: __props.disabled
70
- }, null, 8, ["font-size", "letter-space", "disabled"]),
93
+ }, null, 8, ["font-size", "letter-space", "option-gap", "disabled"])) : createCommentVNode("", true),
71
94
  createVNode(_sfc_main$2, {
72
95
  "label-position": formState.value.labelPosition,
73
- "onUpdate:labelPosition": _cache[4] || (_cache[4] = ($event) => formState.value.labelPosition = $event),
96
+ "onUpdate:labelPosition": _cache[5] || (_cache[5] = ($event) => formState.value.labelPosition = $event),
74
97
  direction: formState.value.direction,
75
- "onUpdate:direction": _cache[5] || (_cache[5] = ($event) => formState.value.direction = $event),
98
+ "onUpdate:direction": _cache[6] || (_cache[6] = ($event) => formState.value.direction = $event),
76
99
  renderComp: formState.value.renderComp,
77
100
  disabled: __props.disabled
78
101
  }, null, 8, ["label-position", "direction", "renderComp", "disabled"])
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, unref, createVNode, createElementVNode, toDisplayString } from "vue";
2
2
  import { a as useNamespace } from "./use-namespace-qtLS8nEh.js";
3
- import { P as PlusOutlined } from "./index-CdaNfYLE.js";
3
+ import { P as PlusOutlined } from "./index-B2dCmlfS.js";
4
4
  import { _ as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-Bomssr4x.js";
5
5
  const _sfc_main = /* @__PURE__ */ defineComponent({
6
6
  __name: "cell-upload",
@@ -1,5 +1,5 @@
1
1
  import { watch, computed, defineComponent, toRefs, resolveComponent, openBlock, createBlock, withCtx, createVNode, unref, isRef, createCommentVNode, createElementVNode, toDisplayString, createElementBlock, normalizeClass, Fragment } from "vue";
2
- import { F as FormItem, S as SelectEx, f as FormulaEditor } from "./index-CdaNfYLE.js";
2
+ import { F as FormItem, S as SelectEx, f as FormulaEditor } from "./index-B2dCmlfS.js";
3
3
  import { F as FIELD_TYPE, _ as _export_sfc, ap as RangeValidateMode, b3 as RangeCompareOp } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-Bomssr4x.js";
4
4
  import { a as useNamespace } from "./use-namespace-qtLS8nEh.js";
5
5
  import { isNil } from "lodash-es";
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, Fragment, createBlock, withCtx, createVNode, createCommentVNode, createTextVNode, toDisplayString } from "vue";
2
- import { F as FormItem } from "./index-CdaNfYLE.js";
3
- import { D as DateFormatEditor, a as DateRangeEditor } from "./date-range-editor-CbvWtTZu.js";
2
+ import { F as FormItem } from "./index-B2dCmlfS.js";
3
+ import { D as DateFormatEditor, a as DateRangeEditor } from "./date-range-editor-B01L0e3H.js";
4
4
  import { F as FIELD_TYPE } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-Bomssr4x.js";
5
5
  const _sfc_main = /* @__PURE__ */ defineComponent({
6
6
  __name: "date-time-props",
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, computed, openBlock, createBlock } from "vue";
2
- import { B as BaseFontEditor } from "./base-font-editor-fpBDIpYD.js";
2
+ import { B as BaseFontEditor } from "./base-font-editor-BKN5HPtV.js";
3
3
  const _sfc_main = /* @__PURE__ */ defineComponent({
4
4
  __name: "date-time-style",
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, computed, openBlock, createBlock, withCtx, createVNode, unref } from "vue";
2
- import { F as FormItem, S as SelectEx } from "./index-CdaNfYLE.js";
2
+ import { F as FormItem, S as SelectEx } from "./index-B2dCmlfS.js";
3
3
  import { ai as DecimalDisplayMode$1, _ as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-Bomssr4x.js";
4
4
  import "lodash-es";
5
5
  import "dayjs";
@@ -1,11 +1,11 @@
1
1
  import { defineComponent, computed, ref, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, createBlock, createCommentVNode, createTextVNode, toDisplayString, createElementVNode } from "vue";
2
- import { u as useModelFields, h as useSpreadSheet, i as useReverseModeling, F as FormItem } from "./index-CdaNfYLE.js";
3
- import { _ as _sfc_main$1, N as NumberRangeEditor, I as IndicesEditor } from "./default-value-editor.vue_vue_type_script_setup_true_name_default-value-editor_lang-Dqz0oW0Y.js";
2
+ import { u as useModelFields, h as useSpreadSheet, i as useReverseModeling, F as FormItem } from "./index-B2dCmlfS.js";
3
+ import { _ as _sfc_main$1, N as NumberRangeEditor, I as IndicesEditor } from "./default-value-editor.vue_vue_type_script_setup_true_name_default-value-editor_lang-B27g8v5V.js";
4
4
  import { F as FIELD_TYPE, _ as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-Bomssr4x.js";
5
5
  import "lodash-es";
6
6
  import "dayjs";
7
7
  import "ant-design-vue";
8
- import { D as DecimalDisplayMode } from "./decimal-display-mode-DOmLtCGz.js";
8
+ import { D as DecimalDisplayMode } from "./decimal-display-mode-Cus0Slsz.js";
9
9
  const _hoisted_1 = { class: "w440px text-12px" };
10
10
  const _hoisted_2 = { class: "font-600 text-[#1A1D23] mb8px" };
11
11
  const _hoisted_3 = { class: "text-[#8B8B8B]" };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, computed, openBlock, createBlock } from "vue";
2
- import { B as BaseFontEditor } from "./base-font-editor-fpBDIpYD.js";
2
+ import { B as BaseFontEditor } from "./base-font-editor-BKN5HPtV.js";
3
3
  const _sfc_main = /* @__PURE__ */ defineComponent({
4
4
  __name: "decimal-style",
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, computed, resolveComponent, openBlock, createBlock, normalizeClass, unref, withCtx, createVNode, watch, createElementBlock, Fragment, createCommentVNode, mergeProps } from "vue";
2
- import { F as FormItem, S as SelectEx, f as FormulaEditor } from "./index-CdaNfYLE.js";
2
+ import { F as FormItem, S as SelectEx, f as FormulaEditor } from "./index-B2dCmlfS.js";
3
3
  import { a as useNamespace } from "./use-namespace-qtLS8nEh.js";
4
4
  import { _ as _export_sfc, ap as RangeValidateMode, b3 as RangeCompareOp } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-Bomssr4x.js";
5
5
  import { isNil } from "lodash-es";
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, computed, openBlock, createBlock } from "vue";
2
- import { u as useModelFields, q as Diagonal } from "./index-CdaNfYLE.js";
2
+ import { u as useModelFields, q as Diagonal } from "./index-B2dCmlfS.js";
3
3
  import { M as resolveDiagonalVertex, _ as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-Bomssr4x.js";
4
4
  import "lodash-es";
5
5
  import "dayjs";
@@ -1,8 +1,8 @@
1
1
  import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, createBlock, createCommentVNode } from "vue";
2
- import { F as FormItem } from "./index-CdaNfYLE.js";
3
- import { _ as _sfc_main$1, N as NumberRangeEditor, I as IndicesEditor } from "./default-value-editor.vue_vue_type_script_setup_true_name_default-value-editor_lang-Dqz0oW0Y.js";
2
+ import { F as FormItem } from "./index-B2dCmlfS.js";
3
+ import { _ as _sfc_main$1, N as NumberRangeEditor, I as IndicesEditor } from "./default-value-editor.vue_vue_type_script_setup_true_name_default-value-editor_lang-B27g8v5V.js";
4
4
  import { F as FIELD_TYPE } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-Bomssr4x.js";
5
- import { D as DecimalDisplayMode } from "./decimal-display-mode-DOmLtCGz.js";
5
+ import { D as DecimalDisplayMode } from "./decimal-display-mode-Cus0Slsz.js";
6
6
  const _sfc_main = /* @__PURE__ */ defineComponent({
7
7
  __name: "double-props",
8
8
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, computed, openBlock, createBlock } from "vue";
2
- import { B as BaseFontEditor } from "./base-font-editor-fpBDIpYD.js";
2
+ import { B as BaseFontEditor } from "./base-font-editor-BKN5HPtV.js";
3
3
  const _sfc_main = /* @__PURE__ */ defineComponent({
4
4
  __name: "double-style",
5
5
  props: {
@@ -1,8 +1,9 @@
1
- import { defineComponent, computed, openBlock, createElementBlock, createVNode, unref, normalizeClass, normalizeStyle, withCtx, Fragment, renderList, createBlock, createCommentVNode } from "vue";
2
- import { C as CellWidgetRenderComp, S as SelectEx, a as CellWidgetDesign } from "./index-CdaNfYLE.js";
1
+ import { defineComponent, computed, openBlock, createElementBlock, createVNode, unref, normalizeStyle, withCtx, Fragment, renderList, createBlock, createCommentVNode } from "vue";
2
+ import { C as CellWidgetRenderComp, S as SelectEx, a as CellWidgetDesign } from "./index-B2dCmlfS.js";
3
3
  import { F as FIELD_TYPE, _ as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-Bomssr4x.js";
4
4
  import { isNil } from "lodash-es";
5
5
  const _hoisted_1 = { class: "enum-design" };
6
+ const DEFAULT_OPTION_GAP = 12;
6
7
  const _sfc_main = /* @__PURE__ */ defineComponent({
7
8
  __name: "enum-design",
8
9
  props: {
@@ -37,15 +38,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
37
38
  return props.fieldWidget.options.find((item) => item.defaultSelected)?.value;
38
39
  }
39
40
  });
40
- const hasOptionGap = computed(() => !isNil(props.fieldWidget.optionGap));
41
+ const optionGap = computed(() => props.fieldWidget.optionGap ?? DEFAULT_OPTION_GAP);
41
42
  const styleVars = computed(() => {
42
43
  const result = {};
43
44
  if (!isNil(props.fieldWidget.iconLabelSpace)) {
44
45
  result["--gct-select-ex-icon-label-space"] = `${props.fieldWidget.iconLabelSpace}px`;
45
46
  }
46
- if (hasOptionGap.value) {
47
- result["--gct-select-ex-option-gap"] = `${props.fieldWidget.optionGap}px`;
48
- }
47
+ result["--gct-select-ex-option-gap"] = `${optionGap.value}px`;
49
48
  return result;
50
49
  });
51
50
  return (_ctx, _cache) => {
@@ -59,8 +58,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
59
58
  "icon-type": iconType.value,
60
59
  direction: __props.fieldWidget.direction,
61
60
  "label-position": __props.fieldWidget.labelPosition,
61
+ "icon-label-space": __props.fieldWidget.iconLabelSpace,
62
+ "option-gap": optionGap.value,
62
63
  style: normalizeStyle(styleVars.value),
63
- class: normalizeClass({ "enum-option-gap-enabled": hasOptionGap.value }),
64
64
  size: "small",
65
65
  placeholder: __props.fieldWidget.placeholder
66
66
  }, {
@@ -74,12 +74,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
74
74
  }), 128)) : createCommentVNode("", true)
75
75
  ]),
76
76
  _: 1
77
- }, 8, ["disabled", "options", "value", "is-multiple", "show-mode", "icon-type", "direction", "label-position", "style", "class", "placeholder"])
77
+ }, 8, ["disabled", "options", "value", "is-multiple", "show-mode", "icon-type", "direction", "label-position", "icon-label-space", "option-gap", "style", "placeholder"])
78
78
  ]);
79
79
  };
80
80
  }
81
81
  });
82
- const enumDesign = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-bd45de7c"]]);
82
+ const enumDesign = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-61ab77f2"]]);
83
83
  export {
84
84
  enumDesign as default
85
85
  };
@@ -1,9 +1,9 @@
1
1
  import { defineComponent, reactive, ref, onMounted, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, createElementVNode, createTextVNode, toDisplayString, createBlock, createCommentVNode, computed, toRaw, normalizeClass, unref, Fragment } from "vue";
2
- import { j as buildUUID, h as useSpreadSheet, I as Icon, F as FormItem, k as draggableComponent } from "./index-CdaNfYLE.js";
2
+ import { j as buildUUID, h as useSpreadSheet, I as Icon, F as FormItem, k as draggableComponent } from "./index-B2dCmlfS.js";
3
3
  import { clone, cloneDeep, differenceBy } from "lodash-es";
4
4
  import { _ as _export_sfc, F as FIELD_TYPE } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-Bomssr4x.js";
5
5
  import { useModal } from "@gct-paas/core";
6
- import { A as AttachFieldEditor } from "./attach-fields-editor-Dy1bN4Aq.js";
6
+ import { A as AttachFieldEditor } from "./attach-fields-editor-DNhfTsft.js";
7
7
  import { a as useNamespace } from "./use-namespace-qtLS8nEh.js";
8
8
  const _hoisted_1$3 = { class: "enum-option-modal" };
9
9
  const _hoisted_2$3 = { class: "enum-option-modal__footer" };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, computed, openBlock, createElementBlock, Fragment, createVNode, createBlock, createCommentVNode } from "vue";
2
- import { B as BaseFontEditor } from "./base-font-editor-fpBDIpYD.js";
3
- import { _ as _sfc_main$1, a as _sfc_main$2 } from "./select-render-type-editor.vue_vue_type_script_setup_true_lang-CVMraRrv.js";
4
- import { C as CellWidgetRenderComp } from "./index-CdaNfYLE.js";
2
+ import { B as BaseFontEditor } from "./base-font-editor-BKN5HPtV.js";
3
+ import { _ as _sfc_main$1, a as _sfc_main$2 } from "./select-render-type-editor.vue_vue_type_script_setup_true_lang-DrkZPjxx.js";
4
+ import { C as CellWidgetRenderComp } from "./index-B2dCmlfS.js";
5
5
  const DEFAULT_LETTER_SPACE = 8;
6
6
  const DEFAULT_OPTION_GAP = 12;
7
7
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -27,18 +27,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
27
27
  );
28
28
  const letterSpace = computed({
29
29
  get() {
30
- return props.widget.iconLabelSpace;
30
+ return props.widget.iconLabelSpace ?? DEFAULT_LETTER_SPACE;
31
31
  },
32
32
  set(v) {
33
- props.widget.iconLabelSpace = v ?? DEFAULT_LETTER_SPACE;
33
+ formState.value.iconLabelSpace = v ?? DEFAULT_LETTER_SPACE;
34
34
  }
35
35
  });
36
36
  const optionGap = computed({
37
37
  get() {
38
- return props.widget.optionGap;
38
+ return props.widget.optionGap ?? DEFAULT_OPTION_GAP;
39
39
  },
40
40
  set(v) {
41
- props.widget.optionGap = v ?? DEFAULT_OPTION_GAP;
41
+ formState.value.optionGap = v ?? DEFAULT_OPTION_GAP;
42
42
  }
43
43
  });
44
44
  return (_ctx, _cache) => {