@fecp/designer 5.4.64 → 5.4.66
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/package.json.mjs +1 -1
- package/es/designer.css +23 -20
- package/es/packages/vue/src/components/details/header/Header.vue.mjs +9 -2
- package/es/packages/vue/src/components/forms/form/Form.vue.mjs +5 -5
- package/es/packages/vue/src/components/layout/Layout.vue.mjs +21 -4
- package/lib/designer/package.json.js +1 -1
- package/lib/designer.css +23 -20
- package/lib/packages/vue/src/components/details/header/Header.vue.js +9 -2
- package/lib/packages/vue/src/components/forms/form/Form.vue.js +5 -5
- package/lib/packages/vue/src/components/layout/Layout.vue.js +21 -4
- package/package.json +2 -2
package/es/designer.css
CHANGED
|
@@ -5850,7 +5850,7 @@ body,
|
|
|
5850
5850
|
[data-v-3657e72b] .el-form-item__label {
|
|
5851
5851
|
padding: 0 8px 0 0;
|
|
5852
5852
|
}
|
|
5853
|
-
.el-page-header.is-contentful .el-page-header__main{border-top:1px solid var(--el-border-color-light);margin-top:16px}.el-page-header__header{justify-content:space-between;align-items:center;line-height:24px;display:flex}.el-page-header__left{align-items:center;margin-right:40px;display:flex;position:relative}.el-page-header__back{cursor:pointer;align-items:center;display:flex}.el-page-header__left .el-divider--vertical{margin:0 16px}.el-page-header__icon{align-items:center;margin-right:10px;font-size:16px;display:flex}.el-page-header__icon .el-icon{font-size:inherit}.el-page-header__title{font-size:14px;font-weight:500}.el-page-header__content{color:var(--el-text-color-primary);font-size:18px}.el-page-header__breadcrumb{margin-bottom:16px}.fec-header[data-v-
|
|
5853
|
+
.el-page-header.is-contentful .el-page-header__main{border-top:1px solid var(--el-border-color-light);margin-top:16px}.el-page-header__header{justify-content:space-between;align-items:center;line-height:24px;display:flex}.el-page-header__left{align-items:center;margin-right:40px;display:flex;position:relative}.el-page-header__back{cursor:pointer;align-items:center;display:flex}.el-page-header__left .el-divider--vertical{margin:0 16px}.el-page-header__icon{align-items:center;margin-right:10px;font-size:16px;display:flex}.el-page-header__icon .el-icon{font-size:inherit}.el-page-header__title{font-size:14px;font-weight:500}.el-page-header__content{color:var(--el-text-color-primary);font-size:18px}.el-page-header__breadcrumb{margin-bottom:16px}.fec-header[data-v-9c9b2c67] {
|
|
5854
5854
|
padding: 0 20px;
|
|
5855
5855
|
background-color: #fff;
|
|
5856
5856
|
border-bottom: 1px solid #e4e7ed;
|
|
@@ -5859,33 +5859,36 @@ body,
|
|
|
5859
5859
|
align-items: center;
|
|
5860
5860
|
flex-shrink: 0;
|
|
5861
5861
|
}
|
|
5862
|
-
.fec-header[data-v-
|
|
5862
|
+
.fec-header[data-v-9c9b2c67] .el-page-header__header {
|
|
5863
5863
|
height: 100%;
|
|
5864
5864
|
width: 100%;
|
|
5865
5865
|
display: flex;
|
|
5866
5866
|
align-items: center;
|
|
5867
5867
|
}
|
|
5868
|
-
.fec-header[data-v-
|
|
5868
|
+
.fec-header[data-v-9c9b2c67] .el-page-header__header .el-page-header__title {
|
|
5869
5869
|
display: none;
|
|
5870
5870
|
}
|
|
5871
|
-
.fec-header[data-v-
|
|
5871
|
+
.fec-header[data-v-9c9b2c67] .el-page-header__header .el-page-header__icon {
|
|
5872
5872
|
margin-right: 0;
|
|
5873
5873
|
font-size: 16px;
|
|
5874
5874
|
}
|
|
5875
|
-
.fec-header .fec-header__title[data-v-
|
|
5875
|
+
.fec-header .fec-header__title[data-v-9c9b2c67] {
|
|
5876
5876
|
font-size: 16px;
|
|
5877
5877
|
font-weight: 600;
|
|
5878
5878
|
color: #303133;
|
|
5879
5879
|
margin-right: 12px;
|
|
5880
5880
|
}
|
|
5881
|
-
.fec-header .fec-header__subtitle[data-v-
|
|
5881
|
+
.fec-header .fec-header__subtitle[data-v-9c9b2c67] {
|
|
5882
5882
|
font-size: 12px;
|
|
5883
5883
|
color: #606266;
|
|
5884
5884
|
}
|
|
5885
|
-
.can-not-back[data-v-
|
|
5885
|
+
.can-not-back[data-v-9c9b2c67] .el-subTitle {
|
|
5886
5886
|
display: none;
|
|
5887
5887
|
}
|
|
5888
|
-
[data-v-
|
|
5888
|
+
.can-not-back[data-v-9c9b2c67] .el-divider {
|
|
5889
|
+
display: none;
|
|
5890
|
+
}
|
|
5891
|
+
[data-v-9c9b2c67] .el-page-header__content {
|
|
5889
5892
|
color: #606266;
|
|
5890
5893
|
font-size: 14px;
|
|
5891
5894
|
line-height: 1.5;
|
|
@@ -5904,27 +5907,27 @@ body,
|
|
|
5904
5907
|
width: 80px;
|
|
5905
5908
|
font-size: var(--el-font-size-extra-small);
|
|
5906
5909
|
}
|
|
5907
|
-
.fec-form[data-v-
|
|
5910
|
+
.fec-form[data-v-93f83bd7] {
|
|
5908
5911
|
height: 100%;
|
|
5909
5912
|
}
|
|
5910
|
-
[data-v-
|
|
5913
|
+
[data-v-93f83bd7] .vgl-item {
|
|
5911
5914
|
transition: none;
|
|
5912
5915
|
}
|
|
5913
|
-
[data-v-
|
|
5916
|
+
[data-v-93f83bd7] .vgl-item > .el-form-item {
|
|
5914
5917
|
width: 100%;
|
|
5915
5918
|
padding: 12px 8px 0 8px;
|
|
5916
5919
|
height: calc(100% - 15px);
|
|
5917
5920
|
display: flex;
|
|
5918
5921
|
}
|
|
5919
|
-
[data-v-
|
|
5922
|
+
[data-v-93f83bd7] .vgl-item > .el-form-item.el-form-item--label-top {
|
|
5920
5923
|
flex-direction: column;
|
|
5921
5924
|
}
|
|
5922
|
-
[data-v-
|
|
5925
|
+
[data-v-93f83bd7] .vgl-item > .el-form-item .el-form-item__label {
|
|
5923
5926
|
line-height: 20px;
|
|
5924
5927
|
display: flex;
|
|
5925
5928
|
align-items: center;
|
|
5926
5929
|
}
|
|
5927
|
-
[data-v-
|
|
5930
|
+
[data-v-93f83bd7] .vgl-item > .el-container {
|
|
5928
5931
|
height: auto !important;
|
|
5929
5932
|
}.cell-content .cell-text[data-v-3e5372d4] {
|
|
5930
5933
|
display: inline-block;
|
|
@@ -6260,18 +6263,18 @@ body,
|
|
|
6260
6263
|
max-height: 90% !important;
|
|
6261
6264
|
padding: 0 !important;
|
|
6262
6265
|
}
|
|
6263
|
-
.fec-layout-row[data-v-
|
|
6266
|
+
.fec-layout-row[data-v-5bbe4a19] {
|
|
6264
6267
|
width: 100%;
|
|
6265
6268
|
height: 100%;
|
|
6266
6269
|
overflow: hidden;
|
|
6267
6270
|
}
|
|
6268
|
-
.fec-layout-row[data-v-
|
|
6271
|
+
.fec-layout-row[data-v-5bbe4a19] .el-col {
|
|
6269
6272
|
height: 100%;
|
|
6270
6273
|
}
|
|
6271
|
-
.fec-layout-row[data-v-
|
|
6274
|
+
.fec-layout-row[data-v-5bbe4a19] .el-col .el-scrollbar__bar {
|
|
6272
6275
|
display: none;
|
|
6273
6276
|
}
|
|
6274
|
-
.grid-content[data-v-
|
|
6277
|
+
.grid-content[data-v-5bbe4a19] {
|
|
6275
6278
|
border-radius: 9px 9px 4px 4px;
|
|
6276
6279
|
background-color: #fff;
|
|
6277
6280
|
position: relative;
|
|
@@ -6282,7 +6285,7 @@ body,
|
|
|
6282
6285
|
padding: 16px 16px 16px 16px;
|
|
6283
6286
|
} */
|
|
6284
6287
|
}
|
|
6285
|
-
.grid-content-statistics[data-v-
|
|
6288
|
+
.grid-content-statistics[data-v-5bbe4a19] {
|
|
6286
6289
|
height: 100%;
|
|
6287
6290
|
display: flex;
|
|
6288
6291
|
flex-direction: column;
|
|
@@ -6293,7 +6296,7 @@ body,
|
|
|
6293
6296
|
height: 100%;
|
|
6294
6297
|
} */
|
|
6295
6298
|
}
|
|
6296
|
-
.grid-content-statistics[data-v-
|
|
6299
|
+
.grid-content-statistics[data-v-5bbe4a19] .fec-layout-card:last-child {
|
|
6297
6300
|
margin-bottom: 0 !important;
|
|
6298
6301
|
flex: 1;
|
|
6299
6302
|
}
|
|
@@ -23,6 +23,10 @@ const _sfc_main = {
|
|
|
23
23
|
isApproval: {
|
|
24
24
|
type: Boolean,
|
|
25
25
|
default: false
|
|
26
|
+
},
|
|
27
|
+
showBack: {
|
|
28
|
+
type: Boolean,
|
|
29
|
+
default: false
|
|
26
30
|
}
|
|
27
31
|
},
|
|
28
32
|
emits: ["action-click"],
|
|
@@ -32,7 +36,10 @@ const _sfc_main = {
|
|
|
32
36
|
const emit = __emit;
|
|
33
37
|
const canBack = computed(() => {
|
|
34
38
|
var _a;
|
|
35
|
-
|
|
39
|
+
if (props.showBack) {
|
|
40
|
+
return !props.isApproval && ((_a = props.pageHeaderConfig) == null ? void 0 : _a.canBack);
|
|
41
|
+
}
|
|
42
|
+
return false;
|
|
36
43
|
});
|
|
37
44
|
const getButtonType = (btnStyle) => {
|
|
38
45
|
return "primary";
|
|
@@ -105,7 +112,7 @@ const _sfc_main = {
|
|
|
105
112
|
};
|
|
106
113
|
}
|
|
107
114
|
};
|
|
108
|
-
const component = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
115
|
+
const component = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-9c9b2c67"]]);
|
|
109
116
|
export {
|
|
110
117
|
component as default
|
|
111
118
|
};
|
|
@@ -1015,11 +1015,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
1015
1015
|
"data-version": "v5"
|
|
1016
1016
|
}, {
|
|
1017
1017
|
default: withCtx(() => [
|
|
1018
|
-
|
|
1019
|
-
|
|
1018
|
+
createVNode(unref(header), {
|
|
1019
|
+
showBack: !__props.isSubForm && !__props.isDialog,
|
|
1020
1020
|
isApproval: __props.isApproval,
|
|
1021
1021
|
pageHeaderConfig: localConfig.value.pageHeaderConfig
|
|
1022
|
-
}, null, 8, ["isApproval", "pageHeaderConfig"])
|
|
1022
|
+
}, null, 8, ["showBack", "isApproval", "pageHeaderConfig"]),
|
|
1023
1023
|
createVNode(unref(main), null, {
|
|
1024
1024
|
default: withCtx(() => [
|
|
1025
1025
|
createVNode(_component_el_form, {
|
|
@@ -1076,7 +1076,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
1076
1076
|
_: 1
|
|
1077
1077
|
}),
|
|
1078
1078
|
!__props.isSubForm && !__props.isDialog && !__props.isApproval ? (openBlock(), createBlock(unref(footer), {
|
|
1079
|
-
key:
|
|
1079
|
+
key: 0,
|
|
1080
1080
|
formMode: formMode.value,
|
|
1081
1081
|
pageFooterConfig: localConfig.value.pageFooterConfig,
|
|
1082
1082
|
onCustomButtonClick: handleCustomButtonClick
|
|
@@ -1087,7 +1087,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
1087
1087
|
};
|
|
1088
1088
|
}
|
|
1089
1089
|
});
|
|
1090
|
-
const _Form = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
1090
|
+
const _Form = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-93f83bd7"]]);
|
|
1091
1091
|
export {
|
|
1092
1092
|
_Form as default
|
|
1093
1093
|
};
|
|
@@ -27,16 +27,30 @@ const _sfc_main = {
|
|
|
27
27
|
initFormData: {
|
|
28
28
|
type: Object,
|
|
29
29
|
default: {}
|
|
30
|
+
},
|
|
31
|
+
isDialog: {
|
|
32
|
+
type: Boolean,
|
|
33
|
+
default: false
|
|
30
34
|
}
|
|
31
35
|
},
|
|
32
36
|
emits: ["loaded"],
|
|
33
37
|
setup(__props, { emit: __emit }) {
|
|
34
38
|
const props = __props;
|
|
39
|
+
const layoutRowRef = ref();
|
|
35
40
|
const formData = ref(props.initFormData);
|
|
36
41
|
const emit = __emit;
|
|
37
42
|
const showCard = ref(false);
|
|
38
43
|
function loaded(option, formData2) {
|
|
39
44
|
showCard.value = true;
|
|
45
|
+
const layoutEl = layoutRowRef.value.$el;
|
|
46
|
+
const parentElement = layoutEl.parentElement;
|
|
47
|
+
if (parentElement.classList.contains("el-dialog__body")) {
|
|
48
|
+
let offsetHeight = parentElement.offsetHeight - 20;
|
|
49
|
+
const cols = layoutEl.querySelectorAll(".el-col");
|
|
50
|
+
cols.forEach((col) => {
|
|
51
|
+
col.style.height = offsetHeight + "px";
|
|
52
|
+
});
|
|
53
|
+
}
|
|
40
54
|
emit("loaded", cloneDeep(formData2));
|
|
41
55
|
}
|
|
42
56
|
return (_ctx, _cache) => {
|
|
@@ -46,7 +60,9 @@ const _sfc_main = {
|
|
|
46
60
|
const _directive_fec_layout = resolveDirective("fec-layout");
|
|
47
61
|
return withDirectives((openBlock(), createBlock(_component_el_row, {
|
|
48
62
|
gutter: 8,
|
|
49
|
-
class: "fec-layout-row"
|
|
63
|
+
class: "fec-layout-row",
|
|
64
|
+
ref_key: "layoutRowRef",
|
|
65
|
+
ref: layoutRowRef
|
|
50
66
|
}, {
|
|
51
67
|
default: withCtx(() => [
|
|
52
68
|
createVNode(_component_el_col, { span: 18 }, {
|
|
@@ -60,8 +76,9 @@ const _sfc_main = {
|
|
|
60
76
|
modelValue: unref(formData),
|
|
61
77
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(formData) ? formData.value = $event : null),
|
|
62
78
|
onLoaded: loaded,
|
|
63
|
-
initFormMode: __props.initFormMode
|
|
64
|
-
|
|
79
|
+
initFormMode: __props.initFormMode,
|
|
80
|
+
isDialog: __props.isDialog
|
|
81
|
+
}, null, 8, ["templateKey", "modelValue", "initFormMode", "isDialog"])
|
|
65
82
|
]),
|
|
66
83
|
_: 1
|
|
67
84
|
}, 512)
|
|
@@ -85,7 +102,7 @@ const _sfc_main = {
|
|
|
85
102
|
};
|
|
86
103
|
}
|
|
87
104
|
};
|
|
88
|
-
const _Layout = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
105
|
+
const _Layout = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5bbe4a19"]]);
|
|
89
106
|
export {
|
|
90
107
|
_Layout as default
|
|
91
108
|
};
|
package/lib/designer.css
CHANGED
|
@@ -5850,7 +5850,7 @@ body,
|
|
|
5850
5850
|
[data-v-3657e72b] .el-form-item__label {
|
|
5851
5851
|
padding: 0 8px 0 0;
|
|
5852
5852
|
}
|
|
5853
|
-
.el-page-header.is-contentful .el-page-header__main{border-top:1px solid var(--el-border-color-light);margin-top:16px}.el-page-header__header{justify-content:space-between;align-items:center;line-height:24px;display:flex}.el-page-header__left{align-items:center;margin-right:40px;display:flex;position:relative}.el-page-header__back{cursor:pointer;align-items:center;display:flex}.el-page-header__left .el-divider--vertical{margin:0 16px}.el-page-header__icon{align-items:center;margin-right:10px;font-size:16px;display:flex}.el-page-header__icon .el-icon{font-size:inherit}.el-page-header__title{font-size:14px;font-weight:500}.el-page-header__content{color:var(--el-text-color-primary);font-size:18px}.el-page-header__breadcrumb{margin-bottom:16px}.fec-header[data-v-
|
|
5853
|
+
.el-page-header.is-contentful .el-page-header__main{border-top:1px solid var(--el-border-color-light);margin-top:16px}.el-page-header__header{justify-content:space-between;align-items:center;line-height:24px;display:flex}.el-page-header__left{align-items:center;margin-right:40px;display:flex;position:relative}.el-page-header__back{cursor:pointer;align-items:center;display:flex}.el-page-header__left .el-divider--vertical{margin:0 16px}.el-page-header__icon{align-items:center;margin-right:10px;font-size:16px;display:flex}.el-page-header__icon .el-icon{font-size:inherit}.el-page-header__title{font-size:14px;font-weight:500}.el-page-header__content{color:var(--el-text-color-primary);font-size:18px}.el-page-header__breadcrumb{margin-bottom:16px}.fec-header[data-v-9c9b2c67] {
|
|
5854
5854
|
padding: 0 20px;
|
|
5855
5855
|
background-color: #fff;
|
|
5856
5856
|
border-bottom: 1px solid #e4e7ed;
|
|
@@ -5859,33 +5859,36 @@ body,
|
|
|
5859
5859
|
align-items: center;
|
|
5860
5860
|
flex-shrink: 0;
|
|
5861
5861
|
}
|
|
5862
|
-
.fec-header[data-v-
|
|
5862
|
+
.fec-header[data-v-9c9b2c67] .el-page-header__header {
|
|
5863
5863
|
height: 100%;
|
|
5864
5864
|
width: 100%;
|
|
5865
5865
|
display: flex;
|
|
5866
5866
|
align-items: center;
|
|
5867
5867
|
}
|
|
5868
|
-
.fec-header[data-v-
|
|
5868
|
+
.fec-header[data-v-9c9b2c67] .el-page-header__header .el-page-header__title {
|
|
5869
5869
|
display: none;
|
|
5870
5870
|
}
|
|
5871
|
-
.fec-header[data-v-
|
|
5871
|
+
.fec-header[data-v-9c9b2c67] .el-page-header__header .el-page-header__icon {
|
|
5872
5872
|
margin-right: 0;
|
|
5873
5873
|
font-size: 16px;
|
|
5874
5874
|
}
|
|
5875
|
-
.fec-header .fec-header__title[data-v-
|
|
5875
|
+
.fec-header .fec-header__title[data-v-9c9b2c67] {
|
|
5876
5876
|
font-size: 16px;
|
|
5877
5877
|
font-weight: 600;
|
|
5878
5878
|
color: #303133;
|
|
5879
5879
|
margin-right: 12px;
|
|
5880
5880
|
}
|
|
5881
|
-
.fec-header .fec-header__subtitle[data-v-
|
|
5881
|
+
.fec-header .fec-header__subtitle[data-v-9c9b2c67] {
|
|
5882
5882
|
font-size: 12px;
|
|
5883
5883
|
color: #606266;
|
|
5884
5884
|
}
|
|
5885
|
-
.can-not-back[data-v-
|
|
5885
|
+
.can-not-back[data-v-9c9b2c67] .el-subTitle {
|
|
5886
5886
|
display: none;
|
|
5887
5887
|
}
|
|
5888
|
-
[data-v-
|
|
5888
|
+
.can-not-back[data-v-9c9b2c67] .el-divider {
|
|
5889
|
+
display: none;
|
|
5890
|
+
}
|
|
5891
|
+
[data-v-9c9b2c67] .el-page-header__content {
|
|
5889
5892
|
color: #606266;
|
|
5890
5893
|
font-size: 14px;
|
|
5891
5894
|
line-height: 1.5;
|
|
@@ -5904,27 +5907,27 @@ body,
|
|
|
5904
5907
|
width: 80px;
|
|
5905
5908
|
font-size: var(--el-font-size-extra-small);
|
|
5906
5909
|
}
|
|
5907
|
-
.fec-form[data-v-
|
|
5910
|
+
.fec-form[data-v-93f83bd7] {
|
|
5908
5911
|
height: 100%;
|
|
5909
5912
|
}
|
|
5910
|
-
[data-v-
|
|
5913
|
+
[data-v-93f83bd7] .vgl-item {
|
|
5911
5914
|
transition: none;
|
|
5912
5915
|
}
|
|
5913
|
-
[data-v-
|
|
5916
|
+
[data-v-93f83bd7] .vgl-item > .el-form-item {
|
|
5914
5917
|
width: 100%;
|
|
5915
5918
|
padding: 12px 8px 0 8px;
|
|
5916
5919
|
height: calc(100% - 15px);
|
|
5917
5920
|
display: flex;
|
|
5918
5921
|
}
|
|
5919
|
-
[data-v-
|
|
5922
|
+
[data-v-93f83bd7] .vgl-item > .el-form-item.el-form-item--label-top {
|
|
5920
5923
|
flex-direction: column;
|
|
5921
5924
|
}
|
|
5922
|
-
[data-v-
|
|
5925
|
+
[data-v-93f83bd7] .vgl-item > .el-form-item .el-form-item__label {
|
|
5923
5926
|
line-height: 20px;
|
|
5924
5927
|
display: flex;
|
|
5925
5928
|
align-items: center;
|
|
5926
5929
|
}
|
|
5927
|
-
[data-v-
|
|
5930
|
+
[data-v-93f83bd7] .vgl-item > .el-container {
|
|
5928
5931
|
height: auto !important;
|
|
5929
5932
|
}.cell-content .cell-text[data-v-3e5372d4] {
|
|
5930
5933
|
display: inline-block;
|
|
@@ -6260,18 +6263,18 @@ body,
|
|
|
6260
6263
|
max-height: 90% !important;
|
|
6261
6264
|
padding: 0 !important;
|
|
6262
6265
|
}
|
|
6263
|
-
.fec-layout-row[data-v-
|
|
6266
|
+
.fec-layout-row[data-v-5bbe4a19] {
|
|
6264
6267
|
width: 100%;
|
|
6265
6268
|
height: 100%;
|
|
6266
6269
|
overflow: hidden;
|
|
6267
6270
|
}
|
|
6268
|
-
.fec-layout-row[data-v-
|
|
6271
|
+
.fec-layout-row[data-v-5bbe4a19] .el-col {
|
|
6269
6272
|
height: 100%;
|
|
6270
6273
|
}
|
|
6271
|
-
.fec-layout-row[data-v-
|
|
6274
|
+
.fec-layout-row[data-v-5bbe4a19] .el-col .el-scrollbar__bar {
|
|
6272
6275
|
display: none;
|
|
6273
6276
|
}
|
|
6274
|
-
.grid-content[data-v-
|
|
6277
|
+
.grid-content[data-v-5bbe4a19] {
|
|
6275
6278
|
border-radius: 9px 9px 4px 4px;
|
|
6276
6279
|
background-color: #fff;
|
|
6277
6280
|
position: relative;
|
|
@@ -6282,7 +6285,7 @@ body,
|
|
|
6282
6285
|
padding: 16px 16px 16px 16px;
|
|
6283
6286
|
} */
|
|
6284
6287
|
}
|
|
6285
|
-
.grid-content-statistics[data-v-
|
|
6288
|
+
.grid-content-statistics[data-v-5bbe4a19] {
|
|
6286
6289
|
height: 100%;
|
|
6287
6290
|
display: flex;
|
|
6288
6291
|
flex-direction: column;
|
|
@@ -6293,7 +6296,7 @@ body,
|
|
|
6293
6296
|
height: 100%;
|
|
6294
6297
|
} */
|
|
6295
6298
|
}
|
|
6296
|
-
.grid-content-statistics[data-v-
|
|
6299
|
+
.grid-content-statistics[data-v-5bbe4a19] .fec-layout-card:last-child {
|
|
6297
6300
|
margin-bottom: 0 !important;
|
|
6298
6301
|
flex: 1;
|
|
6299
6302
|
}
|
|
@@ -25,6 +25,10 @@ const _sfc_main = {
|
|
|
25
25
|
isApproval: {
|
|
26
26
|
type: Boolean,
|
|
27
27
|
default: false
|
|
28
|
+
},
|
|
29
|
+
showBack: {
|
|
30
|
+
type: Boolean,
|
|
31
|
+
default: false
|
|
28
32
|
}
|
|
29
33
|
},
|
|
30
34
|
emits: ["action-click"],
|
|
@@ -34,7 +38,10 @@ const _sfc_main = {
|
|
|
34
38
|
const emit = __emit;
|
|
35
39
|
const canBack = vue.computed(() => {
|
|
36
40
|
var _a;
|
|
37
|
-
|
|
41
|
+
if (props.showBack) {
|
|
42
|
+
return !props.isApproval && ((_a = props.pageHeaderConfig) == null ? void 0 : _a.canBack);
|
|
43
|
+
}
|
|
44
|
+
return false;
|
|
38
45
|
});
|
|
39
46
|
const getButtonType = (btnStyle) => {
|
|
40
47
|
return "primary";
|
|
@@ -107,5 +114,5 @@ const _sfc_main = {
|
|
|
107
114
|
};
|
|
108
115
|
}
|
|
109
116
|
};
|
|
110
|
-
const component = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
117
|
+
const component = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-9c9b2c67"]]);
|
|
111
118
|
exports.default = component;
|
|
@@ -1017,11 +1017,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
1017
1017
|
"data-version": "v5"
|
|
1018
1018
|
}, {
|
|
1019
1019
|
default: vue.withCtx(() => [
|
|
1020
|
-
|
|
1021
|
-
|
|
1020
|
+
vue.createVNode(vue.unref(index$3.header), {
|
|
1021
|
+
showBack: !__props.isSubForm && !__props.isDialog,
|
|
1022
1022
|
isApproval: __props.isApproval,
|
|
1023
1023
|
pageHeaderConfig: localConfig.value.pageHeaderConfig
|
|
1024
|
-
}, null, 8, ["isApproval", "pageHeaderConfig"])
|
|
1024
|
+
}, null, 8, ["showBack", "isApproval", "pageHeaderConfig"]),
|
|
1025
1025
|
vue.createVNode(vue.unref(index$4.main), null, {
|
|
1026
1026
|
default: vue.withCtx(() => [
|
|
1027
1027
|
vue.createVNode(_component_el_form, {
|
|
@@ -1078,7 +1078,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
1078
1078
|
_: 1
|
|
1079
1079
|
}),
|
|
1080
1080
|
!__props.isSubForm && !__props.isDialog && !__props.isApproval ? (vue.openBlock(), vue.createBlock(vue.unref(index$6.footer), {
|
|
1081
|
-
key:
|
|
1081
|
+
key: 0,
|
|
1082
1082
|
formMode: formMode.value,
|
|
1083
1083
|
pageFooterConfig: localConfig.value.pageFooterConfig,
|
|
1084
1084
|
onCustomButtonClick: handleCustomButtonClick
|
|
@@ -1089,5 +1089,5 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
1089
1089
|
};
|
|
1090
1090
|
}
|
|
1091
1091
|
});
|
|
1092
|
-
const _Form = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
1092
|
+
const _Form = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-93f83bd7"]]);
|
|
1093
1093
|
exports.default = _Form;
|
|
@@ -29,16 +29,30 @@ const _sfc_main = {
|
|
|
29
29
|
initFormData: {
|
|
30
30
|
type: Object,
|
|
31
31
|
default: {}
|
|
32
|
+
},
|
|
33
|
+
isDialog: {
|
|
34
|
+
type: Boolean,
|
|
35
|
+
default: false
|
|
32
36
|
}
|
|
33
37
|
},
|
|
34
38
|
emits: ["loaded"],
|
|
35
39
|
setup(__props, { emit: __emit }) {
|
|
36
40
|
const props = __props;
|
|
41
|
+
const layoutRowRef = vue.ref();
|
|
37
42
|
const formData = vue.ref(props.initFormData);
|
|
38
43
|
const emit = __emit;
|
|
39
44
|
const showCard = vue.ref(false);
|
|
40
45
|
function loaded(option, formData2) {
|
|
41
46
|
showCard.value = true;
|
|
47
|
+
const layoutEl = layoutRowRef.value.$el;
|
|
48
|
+
const parentElement = layoutEl.parentElement;
|
|
49
|
+
if (parentElement.classList.contains("el-dialog__body")) {
|
|
50
|
+
let offsetHeight = parentElement.offsetHeight - 20;
|
|
51
|
+
const cols = layoutEl.querySelectorAll(".el-col");
|
|
52
|
+
cols.forEach((col) => {
|
|
53
|
+
col.style.height = offsetHeight + "px";
|
|
54
|
+
});
|
|
55
|
+
}
|
|
42
56
|
emit("loaded", common.cloneDeep(formData2));
|
|
43
57
|
}
|
|
44
58
|
return (_ctx, _cache) => {
|
|
@@ -48,7 +62,9 @@ const _sfc_main = {
|
|
|
48
62
|
const _directive_fec_layout = vue.resolveDirective("fec-layout");
|
|
49
63
|
return vue.withDirectives((vue.openBlock(), vue.createBlock(_component_el_row, {
|
|
50
64
|
gutter: 8,
|
|
51
|
-
class: "fec-layout-row"
|
|
65
|
+
class: "fec-layout-row",
|
|
66
|
+
ref_key: "layoutRowRef",
|
|
67
|
+
ref: layoutRowRef
|
|
52
68
|
}, {
|
|
53
69
|
default: vue.withCtx(() => [
|
|
54
70
|
vue.createVNode(_component_el_col, { span: 18 }, {
|
|
@@ -62,8 +78,9 @@ const _sfc_main = {
|
|
|
62
78
|
modelValue: vue.unref(formData),
|
|
63
79
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(formData) ? formData.value = $event : null),
|
|
64
80
|
onLoaded: loaded,
|
|
65
|
-
initFormMode: __props.initFormMode
|
|
66
|
-
|
|
81
|
+
initFormMode: __props.initFormMode,
|
|
82
|
+
isDialog: __props.isDialog
|
|
83
|
+
}, null, 8, ["templateKey", "modelValue", "initFormMode", "isDialog"])
|
|
67
84
|
]),
|
|
68
85
|
_: 1
|
|
69
86
|
}, 512)
|
|
@@ -87,5 +104,5 @@ const _sfc_main = {
|
|
|
87
104
|
};
|
|
88
105
|
}
|
|
89
106
|
};
|
|
90
|
-
const _Layout = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
107
|
+
const _Layout = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-5bbe4a19"]]);
|
|
91
108
|
exports.default = _Layout;
|