star-horse-lowcode 2.8.1 → 2.8.3

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/index.es.js CHANGED
@@ -68600,9 +68600,9 @@ function formFieldMapping(fieldList) {
68600
68600
  fieldName: item.fieldName
68601
68601
  });
68602
68602
  }
68603
+ formFields.push(item);
68603
68604
  });
68604
68605
  batchDefaultValues[temp.batchName + "DefaultValue"].push(tempData);
68605
- formFields.push(...fieldList2);
68606
68606
  }
68607
68607
  };
68608
68608
  const fieldsOperation = (dataList, defaultData) => {
@@ -68628,8 +68628,8 @@ function formFieldMapping(fieldList) {
68628
68628
  fieldName: item.fieldName
68629
68629
  });
68630
68630
  }
68631
+ formFields.push(item);
68631
68632
  });
68632
- formFields.push(...temp);
68633
68633
  } else if (temp["tabList"] || temp["collapseList"] || temp["cardList"]) {
68634
68634
  const tabList = temp["tabList"] || temp["collapseList"] || temp["cardList"];
68635
68635
  for (const index in tabList) {
@@ -127503,34 +127503,36 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
127503
127503
  setup(__props, { emit: __emit }) {
127504
127504
  const props = __props;
127505
127505
  const emits = __emit;
127506
- let buttonControl = computed(() => {
127506
+ const checkMenuStatus = () => {
127507
127507
  const moveFlag = !props.field.items?.length;
127508
127508
  const elements = props.parentField.preps.elements;
127509
127509
  const lastRow = props.isFirstRow ? 0 : elements[props.rowIndex - 1]?.columns.length;
127510
127510
  const currentRow = elements[props.rowIndex].columns.length;
127511
127511
  const nextRow = props.isLastRow ? null : elements[props.rowIndex + 1]?.columns.length;
127512
+ const isFullColumn = props.type == "dytable" && elements?.length == parseInt(props.field.rowspan);
127512
127513
  return {
127513
127514
  mergeLeftColDisabled: props.isFirstCol,
127514
127515
  mergeRightColDisabled: props.isLastCol,
127515
127516
  mergeWholeRowDisabled: false,
127516
- mergeWholeColDisabled: false,
127517
+ mergeWholeColDisabled: isFullColumn,
127517
127518
  mergeAboveRowDisabled: props.isFirstRow || lastRow != currentRow,
127518
127519
  mergeBelowRowDisabled: props.isLastRow || nextRow != currentRow,
127519
127520
  undoMergeRowDisabled: props.field.rowspan == 1,
127520
127521
  undoMergeColDisabled: props.field.colspan == 1,
127521
127522
  //第一行,或者没有数据禁用
127522
- moveRowUpDisabled: props.isFirstRow || moveFlag,
127523
- moveRowDownDisabled: props.isLastRow || moveFlag,
127524
- moveColLeftDisabled: props.isFirstCol || moveFlag,
127525
- moveColRightDisabled: props.isLastCol || moveFlag,
127526
- moveRowUpFirstDisabled: props.isFirstRow || moveFlag,
127527
- moveRowDownLastDisabled: props.isLastRow || moveFlag,
127528
- moveColLeftFirstDisabled: props.isFirstCol || moveFlag,
127529
- moveColRightLastDisabled: props.isLastCol || moveFlag,
127523
+ moveRowUpDisabled: isFullColumn || props.isFirstRow || moveFlag,
127524
+ moveRowDownDisabled: isFullColumn || props.isLastRow || moveFlag,
127525
+ moveColLeftDisabled: isFullColumn || props.isFirstCol || moveFlag,
127526
+ moveColRightDisabled: isFullColumn || props.isLastCol || moveFlag,
127527
+ moveRowUpFirstDisabled: isFullColumn || props.isFirstRow || moveFlag,
127528
+ moveRowDownLastDisabled: isFullColumn || props.isLastRow || moveFlag,
127529
+ moveColLeftFirstDisabled: isFullColumn || props.isFirstCol || moveFlag,
127530
+ moveColRightLastDisabled: isFullColumn || props.isLastCol || moveFlag,
127530
127531
  deleteWholeColDisabled: false,
127531
127532
  deleteWholeRowDisabled: false
127532
127533
  };
127533
- });
127534
+ };
127535
+ let buttonControl = computed(() => checkMenuStatus());
127534
127536
  const configDialog = ref(false);
127535
127537
  const handleTableCellCommand = (command) => {
127536
127538
  if (command.includes("Config")) {
@@ -127551,6 +127553,9 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
127551
127553
  onMounted(() => {
127552
127554
  init();
127553
127555
  });
127556
+ watch(() => props.field, () => {
127557
+ checkMenuStatus();
127558
+ }, { deep: true, immediate: true });
127554
127559
  watch(
127555
127560
  () => props.parentField,
127556
127561
  () => tableAction(props, buttonControl.value, props.type),
@@ -127919,7 +127924,6 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
127919
127924
  tableCellOperation(command, props, "box");
127920
127925
  };
127921
127926
  const selectCurrentTd = () => {
127922
- console.log(props.field);
127923
127927
  designForm.setSubItemId(props.field._uuid);
127924
127928
  };
127925
127929
  const checkItem = (items) => {
@@ -128582,6 +128586,7 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
128582
128586
  disabled: __props.disabled,
128583
128587
  rowIndex: __props.rowIndex,
128584
128588
  colIndex: __props.colIndex,
128589
+ type: "dytable",
128585
128590
  onCommand: handleTableCellCommand
128586
128591
  }, null, 8, ["field", "parentField", "isFirstCol", "isLastCol", "isFirstRow", "isLastRow", "disabled", "rowIndex", "colIndex"])
128587
128592
  ])) : createCommentVNode("", true)
@@ -128592,7 +128597,7 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
128592
128597
 
128593
128598
  /* unplugin-vue-components disabled */
128594
128599
 
128595
- const DytableCol = /* @__PURE__ */ _export_sfc(_sfc_main$1d, [["__scopeId", "data-v-8c4043d0"]]);
128600
+ const DytableCol = /* @__PURE__ */ _export_sfc(_sfc_main$1d, [["__scopeId", "data-v-0de8920d"]]);
128596
128601
 
128597
128602
  const dytableCol = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
128598
128603
  __proto__: null,
@@ -129171,14 +129176,14 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
129171
129176
  }, 8, ["dialog-visible"]),
129172
129177
  _ctx.bareFlag === true ? (openBlock(), createElementBlock("div", {
129173
129178
  key: 0,
129174
- class: normalizeClass(["w-fill", { "item-info": _ctx.field.preps?.itemType != "usercomp" }]),
129179
+ class: normalizeClass(["w-fill", { "item-info": _ctx.field?.preps?.itemType != "usercomp" }]),
129175
129180
  style: normalizeStyle({
129176
- margin: _ctx.field.preps?.itemType == "button" ? "5px auto" : "unset"
129181
+ margin: _ctx.field?.preps?.itemType == "button" ? "5px auto" : "unset"
129177
129182
  })
129178
129183
  }, [
129179
- _ctx.field.preps?.helpMsg ? (openBlock(), createBlock(_component_help, {
129184
+ _ctx.field?.preps?.helpMsg ? (openBlock(), createBlock(_component_help, {
129180
129185
  key: 0,
129181
- message: _ctx.field.preps?.helpMsg
129186
+ message: _ctx.field?.preps?.helpMsg
129182
129187
  }, null, 8, ["message"])) : createCommentVNode("", true),
129183
129188
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
129184
129189
  ], 6)) : (openBlock(), createElementBlock("div", _hoisted_1$y, [
@@ -129344,7 +129349,7 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
129344
129349
 
129345
129350
  /* unplugin-vue-components disabled */
129346
129351
 
129347
- const __unplugin_components_0$3 = /* @__PURE__ */ _export_sfc(_sfc_main$19, [["__scopeId", "data-v-7c5d81e1"]]);
129352
+ const __unplugin_components_0$3 = /* @__PURE__ */ _export_sfc(_sfc_main$19, [["__scopeId", "data-v-5f72910f"]]);
129348
129353
 
129349
129354
  const starhorseFormItem = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
129350
129355
  __proto__: null,
@@ -129434,7 +129439,7 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
129434
129439
  default: withCtx(() => [
129435
129440
  createVNode(_component_el_cascader, mergeProps({
129436
129441
  fid: _ctx.field.fieldName
129437
- }, _ctx.field.preps, {
129442
+ }, unref(prepsFilter)(_ctx.field.preps), {
129438
129443
  disabled: unref(checkIsDisabled)(props)
129439
129444
  }, toHandlers(unref(getDynamicEvents)(props, itemAction)), {
129440
129445
  modelValue: formData.value[_ctx.field.fieldName],
@@ -129449,7 +129454,7 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
129449
129454
 
129450
129455
  /* unplugin-vue-components disabled */
129451
129456
 
129452
- const areaItem = /* @__PURE__ */ _export_sfc(_sfc_main$18, [["__scopeId", "data-v-25e8fb1c"]]);
129457
+ const areaItem = /* @__PURE__ */ _export_sfc(_sfc_main$18, [["__scopeId", "data-v-7938a999"]]);
129453
129458
 
129454
129459
  const areaItem$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
129455
129460
  __proto__: null,
@@ -129659,7 +129664,7 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
129659
129664
  fid: _ctx.field.fieldName,
129660
129665
  disabled: unref(checkIsDisabled)(props),
129661
129666
  "fetch-suggestions": querySearch
129662
- }, _ctx.field.preps, toHandlers(unref(getDynamicEvents)(props, itemAction)), {
129667
+ }, unref(prepsFilter)(_ctx.field.preps), toHandlers(unref(getDynamicEvents)(props, itemAction)), {
129663
129668
  modelValue: formData.value[_ctx.field.fieldName],
129664
129669
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => formData.value[_ctx.field.fieldName] = $event)
129665
129670
  }), null, 16, ["fid", "disabled", "modelValue"])
@@ -129850,7 +129855,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
129850
129855
  default: withCtx(() => [
129851
129856
  createVNode(_component_el_button, mergeProps({
129852
129857
  disabled: unref(checkIsDisabled)(props)
129853
- }, _ctx.field.preps, {
129858
+ }, unref(prepsFilter)(_ctx.field.preps), {
129854
129859
  onClick: _cache[0] || (_cache[0] = ($event) => dynamicFunc(_ctx.field.preps?.code))
129855
129860
  }), {
129856
129861
  default: withCtx(() => [
@@ -129873,7 +129878,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
129873
129878
 
129874
129879
  /* unplugin-vue-components disabled */
129875
129880
 
129876
- const buttonItem = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["__scopeId", "data-v-6c4a259b"]]);
129881
+ const buttonItem = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["__scopeId", "data-v-26c4272c"]]);
129877
129882
 
129878
129883
  const buttonItem$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
129879
129884
  __proto__: null,
@@ -130049,7 +130054,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
130049
130054
  default: withCtx(() => [
130050
130055
  createVNode(_component_el_cascader, mergeProps({
130051
130056
  fid: _ctx.field.fieldName
130052
- }, _ctx.field.preps, {
130057
+ }, unref(prepsFilter)(_ctx.field.preps), {
130053
130058
  disabled: unref(checkIsDisabled)(props)
130054
130059
  }, toHandlers(unref(getDynamicEvents)(props, itemAction)), {
130055
130060
  modelValue: formData.value[_ctx.field.fieldName],
@@ -130135,7 +130140,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
130135
130140
 
130136
130141
  /* unplugin-vue-components disabled */
130137
130142
 
130138
- const cascadeItem = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["__scopeId", "data-v-e51b6d79"]]);
130143
+ const cascadeItem = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["__scopeId", "data-v-ec2aa290"]]);
130139
130144
 
130140
130145
  const cascadeItem$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
130141
130146
  __proto__: null,
@@ -130206,9 +130211,8 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
130206
130211
  default: withCtx(() => [
130207
130212
  createVNode(_component_el_checkbox_group, mergeProps({
130208
130213
  fid: _ctx.field.fieldName,
130209
- disabled: unref(checkIsDisabled)(props),
130210
- readonly: _ctx.field.preps?.readonly ?? false
130211
- }, toHandlers(unref(getDynamicEvents)(props, itemAction)), {
130214
+ disabled: unref(checkIsDisabled)(props)
130215
+ }, unref(prepsFilter)(props), toHandlers(unref(getDynamicEvents)(props, itemAction)), {
130212
130216
  modelValue: formData.value[_ctx.field.fieldName],
130213
130217
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => formData.value[_ctx.field.fieldName] = $event)
130214
130218
  }), {
@@ -130224,7 +130228,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
130224
130228
  }), 256))
130225
130229
  ]),
130226
130230
  _: 1
130227
- }, 16, ["fid", "disabled", "readonly", "modelValue"])
130231
+ }, 16, ["fid", "disabled", "modelValue"])
130228
130232
  ]),
130229
130233
  _: 1
130230
130234
  }, 8, ["showFormItem", "isDesign", "disabled", "bareFlag", "field", "parentField"]);
@@ -130282,7 +130286,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
130282
130286
  createVNode(_component_el_color_picker, mergeProps({
130283
130287
  fid: _ctx.field.fieldName,
130284
130288
  disabled: unref(checkIsDisabled)(props)
130285
- }, _ctx.field.preps, toHandlers(unref(getDynamicEvents)(props, itemAction)), {
130289
+ }, unref(prepsFilter)(_ctx.field.preps), toHandlers(unref(getDynamicEvents)(props, itemAction)), {
130286
130290
  modelValue: formData.value[_ctx.field.fieldName],
130287
130291
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => formData.value[_ctx.field.fieldName] = $event)
130288
130292
  }), null, 16, ["fid", "disabled", "modelValue"])
@@ -133202,7 +133206,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
133202
133206
  createVNode(_component_el_date_picker, mergeProps({
133203
133207
  fid: _ctx.field.fieldName,
133204
133208
  disabled: unref(checkIsDisabled)(props)
133205
- }, _ctx.field.preps, {
133209
+ }, unref(prepsFilter)(_ctx.field.preps), {
133206
133210
  format: _ctx.field.preps?.format || "YYYY-MM-DD HH:mm:ss",
133207
133211
  "value-format": _ctx.field.preps?.valueFormat,
133208
133212
  "date-format": "YYYY-MM-DD",
@@ -133221,7 +133225,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
133221
133225
 
133222
133226
  /* unplugin-vue-components disabled */
133223
133227
 
133224
- const datetimeItem = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["__scopeId", "data-v-984b704b"]]);
133228
+ const datetimeItem = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["__scopeId", "data-v-66eaf449"]]);
133225
133229
 
133226
133230
  const datetimeItem$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
133227
133231
  __proto__: null,
@@ -133439,7 +133443,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
133439
133443
  createVNode(_component_el_input, mergeProps({
133440
133444
  disabled: unref(checkIsDisabled)(props),
133441
133445
  type: "text"
133442
- }, _ctx.field.preps, {
133446
+ }, unref(prepsFilter)(_ctx.field.preps), {
133443
133447
  fid: _ctx.field.fieldName
133444
133448
  }, toHandlers(unref(getDynamicEvents)(props, itemAction)), {
133445
133449
  modelValue: formData.value[_ctx.field.fieldName],
@@ -133464,7 +133468,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
133464
133468
 
133465
133469
  /* unplugin-vue-components disabled */
133466
133470
 
133467
- const dialogInputItem = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-bed39e8a"]]);
133471
+ const dialogInputItem = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-af0205ca"]]);
133468
133472
 
133469
133473
  const dialogInputItem$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
133470
133474
  __proto__: null,
@@ -150729,7 +150733,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
150729
150733
  "overflow-y": "hidden"
150730
150734
  },
150731
150735
  modules
150732
- }, toHandlers(unref(getDynamicEvents)(props, itemAction)), {
150736
+ }, unref(prepsFilter)(props), toHandlers(unref(getDynamicEvents)(props, itemAction)), {
150733
150737
  modelValue: formData.value[_ctx.field.fieldName],
150734
150738
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => formData.value[_ctx.field.fieldName] = $event),
150735
150739
  theme: "snow",
@@ -151296,7 +151300,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
151296
151300
  default: withCtx(() => [
151297
151301
  createVNode(_component_el_input, mergeProps({
151298
151302
  disabled: unref(checkIsDisabled)(props)
151299
- }, _ctx.field.preps, {
151303
+ }, unref(prepsFilter)(_ctx.field.preps), {
151300
151304
  type: "text",
151301
151305
  ref_key: "inputItemRef",
151302
151306
  ref: inputItemRef,
@@ -151386,7 +151390,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
151386
151390
 
151387
151391
  /* unplugin-vue-components disabled */
151388
151392
 
151389
- const inputItem = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-9bd35426"]]);
151393
+ const inputItem = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-a1b1d0a2"]]);
151390
151394
 
151391
151395
  const inputItem$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
151392
151396
  __proto__: null,
@@ -151525,7 +151529,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
151525
151529
  disabled: __props.disabled,
151526
151530
  showFormItem: __props.showFormItem,
151527
151531
  bareFlag: __props.bareFlag,
151528
- formItem: __props.field,
151532
+ field: __props.field,
151529
151533
  parentField: __props.parentField
151530
151534
  }, {
151531
151535
  default: withCtx(() => [
@@ -151562,7 +151566,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
151562
151566
  ])
151563
151567
  ]),
151564
151568
  _: 1
151565
- }, 8, ["isDesign", "disabled", "showFormItem", "bareFlag", "formItem", "parentField"])
151569
+ }, 8, ["isDesign", "disabled", "showFormItem", "bareFlag", "field", "parentField"])
151566
151570
  ], 64);
151567
151571
  };
151568
151572
  }
@@ -151570,7 +151574,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
151570
151574
 
151571
151575
  /* unplugin-vue-components disabled */
151572
151576
 
151573
- const __unplugin_components_0$2 = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-f43e0219"]]);
151577
+ const __unplugin_components_0$2 = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-b63980a0"]]);
151574
151578
 
151575
151579
  const baseJsonItem = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
151576
151580
  __proto__: null,
@@ -203209,7 +203213,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
203209
203213
  language: "zh-CN",
203210
203214
  previewTheme: "default",
203211
203215
  codeTheme: "github"
203212
- }, _ctx.field.preps, { class: "markdown-editor" }), null, 16, ["modelValue"])
203216
+ }, unref(prepsFilter)(_ctx.field.preps), { class: "markdown-editor" }), null, 16, ["modelValue"])
203213
203217
  ]),
203214
203218
  _: 1
203215
203219
  }, 8, ["showFormItem", "isDesign", "disabled", "bareFlag", "field", "parentField"]);
@@ -203219,7 +203223,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
203219
203223
 
203220
203224
  /* unplugin-vue-components disabled */
203221
203225
 
203222
- const markdownItem = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-213d1027"]]);
203226
+ const markdownItem = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-f2582961"]]);
203223
203227
 
203224
203228
  const markdownItem$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
203225
203229
  __proto__: null,
@@ -203286,7 +203290,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
203286
203290
  createVNode(_component_el_input_number, mergeProps({
203287
203291
  fid: _ctx.field.fieldName,
203288
203292
  disabled: unref(checkIsDisabled)(props)
203289
- }, _ctx.field.preps, toHandlers(unref(getDynamicEvents)(props, itemAction)), {
203293
+ }, unref(prepsFilter)(_ctx.field.preps), toHandlers(unref(getDynamicEvents)(props, itemAction)), {
203290
203294
  modelValue: formData.value[_ctx.field.fieldName],
203291
203295
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => formData.value[_ctx.field.fieldName] = $event)
203292
203296
  }), {
@@ -203307,7 +203311,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
203307
203311
 
203308
203312
  /* unplugin-vue-components disabled */
203309
203313
 
203310
- const numberItem = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-3104a85b"]]);
203314
+ const numberItem = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-760161df"]]);
203311
203315
 
203312
203316
  const numberItem$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
203313
203317
  __proto__: null,
@@ -203413,7 +203417,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
203413
203417
  fid: minName.value,
203414
203418
  controls: false,
203415
203419
  disabled: unref(checkIsDisabled)(props)
203416
- }, _ctx.field.preps, {
203420
+ }, unref(prepsFilter)(_ctx.field.preps), {
203417
203421
  placeholder: _ctx.field.preps?.minPlaceholder,
203418
203422
  onChange: _cache[0] || (_cache[0] = ($event) => itemAction("change")),
203419
203423
  onBlur: handleBlur,
@@ -203428,7 +203432,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
203428
203432
  fid: maxName.value,
203429
203433
  controls: false,
203430
203434
  disabled: unref(checkIsDisabled)(props)
203431
- }, _ctx.field.preps, {
203435
+ }, unref(prepsFilter)(_ctx.field.preps), {
203432
203436
  onChange: _cache[2] || (_cache[2] = ($event) => itemAction("change")),
203433
203437
  onBlur: handleBlur,
203434
203438
  onFocus: handleFocus,
@@ -203452,7 +203456,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
203452
203456
 
203453
203457
  /* unplugin-vue-components disabled */
203454
203458
 
203455
- const numberRangeItem = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-9ed41f77"]]);
203459
+ const numberRangeItem = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-0e318291"]]);
203456
203460
 
203457
203461
  const numberRangeItem$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
203458
203462
  __proto__: null,
@@ -203730,7 +203734,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
203730
203734
  default: withCtx(() => [
203731
203735
  createVNode(_component_el_select, mergeProps({
203732
203736
  fid: _ctx.field.fieldName
203733
- }, _ctx.field.preps, {
203737
+ }, unref(prepsFilter)(_ctx.field.preps), {
203734
203738
  disabled: unref(checkIsDisabled)(props)
203735
203739
  }, toHandlers(unref(getDynamicEvents)(props, itemAction)), {
203736
203740
  modelValue: formData.value[_ctx.field.fieldName],
@@ -203849,7 +203853,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
203849
203853
 
203850
203854
  /* unplugin-vue-components disabled */
203851
203855
 
203852
- const pageSelectItem = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-c2eeaa6c"]]);
203856
+ const pageSelectItem = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-9debdb0c"]]);
203853
203857
 
203854
203858
  const pageSelectItem$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
203855
203859
  __proto__: null,
@@ -203901,7 +203905,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
203901
203905
  createVNode(_component_el_input, mergeProps({
203902
203906
  fid: _ctx.field.fieldName,
203903
203907
  disabled: unref(checkIsDisabled)(props)
203904
- }, _ctx.field.preps, { type: "password" }, toHandlers(unref(getDynamicEvents)(props, itemAction)), {
203908
+ }, unref(prepsFilter)(_ctx.field.preps), { type: "password" }, toHandlers(unref(getDynamicEvents)(props, itemAction)), {
203905
203909
  modelValue: formData.value[_ctx.field.fieldName],
203906
203910
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => formData.value[_ctx.field.fieldName] = $event)
203907
203911
  }), null, 16, ["fid", "disabled", "modelValue"])
@@ -204068,7 +204072,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
204068
204072
  default: withCtx(() => [
204069
204073
  createVNode(_component_el_rate, mergeProps({
204070
204074
  fid: _ctx.field.fieldName
204071
- }, _ctx.field.preps, {
204075
+ }, unref(prepsFilter)(_ctx.field.preps), {
204072
204076
  disabled: unref(checkIsDisabled)(props),
204073
204077
  onChange: itemAction,
204074
204078
  modelValue: formData.value[_ctx.field.fieldName],
@@ -204311,7 +204315,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
204311
204315
 
204312
204316
  /* unplugin-vue-components disabled */
204313
204317
 
204314
- const selectItem = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-1a10e4c9"]]);
204318
+ const selectItem = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-f3d02d02"]]);
204315
204319
 
204316
204320
  const selectItem$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
204317
204321
  __proto__: null,
@@ -204932,7 +204936,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
204932
204936
  createVNode(_component_el_slider, mergeProps({
204933
204937
  fid: _ctx.field.fieldName,
204934
204938
  disabled: unref(checkIsDisabled)(props)
204935
- }, _ctx.field.preps, {
204939
+ }, unref(prepsFilter)(_ctx.field.preps), {
204936
204940
  step: _ctx.field.preps?.step ?? 1,
204937
204941
  onChange: itemAction,
204938
204942
  modelValue: formData.value[_ctx.field.fieldName],
@@ -205002,7 +205006,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
205002
205006
  createVNode(_component_el_switch, mergeProps({
205003
205007
  fid: _ctx.field.fieldName,
205004
205008
  disabled: unref(checkIsDisabled)(props)
205005
- }, _ctx.field.preps, toHandlers(unref(getDynamicEvents)(props, itemAction)), {
205009
+ }, unref(prepsFilter)(_ctx.field.preps), toHandlers(unref(getDynamicEvents)(props, itemAction)), {
205006
205010
  modelValue: formData.value[_ctx.field.fieldName],
205007
205011
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => formData.value[_ctx.field.fieldName] = $event)
205008
205012
  }), null, 16, ["fid", "disabled", "modelValue"])
@@ -205062,7 +205066,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
205062
205066
  parentField: _ctx.parentField
205063
205067
  }, {
205064
205068
  default: withCtx(() => [
205065
- createVNode(_component_el_tag, mergeProps(_ctx.field.preps, {
205069
+ createVNode(_component_el_tag, mergeProps(unref(prepsFilter)(_ctx.field.preps), {
205066
205070
  type: tagType(formData.value[_ctx.field.fieldName]),
205067
205071
  onClick: _cache[0] || (_cache[0] = ($event) => itemAction("click")),
205068
205072
  class: "relative"
@@ -205215,7 +205219,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
205215
205219
  onDblclick: maxEdit,
205216
205220
  disabled: unref(checkIsDisabled)(props),
205217
205221
  fid: _ctx.field.fieldName
205218
- }, _ctx.field.preps, { type: "textarea" }, toHandlers(unref(getDynamicEvents)(props, itemAction)), {
205222
+ }, unref(prepsFilter)(_ctx.field.preps), { type: "textarea" }, toHandlers(unref(getDynamicEvents)(props, itemAction)), {
205219
205223
  modelValue: formData.value[_ctx.field.fieldName],
205220
205224
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => formData.value[_ctx.field.fieldName] = $event)
205221
205225
  }), null, 16, ["disabled", "fid", "modelValue"])
@@ -205280,7 +205284,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
205280
205284
  start: _ctx.field.preps?.start || "00:00",
205281
205285
  end: _ctx.field.preps?.end || "24:00",
205282
205286
  step: _ctx.field.preps?.step || "00:05"
205283
- }, _ctx.field.preps, toHandlers(unref(getDynamicEvents)(props, itemAction)), {
205287
+ }, unref(prepsFilter)(_ctx.field.preps), toHandlers(unref(getDynamicEvents)(props, itemAction)), {
205284
205288
  modelValue: formData.value[_ctx.field.fieldName],
205285
205289
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => formData.value[_ctx.field.fieldName] = $event)
205286
205290
  }), null, 16, ["fid", "disabled", "start", "end", "step", "modelValue"])
@@ -205293,7 +205297,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
205293
205297
 
205294
205298
  /* unplugin-vue-components disabled */
205295
205299
 
205296
- const timeItem = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-9e9efd69"]]);
205300
+ const timeItem = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-57418512"]]);
205297
205301
 
205298
205302
  const timeItem$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
205299
205303
  __proto__: null,
@@ -205345,7 +205349,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
205345
205349
  createVNode(_component_el_time_picker, mergeProps({
205346
205350
  fid: _ctx.field.fieldName,
205347
205351
  disabled: unref(checkIsDisabled)(props)
205348
- }, _ctx.field.preps, toHandlers(unref(getDynamicEvents)(props, itemAction)), {
205352
+ }, unref(prepsFilter)(_ctx.field.preps), toHandlers(unref(getDynamicEvents)(props, itemAction)), {
205349
205353
  modelValue: formData.value[_ctx.field.fieldName],
205350
205354
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => formData.value[_ctx.field.fieldName] = $event)
205351
205355
  }), null, 16, ["fid", "disabled", "modelValue"])
@@ -205358,7 +205362,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
205358
205362
 
205359
205363
  /* unplugin-vue-components disabled */
205360
205364
 
205361
- const timePickerItem = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-f61b95d7"]]);
205365
+ const timePickerItem = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-271ede98"]]);
205362
205366
 
205363
205367
  const timePickerItem$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
205364
205368
  __proto__: null,
@@ -205432,7 +205436,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
205432
205436
  default: withCtx(() => [
205433
205437
  createVNode(_component_el_transfer, mergeProps({
205434
205438
  fid: _ctx.field?.preps["name"]
205435
- }, _ctx.field.preps, toHandlers(unref(getDynamicEvents)(props, itemAction)), {
205439
+ }, unref(prepsFilter)(_ctx.field.preps), toHandlers(unref(getDynamicEvents)(props, itemAction)), {
205436
205440
  modelValue: formData.value[_ctx.field.fieldName],
205437
205441
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => formData.value[_ctx.field.fieldName] = $event)
205438
205442
  }), null, 16, ["fid", "modelValue"])
@@ -205592,7 +205596,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
205592
205596
  fid: _ctx.field.fieldName,
205593
205597
  disabled: unref(checkIsDisabled)(props),
205594
205598
  "default-expand-all": true
205595
- }, _ctx.field.preps, {
205599
+ }, unref(prepsFilter)(_ctx.field.preps), {
205596
205600
  "filter-node-method": filterNodeMethod,
205597
205601
  "render-content": renderContent
205598
205602
  }, toHandlers(unref(getDynamicEvents)(props, itemAction)), {
@@ -205800,7 +205804,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
205800
205804
  fid: _ctx.field.fieldName,
205801
205805
  disabled: unref(checkIsDisabled)(props),
205802
205806
  headers: unref(headers)
205803
- }, _ctx.field.preps, {
205807
+ }, unref(prepsFilter)(_ctx.field.preps), {
205804
205808
  "on-change": (uploadFile, uploadFiles) => selfAction("change", uploadFile, uploadFiles),
205805
205809
  "on-error": (error, uploadFile, uploadFiles) => selfAction("error", uploadFile, uploadFiles, error),
205806
205810
  "on-exceed": (files, uploadFiles) => selfAction("exceed", files, uploadFiles),
@@ -205851,7 +205855,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
205851
205855
 
205852
205856
  /* unplugin-vue-components disabled */
205853
205857
 
205854
- const uploadItem = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-73d940b4"]]);
205858
+ const uploadItem = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-9838d555"]]);
205855
205859
 
205856
205860
  const uploadItem$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
205857
205861
  __proto__: null,
@@ -206005,7 +206009,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
206005
206009
  options: unref(userOptionList),
206006
206010
  whole: true,
206007
206011
  fid: _ctx.field.fieldName
206008
- }, _ctx.field.preps, toHandlers(unref(getDynamicEvents)(props, itemAction)), {
206012
+ }, unref(prepsFilter)(_ctx.field.preps), toHandlers(unref(getDynamicEvents)(props, itemAction)), {
206009
206013
  modelValue: formData.value[_ctx.field.fieldName],
206010
206014
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => formData.value[_ctx.field.fieldName] = $event)
206011
206015
  }), {
@@ -207494,7 +207498,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
207494
207498
  parentField: _ctx.parentField
207495
207499
  }, {
207496
207500
  default: withCtx(() => [
207497
- createVNode(QrcodeVue, mergeProps({ value: dataValue.value }, _ctx.field.preps, { "image-settings": imageSettings.value }), null, 16, ["value", "image-settings"])
207501
+ createVNode(QrcodeVue, mergeProps({ value: dataValue.value }, unref(prepsFilter)(_ctx.field.preps), { "image-settings": imageSettings.value }), null, 16, ["value", "image-settings"])
207498
207502
  ]),
207499
207503
  _: 1
207500
207504
  }, 8, ["showFormItem", "isDesign", "disabled", "bareFlag", "field", "parentField"]);
@@ -249089,20 +249093,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
249089
249093
  isDesign: _ctx.isDesign,
249090
249094
  disabled: _ctx.disabled,
249091
249095
  bareFlag: _ctx.bareFlag,
249092
- formItem: _ctx.field,
249096
+ field: _ctx.field,
249093
249097
  parentField: _ctx.parentField
249094
249098
  }, {
249095
249099
  default: withCtx(() => [
249096
249100
  createVNode(unref(StarHorseDataSelector), mergeProps({
249097
249101
  modelValue: pickerData.value,
249098
249102
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => pickerData.value = $event)
249099
- }, _ctx.field.preps, {
249103
+ }, unref(prepsFilter)(_ctx.field.preps), {
249100
249104
  "onUpdate:selectedData": _cache[1] || (_cache[1] = (data) => itemAction("change")),
249101
249105
  onSelectedData: _cache[2] || (_cache[2] = (data) => itemAction("change"))
249102
249106
  }), null, 16, ["modelValue"])
249103
249107
  ]),
249104
249108
  _: 1
249105
- }, 8, ["showFormItem", "isDesign", "disabled", "bareFlag", "formItem", "parentField"]);
249109
+ }, 8, ["showFormItem", "isDesign", "disabled", "bareFlag", "field", "parentField"]);
249106
249110
  };
249107
249111
  }
249108
249112
  });
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "star-horse-lowcode",
3
3
  "private": false,
4
4
  "author": "l_1019@163.com",
5
- "version": "2.8.1",
5
+ "version": "2.8.3",
6
6
  "type": "module",
7
7
  "description": "星马低代码核心库,提供了低代码平台的基础功能和组件库。此库可引用到您的项目中,快速构建表单和列表。",
8
8
  "keywords": [
@@ -65,7 +65,7 @@
65
65
  "@eslint/js": "^9.33.0",
66
66
  "@originjs/vite-plugin-commonjs": "^1.0.3",
67
67
  "@rollup/plugin-inject": "^5.0.5",
68
- "@tailwindcss/vite": "^4.1.11",
68
+ "@tailwindcss/vite": "^4.1.12",
69
69
  "@vitejs/plugin-vue-jsx": "^5.0.1",
70
70
  "@vueup/vue-quill": "^1.2.0",
71
71
  "axios": "^1.11.0",
@@ -83,7 +83,7 @@
83
83
  "quill-image-uploader": "^1.3.0",
84
84
  "smooth-signature": "^1.1.0",
85
85
  "sortablejs": "^1.15.6",
86
- "tailwindcss": "^4.1.11",
86
+ "tailwindcss": "^4.1.12",
87
87
  "unplugin-auto-import": "^20.0.0",
88
88
  "unplugin-element-plus": "^0.10.0",
89
89
  "unplugin-vue-components": "^29.0.0",