@fecp/designer 5.4.27 → 5.4.30

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.
Files changed (27) hide show
  1. package/es/designer/package.json.mjs +1 -1
  2. package/es/designer.css +86 -7
  3. package/es/packages/vue/index.mjs +2 -0
  4. package/es/packages/vue/src/components/all.mjs +6 -0
  5. package/es/packages/vue/src/components/dialog/customDialog/CustomDialog.vue.mjs +172 -0
  6. package/es/packages/vue/src/components/dialog/customDialog/index.mjs +7 -0
  7. package/es/packages/vue/src/components/forms/form/Form.vue.mjs +3 -4
  8. package/es/packages/vue/src/components/layout/Layout.vue.mjs +81 -0
  9. package/es/packages/vue/src/components/layout/index.mjs +9 -0
  10. package/es/packages/vue/src/components/layout/layoutCard/LayoutCard.vue.mjs +162 -0
  11. package/es/packages/vue/src/components/layout/layoutCard/index.mjs +7 -0
  12. package/es/packages/vue/src/directive/layout.mjs +28 -0
  13. package/es/packages/vue/src/utils/datasource.mjs +2 -2
  14. package/lib/designer/package.json.js +1 -1
  15. package/lib/designer.css +86 -7
  16. package/lib/packages/vue/index.js +7 -5
  17. package/lib/packages/vue/src/components/all.js +6 -0
  18. package/lib/packages/vue/src/components/dialog/customDialog/CustomDialog.vue.js +172 -0
  19. package/lib/packages/vue/src/components/dialog/customDialog/index.js +7 -0
  20. package/lib/packages/vue/src/components/forms/form/Form.vue.js +3 -4
  21. package/lib/packages/vue/src/components/layout/Layout.vue.js +81 -0
  22. package/lib/packages/vue/src/components/layout/index.js +9 -0
  23. package/lib/packages/vue/src/components/layout/layoutCard/LayoutCard.vue.js +162 -0
  24. package/lib/packages/vue/src/components/layout/layoutCard/index.js +7 -0
  25. package/lib/packages/vue/src/directive/layout.js +28 -0
  26. package/lib/packages/vue/src/utils/datasource.js +2 -2
  27. package/package.json +1 -1
@@ -0,0 +1,28 @@
1
+ const layout = {
2
+ mounted(el, binding, vnode, prevVnode) {
3
+ if (el.parentElement.className.indexOf("h-main") != -1) {
4
+ document.querySelector(".h-main").setAttribute(
5
+ "style",
6
+ "background-color:transparent;padding:0px;border:0px;"
7
+ );
8
+ }
9
+ if (el.parentElement.className.indexOf("root-main") != -1) {
10
+ document.querySelector(".root-main").setAttribute(
11
+ "style",
12
+ "background-color:transparent;padding:0px;border:0px;"
13
+ );
14
+ }
15
+ if (el.parentElement.parentElement.className.indexOf("el-dialog__body") != -1) {
16
+ el.parentElement.parentElement.setAttribute(
17
+ "style",
18
+ "background-color:#F7F7F7;"
19
+ );
20
+ }
21
+ }
22
+ };
23
+ layout.install = function(Vue) {
24
+ Vue.directive("fec-layout", layout);
25
+ };
26
+ export {
27
+ layout as default
28
+ };
@@ -182,7 +182,7 @@ class DataSourceManager {
182
182
  const responseMessage = response.message;
183
183
  if (this.pagination) {
184
184
  this.data.list = (responseData == null ? void 0 : responseData.records) || responseData;
185
- this.data.total = (responseData == null ? void 0 : responseData.total) || responseData.length;
185
+ this.data.total = (responseData == null ? void 0 : responseData.total) || (responseData == null ? void 0 : responseData.length);
186
186
  } else {
187
187
  this.data = responseData;
188
188
  }
@@ -200,7 +200,7 @@ class DataSourceManager {
200
200
  const responseData = response;
201
201
  if (this.pagination) {
202
202
  this.data.list = (responseData == null ? void 0 : responseData.records) || responseData;
203
- this.data.total = (responseData == null ? void 0 : responseData.total) || responseData.length;
203
+ this.data.total = (responseData == null ? void 0 : responseData.total) || (responseData == null ? void 0 : responseData.length);
204
204
  } else {
205
205
  this.data = responseData;
206
206
  }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const version = "5.4.27";
3
+ const version = "5.4.30";
4
4
  const packageJson = {
5
5
  version
6
6
  };
package/lib/designer.css CHANGED
@@ -5904,27 +5904,27 @@ body,
5904
5904
  width: 80px;
5905
5905
  font-size: var(--el-font-size-extra-small);
5906
5906
  }
5907
- .fec-form[data-v-5d68b9c4] {
5907
+ .fec-form[data-v-4eb26904] {
5908
5908
  height: 100%;
5909
5909
  }
5910
- [data-v-5d68b9c4] .vgl-item {
5910
+ [data-v-4eb26904] .vgl-item {
5911
5911
  transition: none;
5912
5912
  }
5913
- [data-v-5d68b9c4] .vgl-item > .el-form-item {
5913
+ [data-v-4eb26904] .vgl-item > .el-form-item {
5914
5914
  width: 100%;
5915
5915
  padding: 12px 8px 0 8px;
5916
5916
  height: calc(100% - 15px);
5917
5917
  display: flex;
5918
5918
  }
5919
- [data-v-5d68b9c4] .vgl-item > .el-form-item.el-form-item--label-top {
5919
+ [data-v-4eb26904] .vgl-item > .el-form-item.el-form-item--label-top {
5920
5920
  flex-direction: column;
5921
5921
  }
5922
- [data-v-5d68b9c4] .vgl-item > .el-form-item .el-form-item__label {
5922
+ [data-v-4eb26904] .vgl-item > .el-form-item .el-form-item__label {
5923
5923
  line-height: 20px;
5924
5924
  display: flex;
5925
5925
  align-items: center;
5926
5926
  }
5927
- [data-v-5d68b9c4] .vgl-item > .el-container {
5927
+ [data-v-4eb26904] .vgl-item > .el-container {
5928
5928
  height: auto !important;
5929
5929
  }.cell-content .cell-text[data-v-3e5372d4] {
5930
5930
  display: inline-block;
@@ -6253,7 +6253,86 @@ body,
6253
6253
  .fec-table-container[data-v-45cdf333] .vxe-table .vxe-body--column .c--title {
6254
6254
  height: 40px !important;
6255
6255
  min-height: 40px !important;
6256
- }:root,:host{--van-cell-font-size: var(--van-font-size-md);--van-cell-line-height: 24px;--van-cell-vertical-padding: 10px;--van-cell-horizontal-padding: var(--van-padding-md);--van-cell-text-color: var(--van-text-color);--van-cell-background: var(--van-background-2);--van-cell-border-color: var(--van-border-color);--van-cell-active-color: var(--van-active-color);--van-cell-required-color: var(--van-danger-color);--van-cell-label-color: var(--van-text-color-2);--van-cell-label-font-size: var(--van-font-size-sm);--van-cell-label-line-height: var(--van-line-height-sm);--van-cell-label-margin-top: var(--van-padding-base);--van-cell-value-color: var(--van-text-color-2);--van-cell-value-font-size: inherit;--van-cell-icon-size: 16px;--van-cell-right-icon-color: var(--van-gray-6);--van-cell-large-vertical-padding: var(--van-padding-sm);--van-cell-large-title-font-size: var(--van-font-size-lg);--van-cell-large-label-font-size: var(--van-font-size-md);--van-cell-large-value-font-size: inherit}.van-cell{position:relative;display:flex;box-sizing:border-box;width:100%;padding:var(--van-cell-vertical-padding) var(--van-cell-horizontal-padding);overflow:hidden;color:var(--van-cell-text-color);font-size:var(--van-cell-font-size);line-height:var(--van-cell-line-height);background:var(--van-cell-background)}.van-cell:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;right:var(--van-padding-md);bottom:0;left:var(--van-padding-md);border-bottom:1px solid var(--van-cell-border-color);transform:scaleY(.5)}.van-cell:last-child:after,.van-cell--borderless:after{display:none}.van-cell__label{margin-top:var(--van-cell-label-margin-top);color:var(--van-cell-label-color);font-size:var(--van-cell-label-font-size);line-height:var(--van-cell-label-line-height)}.van-cell__title,.van-cell__value{flex:1}.van-cell__value{position:relative;overflow:hidden;color:var(--van-cell-value-color);font-size:var(--van-cell-value-font-size);text-align:right;vertical-align:middle;word-wrap:break-word}.van-cell__left-icon,.van-cell__right-icon{height:var(--van-cell-line-height);font-size:var(--van-cell-icon-size);line-height:var(--van-cell-line-height)}.van-cell__left-icon{margin-right:var(--van-padding-base)}.van-cell__right-icon{margin-left:var(--van-padding-base);color:var(--van-cell-right-icon-color)}.van-cell--clickable{cursor:pointer}.van-cell--clickable:active{background-color:var(--van-cell-active-color)}.van-cell--required{overflow:visible}.van-cell--required:before{position:absolute;left:var(--van-padding-xs);color:var(--van-cell-required-color);font-size:var(--van-cell-font-size);content:"*"}.van-cell--center{align-items:center}.van-cell--large{padding-top:var(--van-cell-large-vertical-padding);padding-bottom:var(--van-cell-large-vertical-padding)}.van-cell--large .van-cell__title{font-size:var(--van-cell-large-title-font-size)}.van-cell--large .van-cell__label{font-size:var(--van-cell-large-label-font-size)}.van-cell--large .van-cell__value{font-size:var(--van-cell-large-value-font-size)}
6256
+ }
6257
+ .custom-dialog {
6258
+ min-height: 50% !important;
6259
+ height: auto;
6260
+ max-height: 90% !important;
6261
+ padding: 0 !important;
6262
+ }
6263
+ .fec-layout-row[data-v-bb40b3aa] {
6264
+ width: 100%;
6265
+ height: 100%;
6266
+ }
6267
+ .fec-layout-row[data-v-bb40b3aa] .el-col {
6268
+ height: 100%;
6269
+ }
6270
+ .fec-layout-row[data-v-bb40b3aa] .el-col .el-scrollbar__bar {
6271
+ display: none;
6272
+ }
6273
+ .grid-content[data-v-bb40b3aa] {
6274
+ border-radius: 9px 9px 4px 4px;
6275
+ background-color: #fff;
6276
+ position: relative;
6277
+ height: 100%;
6278
+ /* padding: 16px; */
6279
+ overflow: hidden;
6280
+ /* .layout-content {
6281
+ padding: 16px 16px 16px 16px;
6282
+ } */
6283
+ }
6284
+ .grid-content-statistics[data-v-bb40b3aa] {
6285
+ height: 100%;
6286
+ display: flex;
6287
+ flex-direction: column;
6288
+ /* .card-content {
6289
+ display: flex;
6290
+ flex-direction: column;
6291
+ height: 100%;
6292
+ } */
6293
+ }
6294
+ .grid-content-statistics[data-v-bb40b3aa] .fec-layout-card:last-child {
6295
+ margin-bottom: 0 !important;
6296
+ flex: 1;
6297
+ }
6298
+ .fec-layout-card[data-v-3ce25014] {
6299
+ margin-bottom: 8px;
6300
+ border-radius: 4px;
6301
+ background-color: #fff;
6302
+ padding: 16px;
6303
+ display: flex;
6304
+ flex-direction: column;
6305
+ }
6306
+ .fec-layout-card .header[data-v-3ce25014] {
6307
+ display: flex;
6308
+ align-items: center;
6309
+ justify-content: space-between;
6310
+ }
6311
+ .fec-layout-card .header .title[data-v-3ce25014] {
6312
+ display: flex;
6313
+ align-items: center;
6314
+ }
6315
+ .fec-layout-card .header .title .icon[data-v-3ce25014] {
6316
+ color: #fff;
6317
+ width: 30px;
6318
+ height: 30px;
6319
+ display: block;
6320
+ border-radius: 4px;
6321
+ text-align: center;
6322
+ line-height: 30px;
6323
+ font-size: 20px;
6324
+ margin-right: 12px;
6325
+ }
6326
+ .fec-layout-card .header .title > span[data-v-3ce25014] {
6327
+ font-size: 17px;
6328
+ font-weight: bold;
6329
+ color: #1a1a1a;
6330
+ }
6331
+ .fec-layout-card .content[data-v-3ce25014] {
6332
+ flex-grow: 1;
6333
+ padding-top: 12px;
6334
+ }
6335
+ :root,:host{--van-cell-font-size: var(--van-font-size-md);--van-cell-line-height: 24px;--van-cell-vertical-padding: 10px;--van-cell-horizontal-padding: var(--van-padding-md);--van-cell-text-color: var(--van-text-color);--van-cell-background: var(--van-background-2);--van-cell-border-color: var(--van-border-color);--van-cell-active-color: var(--van-active-color);--van-cell-required-color: var(--van-danger-color);--van-cell-label-color: var(--van-text-color-2);--van-cell-label-font-size: var(--van-font-size-sm);--van-cell-label-line-height: var(--van-line-height-sm);--van-cell-label-margin-top: var(--van-padding-base);--van-cell-value-color: var(--van-text-color-2);--van-cell-value-font-size: inherit;--van-cell-icon-size: 16px;--van-cell-right-icon-color: var(--van-gray-6);--van-cell-large-vertical-padding: var(--van-padding-sm);--van-cell-large-title-font-size: var(--van-font-size-lg);--van-cell-large-label-font-size: var(--van-font-size-md);--van-cell-large-value-font-size: inherit}.van-cell{position:relative;display:flex;box-sizing:border-box;width:100%;padding:var(--van-cell-vertical-padding) var(--van-cell-horizontal-padding);overflow:hidden;color:var(--van-cell-text-color);font-size:var(--van-cell-font-size);line-height:var(--van-cell-line-height);background:var(--van-cell-background)}.van-cell:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;right:var(--van-padding-md);bottom:0;left:var(--van-padding-md);border-bottom:1px solid var(--van-cell-border-color);transform:scaleY(.5)}.van-cell:last-child:after,.van-cell--borderless:after{display:none}.van-cell__label{margin-top:var(--van-cell-label-margin-top);color:var(--van-cell-label-color);font-size:var(--van-cell-label-font-size);line-height:var(--van-cell-label-line-height)}.van-cell__title,.van-cell__value{flex:1}.van-cell__value{position:relative;overflow:hidden;color:var(--van-cell-value-color);font-size:var(--van-cell-value-font-size);text-align:right;vertical-align:middle;word-wrap:break-word}.van-cell__left-icon,.van-cell__right-icon{height:var(--van-cell-line-height);font-size:var(--van-cell-icon-size);line-height:var(--van-cell-line-height)}.van-cell__left-icon{margin-right:var(--van-padding-base)}.van-cell__right-icon{margin-left:var(--van-padding-base);color:var(--van-cell-right-icon-color)}.van-cell--clickable{cursor:pointer}.van-cell--clickable:active{background-color:var(--van-cell-active-color)}.van-cell--required{overflow:visible}.van-cell--required:before{position:absolute;left:var(--van-padding-xs);color:var(--van-cell-required-color);font-size:var(--van-cell-font-size);content:"*"}.van-cell--center{align-items:center}.van-cell--large{padding-top:var(--van-cell-large-vertical-padding);padding-bottom:var(--van-cell-large-vertical-padding)}.van-cell--large .van-cell__title{font-size:var(--van-cell-large-title-font-size)}.van-cell--large .van-cell__label{font-size:var(--van-cell-large-label-font-size)}.van-cell--large .van-cell__value{font-size:var(--van-cell-large-value-font-size)}
6257
6336
  :root,:host{--van-cell-group-background: var(--van-background-2);--van-cell-group-title-color: var(--van-text-color-2);--van-cell-group-title-padding: var(--van-padding-md) var(--van-padding-md);--van-cell-group-title-font-size: var(--van-font-size-md);--van-cell-group-title-line-height: 16px;--van-cell-group-inset-padding: 0 var(--van-padding-md);--van-cell-group-inset-radius: var(--van-radius-lg);--van-cell-group-inset-title-padding: var(--van-padding-md) var(--van-padding-md)}.van-cell-group{background:var(--van-cell-group-background)}.van-cell-group--inset{margin:var(--van-cell-group-inset-padding);border-radius:var(--van-cell-group-inset-radius);overflow:hidden}.van-cell-group__title{padding:var(--van-cell-group-title-padding);color:var(--van-cell-group-title-color);font-size:var(--van-cell-group-title-font-size);line-height:var(--van-cell-group-title-line-height)}.van-cell-group__title--inset{padding:var(--van-cell-group-inset-title-padding)}
6258
6337
  .van-swipe-cell{position:relative;overflow:hidden;cursor:-webkit-grab;cursor:grab}.van-swipe-cell__wrapper{transition-timing-function:cubic-bezier(.18,.89,.32,1);transition-property:transform}.van-swipe-cell__left,.van-swipe-cell__right{position:absolute;top:0;height:100%}.van-swipe-cell__left{left:0;transform:translate3d(-100%,0,0)}.van-swipe-cell__right{right:0;transform:translate3d(100%,0,0)}
6259
6338
 
@@ -1,26 +1,28 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
3
  const all = require("./src/components/all.js");
4
- const index$r = require("../mobile/index.js");
4
+ const index$u = require("../mobile/index.js");
5
5
  const zhCn = require("../../node_modules/element-plus/es/locale/lang/zh-cn.js");
6
- const index$s = require("../../node_modules/element-plus/es/index.js");
6
+ const index$v = require("../../node_modules/element-plus/es/index.js");
7
7
  const components = require("../../node_modules/vxe-pc-ui/es/components.js");
8
8
  ;/* empty css */
9
9
  ;/* empty css */
10
+ const layout = require("./src/directive/layout.js");
10
11
  const fecVue = {
11
12
  install: (app) => {
12
13
  for (let c in all) {
13
14
  app.use(all[c]);
14
15
  }
15
- for (let c in index$r) {
16
+ for (let c in index$u) {
16
17
  if (c.startsWith("Mobile")) {
17
- app.use(index$r[c]);
18
+ app.use(index$u[c]);
18
19
  }
19
20
  }
20
- app.use(index$s.default, {
21
+ app.use(index$v.default, {
21
22
  locale: zhCn.default
22
23
  });
23
24
  app.use(components);
25
+ app.use(layout.default);
24
26
  }
25
27
  };
26
28
  exports.default = fecVue;
@@ -27,6 +27,9 @@ const index$n = require("./bus/document/index.js");
27
27
  const index$o = require("./details/header/index.js");
28
28
  const index$p = require("./details/footer/index.js");
29
29
  const index$q = require("./details/main/index.js");
30
+ const index$r = require("./dialog/customDialog/index.js");
31
+ const index$s = require("./layout/index.js");
32
+ const index$t = require("./layout/layoutCard/index.js");
30
33
  exports.Table = index.Table;
31
34
  exports.Form = index$1.Form;
32
35
  exports.Text = index$2.Text;
@@ -54,3 +57,6 @@ exports.Document = index$n.Document;
54
57
  exports.header = index$o.header;
55
58
  exports.footer = index$p.footer;
56
59
  exports.main = index$q.main;
60
+ exports.customDialog = index$r.customDialog;
61
+ exports.Layout = index$s.Layout;
62
+ exports.LayoutCard = index$t.LayoutCard;
@@ -0,0 +1,172 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ require("../../../../../../node_modules/element-plus/es/index.js");
4
+ ;/* empty css */
5
+ ;/* empty css */
6
+ ;/* empty css */
7
+ ;/* empty css */
8
+ const vue = require("vue");
9
+ ;/* empty css */
10
+ const index = require("../../../../../../node_modules/element-plus/es/components/dialog/index.js");
11
+ const index$1 = require("../../../../../../node_modules/element-plus/es/components/button/index.js");
12
+ const _sfc_main = {
13
+ __name: "CustomDialog",
14
+ props: {
15
+ modelValue: {
16
+ type: Boolean,
17
+ default: false
18
+ },
19
+ initOption: {
20
+ type: Object,
21
+ default: {
22
+ width: ""
23
+ }
24
+ },
25
+ width: {
26
+ type: String,
27
+ default: ""
28
+ },
29
+ height: {
30
+ type: String,
31
+ default: "auto"
32
+ },
33
+ //max,default,min
34
+ size: {
35
+ type: String,
36
+ default: "default"
37
+ },
38
+ class: {
39
+ type: String,
40
+ default: ""
41
+ },
42
+ title: {
43
+ type: String,
44
+ default: "标题"
45
+ },
46
+ submitButtonText: {
47
+ type: String,
48
+ default: "确定"
49
+ },
50
+ cancelButtonText: {
51
+ type: String,
52
+ default: "取消"
53
+ },
54
+ query: {
55
+ type: Boolean,
56
+ default: false
57
+ },
58
+ appendToBody: {
59
+ type: Boolean,
60
+ default: false
61
+ },
62
+ hiddenFooter: {
63
+ type: Boolean,
64
+ default: false
65
+ }
66
+ },
67
+ emits: ["submit", "onClose", "update:modelValue"],
68
+ setup(__props, { emit: __emit }) {
69
+ const props = __props;
70
+ const slotFooter = !!vue.useSlots().footer;
71
+ const dialogWidth = vue.computed(() => {
72
+ let w = props.initOption.width || props.width;
73
+ if (w) {
74
+ return w;
75
+ } else {
76
+ if (props.size == "default") {
77
+ return "65%";
78
+ } else if (props.size == "max") {
79
+ return "80%";
80
+ } else if (props.size == "min") {
81
+ return "50%";
82
+ }
83
+ }
84
+ });
85
+ const dialogVisible = vue.ref(false);
86
+ const emit = __emit;
87
+ const onClose = () => {
88
+ emit("onClose");
89
+ emit("update:modelValue", false);
90
+ };
91
+ vue.ref();
92
+ function submit() {
93
+ emit("submit");
94
+ }
95
+ const isFullscreen = vue.ref(false);
96
+ function changeFullscreen() {
97
+ isFullscreen.value = !isFullscreen.value;
98
+ }
99
+ vue.watch(
100
+ () => props.modelValue,
101
+ (visible) => {
102
+ if (visible) {
103
+ isFullscreen.value = false;
104
+ }
105
+ dialogVisible.value = visible;
106
+ },
107
+ {
108
+ immediate: true
109
+ }
110
+ );
111
+ return (_ctx, _cache) => {
112
+ const _component_el_button = index$1.ElButton;
113
+ const _component_el_dialog = index.ElDialog;
114
+ return vue.openBlock(), vue.createBlock(_component_el_dialog, {
115
+ modelValue: vue.unref(dialogVisible),
116
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vue.isRef(dialogVisible) ? dialogVisible.value = $event : null),
117
+ title: props.title,
118
+ onClose,
119
+ "destroy-on-close": "",
120
+ draggable: "",
121
+ "append-to-body": props.appendToBody,
122
+ "close-on-click-modal": false,
123
+ "close-on-press-escape": false,
124
+ width: vue.unref(dialogWidth),
125
+ class: vue.normalizeClass(props.class + " custom-dialog"),
126
+ style: vue.normalizeStyle("height:" + __props.height),
127
+ fullscreen: vue.unref(isFullscreen)
128
+ }, vue.createSlots({
129
+ header: vue.withCtx(() => [
130
+ vue.createElementVNode("span", null, vue.toDisplayString(props.title), 1),
131
+ vue.createElementVNode("i", {
132
+ class: "iconfont icon-MaxScreen max-screen",
133
+ onClick: changeFullscreen
134
+ })
135
+ ]),
136
+ default: vue.withCtx(() => [
137
+ vue.renderSlot(_ctx.$slots, "default")
138
+ ]),
139
+ _: 2
140
+ }, [
141
+ !__props.hiddenFooter ? {
142
+ name: "footer",
143
+ fn: vue.withCtx(() => [
144
+ vue.createVNode(_component_el_button, {
145
+ onClick: _cache[0] || (_cache[0] = ($event) => dialogVisible.value = false)
146
+ }, {
147
+ default: vue.withCtx(() => [
148
+ vue.createTextVNode(vue.toDisplayString(props.cancelButtonText), 1)
149
+ ]),
150
+ _: 1
151
+ }),
152
+ slotFooter ? vue.renderSlot(_ctx.$slots, "footer", { key: 0 }) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
153
+ !props.query ? (vue.openBlock(), vue.createBlock(_component_el_button, {
154
+ key: 0,
155
+ type: "primary",
156
+ onClick: submit,
157
+ size: "default"
158
+ }, {
159
+ default: vue.withCtx(() => [
160
+ vue.createTextVNode(vue.toDisplayString(props.submitButtonText), 1)
161
+ ]),
162
+ _: 1
163
+ })) : vue.createCommentVNode("", true)
164
+ ], 64))
165
+ ]),
166
+ key: "0"
167
+ } : void 0
168
+ ]), 1032, ["modelValue", "title", "append-to-body", "width", "class", "style", "fullscreen"]);
169
+ };
170
+ }
171
+ };
172
+ exports.default = _sfc_main;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const CustomDialog = require("./CustomDialog.vue.js");
4
+ const install = require("../../../utils/install.js");
5
+ const customDialog = install.default.withInstall("CustomDialog", CustomDialog.default);
6
+ exports.customDialog = customDialog;
7
+ exports.default = customDialog;
@@ -147,7 +147,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
147
147
  }
148
148
  );
149
149
  const loadConfig = async () => {
150
- if (!props.templateKey) {
150
+ if (!props.templateKey && props.initOption && Object.keys(props.initOption).length == 0) {
151
151
  return;
152
152
  }
153
153
  configLoading.value = true;
@@ -192,7 +192,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
192
192
  mergeOptionsToFields();
193
193
  initGridLayoutDataConfig();
194
194
  initLinkage();
195
- emit("loaded", option);
195
+ emit("loaded", option, getFormData());
196
196
  } catch (error) {
197
197
  console.error("加载配置失败:", error);
198
198
  index.ElMessage.error("加载配置失败");
@@ -813,7 +813,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
813
813
  );
814
814
  relevantConfigs.dataLink.forEach((item) => {
815
815
  if (parseFilterConfig.checkFilterMatch(item.filterConfig, formData.value, fields)) {
816
- debugger;
817
816
  const fieldAssignments = item.fieldAssignments || [];
818
817
  fieldAssignments.forEach((assignment) => {
819
818
  var _a2, _b;
@@ -1067,5 +1066,5 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
1067
1066
  };
1068
1067
  }
1069
1068
  });
1070
- const _Form = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-5d68b9c4"]]);
1069
+ const _Form = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-4eb26904"]]);
1071
1070
  exports.default = _Form;
@@ -0,0 +1,81 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ require("../../../../../node_modules/element-plus/es/index.js");
4
+ ;/* empty css */
5
+ ;/* empty css */
6
+ ;/* empty css */
7
+ ;/* empty css */
8
+ const vue = require("vue");
9
+ const index$3 = require("../forms/form/index.js");
10
+ const common = require("../../utils/common.js");
11
+ ;/* empty css */
12
+ const _pluginVue_exportHelper = require("../../../../../_virtual/_plugin-vue_export-helper.js");
13
+ const index = require("../../../../../node_modules/element-plus/es/components/row/index.js");
14
+ const index$1 = require("../../../../../node_modules/element-plus/es/components/col/index.js");
15
+ const index$2 = require("../../../../../node_modules/element-plus/es/components/scrollbar/index.js");
16
+ const _hoisted_1 = { class: "grid-content" };
17
+ const _hoisted_2 = { class: "grid-content-statistics" };
18
+ const _sfc_main = {
19
+ __name: "Layout",
20
+ props: {
21
+ templateKey: {
22
+ type: String,
23
+ default: ""
24
+ }
25
+ },
26
+ emits: ["loaded"],
27
+ setup(__props, { emit: __emit }) {
28
+ const formData = vue.ref({});
29
+ const emit = __emit;
30
+ const showCard = vue.ref(false);
31
+ function loaded(option, formData2) {
32
+ showCard.value = true;
33
+ emit("loaded", common.cloneDeep(formData2));
34
+ }
35
+ return (_ctx, _cache) => {
36
+ const _component_el_scrollbar = index$2.ElScrollbar;
37
+ const _component_el_col = index$1.ElCol;
38
+ const _component_el_row = index.ElRow;
39
+ const _directive_fec_layout = vue.resolveDirective("fec-layout");
40
+ return vue.withDirectives((vue.openBlock(), vue.createBlock(_component_el_row, {
41
+ gutter: 8,
42
+ class: "fec-layout-row"
43
+ }, {
44
+ default: vue.withCtx(() => [
45
+ vue.createVNode(_component_el_col, { span: 18 }, {
46
+ default: vue.withCtx(() => [
47
+ vue.createElementVNode("div", _hoisted_1, [
48
+ vue.createVNode(_component_el_scrollbar, { ref: "scrollbarRef" }, {
49
+ default: vue.withCtx(() => [
50
+ vue.createVNode(vue.unref(index$3.Form), {
51
+ ref: "formRef",
52
+ templateKey: __props.templateKey,
53
+ modelValue: vue.unref(formData),
54
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(formData) ? formData.value = $event : null),
55
+ onLoaded: loaded
56
+ }, null, 8, ["templateKey", "modelValue"])
57
+ ]),
58
+ _: 1
59
+ }, 512)
60
+ ])
61
+ ]),
62
+ _: 1
63
+ }),
64
+ vue.createVNode(_component_el_col, { span: 6 }, {
65
+ default: vue.withCtx(() => [
66
+ vue.createElementVNode("div", _hoisted_2, [
67
+ vue.unref(showCard) ? vue.renderSlot(_ctx.$slots, "card", { key: 0 }, void 0, true) : vue.createCommentVNode("", true)
68
+ ])
69
+ ]),
70
+ _: 3
71
+ })
72
+ ]),
73
+ _: 3
74
+ })), [
75
+ [_directive_fec_layout]
76
+ ]);
77
+ };
78
+ }
79
+ };
80
+ const _Layout = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-bb40b3aa"]]);
81
+ exports.default = _Layout;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const Layout$1 = require("./Layout.vue.js");
4
+ const install = require("../../utils/install.js");
5
+ const index = require("./layoutCard/index.js");
6
+ const Layout = install.default.withInstall("Layout", Layout$1.default);
7
+ exports.LayoutCard = index.LayoutCard;
8
+ exports.Layout = Layout;
9
+ exports.default = Layout;