@fecp/designer 5.2.3 → 5.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/designer.css +18 -18
- package/es/packages/vue/src/components/dialog/DialogRenderer.vue2.mjs +7 -6
- package/es/packages/vue/src/components/table/Table.vue.mjs +12 -5
- package/es/packages/vue/src/components/table/TableColumn.vue.mjs +6 -2
- package/lib/designer.css +18 -18
- package/lib/packages/vue/src/components/dialog/DialogRenderer.vue2.js +7 -6
- package/lib/packages/vue/src/components/table/Table.vue.js +11 -4
- package/lib/packages/vue/src/components/table/TableColumn.vue.js +6 -2
- package/package.json +1 -1
package/es/designer.css
CHANGED
|
@@ -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-4237f08b] {
|
|
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-4237f08b] {
|
|
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-4237f08b] {
|
|
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-4237f08b] {
|
|
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-4237f08b] .table-pagination {
|
|
5334
5334
|
padding: 8px 0 0 0;
|
|
5335
5335
|
}.text-field-wrapper[data-v-b0c0d80f] {
|
|
5336
5336
|
width: 100%;
|
|
@@ -5520,10 +5520,10 @@ body,
|
|
|
5520
5520
|
}
|
|
5521
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-93ba698c] {
|
|
5524
5524
|
display: inline-block;
|
|
5525
5525
|
}
|
|
5526
|
-
.cell-content .copy-icon[data-v-
|
|
5526
|
+
.cell-content .copy-icon[data-v-93ba698c] {
|
|
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-93ba698c]:hover {
|
|
5535
5535
|
color: #409eff;
|
|
5536
5536
|
}.fec-table-filter[data-v-366e01c3] {
|
|
5537
5537
|
display: flex;
|
|
@@ -5800,11 +5800,11 @@ body,
|
|
|
5800
5800
|
}
|
|
5801
5801
|
[data-v-66d8d7cb] .el-checkbox-group .el-checkbox-button__inner {
|
|
5802
5802
|
border-radius: 4px;
|
|
5803
|
-
}.fec-table[data-v-
|
|
5803
|
+
}.fec-table[data-v-10045481] {
|
|
5804
5804
|
height: 100%;
|
|
5805
5805
|
flex-grow: 1;
|
|
5806
5806
|
}
|
|
5807
|
-
.fec-table-container[data-v-
|
|
5807
|
+
.fec-table-container[data-v-10045481] {
|
|
5808
5808
|
width: 100%;
|
|
5809
5809
|
background: #fff;
|
|
5810
5810
|
box-sizing: border-box;
|
|
@@ -5814,30 +5814,30 @@ body,
|
|
|
5814
5814
|
overflow: hidden;
|
|
5815
5815
|
flex-grow: 1;
|
|
5816
5816
|
}
|
|
5817
|
-
.fec-table-container .fec-vxe-table[data-v-
|
|
5817
|
+
.fec-table-container .fec-vxe-table[data-v-10045481] {
|
|
5818
5818
|
flex: 1;
|
|
5819
5819
|
min-height: 0;
|
|
5820
5820
|
overflow: hidden;
|
|
5821
5821
|
}
|
|
5822
|
-
.fec-table-container[data-v-
|
|
5822
|
+
.fec-table-container[data-v-10045481] .vxe-table {
|
|
5823
5823
|
font-size: 14px;
|
|
5824
5824
|
}
|
|
5825
|
-
.fec-table-container[data-v-
|
|
5825
|
+
.fec-table-container[data-v-10045481] .vxe-table .vxe-table--body-wrapper {
|
|
5826
5826
|
overflow: auto;
|
|
5827
5827
|
}
|
|
5828
|
-
.fec-table-container[data-v-
|
|
5828
|
+
.fec-table-container[data-v-10045481] .vxe-table .vxe-header--column {
|
|
5829
5829
|
background-color: #f5f7fa;
|
|
5830
5830
|
}
|
|
5831
|
-
.fec-table-container[data-v-
|
|
5831
|
+
.fec-table-container[data-v-10045481] .vxe-table .vxe-header--column .vxe-cell {
|
|
5832
5832
|
height: 40px !important;
|
|
5833
5833
|
min-height: 40px !important;
|
|
5834
5834
|
}
|
|
5835
|
-
.fec-table-container[data-v-
|
|
5835
|
+
.fec-table-container[data-v-10045481] .vxe-table .vxe-body--column .vxe-cell {
|
|
5836
5836
|
padding: 6px !important;
|
|
5837
5837
|
min-height: 40px !important;
|
|
5838
5838
|
}
|
|
5839
|
-
.fec-table-container[data-v-
|
|
5840
|
-
.fec-table-container[data-v-
|
|
5839
|
+
.fec-table-container[data-v-10045481] .vxe-table .vxe-body--column .c--tooltip,
|
|
5840
|
+
.fec-table-container[data-v-10045481] .vxe-table .vxe-body--column .c--title {
|
|
5841
5841
|
height: 40px !important;
|
|
5842
5842
|
min-height: 40px !important;
|
|
5843
5843
|
}:root,:host{--van-black: #000;--van-white: #fff;--van-gray-1: #f7f8fa;--van-gray-2: #f2f3f5;--van-gray-3: #ebedf0;--van-gray-4: #dcdee0;--van-gray-5: #c8c9cc;--van-gray-6: #969799;--van-gray-7: #646566;--van-gray-8: #323233;--van-red: #ee0a24;--van-blue: #1989fa;--van-orange: #ff976a;--van-orange-dark: #ed6a0c;--van-orange-light: #fffbe8;--van-green: #07c160;--van-gradient-red: linear-gradient(to right, #ff6034, #ee0a24);--van-gradient-orange: linear-gradient(to right, #ffd01e, #ff8917);--van-primary-color: var(--van-blue);--van-success-color: var(--van-green);--van-danger-color: var(--van-red);--van-warning-color: var(--van-orange);--van-text-color: var(--van-gray-8);--van-text-color-2: var(--van-gray-6);--van-text-color-3: var(--van-gray-5);--van-active-color: var(--van-gray-2);--van-active-opacity: .6;--van-disabled-opacity: .5;--van-background: var(--van-gray-1);--van-background-2: var(--van-white);--van-background-3: var(--van-white);--van-padding-base: 4px;--van-padding-xs: 8px;--van-padding-sm: 12px;--van-padding-md: 16px;--van-padding-lg: 24px;--van-padding-xl: 32px;--van-font-bold: 600;--van-font-size-xs: 10px;--van-font-size-sm: 12px;--van-font-size-md: 14px;--van-font-size-lg: 16px;--van-line-height-xs: 14px;--van-line-height-sm: 18px;--van-line-height-md: 20px;--van-line-height-lg: 22px;--van-base-font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Segoe UI, Arial, Roboto, "PingFang SC", "miui", "Hiragino Sans GB", "Microsoft Yahei", sans-serif;--van-price-font: avenir-heavy, "PingFang SC", helvetica neue, arial, sans-serif;--van-duration-base: .3s;--van-duration-fast: .2s;--van-ease-out: ease-out;--van-ease-in: ease-in;--van-border-color: var(--van-gray-3);--van-border-width: 1px;--van-radius-sm: 2px;--van-radius-md: 4px;--van-radius-lg: 8px;--van-radius-max: 999px}.van-theme-dark{--van-text-color: #f5f5f5;--van-text-color-2: #707070;--van-text-color-3: #4d4d4d;--van-border-color: #3a3a3c;--van-active-color: #3a3a3c;--van-background: #000;--van-background-2: #1c1c1e;--van-background-3: #37363b}html{-webkit-tap-highlight-color:transparent}body{margin:0;font-family:var(--van-base-font)}a{text-decoration:none}input,button,textarea{color:inherit;font:inherit}a:focus,input:focus,button:focus,textarea:focus,[class*=van-]:focus{outline:none}ol,ul{margin:0;padding:0;list-style:none}@keyframes van-slide-up-enter{0%{transform:translate3d(0,100%,0)}}@keyframes van-slide-up-leave{to{transform:translate3d(0,100%,0)}}@keyframes van-slide-down-enter{0%{transform:translate3d(0,-100%,0)}}@keyframes van-slide-down-leave{to{transform:translate3d(0,-100%,0)}}@keyframes van-slide-left-enter{0%{transform:translate3d(-100%,0,0)}}@keyframes van-slide-left-leave{to{transform:translate3d(-100%,0,0)}}@keyframes van-slide-right-enter{0%{transform:translate3d(100%,0,0)}}@keyframes van-slide-right-leave{to{transform:translate3d(100%,0,0)}}@keyframes van-fade-in{0%{opacity:0}to{opacity:1}}@keyframes van-fade-out{0%{opacity:1}to{opacity:0}}@keyframes van-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.van-fade-enter-active{animation:var(--van-duration-base) van-fade-in both var(--van-ease-out)}.van-fade-leave-active{animation:var(--van-duration-base) van-fade-out both var(--van-ease-in)}.van-slide-up-enter-active{animation:van-slide-up-enter var(--van-duration-base) both var(--van-ease-out)}.van-slide-up-leave-active{animation:van-slide-up-leave var(--van-duration-base) both var(--van-ease-in)}.van-slide-down-enter-active{animation:van-slide-down-enter var(--van-duration-base) both var(--van-ease-out)}.van-slide-down-leave-active{animation:van-slide-down-leave var(--van-duration-base) both var(--van-ease-in)}.van-slide-left-enter-active{animation:van-slide-left-enter var(--van-duration-base) both var(--van-ease-out)}.van-slide-left-leave-active{animation:van-slide-left-leave var(--van-duration-base) both var(--van-ease-in)}.van-slide-right-enter-active{animation:van-slide-right-enter var(--van-duration-base) both var(--van-ease-out)}.van-slide-right-leave-active{animation:van-slide-right-leave var(--van-duration-base) both var(--van-ease-in)}.van-clearfix:after{display:table;clear:both;content:""}.van-ellipsis{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.van-multi-ellipsis--l2{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:2;line-break:anywhere;-webkit-box-orient:vertical}.van-multi-ellipsis--l3{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:3;line-break:anywhere;-webkit-box-orient:vertical}.van-safe-area-top{padding-top:constant(safe-area-inset-top);padding-top:env(safe-area-inset-top)}.van-safe-area-bottom{padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.van-haptics-feedback{cursor:pointer}.van-haptics-feedback:active{opacity:var(--van-active-opacity)}[class*=van-hairline]:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;top:-50%;right:-50%;bottom:-50%;left:-50%;border:0 solid var(--van-border-color);transform:scale(.5)}.van-hairline,.van-hairline--top,.van-hairline--left,.van-hairline--right,.van-hairline--bottom,.van-hairline--surround,.van-hairline--top-bottom{position:relative}.van-hairline--top:after{border-top-width:var(--van-border-width)}.van-hairline--left:after{border-left-width:var(--van-border-width)}.van-hairline--right:after{border-right-width:var(--van-border-width)}.van-hairline--bottom:after{border-bottom-width:var(--van-border-width)}.van-hairline--top-bottom:after,.van-hairline-unset--top-bottom:after{border-width:var(--van-border-width) 0}.van-hairline--surround:after{border-width:var(--van-border-width)}
|
|
@@ -217,6 +217,7 @@ const _sfc_main = {
|
|
|
217
217
|
props.formData,
|
|
218
218
|
props.fieldsList
|
|
219
219
|
);
|
|
220
|
+
console.log("🚀 ~ params:", params);
|
|
220
221
|
return params;
|
|
221
222
|
}
|
|
222
223
|
return {};
|
|
@@ -327,7 +328,7 @@ const _sfc_main = {
|
|
|
327
328
|
_: 1
|
|
328
329
|
}),
|
|
329
330
|
((_a = __props.dialogConfig) == null ? void 0 : _a.contentSource) === "table" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
330
|
-
!__props.dialogConfig.isSubTableReadOnly ? (openBlock(), createBlock(_component_el_button, {
|
|
331
|
+
!__props.dialogConfig.isSubTableReadOnly && __props.dialogConfig.selectionMode != "none" ? (openBlock(), createBlock(_component_el_button, {
|
|
331
332
|
key: 0,
|
|
332
333
|
type: "primary",
|
|
333
334
|
onClick: handleConfirm
|
|
@@ -366,24 +367,24 @@ const _sfc_main = {
|
|
|
366
367
|
mode: __props.dialogConfig.subTableMode,
|
|
367
368
|
isDialog: "",
|
|
368
369
|
hasPagination: __props.dialogConfig.isSubTablePagination,
|
|
369
|
-
|
|
370
|
+
initHiddenData: initDialogParams.value,
|
|
370
371
|
readonly: __props.dialogConfig.isSubTableReadOnly,
|
|
371
372
|
selectMode: __props.dialogConfig.selectionMode,
|
|
372
373
|
onSelectionChange: tableSelectionChange,
|
|
373
374
|
ref_key: "dialogTableRef",
|
|
374
375
|
ref: dialogTableRef
|
|
375
|
-
}, null, 8, ["templateKey", "mode", "hasPagination", "
|
|
376
|
+
}, null, 8, ["templateKey", "mode", "hasPagination", "initHiddenData", "readonly", "selectMode"])) : __props.dialogConfig.tableContent === "custom" ? (openBlock(), createBlock(unref(Table), {
|
|
376
377
|
key: 1,
|
|
377
378
|
initOption: __props.dialogConfig.customTableConfig,
|
|
378
379
|
isDialog: "",
|
|
379
380
|
hasPagination: __props.dialogConfig.isSubTablePagination,
|
|
380
|
-
|
|
381
|
+
initHiddenData: initDialogParams.value,
|
|
381
382
|
readonly: __props.dialogConfig.isSubTableReadOnly,
|
|
382
383
|
selectMode: __props.dialogConfig.selectionMode,
|
|
383
384
|
onSelectionChange: tableSelectionChange,
|
|
384
385
|
ref_key: "dialogTableRef",
|
|
385
386
|
ref: dialogTableRef
|
|
386
|
-
}, null, 8, ["initOption", "hasPagination", "
|
|
387
|
+
}, null, 8, ["initOption", "hasPagination", "initHiddenData", "readonly", "selectMode"])) : createCommentVNode("", true)
|
|
387
388
|
], 64)) : ((_c = __props.dialogConfig) == null ? void 0 : _c.contentSource) === "form" ? (openBlock(), createBlock(unref(Form), {
|
|
388
389
|
key: 1,
|
|
389
390
|
templateKey: __props.dialogConfig.subFormKey,
|
|
@@ -410,7 +411,7 @@ const _sfc_main = {
|
|
|
410
411
|
};
|
|
411
412
|
}
|
|
412
413
|
};
|
|
413
|
-
const DialogRenderer = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
414
|
+
const DialogRenderer = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-4237f08b"]]);
|
|
414
415
|
export {
|
|
415
416
|
DialogRenderer as default
|
|
416
417
|
};
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/* empty css */
|
|
5
5
|
/* empty css */
|
|
6
6
|
/* empty css */
|
|
7
|
-
import { ref, getCurrentInstance, computed, reactive, watch, onMounted, onUnmounted, createBlock, openBlock, withCtx, createElementBlock, createCommentVNode, normalizeStyle, createElementVNode, Fragment, createVNode, unref, createSlots, renderList, renderSlot, normalizeProps, guardReactiveProps } from "vue";
|
|
7
|
+
import { ref, getCurrentInstance, computed, reactive, watch, onMounted, onUnmounted, createBlock, openBlock, withCtx, createTextVNode, createElementBlock, createCommentVNode, toDisplayString, normalizeStyle, createElementVNode, Fragment, createVNode, unref, createSlots, renderList, renderSlot, normalizeProps, guardReactiveProps } from "vue";
|
|
8
8
|
import "../../../../../node_modules/.pnpm/vxe-table@4.17.47_vue@3.5.13_typescript@5.7.3_/node_modules/vxe-table/es/components.mjs";
|
|
9
9
|
/* empty css */
|
|
10
10
|
import { createDataSource } from "../../utils/datasource.mjs";
|
|
@@ -90,6 +90,10 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
90
90
|
type: String,
|
|
91
91
|
default: "",
|
|
92
92
|
validator: (value) => ["", "none", "single", "multiple"].includes(value)
|
|
93
|
+
},
|
|
94
|
+
initHiddenData: {
|
|
95
|
+
type: Object,
|
|
96
|
+
default: {}
|
|
93
97
|
}
|
|
94
98
|
},
|
|
95
99
|
emits: [
|
|
@@ -113,6 +117,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
113
117
|
const configLoading = ref(true);
|
|
114
118
|
const localConfig = ref({});
|
|
115
119
|
const fieldsData = ref({});
|
|
120
|
+
const hiddenFormData = ref(props.initHiddenData);
|
|
116
121
|
const dataSourceOptions = ref({});
|
|
117
122
|
const dictionaryOptions = ref({});
|
|
118
123
|
const displayData = computed(() => {
|
|
@@ -295,7 +300,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
295
300
|
default:
|
|
296
301
|
(_b = handleFlowEvent.value) == null ? void 0 : _b.call(
|
|
297
302
|
handleFlowEvent,
|
|
298
|
-
|
|
303
|
+
hiddenFormData.value,
|
|
299
304
|
btn,
|
|
300
305
|
(_a = btn.eventConfig) == null ? void 0 : _a.find((item) => item.name == "Click")
|
|
301
306
|
);
|
|
@@ -527,6 +532,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
527
532
|
"data-version": "v5"
|
|
528
533
|
}, {
|
|
529
534
|
default: withCtx(() => [
|
|
535
|
+
createTextVNode(toDisplayString(__props.initHiddenData) + " ", 1),
|
|
530
536
|
!configLoading.value ? (openBlock(), createElementBlock("div", {
|
|
531
537
|
key: 0,
|
|
532
538
|
ref_key: "tableContainer",
|
|
@@ -591,7 +597,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
591
597
|
"table-ref": (_a = unref(instance)) == null ? void 0 : _a.proxy,
|
|
592
598
|
"table-data": displayData.value,
|
|
593
599
|
readonly: __props.readonly,
|
|
594
|
-
isDialog: __props.isDialog
|
|
600
|
+
isDialog: __props.isDialog,
|
|
601
|
+
hiddenFormData: hiddenFormData.value
|
|
595
602
|
}, createSlots({ _: 2 }, [
|
|
596
603
|
renderList(fieldsData.value, (field) => {
|
|
597
604
|
return {
|
|
@@ -601,7 +608,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
601
608
|
])
|
|
602
609
|
};
|
|
603
610
|
})
|
|
604
|
-
]), 1032, ["fields-data", "show-index", "select-mode", "is-opt-btns", "opt-btns", "mode-key", "modes", "data-source-options", "dictionary-options", "localConfig", "table-ref", "table-data", "readonly", "isDialog"])
|
|
611
|
+
]), 1032, ["fields-data", "show-index", "select-mode", "is-opt-btns", "opt-btns", "mode-key", "modes", "data-source-options", "dictionary-options", "localConfig", "table-ref", "table-data", "readonly", "isDialog", "hiddenFormData"])
|
|
605
612
|
];
|
|
606
613
|
}),
|
|
607
614
|
_: 3
|
|
@@ -620,7 +627,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
620
627
|
};
|
|
621
628
|
}
|
|
622
629
|
});
|
|
623
|
-
const _Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
630
|
+
const _Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-10045481"]]);
|
|
624
631
|
export {
|
|
625
632
|
_Table as default
|
|
626
633
|
};
|
|
@@ -98,6 +98,10 @@ const _sfc_main = {
|
|
|
98
98
|
isDialog: {
|
|
99
99
|
type: Boolean,
|
|
100
100
|
default: false
|
|
101
|
+
},
|
|
102
|
+
hiddenFormData: {
|
|
103
|
+
type: Object,
|
|
104
|
+
default: {}
|
|
101
105
|
}
|
|
102
106
|
},
|
|
103
107
|
setup(__props) {
|
|
@@ -272,7 +276,7 @@ const _sfc_main = {
|
|
|
272
276
|
table: props.tableRef
|
|
273
277
|
}
|
|
274
278
|
});
|
|
275
|
-
const getEventHandlers = (row, item, eventConfig) => createEventHandlers(item, row, eventConfig);
|
|
279
|
+
const getEventHandlers = (row, item, eventConfig) => createEventHandlers(item, { ...row, ...props.hiddenFormData }, eventConfig);
|
|
276
280
|
return (_ctx, _cache) => {
|
|
277
281
|
const _component_el_link = ElLink;
|
|
278
282
|
const _component_el_icon = ElIcon;
|
|
@@ -377,7 +381,7 @@ const _sfc_main = {
|
|
|
377
381
|
};
|
|
378
382
|
}
|
|
379
383
|
};
|
|
380
|
-
const TableColumn = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
384
|
+
const TableColumn = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-93ba698c"]]);
|
|
381
385
|
export {
|
|
382
386
|
TableColumn as default
|
|
383
387
|
};
|
package/lib/designer.css
CHANGED
|
@@ -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-4237f08b] {
|
|
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-4237f08b] {
|
|
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-4237f08b] {
|
|
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-4237f08b] {
|
|
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-4237f08b] .table-pagination {
|
|
5334
5334
|
padding: 8px 0 0 0;
|
|
5335
5335
|
}.text-field-wrapper[data-v-b0c0d80f] {
|
|
5336
5336
|
width: 100%;
|
|
@@ -5520,10 +5520,10 @@ body,
|
|
|
5520
5520
|
}
|
|
5521
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-93ba698c] {
|
|
5524
5524
|
display: inline-block;
|
|
5525
5525
|
}
|
|
5526
|
-
.cell-content .copy-icon[data-v-
|
|
5526
|
+
.cell-content .copy-icon[data-v-93ba698c] {
|
|
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-93ba698c]:hover {
|
|
5535
5535
|
color: #409eff;
|
|
5536
5536
|
}.fec-table-filter[data-v-366e01c3] {
|
|
5537
5537
|
display: flex;
|
|
@@ -5800,11 +5800,11 @@ body,
|
|
|
5800
5800
|
}
|
|
5801
5801
|
[data-v-66d8d7cb] .el-checkbox-group .el-checkbox-button__inner {
|
|
5802
5802
|
border-radius: 4px;
|
|
5803
|
-
}.fec-table[data-v-
|
|
5803
|
+
}.fec-table[data-v-10045481] {
|
|
5804
5804
|
height: 100%;
|
|
5805
5805
|
flex-grow: 1;
|
|
5806
5806
|
}
|
|
5807
|
-
.fec-table-container[data-v-
|
|
5807
|
+
.fec-table-container[data-v-10045481] {
|
|
5808
5808
|
width: 100%;
|
|
5809
5809
|
background: #fff;
|
|
5810
5810
|
box-sizing: border-box;
|
|
@@ -5814,30 +5814,30 @@ body,
|
|
|
5814
5814
|
overflow: hidden;
|
|
5815
5815
|
flex-grow: 1;
|
|
5816
5816
|
}
|
|
5817
|
-
.fec-table-container .fec-vxe-table[data-v-
|
|
5817
|
+
.fec-table-container .fec-vxe-table[data-v-10045481] {
|
|
5818
5818
|
flex: 1;
|
|
5819
5819
|
min-height: 0;
|
|
5820
5820
|
overflow: hidden;
|
|
5821
5821
|
}
|
|
5822
|
-
.fec-table-container[data-v-
|
|
5822
|
+
.fec-table-container[data-v-10045481] .vxe-table {
|
|
5823
5823
|
font-size: 14px;
|
|
5824
5824
|
}
|
|
5825
|
-
.fec-table-container[data-v-
|
|
5825
|
+
.fec-table-container[data-v-10045481] .vxe-table .vxe-table--body-wrapper {
|
|
5826
5826
|
overflow: auto;
|
|
5827
5827
|
}
|
|
5828
|
-
.fec-table-container[data-v-
|
|
5828
|
+
.fec-table-container[data-v-10045481] .vxe-table .vxe-header--column {
|
|
5829
5829
|
background-color: #f5f7fa;
|
|
5830
5830
|
}
|
|
5831
|
-
.fec-table-container[data-v-
|
|
5831
|
+
.fec-table-container[data-v-10045481] .vxe-table .vxe-header--column .vxe-cell {
|
|
5832
5832
|
height: 40px !important;
|
|
5833
5833
|
min-height: 40px !important;
|
|
5834
5834
|
}
|
|
5835
|
-
.fec-table-container[data-v-
|
|
5835
|
+
.fec-table-container[data-v-10045481] .vxe-table .vxe-body--column .vxe-cell {
|
|
5836
5836
|
padding: 6px !important;
|
|
5837
5837
|
min-height: 40px !important;
|
|
5838
5838
|
}
|
|
5839
|
-
.fec-table-container[data-v-
|
|
5840
|
-
.fec-table-container[data-v-
|
|
5839
|
+
.fec-table-container[data-v-10045481] .vxe-table .vxe-body--column .c--tooltip,
|
|
5840
|
+
.fec-table-container[data-v-10045481] .vxe-table .vxe-body--column .c--title {
|
|
5841
5841
|
height: 40px !important;
|
|
5842
5842
|
min-height: 40px !important;
|
|
5843
5843
|
}:root,:host{--van-black: #000;--van-white: #fff;--van-gray-1: #f7f8fa;--van-gray-2: #f2f3f5;--van-gray-3: #ebedf0;--van-gray-4: #dcdee0;--van-gray-5: #c8c9cc;--van-gray-6: #969799;--van-gray-7: #646566;--van-gray-8: #323233;--van-red: #ee0a24;--van-blue: #1989fa;--van-orange: #ff976a;--van-orange-dark: #ed6a0c;--van-orange-light: #fffbe8;--van-green: #07c160;--van-gradient-red: linear-gradient(to right, #ff6034, #ee0a24);--van-gradient-orange: linear-gradient(to right, #ffd01e, #ff8917);--van-primary-color: var(--van-blue);--van-success-color: var(--van-green);--van-danger-color: var(--van-red);--van-warning-color: var(--van-orange);--van-text-color: var(--van-gray-8);--van-text-color-2: var(--van-gray-6);--van-text-color-3: var(--van-gray-5);--van-active-color: var(--van-gray-2);--van-active-opacity: .6;--van-disabled-opacity: .5;--van-background: var(--van-gray-1);--van-background-2: var(--van-white);--van-background-3: var(--van-white);--van-padding-base: 4px;--van-padding-xs: 8px;--van-padding-sm: 12px;--van-padding-md: 16px;--van-padding-lg: 24px;--van-padding-xl: 32px;--van-font-bold: 600;--van-font-size-xs: 10px;--van-font-size-sm: 12px;--van-font-size-md: 14px;--van-font-size-lg: 16px;--van-line-height-xs: 14px;--van-line-height-sm: 18px;--van-line-height-md: 20px;--van-line-height-lg: 22px;--van-base-font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Segoe UI, Arial, Roboto, "PingFang SC", "miui", "Hiragino Sans GB", "Microsoft Yahei", sans-serif;--van-price-font: avenir-heavy, "PingFang SC", helvetica neue, arial, sans-serif;--van-duration-base: .3s;--van-duration-fast: .2s;--van-ease-out: ease-out;--van-ease-in: ease-in;--van-border-color: var(--van-gray-3);--van-border-width: 1px;--van-radius-sm: 2px;--van-radius-md: 4px;--van-radius-lg: 8px;--van-radius-max: 999px}.van-theme-dark{--van-text-color: #f5f5f5;--van-text-color-2: #707070;--van-text-color-3: #4d4d4d;--van-border-color: #3a3a3c;--van-active-color: #3a3a3c;--van-background: #000;--van-background-2: #1c1c1e;--van-background-3: #37363b}html{-webkit-tap-highlight-color:transparent}body{margin:0;font-family:var(--van-base-font)}a{text-decoration:none}input,button,textarea{color:inherit;font:inherit}a:focus,input:focus,button:focus,textarea:focus,[class*=van-]:focus{outline:none}ol,ul{margin:0;padding:0;list-style:none}@keyframes van-slide-up-enter{0%{transform:translate3d(0,100%,0)}}@keyframes van-slide-up-leave{to{transform:translate3d(0,100%,0)}}@keyframes van-slide-down-enter{0%{transform:translate3d(0,-100%,0)}}@keyframes van-slide-down-leave{to{transform:translate3d(0,-100%,0)}}@keyframes van-slide-left-enter{0%{transform:translate3d(-100%,0,0)}}@keyframes van-slide-left-leave{to{transform:translate3d(-100%,0,0)}}@keyframes van-slide-right-enter{0%{transform:translate3d(100%,0,0)}}@keyframes van-slide-right-leave{to{transform:translate3d(100%,0,0)}}@keyframes van-fade-in{0%{opacity:0}to{opacity:1}}@keyframes van-fade-out{0%{opacity:1}to{opacity:0}}@keyframes van-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.van-fade-enter-active{animation:var(--van-duration-base) van-fade-in both var(--van-ease-out)}.van-fade-leave-active{animation:var(--van-duration-base) van-fade-out both var(--van-ease-in)}.van-slide-up-enter-active{animation:van-slide-up-enter var(--van-duration-base) both var(--van-ease-out)}.van-slide-up-leave-active{animation:van-slide-up-leave var(--van-duration-base) both var(--van-ease-in)}.van-slide-down-enter-active{animation:van-slide-down-enter var(--van-duration-base) both var(--van-ease-out)}.van-slide-down-leave-active{animation:van-slide-down-leave var(--van-duration-base) both var(--van-ease-in)}.van-slide-left-enter-active{animation:van-slide-left-enter var(--van-duration-base) both var(--van-ease-out)}.van-slide-left-leave-active{animation:van-slide-left-leave var(--van-duration-base) both var(--van-ease-in)}.van-slide-right-enter-active{animation:van-slide-right-enter var(--van-duration-base) both var(--van-ease-out)}.van-slide-right-leave-active{animation:van-slide-right-leave var(--van-duration-base) both var(--van-ease-in)}.van-clearfix:after{display:table;clear:both;content:""}.van-ellipsis{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.van-multi-ellipsis--l2{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:2;line-break:anywhere;-webkit-box-orient:vertical}.van-multi-ellipsis--l3{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:3;line-break:anywhere;-webkit-box-orient:vertical}.van-safe-area-top{padding-top:constant(safe-area-inset-top);padding-top:env(safe-area-inset-top)}.van-safe-area-bottom{padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.van-haptics-feedback{cursor:pointer}.van-haptics-feedback:active{opacity:var(--van-active-opacity)}[class*=van-hairline]:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;top:-50%;right:-50%;bottom:-50%;left:-50%;border:0 solid var(--van-border-color);transform:scale(.5)}.van-hairline,.van-hairline--top,.van-hairline--left,.van-hairline--right,.van-hairline--bottom,.van-hairline--surround,.van-hairline--top-bottom{position:relative}.van-hairline--top:after{border-top-width:var(--van-border-width)}.van-hairline--left:after{border-left-width:var(--van-border-width)}.van-hairline--right:after{border-right-width:var(--van-border-width)}.van-hairline--bottom:after{border-bottom-width:var(--van-border-width)}.van-hairline--top-bottom:after,.van-hairline-unset--top-bottom:after{border-width:var(--van-border-width) 0}.van-hairline--surround:after{border-width:var(--van-border-width)}
|
|
@@ -219,6 +219,7 @@ const _sfc_main = {
|
|
|
219
219
|
props.formData,
|
|
220
220
|
props.fieldsList
|
|
221
221
|
);
|
|
222
|
+
console.log("🚀 ~ params:", params);
|
|
222
223
|
return params;
|
|
223
224
|
}
|
|
224
225
|
return {};
|
|
@@ -329,7 +330,7 @@ const _sfc_main = {
|
|
|
329
330
|
_: 1
|
|
330
331
|
}),
|
|
331
332
|
((_a = __props.dialogConfig) == null ? void 0 : _a.contentSource) === "table" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
332
|
-
!__props.dialogConfig.isSubTableReadOnly ? (vue.openBlock(), vue.createBlock(_component_el_button, {
|
|
333
|
+
!__props.dialogConfig.isSubTableReadOnly && __props.dialogConfig.selectionMode != "none" ? (vue.openBlock(), vue.createBlock(_component_el_button, {
|
|
333
334
|
key: 0,
|
|
334
335
|
type: "primary",
|
|
335
336
|
onClick: handleConfirm
|
|
@@ -368,24 +369,24 @@ const _sfc_main = {
|
|
|
368
369
|
mode: __props.dialogConfig.subTableMode,
|
|
369
370
|
isDialog: "",
|
|
370
371
|
hasPagination: __props.dialogConfig.isSubTablePagination,
|
|
371
|
-
|
|
372
|
+
initHiddenData: initDialogParams.value,
|
|
372
373
|
readonly: __props.dialogConfig.isSubTableReadOnly,
|
|
373
374
|
selectMode: __props.dialogConfig.selectionMode,
|
|
374
375
|
onSelectionChange: tableSelectionChange,
|
|
375
376
|
ref_key: "dialogTableRef",
|
|
376
377
|
ref: dialogTableRef
|
|
377
|
-
}, null, 8, ["templateKey", "mode", "hasPagination", "
|
|
378
|
+
}, null, 8, ["templateKey", "mode", "hasPagination", "initHiddenData", "readonly", "selectMode"])) : __props.dialogConfig.tableContent === "custom" ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.Table), {
|
|
378
379
|
key: 1,
|
|
379
380
|
initOption: __props.dialogConfig.customTableConfig,
|
|
380
381
|
isDialog: "",
|
|
381
382
|
hasPagination: __props.dialogConfig.isSubTablePagination,
|
|
382
|
-
|
|
383
|
+
initHiddenData: initDialogParams.value,
|
|
383
384
|
readonly: __props.dialogConfig.isSubTableReadOnly,
|
|
384
385
|
selectMode: __props.dialogConfig.selectionMode,
|
|
385
386
|
onSelectionChange: tableSelectionChange,
|
|
386
387
|
ref_key: "dialogTableRef",
|
|
387
388
|
ref: dialogTableRef
|
|
388
|
-
}, null, 8, ["initOption", "hasPagination", "
|
|
389
|
+
}, null, 8, ["initOption", "hasPagination", "initHiddenData", "readonly", "selectMode"])) : vue.createCommentVNode("", true)
|
|
389
390
|
], 64)) : ((_c = __props.dialogConfig) == null ? void 0 : _c.contentSource) === "form" ? (vue.openBlock(), vue.createBlock(vue.unref(index$2.Form), {
|
|
390
391
|
key: 1,
|
|
391
392
|
templateKey: __props.dialogConfig.subFormKey,
|
|
@@ -412,5 +413,5 @@ const _sfc_main = {
|
|
|
412
413
|
};
|
|
413
414
|
}
|
|
414
415
|
};
|
|
415
|
-
const DialogRenderer = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
416
|
+
const DialogRenderer = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-4237f08b"]]);
|
|
416
417
|
exports.default = DialogRenderer;
|
|
@@ -92,6 +92,10 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
92
92
|
type: String,
|
|
93
93
|
default: "",
|
|
94
94
|
validator: (value) => ["", "none", "single", "multiple"].includes(value)
|
|
95
|
+
},
|
|
96
|
+
initHiddenData: {
|
|
97
|
+
type: Object,
|
|
98
|
+
default: {}
|
|
95
99
|
}
|
|
96
100
|
},
|
|
97
101
|
emits: [
|
|
@@ -115,6 +119,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
115
119
|
const configLoading = vue.ref(true);
|
|
116
120
|
const localConfig = vue.ref({});
|
|
117
121
|
const fieldsData = vue.ref({});
|
|
122
|
+
const hiddenFormData = vue.ref(props.initHiddenData);
|
|
118
123
|
const dataSourceOptions = vue.ref({});
|
|
119
124
|
const dictionaryOptions = vue.ref({});
|
|
120
125
|
const displayData = vue.computed(() => {
|
|
@@ -297,7 +302,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
297
302
|
default:
|
|
298
303
|
(_b = handleFlowEvent.value) == null ? void 0 : _b.call(
|
|
299
304
|
handleFlowEvent,
|
|
300
|
-
|
|
305
|
+
hiddenFormData.value,
|
|
301
306
|
btn,
|
|
302
307
|
(_a = btn.eventConfig) == null ? void 0 : _a.find((item) => item.name == "Click")
|
|
303
308
|
);
|
|
@@ -529,6 +534,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
529
534
|
"data-version": "v5"
|
|
530
535
|
}, {
|
|
531
536
|
default: vue.withCtx(() => [
|
|
537
|
+
vue.createTextVNode(vue.toDisplayString(__props.initHiddenData) + " ", 1),
|
|
532
538
|
!configLoading.value ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
533
539
|
key: 0,
|
|
534
540
|
ref_key: "tableContainer",
|
|
@@ -593,7 +599,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
593
599
|
"table-ref": (_a = vue.unref(instance)) == null ? void 0 : _a.proxy,
|
|
594
600
|
"table-data": displayData.value,
|
|
595
601
|
readonly: __props.readonly,
|
|
596
|
-
isDialog: __props.isDialog
|
|
602
|
+
isDialog: __props.isDialog,
|
|
603
|
+
hiddenFormData: hiddenFormData.value
|
|
597
604
|
}, vue.createSlots({ _: 2 }, [
|
|
598
605
|
vue.renderList(fieldsData.value, (field) => {
|
|
599
606
|
return {
|
|
@@ -603,7 +610,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
603
610
|
])
|
|
604
611
|
};
|
|
605
612
|
})
|
|
606
|
-
]), 1032, ["fields-data", "show-index", "select-mode", "is-opt-btns", "opt-btns", "mode-key", "modes", "data-source-options", "dictionary-options", "localConfig", "table-ref", "table-data", "readonly", "isDialog"])
|
|
613
|
+
]), 1032, ["fields-data", "show-index", "select-mode", "is-opt-btns", "opt-btns", "mode-key", "modes", "data-source-options", "dictionary-options", "localConfig", "table-ref", "table-data", "readonly", "isDialog", "hiddenFormData"])
|
|
607
614
|
];
|
|
608
615
|
}),
|
|
609
616
|
_: 3
|
|
@@ -622,5 +629,5 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
622
629
|
};
|
|
623
630
|
}
|
|
624
631
|
});
|
|
625
|
-
const _Table = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
632
|
+
const _Table = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-10045481"]]);
|
|
626
633
|
exports.default = _Table;
|
|
@@ -100,6 +100,10 @@ const _sfc_main = {
|
|
|
100
100
|
isDialog: {
|
|
101
101
|
type: Boolean,
|
|
102
102
|
default: false
|
|
103
|
+
},
|
|
104
|
+
hiddenFormData: {
|
|
105
|
+
type: Object,
|
|
106
|
+
default: {}
|
|
103
107
|
}
|
|
104
108
|
},
|
|
105
109
|
setup(__props) {
|
|
@@ -274,7 +278,7 @@ const _sfc_main = {
|
|
|
274
278
|
table: props.tableRef
|
|
275
279
|
}
|
|
276
280
|
});
|
|
277
|
-
const getEventHandlers = (row, item, eventConfig) => createEventHandlers(item, row, eventConfig);
|
|
281
|
+
const getEventHandlers = (row, item, eventConfig) => createEventHandlers(item, { ...row, ...props.hiddenFormData }, eventConfig);
|
|
278
282
|
return (_ctx, _cache) => {
|
|
279
283
|
const _component_el_link = index$1.ElLink;
|
|
280
284
|
const _component_el_icon = index$2.ElIcon;
|
|
@@ -379,5 +383,5 @@ const _sfc_main = {
|
|
|
379
383
|
};
|
|
380
384
|
}
|
|
381
385
|
};
|
|
382
|
-
const TableColumn = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
386
|
+
const TableColumn = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-93ba698c"]]);
|
|
383
387
|
exports.default = TableColumn;
|