@gct-paas/excel 0.1.28-beta.3 → 0.1.28-beta.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.
- package/dist/{agg-design-D315o3oJ.js → agg-design-Bzf3ZZhF.js} +1 -1
- package/dist/{agg-style-DEW8WIbh.js → agg-style-Zv_v2UJO.js} +1 -1
- package/dist/{attach-fields-editor-DBEnjpW6.js → attach-fields-editor-DXkqkRw1.js} +1 -1
- package/dist/{barcode-design-BxIPGg77.js → barcode-design-CSx6gAAf.js} +1 -1
- package/dist/base/index.es.js +2 -2
- package/dist/{base-font-editor-BIOgl33K.js → base-font-editor-C9cqqGi5.js} +1 -1
- package/dist/{boolean-design-DVr4bZEy.js → boolean-design-Dw4DatRy.js} +7 -6
- package/dist/{boolean-props-B0KLXvZ-.js → boolean-props-DwIp4Zwq.js} +2 -2
- package/dist/{boolean-style-BWeDymiK.js → boolean-style-D0H564L3.js} +3 -3
- package/dist/{cell-upload-tjeo9_9I.js → cell-upload-9JWJhPHO.js} +7 -10
- package/dist/{date-range-editor-B5llsY67.js → date-range-editor-DWkiA_QD.js} +1 -1
- package/dist/{date-time-design-CWvOkXKJ.js → date-time-design-BpS-Do_p.js} +24 -5
- package/dist/{date-time-props-C7FP2FQs.js → date-time-props-hqyioMkM.js} +2 -2
- package/dist/{date-time-style-DQHbC2kb.js → date-time-style-B_aaS3da.js} +1 -1
- package/dist/{decimal-display-mode-C10AmA0U.js → decimal-display-mode-CaKgCz10.js} +1 -1
- package/dist/{decimal-props-BeVXHFlV.js → decimal-props-DiLtaPxV.js} +3 -3
- package/dist/{decimal-style-BULpIH_X.js → decimal-style-9re81oM7.js} +1 -1
- package/dist/{default-value-editor.vue_vue_type_script_setup_true_name_default-value-editor_lang-DRnYs5nP.js → default-value-editor.vue_vue_type_script_setup_true_name_default-value-editor_lang-CNJIhHnD.js} +1 -1
- package/dist/{diagonal-design-DSo6PIB8.js → diagonal-design-U5XWysqi.js} +1 -1
- package/dist/{double-props-DF-V3K7u.js → double-props-Cpaybvo3.js} +3 -3
- package/dist/{double-style-B_4ezhut.js → double-style-cBxhJhQX.js} +1 -1
- package/dist/{dynamic-table-action-D0tVt9Tj.js → dynamic-table-action-7ukFUpJU.js} +16 -11
- package/dist/{enum-design-BNqAmftL.js → enum-design-B67vcgY-.js} +3 -3
- package/dist/{enum-props-DqXn69z1.js → enum-props-vXkzHR4Z.js} +67 -46
- package/dist/{enum-style-DtXNKCN0.js → enum-style-DmGVd8bC.js} +3 -3
- package/dist/excel.css +687 -438
- package/dist/{exceljs.min-Bx8KXr3N.js → exceljs.min-MSYDxng4.js} +1 -1
- package/dist/{expression-design-Bo0rSi0p.js → expression-design-BRlReq5s.js} +1 -1
- package/dist/{expression-style-DzxFGnuv.js → expression-style-qcOgk-rk.js} +1 -1
- package/dist/{file-design-CUEsgt3a.js → file-design-Z5ecxQwk.js} +1 -1
- package/dist/{file-props-CEZForpH.js → file-props-D8ScpaOl.js} +1 -1
- package/dist/{font-editor-DqdFDCMA.js → font-editor-BZKTSTUt.js} +1 -1
- package/dist/{image-design-C-qh01eG.js → image-design-DXkjLbSR.js} +1 -1
- package/dist/{image-props-BkomuIq9.js → image-props-DoulASx_.js} +1 -1
- package/dist/{index-Ds_OyNIQ.js → index-BWCBcNdV.js} +1 -1
- package/dist/{index-BrrWWM_T.js → index-CIBFgcGY.js} +1 -1
- package/dist/{index-CIkyf2gt.js → index-CbTKJ8Vb.js} +1 -1
- package/dist/{index-D24WtcUi.js → index-CkOKxCir.js} +1 -1
- package/dist/{index-hjdoa839.js → index-DRk6x0JJ.js} +1 -1
- package/dist/{index-BH3C5HAi.js → index-JgFlFQ4I.js} +1478 -1296
- package/dist/index.es.js +44 -44
- package/dist/{integer-props-S81V11-X.js → integer-props-mbP0KfxR.js} +2 -2
- package/dist/{integer-style-DBINUJ8S.js → integer-style-Dj634CGy.js} +1 -1
- package/dist/{org-design-DEibx7uD.js → org-design-DWZI8xev.js} +1 -1
- package/dist/{org-props-z9vw-QnU.js → org-props-BgHRD1sc.js} +1 -1
- package/dist/{org-style-D_mZgP5o.js → org-style-Ce-wyVlF.js} +1 -1
- package/dist/{pagination-design-KKOQr4ND.js → pagination-design-2AaEUsW_.js} +1 -1
- package/dist/paper-widget-design-BrLma-qH.js +4 -0
- package/dist/{qrcode-design-DQPC8D0W.js → qrcode-design-DyvGWhZf.js} +1 -1
- package/dist/{ref-autofill-editor-CTk06EvC.js → ref-autofill-editor-CTI8hdiv.js} +80 -48
- package/dist/{ref-design-C7LbDVQz.js → ref-design-BQ8o1gKm.js} +1 -1
- package/dist/{ref-props-5dv2Le2r.js → ref-props-Cp7j_jms.js} +18 -11
- package/dist/{ref-style-C-acf8uU.js → ref-style-B8IL_Liq.js} +1 -1
- package/dist/{regex-editor-CPyK1Cph.js → regex-editor-DvkeklNp.js} +93 -66
- package/dist/{select-render-type-editor.vue_vue_type_script_setup_true_lang-3KADrKOM.js → select-render-type-editor.vue_vue_type_script_setup_true_lang-CbfUBnrw.js} +1 -1
- package/dist/{signature-design-96ExeDen.js → signature-design-DHw3-abX.js} +1 -1
- package/dist/{signature-props-UjjgQN6D.js → signature-props-DuhWgn75.js} +2 -2
- package/dist/{single-field-drop-bvDGoUmH.js → single-field-drop-BL9v1Qs8.js} +1 -1
- package/dist/src/online-form/src/views/__cell_widgets__/cell-widget-dependency.vue.d.ts +1 -0
- package/dist/src/online-form/src/views/designer/modules/modals/add-dependency-modal/add-dependency-modal.vue.d.ts +5 -1
- package/dist/src/online-form/src/views/designer/modules/panel/comps/signature-config/config-modal.vue.d.ts +2 -0
- package/dist/src/online-form/src/views/designer/modules/panel/comps/signature-config/field-tree-select.vue.d.ts +1 -0
- package/dist/src/online-form/src/views/designer/utils/design-readonly-modal.d.ts +3 -0
- package/dist/src/online-form/src/views/inline-cell/use-inline-icon-catalog.d.ts +2 -3
- package/dist/src/shared/components/field-transfer/components/field-transfer-modal.vue.d.ts +2 -0
- package/dist/src/shared/components/field-transfer/components/modal-wrapper.vue.d.ts +2 -0
- package/dist/src/shared/components/field-transfer/useFieldTransfer.d.ts +2 -0
- package/dist/{text-design-fTcKH2WP.js → text-design-B3gNBFg1.js} +1 -1
- package/dist/{text-design-Cqqg-CXD.js → text-design-BTTZpXWL.js} +4 -4
- package/dist/{text-props-DDPGK0FB.js → text-props-C0cys7hK.js} +2 -2
- package/dist/{text-style-Dn8so8se.js → text-style-Ebi16KlJ.js} +1 -1
- package/dist/{trace-design-C4Hkm65z.js → trace-design-BTM_TXK7.js} +32 -8
- package/dist/{trace-props-CYkbFlQV.js → trace-props--7WlopZy.js} +4 -4
- package/dist/{trace-style-BID6TsGR.js → trace-style-DtOncSoX.js} +1 -1
- package/dist/{user-design-BRIV937X.js → user-design-fMF_h4IG.js} +4 -4
- package/dist/{user-props-D7BmNZdA.js → user-props-BN5AUBD6.js} +1 -1
- package/dist/{user-style-CpNWTvux.js → user-style-DMtM30Mt.js} +1 -1
- package/dist/{value-editor.vue_vue_type_style_index_0_lang-CaN32yJy.js → value-editor.vue_vue_type_style_index_0_lang-ByQlVnL6.js} +1 -1
- package/dist/{widget-barcode-B09sq8dD.js → widget-barcode-cQ7U31QM.js} +2 -2
- package/dist/{widget-diagonal-CgusUMPW.js → widget-diagonal-Dx0b5_zP.js} +2 -2
- package/dist/{widget-image-CGUwduxJ.js → widget-image-YKYe4xWv.js} +1 -1
- package/dist/{widget-line-BI3bmN8C.js → widget-line-BRJ-WX96.js} +1 -1
- package/dist/{widget-pagination-BcPqeHmZ.js → widget-pagination-B1RkybXu.js} +2 -2
- package/dist/{widget-power-BePKBiaW.js → widget-power-CX8Ti_0j.js} +2 -2
- package/dist/{widget-qrcode-CXSRWFTw.js → widget-qrcode-BLQcWqEI.js} +2 -2
- package/dist/{widget-rangelimit-BnaYlGrt.js → widget-rangelimit-_S-cju39.js} +2 -2
- package/dist/{widget-serialnumber-DAnZqp1U.js → widget-serialnumber-DkdIucNK.js} +1 -1
- package/dist/{widget-text-NU67Kyw9.js → widget-text-BhMc6TtO.js} +3 -3
- package/dist/{widget-timediff-D-ZHmsQn.js → widget-timediff-fowoxFrK.js} +1 -1
- package/package.json +1 -1
- package/dist/paper-widget-design-CQOrWl9h.js +0 -4
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent, reactive, ref, onMounted, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, createElementVNode, createTextVNode, toDisplayString, createBlock, createCommentVNode, computed, toRaw, normalizeClass, unref
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent, reactive, ref, onMounted, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, createElementVNode, createTextVNode, toDisplayString, Fragment, createBlock, createCommentVNode, computed, toRaw, normalizeClass, unref } from "vue";
|
|
2
|
+
import { i as useSpreadSheet, I as Icon, b as FormItem, k as draggableComponent } from "./index-JgFlFQ4I.js";
|
|
3
3
|
import { $ as buildUUID, _ as _export_sfc, F as FIELD_TYPE } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-A4vSXZDM.js";
|
|
4
4
|
import { clone, cloneDeep, differenceBy } from "lodash-es";
|
|
5
5
|
import { useModal } from "@gct-paas/core";
|
|
6
|
-
import { A as AttachFieldEditor } from "./attach-fields-editor-
|
|
6
|
+
import { A as AttachFieldEditor } from "./attach-fields-editor-DXkqkRw1.js";
|
|
7
7
|
import { u as useNamespace } from "./use-namespace-BxkK4ofX.js";
|
|
8
8
|
const _hoisted_1$3 = { class: "enum-option-modal" };
|
|
9
9
|
const _hoisted_2$3 = { class: "enum-option-modal__footer" };
|
|
@@ -12,7 +12,8 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
12
12
|
props: {
|
|
13
13
|
option: {},
|
|
14
14
|
isEdit: { type: Boolean },
|
|
15
|
-
modal: {}
|
|
15
|
+
modal: {},
|
|
16
|
+
readonly: { type: Boolean }
|
|
16
17
|
},
|
|
17
18
|
emits: ["update", "create"],
|
|
18
19
|
setup(__props, { emit: __emit }) {
|
|
@@ -29,6 +30,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
29
30
|
formState.display = true;
|
|
30
31
|
};
|
|
31
32
|
const validateAndEmit = async () => {
|
|
33
|
+
if (props.readonly) return;
|
|
32
34
|
await enumFormRef.value?.validate();
|
|
33
35
|
if (props.isEdit) {
|
|
34
36
|
emit("update", clone(formState));
|
|
@@ -78,21 +80,22 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
78
80
|
createVNode(_component_a_form_item, {
|
|
79
81
|
label: _ctx.$t("sys.component.fieldTypeProps.showValue"),
|
|
80
82
|
name: "text",
|
|
81
|
-
rules: [{ required: true }]
|
|
83
|
+
rules: __props.readonly ? [] : [{ required: true }]
|
|
82
84
|
}, {
|
|
83
85
|
default: withCtx(() => [
|
|
84
86
|
createVNode(_component_a_input, {
|
|
85
87
|
value: formState.text,
|
|
86
88
|
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => formState.text = $event),
|
|
87
|
-
placeholder: _ctx.$t("sys.inputText")
|
|
88
|
-
|
|
89
|
+
placeholder: _ctx.$t("sys.inputText"),
|
|
90
|
+
disabled: __props.readonly
|
|
91
|
+
}, null, 8, ["value", "placeholder", "disabled"])
|
|
89
92
|
]),
|
|
90
93
|
_: 1
|
|
91
|
-
}, 8, ["label"]),
|
|
94
|
+
}, 8, ["label", "rules"]),
|
|
92
95
|
createVNode(_component_a_form_item, {
|
|
93
96
|
label: _ctx.$t("sys.component.fieldTypeProps.optionValue"),
|
|
94
97
|
name: "value",
|
|
95
|
-
rules: [
|
|
98
|
+
rules: __props.readonly ? [] : [
|
|
96
99
|
{ required: true },
|
|
97
100
|
{
|
|
98
101
|
validator: validateSpecialCharacters
|
|
@@ -103,8 +106,9 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
103
106
|
createVNode(_component_a_input, {
|
|
104
107
|
value: formState.value,
|
|
105
108
|
"onUpdate:value": _cache[1] || (_cache[1] = ($event) => formState.value = $event),
|
|
106
|
-
placeholder: _ctx.$t("sys.inputText")
|
|
107
|
-
|
|
109
|
+
placeholder: _ctx.$t("sys.inputText"),
|
|
110
|
+
disabled: __props.readonly
|
|
111
|
+
}, null, 8, ["value", "placeholder", "disabled"])
|
|
108
112
|
]),
|
|
109
113
|
_: 1
|
|
110
114
|
}, 8, ["label", "rules"]),
|
|
@@ -115,8 +119,9 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
115
119
|
default: withCtx(() => [
|
|
116
120
|
createVNode(_component_a_switch, {
|
|
117
121
|
checked: formState.defaultSelected,
|
|
118
|
-
"onUpdate:checked": _cache[2] || (_cache[2] = ($event) => formState.defaultSelected = $event)
|
|
119
|
-
|
|
122
|
+
"onUpdate:checked": _cache[2] || (_cache[2] = ($event) => formState.defaultSelected = $event),
|
|
123
|
+
disabled: __props.readonly
|
|
124
|
+
}, null, 8, ["checked", "disabled"])
|
|
120
125
|
]),
|
|
121
126
|
_: 1
|
|
122
127
|
}, 8, ["label"]),
|
|
@@ -127,8 +132,9 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
127
132
|
default: withCtx(() => [
|
|
128
133
|
createVNode(_component_a_switch, {
|
|
129
134
|
checked: formState.display,
|
|
130
|
-
"onUpdate:checked": _cache[3] || (_cache[3] = ($event) => formState.display = $event)
|
|
131
|
-
|
|
135
|
+
"onUpdate:checked": _cache[3] || (_cache[3] = ($event) => formState.display = $event),
|
|
136
|
+
disabled: __props.readonly
|
|
137
|
+
}, null, 8, ["checked", "disabled"])
|
|
132
138
|
]),
|
|
133
139
|
_: 1
|
|
134
140
|
}, 8, ["label"])
|
|
@@ -138,35 +144,37 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
138
144
|
createElementVNode("div", _hoisted_2$3, [
|
|
139
145
|
createVNode(_component_a_button, { onClick: closeModal }, {
|
|
140
146
|
default: withCtx(() => [
|
|
141
|
-
createTextVNode(toDisplayString(_ctx.$t("sys.cancel")), 1)
|
|
147
|
+
createTextVNode(toDisplayString(__props.readonly ? _ctx.$t("sys.closeText") || "关闭" : _ctx.$t("sys.cancel")), 1)
|
|
142
148
|
]),
|
|
143
149
|
_: 1
|
|
144
150
|
}),
|
|
145
|
-
!__props.
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
151
|
+
!__props.readonly ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
152
|
+
!__props.isEdit ? (openBlock(), createBlock(_component_a_button, {
|
|
153
|
+
key: 0,
|
|
154
|
+
type: "primary",
|
|
155
|
+
onClick: saveAndNew
|
|
156
|
+
}, {
|
|
157
|
+
default: withCtx(() => [
|
|
158
|
+
createTextVNode(toDisplayString(_ctx.$t("sys.confirmAndContinue")), 1)
|
|
159
|
+
]),
|
|
160
|
+
_: 1
|
|
161
|
+
})) : createCommentVNode("", true),
|
|
162
|
+
createVNode(_component_a_button, {
|
|
163
|
+
type: "primary",
|
|
164
|
+
onClick: save
|
|
165
|
+
}, {
|
|
166
|
+
default: withCtx(() => [
|
|
167
|
+
createTextVNode(toDisplayString(_ctx.$t("sys.okText")), 1)
|
|
168
|
+
]),
|
|
169
|
+
_: 1
|
|
170
|
+
})
|
|
171
|
+
], 64)) : createCommentVNode("", true)
|
|
164
172
|
])
|
|
165
173
|
]);
|
|
166
174
|
};
|
|
167
175
|
}
|
|
168
176
|
});
|
|
169
|
-
const EnumOptionModal = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-
|
|
177
|
+
const EnumOptionModal = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-4cd5423b"]]);
|
|
170
178
|
const _hoisted_1$2 = { class: "enum-import-title" };
|
|
171
179
|
const _hoisted_2$2 = { class: "title" };
|
|
172
180
|
const _hoisted_3$1 = { class: "desc-ul" };
|
|
@@ -482,13 +490,17 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
482
490
|
createElementVNode("div", {
|
|
483
491
|
class: normalizeClass(unref(ns).e("actions"))
|
|
484
492
|
}, [
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
493
|
+
createElementVNode("i", {
|
|
494
|
+
class: normalizeClass([
|
|
495
|
+
"iconfont",
|
|
496
|
+
"icon-bianji",
|
|
497
|
+
unref(ns).e("edit"),
|
|
498
|
+
"allow-readonly-view"
|
|
499
|
+
]),
|
|
488
500
|
title: _ctx.$t("sys.edit"),
|
|
489
501
|
onClick: _cache[1] || (_cache[1] = ($event) => editOption(__props.option))
|
|
490
|
-
}, null, 10, _hoisted_1$1)
|
|
491
|
-
!__props.disabled ? (openBlock(), createElementBlock(Fragment, { key:
|
|
502
|
+
}, null, 10, _hoisted_1$1),
|
|
503
|
+
!__props.disabled ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
492
504
|
__props.option.display ? (openBlock(), createBlock(SeeViewIcon, {
|
|
493
505
|
key: 0,
|
|
494
506
|
class: "icon",
|
|
@@ -500,17 +512,18 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
500
512
|
}))
|
|
501
513
|
], 64)) : createCommentVNode("", true),
|
|
502
514
|
!__props.disabled ? (openBlock(), createElementBlock("i", {
|
|
503
|
-
key:
|
|
515
|
+
key: 1,
|
|
504
516
|
class: normalizeClass(["iconfont", "icon-shanchu", unref(ns).e("remove")]),
|
|
505
517
|
title: _ctx.$t("sys.delText"),
|
|
506
518
|
onClick: _cache[4] || (_cache[4] = ($event) => removeOption(__props.option))
|
|
507
519
|
}, null, 10, _hoisted_2$1)) : createCommentVNode("", true),
|
|
508
|
-
|
|
520
|
+
!__props.disabled ? (openBlock(), createBlock(_component_a_checkbox, {
|
|
521
|
+
key: 2,
|
|
509
522
|
class: normalizeClass([unref(ns).e("enable"), "!ml-6px"]),
|
|
510
523
|
disabled: __props.disabled,
|
|
511
524
|
checked: enableRef.value,
|
|
512
525
|
"onUpdate:checked": _cache[5] || (_cache[5] = ($event) => enableRef.value = $event)
|
|
513
|
-
}, null, 8, ["class", "disabled", "checked"])
|
|
526
|
+
}, null, 8, ["class", "disabled", "checked"])) : createCommentVNode("", true)
|
|
514
527
|
], 2)
|
|
515
528
|
], 2)),
|
|
516
529
|
enableRef.value ? (openBlock(), createBlock(AttachFieldEditor, {
|
|
@@ -523,7 +536,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
523
536
|
};
|
|
524
537
|
}
|
|
525
538
|
});
|
|
526
|
-
const EnumOptionItem = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
539
|
+
const EnumOptionItem = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-315ca811"]]);
|
|
527
540
|
const _hoisted_1 = { class: "enum-props-title" };
|
|
528
541
|
const _hoisted_2 = { class: "flex" };
|
|
529
542
|
const _hoisted_3 = { class: "ml-4px" };
|
|
@@ -551,6 +564,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
551
564
|
{
|
|
552
565
|
isEdit: !!option,
|
|
553
566
|
option,
|
|
567
|
+
readonly: !!props.disabled,
|
|
554
568
|
onUpdate: onOptionUpdate,
|
|
555
569
|
onCreate: onOptionCreate
|
|
556
570
|
},
|
|
@@ -563,16 +577,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
563
577
|
);
|
|
564
578
|
};
|
|
565
579
|
const addOption = async () => {
|
|
580
|
+
if (props.disabled) return;
|
|
566
581
|
openEditModal();
|
|
567
582
|
};
|
|
568
583
|
const editOption = async (option) => {
|
|
569
584
|
openEditModal(option);
|
|
570
585
|
};
|
|
571
586
|
const removeOption = (option) => {
|
|
587
|
+
if (props.disabled) return;
|
|
572
588
|
const findIndex = formState.value.options.findIndex((item) => item.id === option.id);
|
|
573
589
|
formState.value.options.splice(findIndex, 1);
|
|
574
590
|
};
|
|
575
591
|
const viewOption = (option) => {
|
|
592
|
+
if (props.disabled) return;
|
|
576
593
|
formState.value.options.forEach((item) => {
|
|
577
594
|
if (item.id === option.id) {
|
|
578
595
|
item.display = true;
|
|
@@ -580,6 +597,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
580
597
|
});
|
|
581
598
|
};
|
|
582
599
|
const hiddenOption = (option) => {
|
|
600
|
+
if (props.disabled) return;
|
|
583
601
|
formState.value.options.forEach((item) => {
|
|
584
602
|
if (item.id === option.id) {
|
|
585
603
|
item.display = false;
|
|
@@ -596,15 +614,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
596
614
|
}
|
|
597
615
|
};
|
|
598
616
|
const onOptionUpdate = (option) => {
|
|
617
|
+
if (props.disabled) return;
|
|
599
618
|
const findIndex = formState.value.options.findIndex((item) => item.id === option.id);
|
|
600
619
|
formState.value.options.splice(findIndex, 1, option);
|
|
601
620
|
afterOptionChange(option);
|
|
602
621
|
};
|
|
603
622
|
const onOptionCreate = (option) => {
|
|
623
|
+
if (props.disabled) return;
|
|
604
624
|
formState.value.options.push(option);
|
|
605
625
|
afterOptionChange(option);
|
|
606
626
|
};
|
|
607
627
|
const handleOpenImportModal = async () => {
|
|
628
|
+
if (props.disabled) return;
|
|
608
629
|
const res = await window.NocodeAdapter.utils.overlay.modal(
|
|
609
630
|
EnumImportModal,
|
|
610
631
|
{},
|
|
@@ -707,7 +728,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
707
728
|
};
|
|
708
729
|
}
|
|
709
730
|
});
|
|
710
|
-
const enumProps = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
731
|
+
const enumProps = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-958ac8d2"]]);
|
|
711
732
|
export {
|
|
712
733
|
enumProps as default
|
|
713
734
|
};
|
|
@@ -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-
|
|
3
|
-
import { _ as _sfc_main$1, a as _sfc_main$2 } from "./select-render-type-editor.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { C as CellWidgetRenderComp } from "./index-
|
|
2
|
+
import { B as BaseFontEditor } from "./base-font-editor-C9cqqGi5.js";
|
|
3
|
+
import { _ as _sfc_main$1, a as _sfc_main$2 } from "./select-render-type-editor.vue_vue_type_script_setup_true_lang-CbfUBnrw.js";
|
|
4
|
+
import { C as CellWidgetRenderComp } from "./index-JgFlFQ4I.js";
|
|
5
5
|
const DEFAULT_LETTER_SPACE = 8;
|
|
6
6
|
const DEFAULT_OPTION_GAP = 12;
|
|
7
7
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|