@fecp/designer 5.2.2 → 5.2.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/es/designer.css CHANGED
@@ -3115,17 +3115,17 @@ to {
3115
3115
  width: 100%;
3116
3116
  }
3117
3117
 
3118
- .collapse-header[data-v-3318d394] {
3118
+ .collapse-header[data-v-e7b8302c] {
3119
3119
  display: flex;
3120
3120
  align-items: center;
3121
3121
  justify-content: space-between;
3122
3122
  width: 100%;
3123
3123
  padding-right: 20px;
3124
3124
  }
3125
- .setting[data-v-3318d394] .el-collapse-item__content {
3125
+ .setting[data-v-e7b8302c] .el-collapse-item__content {
3126
3126
  position: relative;
3127
3127
  }
3128
- .field-type-select[data-v-3318d394] {
3128
+ .field-type-select[data-v-e7b8302c] {
3129
3129
  position: absolute;
3130
3130
  top: 11px;
3131
3131
  right: 16px;
@@ -3136,38 +3136,38 @@ to {
3136
3136
  transition: all 0.3s;
3137
3137
  border-radius: 4px;
3138
3138
  }
3139
- .field-type-select[data-v-3318d394] .el-select__wrapper {
3139
+ .field-type-select[data-v-e7b8302c] .el-select__wrapper {
3140
3140
  background: transparent;
3141
3141
  box-shadow: none;
3142
3142
  }
3143
- .field-type-select[data-v-3318d394] .el-select__selected-item {
3143
+ .field-type-select[data-v-e7b8302c] .el-select__selected-item {
3144
3144
  text-align: center;
3145
3145
  }
3146
- .width-input[data-v-3318d394] {
3146
+ .width-input[data-v-e7b8302c] {
3147
3147
  width: 100%;
3148
3148
  }
3149
- .data-source-fields[data-v-3318d394] {
3149
+ .data-source-fields[data-v-e7b8302c] {
3150
3150
  display: flex;
3151
3151
  flex-direction: column;
3152
3152
  gap: 8px;
3153
3153
  margin-bottom: 18px;
3154
3154
  }
3155
- .data-source-fields .field-item[data-v-3318d394] {
3155
+ .data-source-fields .field-item[data-v-e7b8302c] {
3156
3156
  display: flex;
3157
3157
  align-items: center;
3158
3158
  gap: 8px;
3159
3159
  }
3160
- .data-source-fields .field-item .field-label[data-v-3318d394] {
3160
+ .data-source-fields .field-item .field-label[data-v-e7b8302c] {
3161
3161
  width: 80px;
3162
3162
  font-size: 13px;
3163
3163
  color: #606266;
3164
3164
  text-align: right;
3165
3165
  flex-shrink: 0;
3166
3166
  }
3167
- .data-source-fields .field-item .field-label[data-v-3318d394]::after {
3167
+ .data-source-fields .field-item .field-label[data-v-e7b8302c]::after {
3168
3168
  content: ":";
3169
3169
  }
3170
- .data-source-fields .field-item .el-input[data-v-3318d394] {
3170
+ .data-source-fields .field-item .el-input[data-v-e7b8302c] {
3171
3171
  flex: 1;
3172
3172
  }.root-property[data-v-e88c3a83] {
3173
3173
  width: 300px;
@@ -5305,18 +5305,18 @@ body,
5305
5305
  }
5306
5306
  .approval-history-content.flowChart[data-v-7be2a6d2] {
5307
5307
  background-color: #f9fafc;
5308
- }.dialog-header-content[data-v-1e8ea0b4] {
5308
+ }.dialog-header-content[data-v-dd10a495] {
5309
5309
  font-size: 16px;
5310
5310
  font-weight: 600;
5311
5311
  color: #303133;
5312
5312
  }
5313
- .dialog-content-wrapper[data-v-1e8ea0b4] {
5313
+ .dialog-content-wrapper[data-v-dd10a495] {
5314
5314
  min-height: 500px;
5315
5315
  flex-grow: 1;
5316
5316
  display: flex;
5317
5317
  flex-direction: column;
5318
5318
  }
5319
- .empty-content[data-v-1e8ea0b4] {
5319
+ .empty-content[data-v-dd10a495] {
5320
5320
  display: flex;
5321
5321
  align-items: center;
5322
5322
  justify-content: center;
@@ -5324,13 +5324,13 @@ body,
5324
5324
  color: #909399;
5325
5325
  font-size: 14px;
5326
5326
  }
5327
- .component-error[data-v-1e8ea0b4] {
5327
+ .component-error[data-v-dd10a495] {
5328
5328
  padding: 40px 20px;
5329
5329
  text-align: center;
5330
5330
  color: #f56c6c;
5331
5331
  font-size: 14px;
5332
5332
  }
5333
- .fec-dialog-table[data-v-1e8ea0b4] .table-pagination {
5333
+ .fec-dialog-table[data-v-dd10a495] .table-pagination {
5334
5334
  padding: 8px 0 0 0;
5335
5335
  }.text-field-wrapper[data-v-b0c0d80f] {
5336
5336
  width: 100%;
@@ -5501,29 +5501,29 @@ body,
5501
5501
  width: 80px;
5502
5502
  font-size: var(--el-font-size-extra-small);
5503
5503
  }
5504
- .fec-form[data-v-263c93f9] {
5504
+ .fec-form[data-v-42af7e52] {
5505
5505
  height: 100%;
5506
5506
  }
5507
- [data-v-263c93f9] .vgl-item > .el-form-item {
5507
+ [data-v-42af7e52] .vgl-item > .el-form-item {
5508
5508
  width: 100%;
5509
5509
  padding: 12px 8px 0 8px;
5510
5510
  height: calc(100% - 15px);
5511
5511
  display: flex;
5512
5512
  }
5513
- [data-v-263c93f9] .vgl-item > .el-form-item.el-form-item--label-top {
5513
+ [data-v-42af7e52] .vgl-item > .el-form-item.el-form-item--label-top {
5514
5514
  flex-direction: column;
5515
5515
  }
5516
- [data-v-263c93f9] .vgl-item > .el-form-item .el-form-item__label {
5516
+ [data-v-42af7e52] .vgl-item > .el-form-item .el-form-item__label {
5517
5517
  line-height: 20px;
5518
5518
  display: flex;
5519
5519
  align-items: center;
5520
5520
  }
5521
- [data-v-263c93f9] .vgl-item > .el-container {
5521
+ [data-v-42af7e52] .vgl-item > .el-container {
5522
5522
  height: auto !important;
5523
- }.cell-content .cell-text[data-v-df099102] {
5523
+ }.cell-content .cell-text[data-v-82ffe38c] {
5524
5524
  display: inline-block;
5525
5525
  }
5526
- .cell-content .copy-icon[data-v-df099102] {
5526
+ .cell-content .copy-icon[data-v-82ffe38c] {
5527
5527
  cursor: pointer;
5528
5528
  color: #909399;
5529
5529
  font-size: 14px;
@@ -5531,7 +5531,7 @@ body,
5531
5531
  top: 4px;
5532
5532
  margin-left: 4px;
5533
5533
  }
5534
- .cell-content .copy-icon[data-v-df099102]:hover {
5534
+ .cell-content .copy-icon[data-v-82ffe38c]:hover {
5535
5535
  color: #409eff;
5536
5536
  }.fec-table-filter[data-v-366e01c3] {
5537
5537
  display: flex;
@@ -8,6 +8,7 @@ const defaultProperty = {
8
8
  decimalPlaces: 2,
9
9
  optionStyle: "default",
10
10
  dateType: "date",
11
+ dateValueType: "string",
11
12
  suffixButton: "none",
12
13
  suffixDialogName: "选择",
13
14
  dialogSource: "global",
@@ -273,7 +273,7 @@ const _sfc_main = {
273
273
  return openBlock(), createBlock(_component_el_collapse, {
274
274
  class: "setting",
275
275
  modelValue: unref(activeName),
276
- "onUpdate:modelValue": _cache[52] || (_cache[52] = ($event) => isRef(activeName) ? activeName.value = $event : null)
276
+ "onUpdate:modelValue": _cache[53] || (_cache[53] = ($event) => isRef(activeName) ? activeName.value = $event : null)
277
277
  }, {
278
278
  default: withCtx(() => [
279
279
  createVNode(_component_el_collapse_item, {
@@ -392,19 +392,19 @@ const _sfc_main = {
392
392
  }, {
393
393
  default: withCtx(() => [
394
394
  createVNode(_component_el_radio_button, { value: "default" }, {
395
- default: withCtx(() => _cache[53] || (_cache[53] = [
395
+ default: withCtx(() => _cache[54] || (_cache[54] = [
396
396
  createTextVNode("默认")
397
397
  ])),
398
398
  _: 1
399
399
  }),
400
400
  createVNode(_component_el_radio_button, { value: "label" }, {
401
- default: withCtx(() => _cache[54] || (_cache[54] = [
401
+ default: withCtx(() => _cache[55] || (_cache[55] = [
402
402
  createTextVNode("标签")
403
403
  ])),
404
404
  _: 1
405
405
  }),
406
406
  createVNode(_component_el_radio_button, { value: "input" }, {
407
- default: withCtx(() => _cache[55] || (_cache[55] = [
407
+ default: withCtx(() => _cache[56] || (_cache[56] = [
408
408
  createTextVNode("输入框")
409
409
  ])),
410
410
  _: 1
@@ -483,7 +483,7 @@ const _sfc_main = {
483
483
  ], 64)) : createCommentVNode("", true),
484
484
  unref(currentItem).fieldType === "text" ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
485
485
  createVNode(_component_el_form_item, null, {
486
- label: withCtx(() => _cache[56] || (_cache[56] = [
486
+ label: withCtx(() => _cache[57] || (_cache[57] = [
487
487
  createElementVNode("span", null, "尾部按钮", -1)
488
488
  ])),
489
489
  default: withCtx(() => [
@@ -494,19 +494,19 @@ const _sfc_main = {
494
494
  }, {
495
495
  default: withCtx(() => [
496
496
  createVNode(_component_el_radio_button, { value: "none" }, {
497
- default: withCtx(() => _cache[57] || (_cache[57] = [
497
+ default: withCtx(() => _cache[58] || (_cache[58] = [
498
498
  createTextVNode("无")
499
499
  ])),
500
500
  _: 1
501
501
  }),
502
502
  createVNode(_component_el_radio_button, { value: "dialog" }, {
503
- default: withCtx(() => _cache[58] || (_cache[58] = [
503
+ default: withCtx(() => _cache[59] || (_cache[59] = [
504
504
  createTextVNode("弹层选择")
505
505
  ])),
506
506
  _: 1
507
507
  }),
508
508
  createVNode(_component_el_radio_button, { value: "custom" }, {
509
- default: withCtx(() => _cache[59] || (_cache[59] = [
509
+ default: withCtx(() => _cache[60] || (_cache[60] = [
510
510
  createTextVNode("自定义")
511
511
  ])),
512
512
  _: 1
@@ -519,14 +519,14 @@ const _sfc_main = {
519
519
  }),
520
520
  unref(currentItem).suffixButton == "dialog" ? (openBlock(), createElementBlock("div", _hoisted_1, [
521
521
  createElementVNode("div", _hoisted_2, [
522
- _cache[60] || (_cache[60] = createElementVNode("span", { class: "field-label" }, "按钮名称", -1)),
522
+ _cache[61] || (_cache[61] = createElementVNode("span", { class: "field-label" }, "按钮名称", -1)),
523
523
  createVNode(_component_el_input, {
524
524
  modelValue: unref(currentItem).suffixDialogName,
525
525
  "onUpdate:modelValue": _cache[17] || (_cache[17] = ($event) => unref(currentItem).suffixDialogName = $event)
526
526
  }, null, 8, ["modelValue"])
527
527
  ]),
528
528
  createElementVNode("div", _hoisted_3, [
529
- _cache[63] || (_cache[63] = createElementVNode("span", { class: "field-label" }, "弹层来源", -1)),
529
+ _cache[64] || (_cache[64] = createElementVNode("span", { class: "field-label" }, "弹层来源", -1)),
530
530
  createVNode(_component_el_radio_group, {
531
531
  modelValue: unref(currentItem).dialogSource,
532
532
  "onUpdate:modelValue": _cache[18] || (_cache[18] = ($event) => unref(currentItem).dialogSource = $event),
@@ -534,13 +534,13 @@ const _sfc_main = {
534
534
  }, {
535
535
  default: withCtx(() => [
536
536
  createVNode(_component_el_radio_button, { value: "global" }, {
537
- default: withCtx(() => _cache[61] || (_cache[61] = [
537
+ default: withCtx(() => _cache[62] || (_cache[62] = [
538
538
  createTextVNode("全局")
539
539
  ])),
540
540
  _: 1
541
541
  }),
542
542
  createVNode(_component_el_radio_button, { value: "custom" }, {
543
- default: withCtx(() => _cache[62] || (_cache[62] = [
543
+ default: withCtx(() => _cache[63] || (_cache[63] = [
544
544
  createTextVNode("自定义")
545
545
  ])),
546
546
  _: 1
@@ -550,7 +550,7 @@ const _sfc_main = {
550
550
  }, 8, ["modelValue"])
551
551
  ]),
552
552
  createElementVNode("div", _hoisted_4, [
553
- _cache[64] || (_cache[64] = createElementVNode("span", { class: "field-label" }, "选择弹层", -1)),
553
+ _cache[65] || (_cache[65] = createElementVNode("span", { class: "field-label" }, "选择弹层", -1)),
554
554
  createVNode(_component_el_select, {
555
555
  modelValue: unref(currentItem).suffixDialogId,
556
556
  "onUpdate:modelValue": _cache[19] || (_cache[19] = ($event) => unref(currentItem).suffixDialogId = $event),
@@ -575,7 +575,7 @@ const _sfc_main = {
575
575
  ]),
576
576
  unref(currentItem).dialogSource == "global" && unref(currentItem).suffixDialogId ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
577
577
  createElementVNode("div", _hoisted_5, [
578
- _cache[68] || (_cache[68] = createElementVNode("span", { class: "field-label" }, "选择模式", -1)),
578
+ _cache[69] || (_cache[69] = createElementVNode("span", { class: "field-label" }, "选择模式", -1)),
579
579
  createVNode(_component_el_radio_group, {
580
580
  modelValue: unref(currentItem).selectionMode,
581
581
  "onUpdate:modelValue": _cache[20] || (_cache[20] = ($event) => unref(currentItem).selectionMode = $event),
@@ -583,19 +583,19 @@ const _sfc_main = {
583
583
  }, {
584
584
  default: withCtx(() => [
585
585
  createVNode(_component_el_radio_button, { value: "none" }, {
586
- default: withCtx(() => _cache[65] || (_cache[65] = [
586
+ default: withCtx(() => _cache[66] || (_cache[66] = [
587
587
  createTextVNode("无")
588
588
  ])),
589
589
  _: 1
590
590
  }),
591
591
  createVNode(_component_el_radio_button, { value: "single" }, {
592
- default: withCtx(() => _cache[66] || (_cache[66] = [
592
+ default: withCtx(() => _cache[67] || (_cache[67] = [
593
593
  createTextVNode("单选")
594
594
  ])),
595
595
  _: 1
596
596
  }),
597
597
  createVNode(_component_el_radio_button, { value: "multiple" }, {
598
- default: withCtx(() => _cache[67] || (_cache[67] = [
598
+ default: withCtx(() => _cache[68] || (_cache[68] = [
599
599
  createTextVNode("多选")
600
600
  ])),
601
601
  _: 1
@@ -606,7 +606,7 @@ const _sfc_main = {
606
606
  ]),
607
607
  unref(currentItem).selectionMode != "none" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
608
608
  createElementVNode("div", _hoisted_6, [
609
- _cache[69] || (_cache[69] = createElementVNode("span", { class: "field-label" }, "选取后反显格式", -1)),
609
+ _cache[70] || (_cache[70] = createElementVNode("span", { class: "field-label" }, "选取后反显格式", -1)),
610
610
  createVNode(unref(_sfc_main$1), {
611
611
  title: "反显格式配置",
612
612
  formulaConf: unref(currentItem).displayFormat,
@@ -617,7 +617,7 @@ const _sfc_main = {
617
617
  }, null, 8, ["formulaConf", "modelValue", "fieldList"])
618
618
  ]),
619
619
  createElementVNode("div", _hoisted_7, [
620
- _cache[70] || (_cache[70] = createElementVNode("span", {
620
+ _cache[71] || (_cache[71] = createElementVNode("span", {
621
621
  class: "field-label",
622
622
  style: { "width": "100%", "text-align": "left" }
623
623
  }, "选取后表单赋值", -1)),
@@ -633,7 +633,7 @@ const _sfc_main = {
633
633
  ])
634
634
  ], 64)) : createCommentVNode("", true),
635
635
  createElementVNode("div", _hoisted_8, [
636
- _cache[71] || (_cache[71] = createElementVNode("span", { class: "field-label" }, "回调事件配置", -1)),
636
+ _cache[72] || (_cache[72] = createElementVNode("span", { class: "field-label" }, "回调事件配置", -1)),
637
637
  createVNode(OnlyFLowConfigButton, {
638
638
  config: unref(currentItem).callbackEventConfig,
639
639
  onConfirm: handleOnlyFlowConfirm
@@ -642,14 +642,14 @@ const _sfc_main = {
642
642
  ], 64)) : createCommentVNode("", true)
643
643
  ])) : unref(currentItem).suffixButton == "custom" ? (openBlock(), createElementBlock("div", _hoisted_9, [
644
644
  createElementVNode("div", _hoisted_10, [
645
- _cache[72] || (_cache[72] = createElementVNode("span", { class: "field-label" }, "按钮名称", -1)),
645
+ _cache[73] || (_cache[73] = createElementVNode("span", { class: "field-label" }, "按钮名称", -1)),
646
646
  createVNode(_component_el_input, {
647
647
  modelValue: unref(currentItem).suffixButtonName,
648
648
  "onUpdate:modelValue": _cache[24] || (_cache[24] = ($event) => unref(currentItem).suffixButtonName = $event)
649
649
  }, null, 8, ["modelValue"])
650
650
  ]),
651
651
  createElementVNode("div", _hoisted_11, [
652
- _cache[73] || (_cache[73] = createElementVNode("span", { class: "field-label" }, "按钮事件", -1)),
652
+ _cache[74] || (_cache[74] = createElementVNode("span", { class: "field-label" }, "按钮事件", -1)),
653
653
  createVNode(EventConfigButton, {
654
654
  config: unref(currentItem).suffixButtonConfig,
655
655
  onConfirm: handleSuffixButtonConfirm
@@ -735,7 +735,7 @@ const _sfc_main = {
735
735
  "controls-position": "right",
736
736
  placeholder: "最小值"
737
737
  }, null, 8, ["modelValue"]),
738
- _cache[74] || (_cache[74] = createElementVNode("span", { style: { "color": "#909399", "font-size": "14px" } }, "-", -1)),
738
+ _cache[75] || (_cache[75] = createElementVNode("span", { style: { "color": "#909399", "font-size": "14px" } }, "-", -1)),
739
739
  createVNode(_component_el_input_number, {
740
740
  style: { "width": "100%" },
741
741
  modelValue: unref(currentItem).maxValue,
@@ -787,7 +787,7 @@ const _sfc_main = {
787
787
  }),
788
788
  createElementVNode("div", _hoisted_13, [
789
789
  createElementVNode("div", _hoisted_14, [
790
- _cache[75] || (_cache[75] = createElementVNode("span", { class: "field-label" }, "显示字段", -1)),
790
+ _cache[76] || (_cache[76] = createElementVNode("span", { class: "field-label" }, "显示字段", -1)),
791
791
  createVNode(_component_el_input, {
792
792
  modelValue: unref(currentItem).optionConfig.displayField,
793
793
  "onUpdate:modelValue": _cache[34] || (_cache[34] = ($event) => unref(currentItem).optionConfig.displayField = $event),
@@ -795,7 +795,7 @@ const _sfc_main = {
795
795
  }, null, 8, ["modelValue"])
796
796
  ]),
797
797
  createElementVNode("div", _hoisted_15, [
798
- _cache[76] || (_cache[76] = createElementVNode("span", { class: "field-label" }, "值字段", -1)),
798
+ _cache[77] || (_cache[77] = createElementVNode("span", { class: "field-label" }, "值字段", -1)),
799
799
  createVNode(_component_el_input, {
800
800
  modelValue: unref(currentItem).optionConfig.valueField,
801
801
  "onUpdate:modelValue": _cache[35] || (_cache[35] = ($event) => unref(currentItem).optionConfig.valueField = $event),
@@ -803,7 +803,7 @@ const _sfc_main = {
803
803
  }, null, 8, ["modelValue"])
804
804
  ]),
805
805
  createElementVNode("div", _hoisted_16, [
806
- _cache[77] || (_cache[77] = createElementVNode("span", { class: "field-label" }, "主键字段", -1)),
806
+ _cache[78] || (_cache[78] = createElementVNode("span", { class: "field-label" }, "主键字段", -1)),
807
807
  createVNode(_component_el_input, {
808
808
  modelValue: unref(currentItem).optionConfig.idField,
809
809
  "onUpdate:modelValue": _cache[36] || (_cache[36] = ($event) => unref(currentItem).optionConfig.idField = $event),
@@ -811,7 +811,7 @@ const _sfc_main = {
811
811
  }, null, 8, ["modelValue"])
812
812
  ]),
813
813
  createElementVNode("div", _hoisted_17, [
814
- _cache[78] || (_cache[78] = createElementVNode("span", { class: "field-label" }, "父主键字段", -1)),
814
+ _cache[79] || (_cache[79] = createElementVNode("span", { class: "field-label" }, "父主键字段", -1)),
815
815
  createVNode(_component_el_input, {
816
816
  modelValue: unref(currentItem).optionConfig.pidField,
817
817
  "onUpdate:modelValue": _cache[37] || (_cache[37] = ($event) => unref(currentItem).optionConfig.pidField = $event),
@@ -880,48 +880,72 @@ const _sfc_main = {
880
880
  ]),
881
881
  _: 1
882
882
  })) : createCommentVNode("", true),
883
- unref(currentItem).fieldType === "date" ? (openBlock(), createBlock(_component_el_form_item, {
884
- key: 10,
885
- label: "类型"
886
- }, {
887
- default: withCtx(() => [
888
- createVNode(_component_el_select, {
889
- modelValue: unref(currentItem).dateType,
890
- "onUpdate:modelValue": _cache[43] || (_cache[43] = ($event) => unref(currentItem).dateType = $event)
891
- }, {
892
- default: withCtx(() => [
893
- createVNode(_component_el_option, {
894
- label: "年-月-日",
895
- value: "date"
896
- }),
897
- createVNode(_component_el_option, {
898
- label: "年-周",
899
- value: "week"
900
- }),
901
- createVNode(_component_el_option, {
902
- label: "年-月",
903
- value: "month"
904
- }),
905
- createVNode(_component_el_option, {
906
- label: "年",
907
- value: "year"
908
- }),
909
- createVNode(_component_el_option, {
910
- label: "年-月-日 时:分:秒",
911
- value: "datetime"
912
- })
913
- ]),
914
- _: 1
915
- }, 8, ["modelValue"])
916
- ]),
917
- _: 1
918
- })) : createCommentVNode("", true),
883
+ unref(currentItem).fieldType === "date" ? (openBlock(), createElementBlock(Fragment, { key: 10 }, [
884
+ createVNode(_component_el_form_item, { label: "显示格式" }, {
885
+ default: withCtx(() => [
886
+ createVNode(_component_el_select, {
887
+ modelValue: unref(currentItem).dateType,
888
+ "onUpdate:modelValue": _cache[43] || (_cache[43] = ($event) => unref(currentItem).dateType = $event)
889
+ }, {
890
+ default: withCtx(() => [
891
+ createVNode(_component_el_option, {
892
+ label: "年-月-日",
893
+ value: "date"
894
+ }),
895
+ createVNode(_component_el_option, {
896
+ label: "年-周",
897
+ value: "week"
898
+ }),
899
+ createVNode(_component_el_option, {
900
+ label: "年-月",
901
+ value: "month"
902
+ }),
903
+ createVNode(_component_el_option, {
904
+ label: "年",
905
+ value: "year"
906
+ }),
907
+ createVNode(_component_el_option, {
908
+ label: "年-月-日 时:分:秒",
909
+ value: "datetime"
910
+ })
911
+ ]),
912
+ _: 1
913
+ }, 8, ["modelValue"])
914
+ ]),
915
+ _: 1
916
+ }),
917
+ createVNode(_component_el_form_item, { label: "数据格式" }, {
918
+ default: withCtx(() => [
919
+ createVNode(_component_el_select, {
920
+ modelValue: unref(currentItem).dateValueType,
921
+ "onUpdate:modelValue": _cache[44] || (_cache[44] = ($event) => unref(currentItem).dateValueType = $event)
922
+ }, {
923
+ default: withCtx(() => [
924
+ createVNode(_component_el_option, {
925
+ label: "字符型",
926
+ value: "string"
927
+ }),
928
+ createVNode(_component_el_option, {
929
+ label: "日期型",
930
+ value: "date"
931
+ }),
932
+ createVNode(_component_el_option, {
933
+ label: "时间戳",
934
+ value: "timestamp"
935
+ })
936
+ ]),
937
+ _: 1
938
+ }, 8, ["modelValue"])
939
+ ]),
940
+ _: 1
941
+ })
942
+ ], 64)) : createCommentVNode("", true),
919
943
  unref(isSysSelect) ? (openBlock(), createElementBlock(Fragment, { key: 11 }, [
920
944
  createVNode(_component_el_form_item, { label: "弹层标题" }, {
921
945
  default: withCtx(() => [
922
946
  createVNode(_component_el_input, {
923
947
  modelValue: unref(currentItem).dialogConfig.dialogTitle,
924
- "onUpdate:modelValue": _cache[44] || (_cache[44] = ($event) => unref(currentItem).dialogConfig.dialogTitle = $event)
948
+ "onUpdate:modelValue": _cache[45] || (_cache[45] = ($event) => unref(currentItem).dialogConfig.dialogTitle = $event)
925
949
  }, null, 8, ["modelValue"])
926
950
  ]),
927
951
  _: 1
@@ -930,7 +954,7 @@ const _sfc_main = {
930
954
  default: withCtx(() => [
931
955
  createVNode(_component_ParamsConfig, {
932
956
  modelValue: unref(currentItem).dialogConfig.dialogParams,
933
- "onUpdate:modelValue": _cache[45] || (_cache[45] = ($event) => unref(currentItem).dialogConfig.dialogParams = $event)
957
+ "onUpdate:modelValue": _cache[46] || (_cache[46] = ($event) => unref(currentItem).dialogConfig.dialogParams = $event)
934
958
  }, null, 8, ["modelValue"])
935
959
  ]),
936
960
  _: 1
@@ -942,17 +966,17 @@ const _sfc_main = {
942
966
  default: withCtx(() => [
943
967
  createVNode(_component_el_radio_group, {
944
968
  modelValue: unref(currentItem).dialogConfig.selectionMode,
945
- "onUpdate:modelValue": _cache[46] || (_cache[46] = ($event) => unref(currentItem).dialogConfig.selectionMode = $event)
969
+ "onUpdate:modelValue": _cache[47] || (_cache[47] = ($event) => unref(currentItem).dialogConfig.selectionMode = $event)
946
970
  }, {
947
971
  default: withCtx(() => [
948
972
  createVNode(_component_el_radio_button, { value: "single" }, {
949
- default: withCtx(() => _cache[79] || (_cache[79] = [
973
+ default: withCtx(() => _cache[80] || (_cache[80] = [
950
974
  createTextVNode("单选")
951
975
  ])),
952
976
  _: 1
953
977
  }),
954
978
  createVNode(_component_el_radio_button, { value: "multiple" }, {
955
- default: withCtx(() => _cache[80] || (_cache[80] = [
979
+ default: withCtx(() => _cache[81] || (_cache[81] = [
956
980
  createTextVNode("多选")
957
981
  ])),
958
982
  _: 1
@@ -981,12 +1005,12 @@ const _sfc_main = {
981
1005
  createElementVNode("div", _hoisted_18, [
982
1006
  createVNode(_component_el_switch, {
983
1007
  modelValue: unref(currentItem).required,
984
- "onUpdate:modelValue": _cache[47] || (_cache[47] = ($event) => unref(currentItem).required = $event)
1008
+ "onUpdate:modelValue": _cache[48] || (_cache[48] = ($event) => unref(currentItem).required = $event)
985
1009
  }, null, 8, ["modelValue"]),
986
1010
  unref(currentItem).required ? (openBlock(), createBlock(_component_el_input, {
987
1011
  key: 0,
988
1012
  modelValue: unref(currentItem).requiredMessage,
989
- "onUpdate:modelValue": _cache[48] || (_cache[48] = ($event) => unref(currentItem).requiredMessage = $event),
1013
+ "onUpdate:modelValue": _cache[49] || (_cache[49] = ($event) => unref(currentItem).requiredMessage = $event),
990
1014
  placeholder: "请输入提示信息",
991
1015
  style: { "flex": "1" }
992
1016
  }, null, 8, ["modelValue"])) : createCommentVNode("", true)
@@ -1001,7 +1025,7 @@ const _sfc_main = {
1001
1025
  default: withCtx(() => [
1002
1026
  createVNode(_component_el_select, {
1003
1027
  modelValue: unref(currentItem).validationType,
1004
- "onUpdate:modelValue": _cache[49] || (_cache[49] = ($event) => unref(currentItem).validationType = $event),
1028
+ "onUpdate:modelValue": _cache[50] || (_cache[50] = ($event) => unref(currentItem).validationType = $event),
1005
1029
  placeholder: "选择校验规则",
1006
1030
  onChange: handleValidationChange,
1007
1031
  style: { "margin-bottom": "12px" }
@@ -1067,13 +1091,13 @@ const _sfc_main = {
1067
1091
  unref(currentItem).validationType === "custom" ? (openBlock(), createElementBlock("div", _hoisted_20, [
1068
1092
  createVNode(_sfc_main$2, {
1069
1093
  modelValue: unref(currentItem).validationDataSource,
1070
- "onUpdate:modelValue": _cache[50] || (_cache[50] = ($event) => unref(currentItem).validationDataSource = $event)
1094
+ "onUpdate:modelValue": _cache[51] || (_cache[51] = ($event) => unref(currentItem).validationDataSource = $event)
1071
1095
  }, null, 8, ["modelValue"])
1072
1096
  ])) : createCommentVNode("", true),
1073
1097
  unref(currentItem).validationType !== "none" ? (openBlock(), createBlock(_component_el_input, {
1074
1098
  key: 2,
1075
1099
  modelValue: unref(currentItem).validationMessage,
1076
- "onUpdate:modelValue": _cache[51] || (_cache[51] = ($event) => unref(currentItem).validationMessage = $event),
1100
+ "onUpdate:modelValue": _cache[52] || (_cache[52] = ($event) => unref(currentItem).validationMessage = $event),
1077
1101
  placeholder: getValidationPlaceholder(),
1078
1102
  style: { "margin-bottom": "12px" }
1079
1103
  }, null, 8, ["modelValue", "placeholder"])) : createCommentVNode("", true)
@@ -1092,7 +1116,7 @@ const _sfc_main = {
1092
1116
  };
1093
1117
  }
1094
1118
  };
1095
- const widgets = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3318d394"]]);
1119
+ const widgets = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-e7b8302c"]]);
1096
1120
  export {
1097
1121
  widgets as default
1098
1122
  };
@@ -287,14 +287,15 @@ const _sfc_main = {
287
287
  });
288
288
  return btnArr;
289
289
  });
290
- function formFooterClick(button) {
290
+ async function formFooterClick(button) {
291
291
  var _a;
292
292
  const formData = dialogFormRef.value.getFormData();
293
- handleEvent.value(
293
+ await handleEvent.value(
294
294
  formData,
295
295
  button,
296
296
  (_a = button.eventConfig) == null ? void 0 : _a.find((item) => item.name == "Click")
297
297
  );
298
+ emit("confirm");
298
299
  }
299
300
  return (_ctx, _cache) => {
300
301
  const _component_el_button = ElButton;
@@ -409,7 +410,7 @@ const _sfc_main = {
409
410
  };
410
411
  }
411
412
  };
412
- const DialogRenderer = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-1e8ea0b4"]]);
413
+ const DialogRenderer = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-dd10a495"]]);
413
414
  export {
414
415
  DialogRenderer as default
415
416
  };
@@ -43,12 +43,12 @@ function openDialog(displayField, dialogConfig, instance, componentCtx, fieldsLi
43
43
  }
44
44
  },
45
45
  onConfirm: (data) => {
46
- resolve(data);
47
46
  cleanupDialog();
47
+ resolve(data);
48
48
  },
49
49
  onCancel: () => {
50
- reject(new Error("用户取消"));
51
50
  cleanupDialog();
51
+ reject(new Error("用户取消"));
52
52
  }
53
53
  });
54
54
  vnode.appContext = instance.appContext;
@@ -502,9 +502,23 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
502
502
  result[fieldName] = value.join("|");
503
503
  }
504
504
  } else if (fieldName && fieldType === "date" && value) {
505
+ const dateValueType = field.dateValueType;
505
506
  const valueFormat = valueFormatMap[field.dateType] || "YYYYMMDD";
506
507
  const formValueFormat = formValueFormatMap[field.dateType] || "YYYY-MM-DD";
507
- result[fieldName] = hooks(value, formValueFormat).format(valueFormat);
508
+ switch (dateValueType) {
509
+ case "date":
510
+ result[fieldName] = hooks(value, formValueFormat).toDate();
511
+ break;
512
+ case "timestamp":
513
+ result[fieldName] = hooks(value, formValueFormat).valueOf();
514
+ break;
515
+ case "string":
516
+ default:
517
+ result[fieldName] = hooks(value, formValueFormat).format(
518
+ valueFormat
519
+ );
520
+ break;
521
+ }
508
522
  }
509
523
  };
510
524
  if (fieldsData.value) {
@@ -666,7 +680,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
666
680
  };
667
681
  }
668
682
  });
669
- const _Form = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-263c93f9"]]);
683
+ const _Form = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-42af7e52"]]);
670
684
  export {
671
685
  _Form as default
672
686
  };