@fecp/designer 5.2.1 → 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 +24 -24
- package/es/packages/designer/src/packages/form/aside/index.mjs +1 -0
- package/es/packages/designer/src/packages/form/property/widgets.vue.mjs +98 -74
- package/es/packages/vue/src/components/dialog/DialogRenderer.vue2.mjs +10 -8
- package/es/packages/vue/src/components/dialog/index.mjs +2 -2
- package/es/packages/vue/src/components/forms/form/Form.vue.mjs +16 -2
- package/es/packages/vue/src/components/table/TableColumn.vue.mjs +2 -2
- package/es/packages/vue/src/utils/eventFlow/actionHandlers.mjs +23 -16
- package/lib/designer.css +24 -24
- package/lib/packages/designer/src/packages/form/aside/index.js +1 -0
- package/lib/packages/designer/src/packages/form/property/widgets.vue.js +98 -74
- package/lib/packages/vue/src/components/dialog/DialogRenderer.vue2.js +10 -8
- package/lib/packages/vue/src/components/dialog/index.js +2 -2
- package/lib/packages/vue/src/components/forms/form/Form.vue.js +16 -2
- package/lib/packages/vue/src/components/table/TableColumn.vue.js +2 -2
- package/lib/packages/vue/src/utils/eventFlow/actionHandlers.js +23 -16
- package/package.json +1 -1
|
@@ -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
|
-
|
|
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-
|
|
683
|
+
const _Form = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-42af7e52"]]);
|
|
670
684
|
export {
|
|
671
685
|
_Form as default
|
|
672
686
|
};
|
|
@@ -255,7 +255,7 @@ const _sfc_main = {
|
|
|
255
255
|
};
|
|
256
256
|
const optColumnWidth = computed(() => {
|
|
257
257
|
const padding = 20;
|
|
258
|
-
const btnWidth =
|
|
258
|
+
const btnWidth = 60;
|
|
259
259
|
if (!props.tableData || props.tableData.length === 0) {
|
|
260
260
|
return props.optBtns.length * btnWidth + padding;
|
|
261
261
|
}
|
|
@@ -377,7 +377,7 @@ const _sfc_main = {
|
|
|
377
377
|
};
|
|
378
378
|
}
|
|
379
379
|
};
|
|
380
|
-
const TableColumn = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
380
|
+
const TableColumn = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-82ffe38c"]]);
|
|
381
381
|
export {
|
|
382
382
|
TableColumn as default
|
|
383
383
|
};
|
|
@@ -459,22 +459,29 @@ async function handleDialog(node, data, fields, context) {
|
|
|
459
459
|
console.error("ui-dialog: 未找到匹配的弹层配置," + (basic == null ? void 0 : basic.dialogId));
|
|
460
460
|
return;
|
|
461
461
|
}
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
462
|
+
try {
|
|
463
|
+
await openDialog(
|
|
464
|
+
basic.displayFieldName,
|
|
465
|
+
dialog,
|
|
466
|
+
context.instance,
|
|
467
|
+
context.ctx,
|
|
468
|
+
fields,
|
|
469
|
+
data
|
|
470
|
+
);
|
|
471
|
+
return {
|
|
472
|
+
success: true,
|
|
473
|
+
message: "用户已确认",
|
|
474
|
+
shouldShowError: false
|
|
475
|
+
};
|
|
476
|
+
} catch (error) {
|
|
477
|
+
return {
|
|
478
|
+
success: false,
|
|
479
|
+
message: "用户已取消",
|
|
480
|
+
confirmed: false,
|
|
481
|
+
shouldShowError: false
|
|
482
|
+
// 用户取消不提示错误
|
|
483
|
+
};
|
|
484
|
+
}
|
|
478
485
|
}
|
|
479
486
|
const defaultActionHandlers = {
|
|
480
487
|
"page-jump": handlePageJump,
|
package/lib/designer.css
CHANGED
|
@@ -3115,17 +3115,17 @@ to {
|
|
|
3115
3115
|
width: 100%;
|
|
3116
3116
|
}
|
|
3117
3117
|
|
|
3118
|
-
.collapse-header[data-v-
|
|
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-
|
|
3125
|
+
.setting[data-v-e7b8302c] .el-collapse-item__content {
|
|
3126
3126
|
position: relative;
|
|
3127
3127
|
}
|
|
3128
|
-
.field-type-select[data-v-
|
|
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-
|
|
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-
|
|
3143
|
+
.field-type-select[data-v-e7b8302c] .el-select__selected-item {
|
|
3144
3144
|
text-align: center;
|
|
3145
3145
|
}
|
|
3146
|
-
.width-input[data-v-
|
|
3146
|
+
.width-input[data-v-e7b8302c] {
|
|
3147
3147
|
width: 100%;
|
|
3148
3148
|
}
|
|
3149
|
-
.data-source-fields[data-v-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
5504
|
+
.fec-form[data-v-42af7e52] {
|
|
5505
5505
|
height: 100%;
|
|
5506
5506
|
}
|
|
5507
|
-
[data-v-
|
|
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-
|
|
5513
|
+
[data-v-42af7e52] .vgl-item > .el-form-item.el-form-item--label-top {
|
|
5514
5514
|
flex-direction: column;
|
|
5515
5515
|
}
|
|
5516
|
-
[data-v-
|
|
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-
|
|
5521
|
+
[data-v-42af7e52] .vgl-item > .el-container {
|
|
5522
5522
|
height: auto !important;
|
|
5523
|
-
}.cell-content .cell-text[data-v-
|
|
5523
|
+
}.cell-content .cell-text[data-v-82ffe38c] {
|
|
5524
5524
|
display: inline-block;
|
|
5525
5525
|
}
|
|
5526
|
-
.cell-content .copy-icon[data-v-
|
|
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-
|
|
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;
|