@fecp/designer 5.5.66 → 5.5.67

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.
@@ -1,4 +1,4 @@
1
- const version = "5.5.66";
1
+ const version = "5.5.67";
2
2
  const packageJson = {
3
3
  version
4
4
  };
@@ -10,6 +10,7 @@ const defaultProperty = {
10
10
  optionStyle: "default",
11
11
  dateType: "date",
12
12
  dateValueType: "string",
13
+ dateRange: "",
13
14
  suffixButton: "none",
14
15
  suffixDialogName: "选择",
15
16
  dialogSource: "global",
@@ -317,7 +317,7 @@ const _sfc_main = {
317
317
  return openBlock(), createBlock(_component_el_collapse, {
318
318
  class: "setting",
319
319
  modelValue: unref(activeName),
320
- "onUpdate:modelValue": _cache[53] || (_cache[53] = ($event) => isRef(activeName) ? activeName.value = $event : null)
320
+ "onUpdate:modelValue": _cache[54] || (_cache[54] = ($event) => isRef(activeName) ? activeName.value = $event : null)
321
321
  }, {
322
322
  default: withCtx(() => [
323
323
  createVNode(_component_el_collapse_item, {
@@ -427,19 +427,19 @@ const _sfc_main = {
427
427
  }, {
428
428
  default: withCtx(() => [
429
429
  createVNode(_component_el_radio_button, { value: "default" }, {
430
- default: withCtx(() => _cache[54] || (_cache[54] = [
430
+ default: withCtx(() => _cache[55] || (_cache[55] = [
431
431
  createTextVNode("默认")
432
432
  ])),
433
433
  _: 1
434
434
  }),
435
435
  createVNode(_component_el_radio_button, { value: "label" }, {
436
- default: withCtx(() => _cache[55] || (_cache[55] = [
436
+ default: withCtx(() => _cache[56] || (_cache[56] = [
437
437
  createTextVNode("标签")
438
438
  ])),
439
439
  _: 1
440
440
  }),
441
441
  createVNode(_component_el_radio_button, { value: "input" }, {
442
- default: withCtx(() => _cache[56] || (_cache[56] = [
442
+ default: withCtx(() => _cache[57] || (_cache[57] = [
443
443
  createTextVNode("输入框")
444
444
  ])),
445
445
  _: 1
@@ -459,19 +459,19 @@ const _sfc_main = {
459
459
  }, {
460
460
  default: withCtx(() => [
461
461
  createVNode(_component_el_radio_button, { value: "all" }, {
462
- default: withCtx(() => _cache[57] || (_cache[57] = [
462
+ default: withCtx(() => _cache[58] || (_cache[58] = [
463
463
  createTextVNode("始终显示")
464
464
  ])),
465
465
  _: 1
466
466
  }),
467
467
  createVNode(_component_el_radio_button, { value: "edit" }, {
468
- default: withCtx(() => _cache[58] || (_cache[58] = [
468
+ default: withCtx(() => _cache[59] || (_cache[59] = [
469
469
  createTextVNode("编辑时显示")
470
470
  ])),
471
471
  _: 1
472
472
  }),
473
473
  createVNode(_component_el_radio_button, { value: "query" }, {
474
- default: withCtx(() => _cache[59] || (_cache[59] = [
474
+ default: withCtx(() => _cache[60] || (_cache[60] = [
475
475
  createTextVNode("查看时显示")
476
476
  ])),
477
477
  _: 1
@@ -550,7 +550,7 @@ const _sfc_main = {
550
550
  ], 64)) : createCommentVNode("", true),
551
551
  unref(currentItem).fieldType == "text" || unref(currentItem).fieldType == "number" ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
552
552
  createVNode(_component_el_form_item, null, {
553
- label: withCtx(() => _cache[60] || (_cache[60] = [
553
+ label: withCtx(() => _cache[61] || (_cache[61] = [
554
554
  createElementVNode("span", null, "尾部按钮", -1)
555
555
  ])),
556
556
  default: withCtx(() => [
@@ -561,19 +561,19 @@ const _sfc_main = {
561
561
  }, {
562
562
  default: withCtx(() => [
563
563
  createVNode(_component_el_radio_button, { value: "none" }, {
564
- default: withCtx(() => _cache[61] || (_cache[61] = [
564
+ default: withCtx(() => _cache[62] || (_cache[62] = [
565
565
  createTextVNode("无")
566
566
  ])),
567
567
  _: 1
568
568
  }),
569
569
  createVNode(_component_el_radio_button, { value: "dialog" }, {
570
- default: withCtx(() => _cache[62] || (_cache[62] = [
570
+ default: withCtx(() => _cache[63] || (_cache[63] = [
571
571
  createTextVNode("弹层选择")
572
572
  ])),
573
573
  _: 1
574
574
  }),
575
575
  createVNode(_component_el_radio_button, { value: "custom" }, {
576
- default: withCtx(() => _cache[63] || (_cache[63] = [
576
+ default: withCtx(() => _cache[64] || (_cache[64] = [
577
577
  createTextVNode("自定义")
578
578
  ])),
579
579
  _: 1
@@ -586,14 +586,14 @@ const _sfc_main = {
586
586
  }),
587
587
  unref(currentItem).suffixButton == "dialog" ? (openBlock(), createElementBlock("div", _hoisted_1, [
588
588
  createElementVNode("div", _hoisted_2, [
589
- _cache[64] || (_cache[64] = createElementVNode("span", { class: "field-label" }, "按钮名称", -1)),
589
+ _cache[65] || (_cache[65] = createElementVNode("span", { class: "field-label" }, "按钮名称", -1)),
590
590
  createVNode(_component_el_input, {
591
591
  modelValue: unref(currentItem).suffixDialogName,
592
592
  "onUpdate:modelValue": _cache[17] || (_cache[17] = ($event) => unref(currentItem).suffixDialogName = $event)
593
593
  }, null, 8, ["modelValue"])
594
594
  ]),
595
595
  createElementVNode("div", _hoisted_3, [
596
- _cache[67] || (_cache[67] = createElementVNode("span", { class: "field-label" }, "弹层来源", -1)),
596
+ _cache[68] || (_cache[68] = createElementVNode("span", { class: "field-label" }, "弹层来源", -1)),
597
597
  createVNode(_component_el_radio_group, {
598
598
  modelValue: unref(currentItem).dialogSource,
599
599
  "onUpdate:modelValue": _cache[18] || (_cache[18] = ($event) => unref(currentItem).dialogSource = $event),
@@ -601,13 +601,13 @@ const _sfc_main = {
601
601
  }, {
602
602
  default: withCtx(() => [
603
603
  createVNode(_component_el_radio_button, { value: "global" }, {
604
- default: withCtx(() => _cache[65] || (_cache[65] = [
604
+ default: withCtx(() => _cache[66] || (_cache[66] = [
605
605
  createTextVNode("全局")
606
606
  ])),
607
607
  _: 1
608
608
  }),
609
609
  createVNode(_component_el_radio_button, { value: "custom" }, {
610
- default: withCtx(() => _cache[66] || (_cache[66] = [
610
+ default: withCtx(() => _cache[67] || (_cache[67] = [
611
611
  createTextVNode("自定义")
612
612
  ])),
613
613
  _: 1
@@ -617,7 +617,7 @@ const _sfc_main = {
617
617
  }, 8, ["modelValue"])
618
618
  ]),
619
619
  createElementVNode("div", _hoisted_4, [
620
- _cache[68] || (_cache[68] = createElementVNode("span", { class: "field-label" }, "选择弹层", -1)),
620
+ _cache[69] || (_cache[69] = createElementVNode("span", { class: "field-label" }, "选择弹层", -1)),
621
621
  createVNode(_component_el_select, {
622
622
  modelValue: unref(currentItem).suffixDialogId,
623
623
  "onUpdate:modelValue": _cache[19] || (_cache[19] = ($event) => unref(currentItem).suffixDialogId = $event),
@@ -641,7 +641,7 @@ const _sfc_main = {
641
641
  ]),
642
642
  unref(currentItem).dialogSource == "global" && unref(currentItem).suffixDialogId ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
643
643
  createElementVNode("div", _hoisted_5, [
644
- _cache[72] || (_cache[72] = createElementVNode("span", { class: "field-label" }, "选择模式", -1)),
644
+ _cache[73] || (_cache[73] = createElementVNode("span", { class: "field-label" }, "选择模式", -1)),
645
645
  createVNode(_component_el_radio_group, {
646
646
  modelValue: unref(currentItem).selectionMode,
647
647
  "onUpdate:modelValue": _cache[20] || (_cache[20] = ($event) => unref(currentItem).selectionMode = $event),
@@ -649,19 +649,19 @@ const _sfc_main = {
649
649
  }, {
650
650
  default: withCtx(() => [
651
651
  createVNode(_component_el_radio_button, { value: "none" }, {
652
- default: withCtx(() => _cache[69] || (_cache[69] = [
652
+ default: withCtx(() => _cache[70] || (_cache[70] = [
653
653
  createTextVNode("无")
654
654
  ])),
655
655
  _: 1
656
656
  }),
657
657
  createVNode(_component_el_radio_button, { value: "single" }, {
658
- default: withCtx(() => _cache[70] || (_cache[70] = [
658
+ default: withCtx(() => _cache[71] || (_cache[71] = [
659
659
  createTextVNode("单选")
660
660
  ])),
661
661
  _: 1
662
662
  }),
663
663
  createVNode(_component_el_radio_button, { value: "multiple" }, {
664
- default: withCtx(() => _cache[71] || (_cache[71] = [
664
+ default: withCtx(() => _cache[72] || (_cache[72] = [
665
665
  createTextVNode("多选")
666
666
  ])),
667
667
  _: 1
@@ -672,7 +672,7 @@ const _sfc_main = {
672
672
  ]),
673
673
  unref(currentItem).selectionMode != "none" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
674
674
  createElementVNode("div", _hoisted_6, [
675
- _cache[73] || (_cache[73] = createElementVNode("span", { class: "field-label" }, "反显格式", -1)),
675
+ _cache[74] || (_cache[74] = createElementVNode("span", { class: "field-label" }, "反显格式", -1)),
676
676
  createVNode(unref(_sfc_main$1), {
677
677
  title: "反显格式配置",
678
678
  formulaConf: unref(currentItem).displayFormat,
@@ -683,7 +683,7 @@ const _sfc_main = {
683
683
  }, null, 8, ["formulaConf", "modelValue", "fieldList"])
684
684
  ]),
685
685
  createElementVNode("div", _hoisted_7, [
686
- _cache[74] || (_cache[74] = createElementVNode("span", {
686
+ _cache[75] || (_cache[75] = createElementVNode("span", {
687
687
  class: "field-label",
688
688
  style: { "width": "100%", "text-align": "left" }
689
689
  }, "选取后表单赋值", -1)),
@@ -699,7 +699,7 @@ const _sfc_main = {
699
699
  ])
700
700
  ], 64)) : createCommentVNode("", true),
701
701
  createElementVNode("div", _hoisted_8, [
702
- _cache[75] || (_cache[75] = createElementVNode("span", { class: "field-label" }, "回调事件", -1)),
702
+ _cache[76] || (_cache[76] = createElementVNode("span", { class: "field-label" }, "回调事件", -1)),
703
703
  createVNode(OnlyFLowConfigButton, {
704
704
  config: unref(currentItem).callbackEventConfig,
705
705
  onConfirm: handleOnlyFlowConfirm
@@ -708,14 +708,14 @@ const _sfc_main = {
708
708
  ], 64)) : createCommentVNode("", true)
709
709
  ])) : unref(currentItem).suffixButton == "custom" ? (openBlock(), createElementBlock("div", _hoisted_9, [
710
710
  createElementVNode("div", _hoisted_10, [
711
- _cache[76] || (_cache[76] = createElementVNode("span", { class: "field-label" }, "按钮名称", -1)),
711
+ _cache[77] || (_cache[77] = createElementVNode("span", { class: "field-label" }, "按钮名称", -1)),
712
712
  createVNode(_component_el_input, {
713
713
  modelValue: unref(currentItem).suffixButtonName,
714
714
  "onUpdate:modelValue": _cache[24] || (_cache[24] = ($event) => unref(currentItem).suffixButtonName = $event)
715
715
  }, null, 8, ["modelValue"])
716
716
  ]),
717
717
  createElementVNode("div", _hoisted_11, [
718
- _cache[77] || (_cache[77] = createElementVNode("span", { class: "field-label" }, "按钮事件", -1)),
718
+ _cache[78] || (_cache[78] = createElementVNode("span", { class: "field-label" }, "按钮事件", -1)),
719
719
  createVNode(EventConfigButton, {
720
720
  config: unref(currentItem).suffixButtonConfig,
721
721
  onConfirm: handleSuffixButtonConfirm
@@ -798,7 +798,7 @@ const _sfc_main = {
798
798
  "controls-position": "right",
799
799
  placeholder: "最小值"
800
800
  }, null, 8, ["modelValue"]),
801
- _cache[78] || (_cache[78] = createElementVNode("span", { style: { "color": "#909399", "font-size": "14px" } }, "-", -1)),
801
+ _cache[79] || (_cache[79] = createElementVNode("span", { style: { "color": "#909399", "font-size": "14px" } }, "-", -1)),
802
802
  createVNode(_component_el_input_number, {
803
803
  style: { "width": "100%" },
804
804
  modelValue: unref(currentItem).maxValue,
@@ -850,7 +850,7 @@ const _sfc_main = {
850
850
  }),
851
851
  createElementVNode("div", _hoisted_13, [
852
852
  createElementVNode("div", _hoisted_14, [
853
- _cache[79] || (_cache[79] = createElementVNode("span", { class: "field-label" }, "显示字段", -1)),
853
+ _cache[80] || (_cache[80] = createElementVNode("span", { class: "field-label" }, "显示字段", -1)),
854
854
  createVNode(_component_el_input, {
855
855
  modelValue: unref(currentItem).optionConfig.displayField,
856
856
  "onUpdate:modelValue": _cache[34] || (_cache[34] = ($event) => unref(currentItem).optionConfig.displayField = $event),
@@ -858,7 +858,7 @@ const _sfc_main = {
858
858
  }, null, 8, ["modelValue"])
859
859
  ]),
860
860
  createElementVNode("div", _hoisted_15, [
861
- _cache[80] || (_cache[80] = createElementVNode("span", { class: "field-label" }, "值字段", -1)),
861
+ _cache[81] || (_cache[81] = createElementVNode("span", { class: "field-label" }, "值字段", -1)),
862
862
  createVNode(_component_el_input, {
863
863
  modelValue: unref(currentItem).optionConfig.valueField,
864
864
  "onUpdate:modelValue": _cache[35] || (_cache[35] = ($event) => unref(currentItem).optionConfig.valueField = $event),
@@ -866,7 +866,7 @@ const _sfc_main = {
866
866
  }, null, 8, ["modelValue"])
867
867
  ]),
868
868
  createElementVNode("div", _hoisted_16, [
869
- _cache[81] || (_cache[81] = createElementVNode("span", { class: "field-label" }, "主键字段", -1)),
869
+ _cache[82] || (_cache[82] = createElementVNode("span", { class: "field-label" }, "主键字段", -1)),
870
870
  createVNode(_component_el_input, {
871
871
  modelValue: unref(currentItem).optionConfig.idField,
872
872
  "onUpdate:modelValue": _cache[36] || (_cache[36] = ($event) => unref(currentItem).optionConfig.idField = $event),
@@ -874,7 +874,7 @@ const _sfc_main = {
874
874
  }, null, 8, ["modelValue"])
875
875
  ]),
876
876
  createElementVNode("div", _hoisted_17, [
877
- _cache[82] || (_cache[82] = createElementVNode("span", { class: "field-label" }, "父主键字段", -1)),
877
+ _cache[83] || (_cache[83] = createElementVNode("span", { class: "field-label" }, "父主键字段", -1)),
878
878
  createVNode(_component_el_input, {
879
879
  modelValue: unref(currentItem).optionConfig.pidField,
880
880
  "onUpdate:modelValue": _cache[37] || (_cache[37] = ($event) => unref(currentItem).optionConfig.pidField = $event),
@@ -1001,6 +1001,33 @@ const _sfc_main = {
1001
1001
  }, 8, ["modelValue"])
1002
1002
  ]),
1003
1003
  _: 1
1004
+ }),
1005
+ createVNode(_component_el_form_item, { label: "可选范围" }, {
1006
+ default: withCtx(() => [
1007
+ createVNode(_component_el_select, {
1008
+ modelValue: unref(currentItem).dateRange,
1009
+ "onUpdate:modelValue": _cache[45] || (_cache[45] = ($event) => unref(currentItem).dateRange = $event),
1010
+ "empty-values": [null, void 0],
1011
+ "value-on-clear": null
1012
+ }, {
1013
+ default: withCtx(() => [
1014
+ createVNode(_component_el_option, {
1015
+ label: "不限",
1016
+ value: ""
1017
+ }),
1018
+ createVNode(_component_el_option, {
1019
+ label: "今天及以前",
1020
+ value: "beforeToday"
1021
+ }),
1022
+ createVNode(_component_el_option, {
1023
+ label: "今天及以后",
1024
+ value: "afterToday"
1025
+ })
1026
+ ]),
1027
+ _: 1
1028
+ }, 8, ["modelValue"])
1029
+ ]),
1030
+ _: 1
1004
1031
  })
1005
1032
  ], 64)) : createCommentVNode("", true),
1006
1033
  unref(isSysSelect) ? (openBlock(), createElementBlock(Fragment, { key: 11 }, [
@@ -1008,7 +1035,7 @@ const _sfc_main = {
1008
1035
  default: withCtx(() => [
1009
1036
  createVNode(_component_el_input, {
1010
1037
  modelValue: unref(currentItem).dialogConfig.dialogTitle,
1011
- "onUpdate:modelValue": _cache[45] || (_cache[45] = ($event) => unref(currentItem).dialogConfig.dialogTitle = $event)
1038
+ "onUpdate:modelValue": _cache[46] || (_cache[46] = ($event) => unref(currentItem).dialogConfig.dialogTitle = $event)
1012
1039
  }, null, 8, ["modelValue"])
1013
1040
  ]),
1014
1041
  _: 1
@@ -1017,7 +1044,7 @@ const _sfc_main = {
1017
1044
  default: withCtx(() => [
1018
1045
  createVNode(_component_ParamsConfig, {
1019
1046
  modelValue: unref(currentItem).dialogConfig.dialogParams,
1020
- "onUpdate:modelValue": _cache[46] || (_cache[46] = ($event) => unref(currentItem).dialogConfig.dialogParams = $event)
1047
+ "onUpdate:modelValue": _cache[47] || (_cache[47] = ($event) => unref(currentItem).dialogConfig.dialogParams = $event)
1021
1048
  }, null, 8, ["modelValue"])
1022
1049
  ]),
1023
1050
  _: 1
@@ -1029,17 +1056,17 @@ const _sfc_main = {
1029
1056
  default: withCtx(() => [
1030
1057
  createVNode(_component_el_radio_group, {
1031
1058
  modelValue: unref(currentItem).dialogConfig.selectionMode,
1032
- "onUpdate:modelValue": _cache[47] || (_cache[47] = ($event) => unref(currentItem).dialogConfig.selectionMode = $event)
1059
+ "onUpdate:modelValue": _cache[48] || (_cache[48] = ($event) => unref(currentItem).dialogConfig.selectionMode = $event)
1033
1060
  }, {
1034
1061
  default: withCtx(() => [
1035
1062
  createVNode(_component_el_radio_button, { value: "single" }, {
1036
- default: withCtx(() => _cache[83] || (_cache[83] = [
1063
+ default: withCtx(() => _cache[84] || (_cache[84] = [
1037
1064
  createTextVNode("单选")
1038
1065
  ])),
1039
1066
  _: 1
1040
1067
  }),
1041
1068
  createVNode(_component_el_radio_button, { value: "multiple" }, {
1042
- default: withCtx(() => _cache[84] || (_cache[84] = [
1069
+ default: withCtx(() => _cache[85] || (_cache[85] = [
1043
1070
  createTextVNode("多选")
1044
1071
  ])),
1045
1072
  _: 1
@@ -1068,12 +1095,12 @@ const _sfc_main = {
1068
1095
  createElementVNode("div", _hoisted_18, [
1069
1096
  createVNode(_component_el_switch, {
1070
1097
  modelValue: unref(currentItem).required,
1071
- "onUpdate:modelValue": _cache[48] || (_cache[48] = ($event) => unref(currentItem).required = $event)
1098
+ "onUpdate:modelValue": _cache[49] || (_cache[49] = ($event) => unref(currentItem).required = $event)
1072
1099
  }, null, 8, ["modelValue"]),
1073
1100
  unref(currentItem).required ? (openBlock(), createBlock(_component_el_input, {
1074
1101
  key: 0,
1075
1102
  modelValue: unref(currentItem).requiredMessage,
1076
- "onUpdate:modelValue": _cache[49] || (_cache[49] = ($event) => unref(currentItem).requiredMessage = $event),
1103
+ "onUpdate:modelValue": _cache[50] || (_cache[50] = ($event) => unref(currentItem).requiredMessage = $event),
1077
1104
  placeholder: "请输入提示信息",
1078
1105
  style: { "flex": "1" }
1079
1106
  }, null, 8, ["modelValue"])) : createCommentVNode("", true)
@@ -1088,7 +1115,7 @@ const _sfc_main = {
1088
1115
  default: withCtx(() => [
1089
1116
  createVNode(_component_el_select, {
1090
1117
  modelValue: unref(currentItem).validationType,
1091
- "onUpdate:modelValue": _cache[50] || (_cache[50] = ($event) => unref(currentItem).validationType = $event),
1118
+ "onUpdate:modelValue": _cache[51] || (_cache[51] = ($event) => unref(currentItem).validationType = $event),
1092
1119
  placeholder: "选择校验规则",
1093
1120
  onChange: handleValidationChange,
1094
1121
  style: { "margin-bottom": "12px" }
@@ -1154,13 +1181,13 @@ const _sfc_main = {
1154
1181
  unref(currentItem).validationType === "custom" ? (openBlock(), createElementBlock("div", _hoisted_20, [
1155
1182
  createVNode(_sfc_main$2, {
1156
1183
  modelValue: unref(currentItem).validationDataSource,
1157
- "onUpdate:modelValue": _cache[51] || (_cache[51] = ($event) => unref(currentItem).validationDataSource = $event)
1184
+ "onUpdate:modelValue": _cache[52] || (_cache[52] = ($event) => unref(currentItem).validationDataSource = $event)
1158
1185
  }, null, 8, ["modelValue"])
1159
1186
  ])) : createCommentVNode("", true),
1160
1187
  unref(currentItem).validationType !== "none" ? (openBlock(), createBlock(_component_el_input, {
1161
1188
  key: 2,
1162
1189
  modelValue: unref(currentItem).validationMessage,
1163
- "onUpdate:modelValue": _cache[52] || (_cache[52] = ($event) => unref(currentItem).validationMessage = $event),
1190
+ "onUpdate:modelValue": _cache[53] || (_cache[53] = ($event) => unref(currentItem).validationMessage = $event),
1164
1191
  placeholder: getValidationPlaceholder(),
1165
1192
  style: { "margin-bottom": "12px" }
1166
1193
  }, null, 8, ["modelValue", "placeholder"])) : createCommentVNode("", true)
@@ -1179,7 +1206,7 @@ const _sfc_main = {
1179
1206
  };
1180
1207
  }
1181
1208
  };
1182
- const widgets = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d42788bd"]]);
1209
+ const widgets = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3839a547"]]);
1183
1210
  export {
1184
1211
  widgets as default
1185
1212
  };
package/es/designer.css CHANGED
@@ -3249,17 +3249,17 @@ to {
3249
3249
  width: 100%;
3250
3250
  }
3251
3251
 
3252
- .collapse-header[data-v-d42788bd] {
3252
+ .collapse-header[data-v-3839a547] {
3253
3253
  display: flex;
3254
3254
  align-items: center;
3255
3255
  justify-content: space-between;
3256
3256
  width: 100%;
3257
3257
  padding-right: 20px;
3258
3258
  }
3259
- .setting[data-v-d42788bd] .el-collapse-item__content {
3259
+ .setting[data-v-3839a547] .el-collapse-item__content {
3260
3260
  position: relative;
3261
3261
  }
3262
- .field-type-select[data-v-d42788bd] {
3262
+ .field-type-select[data-v-3839a547] {
3263
3263
  position: absolute;
3264
3264
  top: 11px;
3265
3265
  right: 16px;
@@ -3270,41 +3270,41 @@ to {
3270
3270
  transition: all 0.3s;
3271
3271
  border-radius: 4px;
3272
3272
  }
3273
- .field-type-select[data-v-d42788bd] .el-select__wrapper {
3273
+ .field-type-select[data-v-3839a547] .el-select__wrapper {
3274
3274
  background: transparent;
3275
3275
  box-shadow: none;
3276
3276
  }
3277
- .field-type-select[data-v-d42788bd] .el-select__selected-item {
3277
+ .field-type-select[data-v-3839a547] .el-select__selected-item {
3278
3278
  text-align: center;
3279
3279
  }
3280
- .width-input[data-v-d42788bd] {
3280
+ .width-input[data-v-3839a547] {
3281
3281
  width: 100%;
3282
3282
  }
3283
- .data-source-fields[data-v-d42788bd] {
3283
+ .data-source-fields[data-v-3839a547] {
3284
3284
  display: flex;
3285
3285
  flex-direction: column;
3286
3286
  gap: 8px;
3287
3287
  margin-bottom: 18px;
3288
3288
  }
3289
- .data-source-fields .field-item[data-v-d42788bd] {
3289
+ .data-source-fields .field-item[data-v-3839a547] {
3290
3290
  display: flex;
3291
3291
  align-items: center;
3292
3292
  gap: 8px;
3293
3293
  }
3294
- .data-source-fields .field-item .field-label[data-v-d42788bd] {
3294
+ .data-source-fields .field-item .field-label[data-v-3839a547] {
3295
3295
  width: 80px;
3296
3296
  font-size: 13px;
3297
3297
  color: #606266;
3298
3298
  text-align: right;
3299
3299
  flex-shrink: 0;
3300
3300
  }
3301
- .data-source-fields .field-item .field-label[data-v-d42788bd]::after {
3301
+ .data-source-fields .field-item .field-label[data-v-3839a547]::after {
3302
3302
  content: ":";
3303
3303
  }
3304
- .data-source-fields .field-item .el-input[data-v-d42788bd] {
3304
+ .data-source-fields .field-item .el-input[data-v-3839a547] {
3305
3305
  flex: 1;
3306
3306
  }
3307
- [data-v-d42788bd] .el-form-item__content {
3307
+ [data-v-3839a547] .el-form-item__content {
3308
3308
  flex-wrap: wrap !important;
3309
3309
  }
3310
3310
  .buttons-table[data-v-f81c0a82] {
@@ -54,6 +54,10 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
54
54
  endDate: {
55
55
  type: String,
56
56
  default: ""
57
+ },
58
+ dateRange: {
59
+ type: String,
60
+ default: ""
57
61
  }
58
62
  },
59
63
  emits: ["update:modelValue", "change"],
@@ -87,6 +91,21 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
87
91
  emit("change", val);
88
92
  }
89
93
  });
94
+ const disabledDate = (date) => {
95
+ if (!props.dateRange) return false;
96
+ debugger;
97
+ const today = /* @__PURE__ */ new Date();
98
+ today.setHours(0, 0, 0, 0);
99
+ const targetDate = new Date(date);
100
+ targetDate.setHours(0, 0, 0, 0);
101
+ if (props.dateRange === "beforeToday") {
102
+ return targetDate > today;
103
+ }
104
+ if (props.dateRange === "afterToday") {
105
+ return targetDate < today;
106
+ }
107
+ return false;
108
+ };
90
109
  return (_ctx, _cache) => {
91
110
  const _component_el_date_picker = ElDatePicker;
92
111
  return openBlock(), createElementBlock("div", _hoisted_1, [
@@ -100,6 +119,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
100
119
  readonly: __props.readonly,
101
120
  format: computedFormat.value,
102
121
  "value-format": computedValueFormat.value,
122
+ "disabled-date": disabledDate,
103
123
  clearable: "",
104
124
  style: { "width": "100%" }
105
125
  }), null, 16, ["modelValue", "type", "placeholder", "disabled", "readonly", "format", "value-format"])
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const version = "5.5.66";
3
+ const version = "5.5.67";
4
4
  const packageJson = {
5
5
  version
6
6
  };
@@ -12,6 +12,7 @@ const defaultProperty = {
12
12
  optionStyle: "default",
13
13
  dateType: "date",
14
14
  dateValueType: "string",
15
+ dateRange: "",
15
16
  suffixButton: "none",
16
17
  suffixDialogName: "选择",
17
18
  dialogSource: "global",
@@ -319,7 +319,7 @@ const _sfc_main = {
319
319
  return Vue.openBlock(), Vue.createBlock(_component_el_collapse, {
320
320
  class: "setting",
321
321
  modelValue: Vue.unref(activeName),
322
- "onUpdate:modelValue": _cache[53] || (_cache[53] = ($event) => Vue.isRef(activeName) ? activeName.value = $event : null)
322
+ "onUpdate:modelValue": _cache[54] || (_cache[54] = ($event) => Vue.isRef(activeName) ? activeName.value = $event : null)
323
323
  }, {
324
324
  default: Vue.withCtx(() => [
325
325
  Vue.createVNode(_component_el_collapse_item, {
@@ -429,19 +429,19 @@ const _sfc_main = {
429
429
  }, {
430
430
  default: Vue.withCtx(() => [
431
431
  Vue.createVNode(_component_el_radio_button, { value: "default" }, {
432
- default: Vue.withCtx(() => _cache[54] || (_cache[54] = [
432
+ default: Vue.withCtx(() => _cache[55] || (_cache[55] = [
433
433
  Vue.createTextVNode("默认")
434
434
  ])),
435
435
  _: 1
436
436
  }),
437
437
  Vue.createVNode(_component_el_radio_button, { value: "label" }, {
438
- default: Vue.withCtx(() => _cache[55] || (_cache[55] = [
438
+ default: Vue.withCtx(() => _cache[56] || (_cache[56] = [
439
439
  Vue.createTextVNode("标签")
440
440
  ])),
441
441
  _: 1
442
442
  }),
443
443
  Vue.createVNode(_component_el_radio_button, { value: "input" }, {
444
- default: Vue.withCtx(() => _cache[56] || (_cache[56] = [
444
+ default: Vue.withCtx(() => _cache[57] || (_cache[57] = [
445
445
  Vue.createTextVNode("输入框")
446
446
  ])),
447
447
  _: 1
@@ -461,19 +461,19 @@ const _sfc_main = {
461
461
  }, {
462
462
  default: Vue.withCtx(() => [
463
463
  Vue.createVNode(_component_el_radio_button, { value: "all" }, {
464
- default: Vue.withCtx(() => _cache[57] || (_cache[57] = [
464
+ default: Vue.withCtx(() => _cache[58] || (_cache[58] = [
465
465
  Vue.createTextVNode("始终显示")
466
466
  ])),
467
467
  _: 1
468
468
  }),
469
469
  Vue.createVNode(_component_el_radio_button, { value: "edit" }, {
470
- default: Vue.withCtx(() => _cache[58] || (_cache[58] = [
470
+ default: Vue.withCtx(() => _cache[59] || (_cache[59] = [
471
471
  Vue.createTextVNode("编辑时显示")
472
472
  ])),
473
473
  _: 1
474
474
  }),
475
475
  Vue.createVNode(_component_el_radio_button, { value: "query" }, {
476
- default: Vue.withCtx(() => _cache[59] || (_cache[59] = [
476
+ default: Vue.withCtx(() => _cache[60] || (_cache[60] = [
477
477
  Vue.createTextVNode("查看时显示")
478
478
  ])),
479
479
  _: 1
@@ -552,7 +552,7 @@ const _sfc_main = {
552
552
  ], 64)) : Vue.createCommentVNode("", true),
553
553
  Vue.unref(currentItem).fieldType == "text" || Vue.unref(currentItem).fieldType == "number" ? (Vue.openBlock(), Vue.createElementBlock(Vue.Fragment, { key: 3 }, [
554
554
  Vue.createVNode(_component_el_form_item, null, {
555
- label: Vue.withCtx(() => _cache[60] || (_cache[60] = [
555
+ label: Vue.withCtx(() => _cache[61] || (_cache[61] = [
556
556
  Vue.createElementVNode("span", null, "尾部按钮", -1)
557
557
  ])),
558
558
  default: Vue.withCtx(() => [
@@ -563,19 +563,19 @@ const _sfc_main = {
563
563
  }, {
564
564
  default: Vue.withCtx(() => [
565
565
  Vue.createVNode(_component_el_radio_button, { value: "none" }, {
566
- default: Vue.withCtx(() => _cache[61] || (_cache[61] = [
566
+ default: Vue.withCtx(() => _cache[62] || (_cache[62] = [
567
567
  Vue.createTextVNode("无")
568
568
  ])),
569
569
  _: 1
570
570
  }),
571
571
  Vue.createVNode(_component_el_radio_button, { value: "dialog" }, {
572
- default: Vue.withCtx(() => _cache[62] || (_cache[62] = [
572
+ default: Vue.withCtx(() => _cache[63] || (_cache[63] = [
573
573
  Vue.createTextVNode("弹层选择")
574
574
  ])),
575
575
  _: 1
576
576
  }),
577
577
  Vue.createVNode(_component_el_radio_button, { value: "custom" }, {
578
- default: Vue.withCtx(() => _cache[63] || (_cache[63] = [
578
+ default: Vue.withCtx(() => _cache[64] || (_cache[64] = [
579
579
  Vue.createTextVNode("自定义")
580
580
  ])),
581
581
  _: 1
@@ -588,14 +588,14 @@ const _sfc_main = {
588
588
  }),
589
589
  Vue.unref(currentItem).suffixButton == "dialog" ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_1, [
590
590
  Vue.createElementVNode("div", _hoisted_2, [
591
- _cache[64] || (_cache[64] = Vue.createElementVNode("span", { class: "field-label" }, "按钮名称", -1)),
591
+ _cache[65] || (_cache[65] = Vue.createElementVNode("span", { class: "field-label" }, "按钮名称", -1)),
592
592
  Vue.createVNode(_component_el_input, {
593
593
  modelValue: Vue.unref(currentItem).suffixDialogName,
594
594
  "onUpdate:modelValue": _cache[17] || (_cache[17] = ($event) => Vue.unref(currentItem).suffixDialogName = $event)
595
595
  }, null, 8, ["modelValue"])
596
596
  ]),
597
597
  Vue.createElementVNode("div", _hoisted_3, [
598
- _cache[67] || (_cache[67] = Vue.createElementVNode("span", { class: "field-label" }, "弹层来源", -1)),
598
+ _cache[68] || (_cache[68] = Vue.createElementVNode("span", { class: "field-label" }, "弹层来源", -1)),
599
599
  Vue.createVNode(_component_el_radio_group, {
600
600
  modelValue: Vue.unref(currentItem).dialogSource,
601
601
  "onUpdate:modelValue": _cache[18] || (_cache[18] = ($event) => Vue.unref(currentItem).dialogSource = $event),
@@ -603,13 +603,13 @@ const _sfc_main = {
603
603
  }, {
604
604
  default: Vue.withCtx(() => [
605
605
  Vue.createVNode(_component_el_radio_button, { value: "global" }, {
606
- default: Vue.withCtx(() => _cache[65] || (_cache[65] = [
606
+ default: Vue.withCtx(() => _cache[66] || (_cache[66] = [
607
607
  Vue.createTextVNode("全局")
608
608
  ])),
609
609
  _: 1
610
610
  }),
611
611
  Vue.createVNode(_component_el_radio_button, { value: "custom" }, {
612
- default: Vue.withCtx(() => _cache[66] || (_cache[66] = [
612
+ default: Vue.withCtx(() => _cache[67] || (_cache[67] = [
613
613
  Vue.createTextVNode("自定义")
614
614
  ])),
615
615
  _: 1
@@ -619,7 +619,7 @@ const _sfc_main = {
619
619
  }, 8, ["modelValue"])
620
620
  ]),
621
621
  Vue.createElementVNode("div", _hoisted_4, [
622
- _cache[68] || (_cache[68] = Vue.createElementVNode("span", { class: "field-label" }, "选择弹层", -1)),
622
+ _cache[69] || (_cache[69] = Vue.createElementVNode("span", { class: "field-label" }, "选择弹层", -1)),
623
623
  Vue.createVNode(_component_el_select, {
624
624
  modelValue: Vue.unref(currentItem).suffixDialogId,
625
625
  "onUpdate:modelValue": _cache[19] || (_cache[19] = ($event) => Vue.unref(currentItem).suffixDialogId = $event),
@@ -643,7 +643,7 @@ const _sfc_main = {
643
643
  ]),
644
644
  Vue.unref(currentItem).dialogSource == "global" && Vue.unref(currentItem).suffixDialogId ? (Vue.openBlock(), Vue.createElementBlock(Vue.Fragment, { key: 0 }, [
645
645
  Vue.createElementVNode("div", _hoisted_5, [
646
- _cache[72] || (_cache[72] = Vue.createElementVNode("span", { class: "field-label" }, "选择模式", -1)),
646
+ _cache[73] || (_cache[73] = Vue.createElementVNode("span", { class: "field-label" }, "选择模式", -1)),
647
647
  Vue.createVNode(_component_el_radio_group, {
648
648
  modelValue: Vue.unref(currentItem).selectionMode,
649
649
  "onUpdate:modelValue": _cache[20] || (_cache[20] = ($event) => Vue.unref(currentItem).selectionMode = $event),
@@ -651,19 +651,19 @@ const _sfc_main = {
651
651
  }, {
652
652
  default: Vue.withCtx(() => [
653
653
  Vue.createVNode(_component_el_radio_button, { value: "none" }, {
654
- default: Vue.withCtx(() => _cache[69] || (_cache[69] = [
654
+ default: Vue.withCtx(() => _cache[70] || (_cache[70] = [
655
655
  Vue.createTextVNode("无")
656
656
  ])),
657
657
  _: 1
658
658
  }),
659
659
  Vue.createVNode(_component_el_radio_button, { value: "single" }, {
660
- default: Vue.withCtx(() => _cache[70] || (_cache[70] = [
660
+ default: Vue.withCtx(() => _cache[71] || (_cache[71] = [
661
661
  Vue.createTextVNode("单选")
662
662
  ])),
663
663
  _: 1
664
664
  }),
665
665
  Vue.createVNode(_component_el_radio_button, { value: "multiple" }, {
666
- default: Vue.withCtx(() => _cache[71] || (_cache[71] = [
666
+ default: Vue.withCtx(() => _cache[72] || (_cache[72] = [
667
667
  Vue.createTextVNode("多选")
668
668
  ])),
669
669
  _: 1
@@ -674,7 +674,7 @@ const _sfc_main = {
674
674
  ]),
675
675
  Vue.unref(currentItem).selectionMode != "none" ? (Vue.openBlock(), Vue.createElementBlock(Vue.Fragment, { key: 0 }, [
676
676
  Vue.createElementVNode("div", _hoisted_6, [
677
- _cache[73] || (_cache[73] = Vue.createElementVNode("span", { class: "field-label" }, "反显格式", -1)),
677
+ _cache[74] || (_cache[74] = Vue.createElementVNode("span", { class: "field-label" }, "反显格式", -1)),
678
678
  Vue.createVNode(Vue.unref(FormulaEditorInput.default), {
679
679
  title: "反显格式配置",
680
680
  formulaConf: Vue.unref(currentItem).displayFormat,
@@ -685,7 +685,7 @@ const _sfc_main = {
685
685
  }, null, 8, ["formulaConf", "modelValue", "fieldList"])
686
686
  ]),
687
687
  Vue.createElementVNode("div", _hoisted_7, [
688
- _cache[74] || (_cache[74] = Vue.createElementVNode("span", {
688
+ _cache[75] || (_cache[75] = Vue.createElementVNode("span", {
689
689
  class: "field-label",
690
690
  style: { "width": "100%", "text-align": "left" }
691
691
  }, "选取后表单赋值", -1)),
@@ -701,7 +701,7 @@ const _sfc_main = {
701
701
  ])
702
702
  ], 64)) : Vue.createCommentVNode("", true),
703
703
  Vue.createElementVNode("div", _hoisted_8, [
704
- _cache[75] || (_cache[75] = Vue.createElementVNode("span", { class: "field-label" }, "回调事件", -1)),
704
+ _cache[76] || (_cache[76] = Vue.createElementVNode("span", { class: "field-label" }, "回调事件", -1)),
705
705
  Vue.createVNode(OnlyFLowConfigButton.default, {
706
706
  config: Vue.unref(currentItem).callbackEventConfig,
707
707
  onConfirm: handleOnlyFlowConfirm
@@ -710,14 +710,14 @@ const _sfc_main = {
710
710
  ], 64)) : Vue.createCommentVNode("", true)
711
711
  ])) : Vue.unref(currentItem).suffixButton == "custom" ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_9, [
712
712
  Vue.createElementVNode("div", _hoisted_10, [
713
- _cache[76] || (_cache[76] = Vue.createElementVNode("span", { class: "field-label" }, "按钮名称", -1)),
713
+ _cache[77] || (_cache[77] = Vue.createElementVNode("span", { class: "field-label" }, "按钮名称", -1)),
714
714
  Vue.createVNode(_component_el_input, {
715
715
  modelValue: Vue.unref(currentItem).suffixButtonName,
716
716
  "onUpdate:modelValue": _cache[24] || (_cache[24] = ($event) => Vue.unref(currentItem).suffixButtonName = $event)
717
717
  }, null, 8, ["modelValue"])
718
718
  ]),
719
719
  Vue.createElementVNode("div", _hoisted_11, [
720
- _cache[77] || (_cache[77] = Vue.createElementVNode("span", { class: "field-label" }, "按钮事件", -1)),
720
+ _cache[78] || (_cache[78] = Vue.createElementVNode("span", { class: "field-label" }, "按钮事件", -1)),
721
721
  Vue.createVNode(EventConfigButton.default, {
722
722
  config: Vue.unref(currentItem).suffixButtonConfig,
723
723
  onConfirm: handleSuffixButtonConfirm
@@ -800,7 +800,7 @@ const _sfc_main = {
800
800
  "controls-position": "right",
801
801
  placeholder: "最小值"
802
802
  }, null, 8, ["modelValue"]),
803
- _cache[78] || (_cache[78] = Vue.createElementVNode("span", { style: { "color": "#909399", "font-size": "14px" } }, "-", -1)),
803
+ _cache[79] || (_cache[79] = Vue.createElementVNode("span", { style: { "color": "#909399", "font-size": "14px" } }, "-", -1)),
804
804
  Vue.createVNode(_component_el_input_number, {
805
805
  style: { "width": "100%" },
806
806
  modelValue: Vue.unref(currentItem).maxValue,
@@ -852,7 +852,7 @@ const _sfc_main = {
852
852
  }),
853
853
  Vue.createElementVNode("div", _hoisted_13, [
854
854
  Vue.createElementVNode("div", _hoisted_14, [
855
- _cache[79] || (_cache[79] = Vue.createElementVNode("span", { class: "field-label" }, "显示字段", -1)),
855
+ _cache[80] || (_cache[80] = Vue.createElementVNode("span", { class: "field-label" }, "显示字段", -1)),
856
856
  Vue.createVNode(_component_el_input, {
857
857
  modelValue: Vue.unref(currentItem).optionConfig.displayField,
858
858
  "onUpdate:modelValue": _cache[34] || (_cache[34] = ($event) => Vue.unref(currentItem).optionConfig.displayField = $event),
@@ -860,7 +860,7 @@ const _sfc_main = {
860
860
  }, null, 8, ["modelValue"])
861
861
  ]),
862
862
  Vue.createElementVNode("div", _hoisted_15, [
863
- _cache[80] || (_cache[80] = Vue.createElementVNode("span", { class: "field-label" }, "值字段", -1)),
863
+ _cache[81] || (_cache[81] = Vue.createElementVNode("span", { class: "field-label" }, "值字段", -1)),
864
864
  Vue.createVNode(_component_el_input, {
865
865
  modelValue: Vue.unref(currentItem).optionConfig.valueField,
866
866
  "onUpdate:modelValue": _cache[35] || (_cache[35] = ($event) => Vue.unref(currentItem).optionConfig.valueField = $event),
@@ -868,7 +868,7 @@ const _sfc_main = {
868
868
  }, null, 8, ["modelValue"])
869
869
  ]),
870
870
  Vue.createElementVNode("div", _hoisted_16, [
871
- _cache[81] || (_cache[81] = Vue.createElementVNode("span", { class: "field-label" }, "主键字段", -1)),
871
+ _cache[82] || (_cache[82] = Vue.createElementVNode("span", { class: "field-label" }, "主键字段", -1)),
872
872
  Vue.createVNode(_component_el_input, {
873
873
  modelValue: Vue.unref(currentItem).optionConfig.idField,
874
874
  "onUpdate:modelValue": _cache[36] || (_cache[36] = ($event) => Vue.unref(currentItem).optionConfig.idField = $event),
@@ -876,7 +876,7 @@ const _sfc_main = {
876
876
  }, null, 8, ["modelValue"])
877
877
  ]),
878
878
  Vue.createElementVNode("div", _hoisted_17, [
879
- _cache[82] || (_cache[82] = Vue.createElementVNode("span", { class: "field-label" }, "父主键字段", -1)),
879
+ _cache[83] || (_cache[83] = Vue.createElementVNode("span", { class: "field-label" }, "父主键字段", -1)),
880
880
  Vue.createVNode(_component_el_input, {
881
881
  modelValue: Vue.unref(currentItem).optionConfig.pidField,
882
882
  "onUpdate:modelValue": _cache[37] || (_cache[37] = ($event) => Vue.unref(currentItem).optionConfig.pidField = $event),
@@ -1003,6 +1003,33 @@ const _sfc_main = {
1003
1003
  }, 8, ["modelValue"])
1004
1004
  ]),
1005
1005
  _: 1
1006
+ }),
1007
+ Vue.createVNode(_component_el_form_item, { label: "可选范围" }, {
1008
+ default: Vue.withCtx(() => [
1009
+ Vue.createVNode(_component_el_select, {
1010
+ modelValue: Vue.unref(currentItem).dateRange,
1011
+ "onUpdate:modelValue": _cache[45] || (_cache[45] = ($event) => Vue.unref(currentItem).dateRange = $event),
1012
+ "empty-values": [null, void 0],
1013
+ "value-on-clear": null
1014
+ }, {
1015
+ default: Vue.withCtx(() => [
1016
+ Vue.createVNode(_component_el_option, {
1017
+ label: "不限",
1018
+ value: ""
1019
+ }),
1020
+ Vue.createVNode(_component_el_option, {
1021
+ label: "今天及以前",
1022
+ value: "beforeToday"
1023
+ }),
1024
+ Vue.createVNode(_component_el_option, {
1025
+ label: "今天及以后",
1026
+ value: "afterToday"
1027
+ })
1028
+ ]),
1029
+ _: 1
1030
+ }, 8, ["modelValue"])
1031
+ ]),
1032
+ _: 1
1006
1033
  })
1007
1034
  ], 64)) : Vue.createCommentVNode("", true),
1008
1035
  Vue.unref(isSysSelect) ? (Vue.openBlock(), Vue.createElementBlock(Vue.Fragment, { key: 11 }, [
@@ -1010,7 +1037,7 @@ const _sfc_main = {
1010
1037
  default: Vue.withCtx(() => [
1011
1038
  Vue.createVNode(_component_el_input, {
1012
1039
  modelValue: Vue.unref(currentItem).dialogConfig.dialogTitle,
1013
- "onUpdate:modelValue": _cache[45] || (_cache[45] = ($event) => Vue.unref(currentItem).dialogConfig.dialogTitle = $event)
1040
+ "onUpdate:modelValue": _cache[46] || (_cache[46] = ($event) => Vue.unref(currentItem).dialogConfig.dialogTitle = $event)
1014
1041
  }, null, 8, ["modelValue"])
1015
1042
  ]),
1016
1043
  _: 1
@@ -1019,7 +1046,7 @@ const _sfc_main = {
1019
1046
  default: Vue.withCtx(() => [
1020
1047
  Vue.createVNode(_component_ParamsConfig, {
1021
1048
  modelValue: Vue.unref(currentItem).dialogConfig.dialogParams,
1022
- "onUpdate:modelValue": _cache[46] || (_cache[46] = ($event) => Vue.unref(currentItem).dialogConfig.dialogParams = $event)
1049
+ "onUpdate:modelValue": _cache[47] || (_cache[47] = ($event) => Vue.unref(currentItem).dialogConfig.dialogParams = $event)
1023
1050
  }, null, 8, ["modelValue"])
1024
1051
  ]),
1025
1052
  _: 1
@@ -1031,17 +1058,17 @@ const _sfc_main = {
1031
1058
  default: Vue.withCtx(() => [
1032
1059
  Vue.createVNode(_component_el_radio_group, {
1033
1060
  modelValue: Vue.unref(currentItem).dialogConfig.selectionMode,
1034
- "onUpdate:modelValue": _cache[47] || (_cache[47] = ($event) => Vue.unref(currentItem).dialogConfig.selectionMode = $event)
1061
+ "onUpdate:modelValue": _cache[48] || (_cache[48] = ($event) => Vue.unref(currentItem).dialogConfig.selectionMode = $event)
1035
1062
  }, {
1036
1063
  default: Vue.withCtx(() => [
1037
1064
  Vue.createVNode(_component_el_radio_button, { value: "single" }, {
1038
- default: Vue.withCtx(() => _cache[83] || (_cache[83] = [
1065
+ default: Vue.withCtx(() => _cache[84] || (_cache[84] = [
1039
1066
  Vue.createTextVNode("单选")
1040
1067
  ])),
1041
1068
  _: 1
1042
1069
  }),
1043
1070
  Vue.createVNode(_component_el_radio_button, { value: "multiple" }, {
1044
- default: Vue.withCtx(() => _cache[84] || (_cache[84] = [
1071
+ default: Vue.withCtx(() => _cache[85] || (_cache[85] = [
1045
1072
  Vue.createTextVNode("多选")
1046
1073
  ])),
1047
1074
  _: 1
@@ -1070,12 +1097,12 @@ const _sfc_main = {
1070
1097
  Vue.createElementVNode("div", _hoisted_18, [
1071
1098
  Vue.createVNode(_component_el_switch, {
1072
1099
  modelValue: Vue.unref(currentItem).required,
1073
- "onUpdate:modelValue": _cache[48] || (_cache[48] = ($event) => Vue.unref(currentItem).required = $event)
1100
+ "onUpdate:modelValue": _cache[49] || (_cache[49] = ($event) => Vue.unref(currentItem).required = $event)
1074
1101
  }, null, 8, ["modelValue"]),
1075
1102
  Vue.unref(currentItem).required ? (Vue.openBlock(), Vue.createBlock(_component_el_input, {
1076
1103
  key: 0,
1077
1104
  modelValue: Vue.unref(currentItem).requiredMessage,
1078
- "onUpdate:modelValue": _cache[49] || (_cache[49] = ($event) => Vue.unref(currentItem).requiredMessage = $event),
1105
+ "onUpdate:modelValue": _cache[50] || (_cache[50] = ($event) => Vue.unref(currentItem).requiredMessage = $event),
1079
1106
  placeholder: "请输入提示信息",
1080
1107
  style: { "flex": "1" }
1081
1108
  }, null, 8, ["modelValue"])) : Vue.createCommentVNode("", true)
@@ -1090,7 +1117,7 @@ const _sfc_main = {
1090
1117
  default: Vue.withCtx(() => [
1091
1118
  Vue.createVNode(_component_el_select, {
1092
1119
  modelValue: Vue.unref(currentItem).validationType,
1093
- "onUpdate:modelValue": _cache[50] || (_cache[50] = ($event) => Vue.unref(currentItem).validationType = $event),
1120
+ "onUpdate:modelValue": _cache[51] || (_cache[51] = ($event) => Vue.unref(currentItem).validationType = $event),
1094
1121
  placeholder: "选择校验规则",
1095
1122
  onChange: handleValidationChange,
1096
1123
  style: { "margin-bottom": "12px" }
@@ -1156,13 +1183,13 @@ const _sfc_main = {
1156
1183
  Vue.unref(currentItem).validationType === "custom" ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_20, [
1157
1184
  Vue.createVNode(DataSourceSelect.default, {
1158
1185
  modelValue: Vue.unref(currentItem).validationDataSource,
1159
- "onUpdate:modelValue": _cache[51] || (_cache[51] = ($event) => Vue.unref(currentItem).validationDataSource = $event)
1186
+ "onUpdate:modelValue": _cache[52] || (_cache[52] = ($event) => Vue.unref(currentItem).validationDataSource = $event)
1160
1187
  }, null, 8, ["modelValue"])
1161
1188
  ])) : Vue.createCommentVNode("", true),
1162
1189
  Vue.unref(currentItem).validationType !== "none" ? (Vue.openBlock(), Vue.createBlock(_component_el_input, {
1163
1190
  key: 2,
1164
1191
  modelValue: Vue.unref(currentItem).validationMessage,
1165
- "onUpdate:modelValue": _cache[52] || (_cache[52] = ($event) => Vue.unref(currentItem).validationMessage = $event),
1192
+ "onUpdate:modelValue": _cache[53] || (_cache[53] = ($event) => Vue.unref(currentItem).validationMessage = $event),
1166
1193
  placeholder: getValidationPlaceholder(),
1167
1194
  style: { "margin-bottom": "12px" }
1168
1195
  }, null, 8, ["modelValue", "placeholder"])) : Vue.createCommentVNode("", true)
@@ -1181,5 +1208,5 @@ const _sfc_main = {
1181
1208
  };
1182
1209
  }
1183
1210
  };
1184
- const widgets = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-d42788bd"]]);
1211
+ const widgets = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-3839a547"]]);
1185
1212
  exports.default = widgets;
package/lib/designer.css CHANGED
@@ -3249,17 +3249,17 @@ to {
3249
3249
  width: 100%;
3250
3250
  }
3251
3251
 
3252
- .collapse-header[data-v-d42788bd] {
3252
+ .collapse-header[data-v-3839a547] {
3253
3253
  display: flex;
3254
3254
  align-items: center;
3255
3255
  justify-content: space-between;
3256
3256
  width: 100%;
3257
3257
  padding-right: 20px;
3258
3258
  }
3259
- .setting[data-v-d42788bd] .el-collapse-item__content {
3259
+ .setting[data-v-3839a547] .el-collapse-item__content {
3260
3260
  position: relative;
3261
3261
  }
3262
- .field-type-select[data-v-d42788bd] {
3262
+ .field-type-select[data-v-3839a547] {
3263
3263
  position: absolute;
3264
3264
  top: 11px;
3265
3265
  right: 16px;
@@ -3270,41 +3270,41 @@ to {
3270
3270
  transition: all 0.3s;
3271
3271
  border-radius: 4px;
3272
3272
  }
3273
- .field-type-select[data-v-d42788bd] .el-select__wrapper {
3273
+ .field-type-select[data-v-3839a547] .el-select__wrapper {
3274
3274
  background: transparent;
3275
3275
  box-shadow: none;
3276
3276
  }
3277
- .field-type-select[data-v-d42788bd] .el-select__selected-item {
3277
+ .field-type-select[data-v-3839a547] .el-select__selected-item {
3278
3278
  text-align: center;
3279
3279
  }
3280
- .width-input[data-v-d42788bd] {
3280
+ .width-input[data-v-3839a547] {
3281
3281
  width: 100%;
3282
3282
  }
3283
- .data-source-fields[data-v-d42788bd] {
3283
+ .data-source-fields[data-v-3839a547] {
3284
3284
  display: flex;
3285
3285
  flex-direction: column;
3286
3286
  gap: 8px;
3287
3287
  margin-bottom: 18px;
3288
3288
  }
3289
- .data-source-fields .field-item[data-v-d42788bd] {
3289
+ .data-source-fields .field-item[data-v-3839a547] {
3290
3290
  display: flex;
3291
3291
  align-items: center;
3292
3292
  gap: 8px;
3293
3293
  }
3294
- .data-source-fields .field-item .field-label[data-v-d42788bd] {
3294
+ .data-source-fields .field-item .field-label[data-v-3839a547] {
3295
3295
  width: 80px;
3296
3296
  font-size: 13px;
3297
3297
  color: #606266;
3298
3298
  text-align: right;
3299
3299
  flex-shrink: 0;
3300
3300
  }
3301
- .data-source-fields .field-item .field-label[data-v-d42788bd]::after {
3301
+ .data-source-fields .field-item .field-label[data-v-3839a547]::after {
3302
3302
  content: ":";
3303
3303
  }
3304
- .data-source-fields .field-item .el-input[data-v-d42788bd] {
3304
+ .data-source-fields .field-item .el-input[data-v-3839a547] {
3305
3305
  flex: 1;
3306
3306
  }
3307
- [data-v-d42788bd] .el-form-item__content {
3307
+ [data-v-3839a547] .el-form-item__content {
3308
3308
  flex-wrap: wrap !important;
3309
3309
  }
3310
3310
  .buttons-table[data-v-f81c0a82] {
@@ -56,6 +56,10 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
56
56
  endDate: {
57
57
  type: String,
58
58
  default: ""
59
+ },
60
+ dateRange: {
61
+ type: String,
62
+ default: ""
59
63
  }
60
64
  },
61
65
  emits: ["update:modelValue", "change"],
@@ -89,6 +93,21 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
89
93
  emit("change", val);
90
94
  }
91
95
  });
96
+ const disabledDate = (date) => {
97
+ if (!props.dateRange) return false;
98
+ debugger;
99
+ const today = /* @__PURE__ */ new Date();
100
+ today.setHours(0, 0, 0, 0);
101
+ const targetDate = new Date(date);
102
+ targetDate.setHours(0, 0, 0, 0);
103
+ if (props.dateRange === "beforeToday") {
104
+ return targetDate > today;
105
+ }
106
+ if (props.dateRange === "afterToday") {
107
+ return targetDate < today;
108
+ }
109
+ return false;
110
+ };
92
111
  return (_ctx, _cache) => {
93
112
  const _component_el_date_picker = index.ElDatePicker;
94
113
  return Vue.openBlock(), Vue.createElementBlock("div", _hoisted_1, [
@@ -102,6 +121,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
102
121
  readonly: __props.readonly,
103
122
  format: computedFormat.value,
104
123
  "value-format": computedValueFormat.value,
124
+ "disabled-date": disabledDate,
105
125
  clearable: "",
106
126
  style: { "width": "100%" }
107
127
  }), null, 16, ["modelValue", "type", "placeholder", "disabled", "readonly", "format", "value-format"])
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fecp/designer",
3
- "version": "5.5.66",
3
+ "version": "5.5.67",
4
4
  "main": "lib/designer/index.js",
5
5
  "module": "es/designer/index.mjs",
6
6
  "files": [