@gct-paas/excel 0.1.28-beta.2 → 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/{VueVideoPlayer-B6X1JmEL.js → VueVideoPlayer-1-3CIikO.js} +2 -2
- package/dist/{agg-design-DZpDRz0Y.js → agg-design-Bzf3ZZhF.js} +1 -1
- package/dist/{agg-props-ockP_cAM.js → agg-props-BJHg6Z1O.js} +1 -1
- package/dist/{agg-style-C7nWM2if.js → agg-style-Zv_v2UJO.js} +1 -1
- package/dist/{align-editor-DpWvsI_x.js → align-editor-CO7dorCE.js} +1 -1
- package/dist/{attach-fields-editor-BbWYEXfG.js → attach-fields-editor-DXkqkRw1.js} +2 -2
- package/dist/{barcode-design-D1hSeWVJ.js → barcode-design-CSx6gAAf.js} +2 -2
- package/dist/base/index.es.js +25 -25
- package/dist/{base-font-editor-DFHc_3JJ.js → base-font-editor-C9cqqGi5.js} +2 -2
- package/dist/{boolean-design-UO0nUx1k.js → boolean-design-Dw4DatRy.js} +8 -7
- package/dist/{boolean-props--l1hf_NI.js → boolean-props-DwIp4Zwq.js} +3 -3
- package/dist/{boolean-style-Dqwd3N4b.js → boolean-style-D0H564L3.js} +4 -4
- package/dist/{cell-upload-PkWTiWYW.js → cell-upload-9JWJhPHO.js} +8 -11
- package/dist/{date-range-editor-CVQsTg3G.js → date-range-editor-DWkiA_QD.js} +2 -2
- package/dist/{date-time-design-DmeUPsi-.js → date-time-design-BpS-Do_p.js} +25 -6
- package/dist/{date-time-props-DqAAdD7L.js → date-time-props-hqyioMkM.js} +3 -3
- package/dist/{date-time-style-BTtKVpV4.js → date-time-style-B_aaS3da.js} +1 -1
- package/dist/{decimal-design-DQ-61MMF.js → decimal-design-BkSj6vZv.js} +1 -1
- package/dist/{decimal-display-mode-CPL-jNCK.js → decimal-display-mode-CaKgCz10.js} +2 -2
- package/dist/{decimal-props-DUeC4_o5.js → decimal-props-DiLtaPxV.js} +4 -4
- package/dist/{decimal-style-B-0QILJa.js → decimal-style-9re81oM7.js} +1 -1
- package/dist/{default-value-editor.vue_vue_type_script_setup_true_name_default-value-editor_lang-CeTlpjT4.js → default-value-editor.vue_vue_type_script_setup_true_name_default-value-editor_lang-CNJIhHnD.js} +2 -2
- package/dist/{diagonal-design-Cx7RTy6_.js → diagonal-design-U5XWysqi.js} +2 -2
- package/dist/{double-design-Bpuy9Ss3.js → double-design-Soz2qnO_.js} +1 -1
- package/dist/{double-props-BLp5rMS0.js → double-props-Cpaybvo3.js} +6 -4
- package/dist/{double-style-BQT4UDRo.js → double-style-cBxhJhQX.js} +1 -1
- package/dist/{dynamic-table-action-CT_aYOca.js → dynamic-table-action-7ukFUpJU.js} +18 -13
- package/dist/{dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-SAa6KGYz.js → dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-A4vSXZDM.js} +70 -38
- package/dist/{edit.utils-CXmmCnxE-CrBcZqbG.js → edit.utils-CXmmCnxE-Cf_9ualz.js} +1 -1
- package/dist/{enum-design-DTh9UhHf.js → enum-design-B67vcgY-.js} +4 -4
- package/dist/{enum-props-J-3PLabW.js → enum-props-vXkzHR4Z.js} +68 -47
- package/dist/{enum-style-h5lmzZD_.js → enum-style-DmGVd8bC.js} +3 -3
- package/dist/excel.css +849 -477
- package/dist/{exceljs.min-mW_Nqru2.js → exceljs.min-MSYDxng4.js} +2 -2
- package/dist/{expression-design-Cbi_6pnX.js → expression-design-BRlReq5s.js} +1 -1
- package/dist/{expression-props-DuvdDUWt.js → expression-props-B3IfAn_n.js} +1 -1
- package/dist/{expression-style-CcdTrGye.js → expression-style-qcOgk-rk.js} +1 -1
- package/dist/{file-design-Cix4ztNq.js → file-design-Z5ecxQwk.js} +1 -1
- package/dist/{file-props-DvZgFCjv.js → file-props-D8ScpaOl.js} +2 -2
- package/dist/{file-style-DTXliETB.js → file-style-KTLlX1Xk.js} +1 -1
- package/dist/{font-editor-D_4CECiK.js → font-editor-BZKTSTUt.js} +3 -3
- package/dist/{image-design-IaQbw4Bv.js → image-design-DXkjLbSR.js} +1 -1
- package/dist/{image-design-BxFQTm4-.js → image-design-Dxqw3EYz.js} +2 -2
- package/dist/{image-props-BmLfiJIb.js → image-props-DoulASx_.js} +1 -1
- package/dist/{image-style-BuGQiWh9.js → image-style-D1x-8NR-.js} +1 -1
- package/dist/{index-CvefH3Ld.js → index-05ayf14V.js} +1 -1
- package/dist/{index-HHW_GvS9.js → index-5MXIxcWc.js} +1 -1
- package/dist/{index-CSGDQQxf.js → index-724k4MNR.js} +1 -1
- package/dist/{index-V3KPtSlA.js → index-8G5s2ZQ6.js} +1 -1
- package/dist/{index-CmfE-VkX.js → index-B2y2QeqF.js} +1 -1
- package/dist/{index-1kSDRqJL.js → index-BF8VHGxb.js} +1 -1
- package/dist/{index-DnxIXenr.js → index-BWCBcNdV.js} +2 -2
- package/dist/{index-hkXYQoCV.js → index-BXr7raUl.js} +1 -1
- package/dist/{index-DuELqbrc.js → index-Be1nADWM.js} +1 -1
- package/dist/{index-DJsySg7Z.js → index-BzieZby5.js} +1 -1
- package/dist/{index-BuucdbMD.js → index-C6Su_s3z.js} +1 -1
- package/dist/{index-BCFgHqQ4.js → index-CCvgTGlG.js} +1 -1
- package/dist/{index-BRifPJNN.js → index-CIBFgcGY.js} +2 -2
- package/dist/{index-CYc23F99.js → index-CNCp92QR.js} +1 -1
- package/dist/{index-PgmRu5Zh.js → index-CP9739XL.js} +1 -1
- package/dist/{index-CdoJjtvt.js → index-CbTKJ8Vb.js} +2 -2
- package/dist/{index-T_P3hv-X.js → index-CkOKxCir.js} +2 -2
- package/dist/{index-5E89tzgQ.js → index-CpZxd4no.js} +1 -1
- package/dist/{index-BUEsJ6db.js → index-CwMFbS5U.js} +1 -1
- package/dist/{index-VU8yct3A.js → index-D-Z8UXii.js} +1 -1
- package/dist/{index-C7XazAkv.js → index-D2Kc_f3x.js} +12 -4
- package/dist/{index-Dl48Dmuf.js → index-D9A5qfUO.js} +1 -1
- package/dist/{index-aZhb-M_v.js → index-DQ9uX7Vt.js} +1 -1
- package/dist/{index-uIR6j0YE.js → index-DQGijVov.js} +1 -1
- package/dist/{index-6AnvwL1T.js → index-DQXeogJQ.js} +1 -1
- package/dist/{index-DAVndG-D.js → index-DRk6x0JJ.js} +2 -2
- package/dist/{index-BSWx0ysi.js → index-Dg3kgEbz.js} +1 -1
- package/dist/{index-CO1Iw_97.js → index-DoMwWvfm.js} +1 -1
- package/dist/{index-DG8SGSHV.js → index-DsgxTMoz.js} +1 -1
- package/dist/{index-DayP0trN.js → index-IK2pHAVC.js} +1 -1
- package/dist/{index-hcp9zj3F.js → index-JgFlFQ4I.js} +3952 -1996
- package/dist/{index-DIHeOfRf.js → index-LZV2l4WV.js} +1 -1
- package/dist/{index-BKQgEYOt.js → index-S2TfP2Vh.js} +1 -1
- package/dist/index.es.js +45 -45
- package/dist/{integer-design-B48BapfF.js → integer-design-D95d-Pt_.js} +1 -1
- package/dist/{integer-props-G5n3P-Vt.js → integer-props-mbP0KfxR.js} +4 -4
- package/dist/{integer-style-yziEYd90.js → integer-style-Dj634CGy.js} +1 -1
- package/dist/{mb-render-DiWQ5hOn.js → mb-render-9ra8O2Uw.js} +1 -1
- package/dist/{number-input-ex-6e_-B7y7.js → number-input-ex-B1VK06Km.js} +1 -1
- package/dist/{org-design-DEibx7uD.js → org-design-DWZI8xev.js} +1 -1
- package/dist/{org-props-uZzEnRfn.js → org-props-BgHRD1sc.js} +2 -2
- package/dist/{org-style-CtYMw9ob.js → org-style-Ce-wyVlF.js} +1 -1
- package/dist/{pagination-design-CdnyxoR4.js → pagination-design-2AaEUsW_.js} +2 -2
- package/dist/paper-widget-design-BrLma-qH.js +4 -0
- package/dist/{qrcode-design-Bh_lT1Yn.js → qrcode-design-DyvGWhZf.js} +1 -1
- package/dist/{ref-autofill-editor-99WrBySm.js → ref-autofill-editor-CTI8hdiv.js} +81 -49
- package/dist/{ref-design-C7LbDVQz.js → ref-design-BQ8o1gKm.js} +1 -1
- package/dist/{ref-props-BGzOHDvi.js → ref-props-Cp7j_jms.js} +19 -12
- package/dist/{ref-style-C1-VGUt9.js → ref-style-B8IL_Liq.js} +1 -1
- package/dist/{regex-editor-BAjvqlvo.js → regex-editor-DvkeklNp.js} +94 -67
- package/dist/{revo-grid.entry-Cg-4cMIo.js → revo-grid.entry-BEHoqd3N.js} +1 -1
- package/dist/{revogr-attribution_7.entry-DzamtFvo.js → revogr-attribution_7.entry-CCbwjKQa.js} +3 -3
- package/dist/{revogr-clipboard_3.entry-CIxDfW07.js → revogr-clipboard_3.entry-g_n_i8Qx.js} +2 -2
- package/dist/{revogr-data_4.entry-BNENcgpR.js → revogr-data_4.entry-BiefA7eT.js} +2 -2
- package/dist/{revogr-filter-panel.entry-BrYsomo0.js → revogr-filter-panel.entry-BoTWkxWM.js} +1 -1
- package/dist/{select-render-type-editor.vue_vue_type_script_setup_true_lang-Dg2h8nwx.js → select-render-type-editor.vue_vue_type_script_setup_true_lang-CbfUBnrw.js} +2 -2
- package/dist/{serialnumber-design-BsAogg1u.js → serialnumber-design-C952ChSv.js} +1 -1
- package/dist/shared/index.es.js +8 -8
- package/dist/{signature-design-sSyiIxFB.js → signature-design-DHw3-abX.js} +1 -1
- package/dist/{signature-props-CYmd9GVl.js → signature-props-DuhWgn75.js} +3 -3
- package/dist/{signature-style-wLJo19Kd.js → signature-style-DjWhk9Ap.js} +1 -1
- package/dist/{single-field-drop-CilJB5DX.js → single-field-drop-BL9v1Qs8.js} +2 -2
- package/dist/{size-editor-DnyvSWUn.js → size-editor-7VfFq73X.js} +1 -1
- package/dist/src/adapter/adapter.d.ts +10 -0
- package/dist/src/adapter/setup.d.ts +4 -0
- package/dist/src/nocode-base/src/hooks/material-consume/types.d.ts +14 -0
- 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/constants/index.d.ts +2 -0
- package/dist/src/online-form/src/views/designer/hooks/useAllSpreadSheets.d.ts +72 -0
- package/dist/src/online-form/src/views/designer/hooks/useSpreadSheet.d.ts +103 -2
- 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/modules/panel/material-consumption/policy-items/consume-item.vue.d.ts +20 -0
- package/dist/src/online-form/src/views/designer/modules/panel/material-consumption/policy-items/qty-item/bom-formula-editor.vue.d.ts +18 -0
- package/dist/src/online-form/src/views/designer/modules/panel/material-consumption/policy-items/qty-item/qty-item.vue.d.ts +15 -0
- package/dist/src/online-form/src/views/designer/modules/panel/material-consumption/policy-items/substitute-item.vue.d.ts +23 -0
- package/dist/src/online-form/src/views/designer/modules/panel/sub-table/comps/use-dynamic-sub-table-panel.d.ts +54 -0
- package/dist/src/online-form/src/views/designer/modules/panel/sub-table/material-consumption/bom-modal.vue.d.ts +1 -1
- package/dist/src/online-form/src/views/designer/types/index.d.ts +2 -15
- 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/online-form/src/views/render/__components__/_field_/trace/composables/assoc-filter.d.ts +10 -4
- 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/src/shared/components/rdo-tree-select/rdo-tree-select.vue.d.ts +1 -0
- package/dist/src/shared/enum/field-type.d.ts +12 -0
- package/dist/{text-design-DKPFi1Rh.js → text-design-B3gNBFg1.js} +2 -2
- package/dist/{text-design-7Cct8yh2.js → text-design-BTTZpXWL.js} +5 -5
- package/dist/{text-props-a-16iwJu.js → text-props-C0cys7hK.js} +5 -5
- package/dist/{text-style-CRqOGAZr.js → text-style-Ebi16KlJ.js} +1 -1
- package/dist/{throttle-Cpk1LoGk-BYyz4gtI.js → throttle-Cpk1LoGk-BUMzCKSe.js} +1 -1
- package/dist/{timediff-design-JHt1-ug6.js → timediff-design-SR372i6S.js} +1 -1
- package/dist/{trace-design-DAHDTG5n.js → trace-design-BTM_TXK7.js} +33 -9
- package/dist/{trace-props-B5FBtpNR.js → trace-props--7WlopZy.js} +6 -6
- package/dist/{trace-style-CgdePCcv.js → trace-style-DtOncSoX.js} +1 -1
- package/dist/{user-design-BRIV937X.js → user-design-fMF_h4IG.js} +4 -4
- package/dist/{user-props-BJVjolL7.js → user-props-BN5AUBD6.js} +2 -2
- package/dist/{user-style-D17ZPHqU.js → user-style-DMtM30Mt.js} +1 -1
- package/dist/{value-editor.vue_vue_type_style_index_0_lang-J3MR2K39.js → value-editor.vue_vue_type_style_index_0_lang-ByQlVnL6.js} +2 -2
- package/dist/{version-select-Bw8yzDaH.js → version-select-Bt8nfEu4.js} +1 -1
- package/dist/web-render/index.es.js +2 -2
- package/dist/{widget-barcode-IbgHM5xo.js → widget-barcode-cQ7U31QM.js} +4 -4
- package/dist/{widget-diagonal-juPAlqEe.js → widget-diagonal-Dx0b5_zP.js} +3 -3
- package/dist/{widget-image-Dnaej-nk.js → widget-image-YKYe4xWv.js} +5 -5
- package/dist/{widget-line-DL9jw_oY.js → widget-line-BRJ-WX96.js} +2 -2
- package/dist/{widget-pagination-BlRJo3n4.js → widget-pagination-B1RkybXu.js} +5 -5
- package/dist/{widget-power-CIC6itUt.js → widget-power-CX8Ti_0j.js} +3 -3
- package/dist/{widget-qrcode-BWEOVEZg.js → widget-qrcode-BLQcWqEI.js} +3 -3
- package/dist/{widget-rangelimit-C4KG56d-.js → widget-rangelimit-_S-cju39.js} +3 -3
- package/dist/{widget-serialnumber-DnfRRyBY.js → widget-serialnumber-DkdIucNK.js} +1 -1
- package/dist/{widget-text-C7d0ZrX3.js → widget-text-BhMc6TtO.js} +5 -5
- package/dist/{widget-timediff-FAvqRtXk.js → widget-timediff-fowoxFrK.js} +2 -2
- package/package.json +1 -1
- package/dist/paper-widget-design-gmMHiQFV.js +0 -4
|
@@ -823,6 +823,8 @@ var FIELD_TYPE = /* @__PURE__ */ ((FIELD_TYPE2) => {
|
|
|
823
823
|
FIELD_TYPE2["DESTRUCTIVE_TEST_QTY"] = "destructive_test_qty";
|
|
824
824
|
FIELD_TYPE2["PRODUCT_CHECK_QTY"] = "product_check_qty";
|
|
825
825
|
FIELD_TYPE2["MATERIAL_CHECK_QTY"] = "material_check_qty";
|
|
826
|
+
FIELD_TYPE2["OPERATION_RECEIVE_QTY"] = "operation_receive_qty";
|
|
827
|
+
FIELD_TYPE2["OPERATION_OUTPUT_QTY"] = "operation_output_qty";
|
|
826
828
|
FIELD_TYPE2["OF_INST_NUM"] = "of_inst_num";
|
|
827
829
|
FIELD_TYPE2["PRODUCTION_QTY"] = "production_qty";
|
|
828
830
|
FIELD_TYPE2["DEVICE_REF"] = "device_ref";
|
|
@@ -938,6 +940,8 @@ var FIELD_TYPE_BUSINESS = /* @__PURE__ */ ((FIELD_TYPE_BUSINESS2) => {
|
|
|
938
940
|
FIELD_TYPE_BUSINESS2["DESTRUCTIVE_TEST_QTY"] = "destructive_test_qty";
|
|
939
941
|
FIELD_TYPE_BUSINESS2["PRODUCT_CHECK_QTY"] = "product_check_qty";
|
|
940
942
|
FIELD_TYPE_BUSINESS2["MATERIAL_CHECK_QTY"] = "material_check_qty";
|
|
943
|
+
FIELD_TYPE_BUSINESS2["OPERATION_RECEIVE_QTY"] = "operation_receive_qty";
|
|
944
|
+
FIELD_TYPE_BUSINESS2["OPERATION_OUTPUT_QTY"] = "operation_output_qty";
|
|
941
945
|
FIELD_TYPE_BUSINESS2["OF_INST_NUM"] = "of_inst_num";
|
|
942
946
|
FIELD_TYPE_BUSINESS2["PRODUCTION_QTY"] = "production_qty";
|
|
943
947
|
return FIELD_TYPE_BUSINESS2;
|
|
@@ -1188,6 +1192,14 @@ const FieldTypeToJs = {
|
|
|
1188
1192
|
"not_good_qty"
|
|
1189
1193
|
/* NOT_GOOD_QTY */
|
|
1190
1194
|
]: "number",
|
|
1195
|
+
[
|
|
1196
|
+
"operation_receive_qty"
|
|
1197
|
+
/* OPERATION_RECEIVE_QTY */
|
|
1198
|
+
]: "number",
|
|
1199
|
+
[
|
|
1200
|
+
"operation_output_qty"
|
|
1201
|
+
/* OPERATION_OUTPUT_QTY */
|
|
1202
|
+
]: "number",
|
|
1191
1203
|
[
|
|
1192
1204
|
"report_start_time"
|
|
1193
1205
|
/* REPORT_START_TIME */
|
|
@@ -1541,6 +1553,14 @@ const FieldIconMap = {
|
|
|
1541
1553
|
"not_good_qty"
|
|
1542
1554
|
/* NOT_GOOD_QTY */
|
|
1543
1555
|
]: "icon-icon_buliangpinshuliang",
|
|
1556
|
+
[
|
|
1557
|
+
"operation_receive_qty"
|
|
1558
|
+
/* OPERATION_RECEIVE_QTY */
|
|
1559
|
+
]: "icon-xiaoshu",
|
|
1560
|
+
[
|
|
1561
|
+
"operation_output_qty"
|
|
1562
|
+
/* OPERATION_OUTPUT_QTY */
|
|
1563
|
+
]: "icon-xiaoshu",
|
|
1544
1564
|
[
|
|
1545
1565
|
"report_start_time"
|
|
1546
1566
|
/* REPORT_START_TIME */
|
|
@@ -60154,6 +60174,12 @@ const useOnlineFormTransformField2Component = (fieldType) => {
|
|
|
60154
60174
|
[FIELD_TYPE.NOT_GOOD_QTY]: {
|
|
60155
60175
|
cmpKey: ComponentTypeEnum.InputDouble
|
|
60156
60176
|
},
|
|
60177
|
+
[FIELD_TYPE.OPERATION_RECEIVE_QTY]: {
|
|
60178
|
+
cmpKey: ComponentTypeEnum.InputDouble
|
|
60179
|
+
},
|
|
60180
|
+
[FIELD_TYPE.OPERATION_OUTPUT_QTY]: {
|
|
60181
|
+
cmpKey: ComponentTypeEnum.InputDouble
|
|
60182
|
+
},
|
|
60157
60183
|
[FIELD_TYPE.REPORT_START_TIME]: {
|
|
60158
60184
|
cmpKey: ComponentTypeEnum.DateTimepicker
|
|
60159
60185
|
},
|
|
@@ -60974,7 +61000,7 @@ function assembleRules(input) {
|
|
|
60974
61000
|
if (!enableRangeValidate) {
|
|
60975
61001
|
return RuleProps;
|
|
60976
61002
|
}
|
|
60977
|
-
if (minValidateMode === RangeValidateMode.Fixed_Number) {
|
|
61003
|
+
if (minValidateMode === RangeValidateMode.Fixed_Number && !isEmptyValue$1(minValue)) {
|
|
60978
61004
|
RuleProps.push(
|
|
60979
61005
|
createRule((_rule, value) => {
|
|
60980
61006
|
if (isEmptyValue$1(value)) return true;
|
|
@@ -60994,6 +61020,9 @@ function assembleRules(input) {
|
|
|
60994
61020
|
currentFormData,
|
|
60995
61021
|
options?.formData
|
|
60996
61022
|
);
|
|
61023
|
+
if (isEmptyValue$1(formulaValue)) {
|
|
61024
|
+
return Promise.resolve();
|
|
61025
|
+
}
|
|
60997
61026
|
const parsedMin = parseFloat(formulaValue);
|
|
60998
61027
|
if (!isNaN(parsedMin)) {
|
|
60999
61028
|
if (isEmptyValue$1(value)) {
|
|
@@ -61011,7 +61040,7 @@ function assembleRules(input) {
|
|
|
61011
61040
|
}
|
|
61012
61041
|
});
|
|
61013
61042
|
}
|
|
61014
|
-
if (maxValidateMode === RangeValidateMode.Fixed_Number) {
|
|
61043
|
+
if (maxValidateMode === RangeValidateMode.Fixed_Number && !isEmptyValue$1(maxValue)) {
|
|
61015
61044
|
RuleProps.push(
|
|
61016
61045
|
createRule((_rule, value) => {
|
|
61017
61046
|
if (isEmptyValue$1(value)) return true;
|
|
@@ -61031,6 +61060,9 @@ function assembleRules(input) {
|
|
|
61031
61060
|
currentFormData,
|
|
61032
61061
|
options?.formData
|
|
61033
61062
|
);
|
|
61063
|
+
if (isEmptyValue$1(formulaValue)) {
|
|
61064
|
+
return Promise.resolve();
|
|
61065
|
+
}
|
|
61034
61066
|
const parsedMax = parseFloat(formulaValue);
|
|
61035
61067
|
if (!isNaN(parsedMax)) {
|
|
61036
61068
|
if (isEmptyValue$1(value)) {
|
|
@@ -66049,27 +66081,27 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
66049
66081
|
case "revo-grid":
|
|
66050
66082
|
return import(
|
|
66051
66083
|
/* webpackMode: "lazy" */
|
|
66052
|
-
"./revo-grid.entry-
|
|
66084
|
+
"./revo-grid.entry-BEHoqd3N.js"
|
|
66053
66085
|
).then(processMod, consoleError);
|
|
66054
66086
|
case "revogr-filter-panel":
|
|
66055
66087
|
return import(
|
|
66056
66088
|
/* webpackMode: "lazy" */
|
|
66057
|
-
"./revogr-filter-panel.entry-
|
|
66089
|
+
"./revogr-filter-panel.entry-BoTWkxWM.js"
|
|
66058
66090
|
).then(processMod, consoleError);
|
|
66059
66091
|
case "revogr-attribution_7":
|
|
66060
66092
|
return import(
|
|
66061
66093
|
/* webpackMode: "lazy" */
|
|
66062
|
-
"./revogr-attribution_7.entry-
|
|
66094
|
+
"./revogr-attribution_7.entry-CCbwjKQa.js"
|
|
66063
66095
|
).then(processMod, consoleError);
|
|
66064
66096
|
case "revogr-clipboard_3":
|
|
66065
66097
|
return import(
|
|
66066
66098
|
/* webpackMode: "lazy" */
|
|
66067
|
-
"./revogr-clipboard_3.entry-
|
|
66099
|
+
"./revogr-clipboard_3.entry-g_n_i8Qx.js"
|
|
66068
66100
|
).then(processMod, consoleError);
|
|
66069
66101
|
case "revogr-data_4":
|
|
66070
66102
|
return import(
|
|
66071
66103
|
/* webpackMode: "lazy" */
|
|
66072
|
-
"./revogr-data_4.entry-
|
|
66104
|
+
"./revogr-data_4.entry-BiefA7eT.js"
|
|
66073
66105
|
).then(processMod, consoleError);
|
|
66074
66106
|
}
|
|
66075
66107
|
}
|
|
@@ -76305,7 +76337,7 @@ function groupFixedTableRows(rows, options) {
|
|
|
76305
76337
|
return result;
|
|
76306
76338
|
}
|
|
76307
76339
|
export {
|
|
76308
|
-
|
|
76340
|
+
buildUUID as $,
|
|
76309
76341
|
commonjsGlobal as A,
|
|
76310
76342
|
BwipCodeType as B,
|
|
76311
76343
|
CreateType as C,
|
|
@@ -76322,29 +76354,29 @@ export {
|
|
|
76322
76354
|
mitt as N,
|
|
76323
76355
|
Orientation as O,
|
|
76324
76356
|
PaginationFormat as P,
|
|
76325
|
-
|
|
76326
|
-
|
|
76357
|
+
PlatformEnum as Q,
|
|
76358
|
+
LabelPosition as R,
|
|
76327
76359
|
SUB_TABLE_PANEL_TYPE_NAME as S,
|
|
76328
|
-
|
|
76360
|
+
BooleanShowMode as T,
|
|
76329
76361
|
UniqueConstraintType as U,
|
|
76330
|
-
|
|
76331
|
-
|
|
76332
|
-
|
|
76333
|
-
|
|
76334
|
-
|
|
76362
|
+
SignatureNumberTypeEnum as V,
|
|
76363
|
+
SignatureTimeTypeEnum as W,
|
|
76364
|
+
SignShowTypeEnum as X,
|
|
76365
|
+
SignatureTypeEnum as Y,
|
|
76366
|
+
PaperSizeMap as Z,
|
|
76335
76367
|
_export_sfc as _,
|
|
76336
76368
|
getProfile as a,
|
|
76337
76369
|
F$5 as a$,
|
|
76338
|
-
|
|
76339
|
-
|
|
76340
|
-
|
|
76341
|
-
|
|
76342
|
-
|
|
76343
|
-
|
|
76344
|
-
|
|
76345
|
-
|
|
76346
|
-
|
|
76347
|
-
|
|
76370
|
+
FieldIconMap as a0,
|
|
76371
|
+
CellWidgetViewState as a1,
|
|
76372
|
+
DiagonalDirection as a2,
|
|
76373
|
+
WidgetImageSizeMode as a3,
|
|
76374
|
+
LineDirection as a4,
|
|
76375
|
+
TimeDiffFormat as a5,
|
|
76376
|
+
DiagonalVertex as a6,
|
|
76377
|
+
resolveDiagonalVertex as a7,
|
|
76378
|
+
getThemeColorByTableType as a8,
|
|
76379
|
+
ViewTypeEnum as a9,
|
|
76348
76380
|
DateFormat as aA,
|
|
76349
76381
|
renderUtils as aB,
|
|
76350
76382
|
BindCmpStyleEnum as aC,
|
|
@@ -76372,18 +76404,18 @@ export {
|
|
|
76372
76404
|
runRowHandler as aY,
|
|
76373
76405
|
F$8 as aZ,
|
|
76374
76406
|
FILL_FROM_INVENTORY_OPTION$2 as a_,
|
|
76375
|
-
|
|
76376
|
-
|
|
76377
|
-
|
|
76378
|
-
|
|
76379
|
-
|
|
76380
|
-
|
|
76381
|
-
|
|
76382
|
-
|
|
76383
|
-
|
|
76384
|
-
|
|
76385
|
-
|
|
76386
|
-
|
|
76407
|
+
useThrottleFn as aa,
|
|
76408
|
+
noop as ab,
|
|
76409
|
+
isIOS as ac,
|
|
76410
|
+
isDynamicSubTablePanelType as ad,
|
|
76411
|
+
isFixedSubTablePanelType as ae,
|
|
76412
|
+
EmptySymbol as af,
|
|
76413
|
+
ASSIGNMENTSTRATEGY_ENUM as ag,
|
|
76414
|
+
Dependency_ENUM as ah,
|
|
76415
|
+
ExpressionModeEnum as ai,
|
|
76416
|
+
ExpressionTabEnum as aj,
|
|
76417
|
+
ReturnTypeEnum as ak,
|
|
76418
|
+
ImageDisplayModeEnum as al,
|
|
76387
76419
|
EntityModelCategoryEnum as am,
|
|
76388
76420
|
CheckDsTypeEnum as an,
|
|
76389
76421
|
DeviceLink as ao,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { dU as EDIT_INPUT_WR, dV as keyValues, dM as codesLetter } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
1
|
+
import { dU as EDIT_INPUT_WR, dV as keyValues, dM as codesLetter } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-A4vSXZDM.js";
|
|
2
2
|
function isClear(code) {
|
|
3
3
|
return codesLetter.BACKSPACE === code || codesLetter.DELETE === code;
|
|
4
4
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, toDisplayString, createCommentVNode, createVNode, unref, normalizeStyle, withCtx, Fragment, renderList, createBlock } from "vue";
|
|
2
|
-
import { C as CellWidgetRenderComp, S as SelectEx, a as CellWidgetDesign } from "./index-
|
|
3
|
-
import { F as FIELD_TYPE, _ as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
2
|
+
import { C as CellWidgetRenderComp, S as SelectEx, a as CellWidgetDesign } from "./index-JgFlFQ4I.js";
|
|
3
|
+
import { F as FIELD_TYPE, _ as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-A4vSXZDM.js";
|
|
4
4
|
import { isNil } from "lodash-es";
|
|
5
5
|
const _hoisted_1 = {
|
|
6
6
|
key: 0,
|
|
@@ -73,7 +73,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
73
73
|
"option-gap": optionGap.value,
|
|
74
74
|
style: normalizeStyle(styleVars.value),
|
|
75
75
|
size: "small",
|
|
76
|
-
placeholder: __props.fieldWidget.placeholder
|
|
76
|
+
placeholder: __props.fieldWidget.placeholder ?? _ctx.$t("sys.chooseText")
|
|
77
77
|
}, {
|
|
78
78
|
suffix: withCtx(({ option }) => [
|
|
79
79
|
!!getOptionMeta(option.value)?.attachFields ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(getOptionMeta(option.value).attachFields, (field) => {
|
|
@@ -91,7 +91,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
91
91
|
};
|
|
92
92
|
}
|
|
93
93
|
});
|
|
94
|
-
const enumDesign = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
94
|
+
const enumDesign = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c1932c21"]]);
|
|
95
95
|
export {
|
|
96
96
|
enumDesign as default
|
|
97
97
|
};
|
|
@@ -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 {
|
|
3
|
-
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
|
+
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({
|