@fecp/designer 5.5.59 → 5.5.60

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.
@@ -1,4 +1,4 @@
1
- const version = "5.5.59";
1
+ const version = "5.5.60";
2
2
  const packageJson = {
3
3
  version
4
4
  };
@@ -1,4 +1,4 @@
1
- import DialogDialog from "./index.vue.mjs";
1
+ import DialogDialog from "./index.vue2.mjs";
2
2
  import { ref } from "vue";
3
3
  function useDialogDialog() {
4
4
  const dialogDialogVisible = ref(false);
@@ -1,4 +1,4 @@
1
- import DialogGlobalDialog from "./index.vue.mjs";
1
+ import DialogGlobalDialog from "./index.vue2.mjs";
2
2
  import { ref } from "vue";
3
3
  function useDialogGlobalDialog() {
4
4
  const dialogGlobalDialogVisible = ref(false);
@@ -52,8 +52,8 @@ import _export_sfc from "../../../../../_virtual/_plugin-vue_export-helper.mjs";
52
52
  import "../../../components/TemplateSelector.vue.mjs";
53
53
  import "../../table/default.mjs";
54
54
  /* empty css */
55
- /* empty css */
56
- /* empty css */
55
+ /* empty css */
56
+ /* empty css */
57
57
  import "../../../store/index.mjs";
58
58
  /* empty css */
59
59
  import { ElCollapse, ElCollapseItem } from "../../../../../node_modules/element-plus/es/components/collapse/index.mjs";
package/es/designer.css CHANGED
@@ -6216,10 +6216,10 @@ body,
6216
6216
  align-items: center;
6217
6217
  flex-wrap: nowrap;
6218
6218
  }
6219
- .fec-form[data-v-ff16a958] {
6219
+ .fec-form[data-v-26d1e7d2] {
6220
6220
  height: 100%;
6221
6221
  }
6222
- .fec-form-col[data-v-ff16a958] {
6222
+ .fec-form-col[data-v-26d1e7d2] {
6223
6223
  padding: 0px !important;
6224
6224
  display: flex !important;
6225
6225
  flex-direction: column;
@@ -6228,22 +6228,22 @@ body,
6228
6228
  border-radius: 4px;
6229
6229
  overflow: hidden;
6230
6230
  }
6231
- [data-v-ff16a958] .vgl-layout {
6231
+ [data-v-26d1e7d2] .vgl-layout {
6232
6232
  position: relative;
6233
6233
  }
6234
- [data-v-ff16a958] .vgl-item {
6234
+ [data-v-26d1e7d2] .vgl-item {
6235
6235
  transition: none;
6236
6236
  }
6237
- [data-v-ff16a958] .vgl-item > .el-form-item {
6237
+ [data-v-26d1e7d2] .vgl-item > .el-form-item {
6238
6238
  width: 100%;
6239
6239
  padding: 6px 8px 0 8px;
6240
6240
  height: calc(100% - 15px);
6241
6241
  display: flex;
6242
6242
  }
6243
- [data-v-ff16a958] .vgl-item > .el-form-item.el-form-item--label-top {
6243
+ [data-v-26d1e7d2] .vgl-item > .el-form-item.el-form-item--label-top {
6244
6244
  flex-direction: column;
6245
6245
  }
6246
- [data-v-ff16a958] .vgl-item > .el-form-item .el-form-item__label {
6246
+ [data-v-26d1e7d2] .vgl-item > .el-form-item .el-form-item__label {
6247
6247
  line-height: 20px;
6248
6248
  display: inline-flex;
6249
6249
  align-items: center;
@@ -6257,107 +6257,107 @@ body,
6257
6257
  flex-shrink: 0;
6258
6258
  min-height: 45px;
6259
6259
  }
6260
- [data-v-ff16a958] .vgl-item > .el-form-item {
6260
+ [data-v-26d1e7d2] .vgl-item > .el-form-item {
6261
6261
  /* .el-form-item__error {
6262
6262
  padding-top: 10px;
6263
6263
  } */
6264
6264
  }
6265
- [data-v-ff16a958] .vgl-item > .el-form-item .el-input__wrapper {
6265
+ [data-v-26d1e7d2] .vgl-item > .el-form-item .el-input__wrapper {
6266
6266
  padding: 1px 12px;
6267
6267
  }
6268
- [data-v-ff16a958] .vgl-item > .el-container {
6268
+ [data-v-26d1e7d2] .vgl-item > .el-container {
6269
6269
  height: auto !important;
6270
6270
  }
6271
6271
  @media (min-width: 1720px) {
6272
- [data-v-ff16a958] .vgl-item .el-form-item__label {
6272
+ [data-v-26d1e7d2] .vgl-item .el-form-item__label {
6273
6273
  max-width: 160px !important;
6274
6274
  }
6275
- [data-v-ff16a958] .vgl-item .el-form-item {
6275
+ [data-v-26d1e7d2] .vgl-item .el-form-item {
6276
6276
  padding: 6px 8px 0 8px !important;
6277
6277
  }
6278
- [data-v-ff16a958] .vgl-item .el-form-item .el-input__wrapper {
6278
+ [data-v-26d1e7d2] .vgl-item .el-form-item .el-input__wrapper {
6279
6279
  padding: 1px 12px;
6280
6280
  }
6281
- [data-v-ff16a958] .vgl-item .el-form-item .el-select__wrapper {
6281
+ [data-v-26d1e7d2] .vgl-item .el-form-item .el-select__wrapper {
6282
6282
  padding: 8px 12px;
6283
6283
  }
6284
- .fec-el-form[data-v-ff16a958] {
6284
+ .fec-el-form[data-v-26d1e7d2] {
6285
6285
  padding: 12px !important;
6286
6286
  }
6287
6287
  }
6288
6288
  /* 标准 PC(1200px ~ 1439px)*/
6289
6289
  @media (min-width: 1366px) and (max-width: 1719px) {
6290
- [data-v-ff16a958] .vgl-item .el-form-item__label {
6290
+ [data-v-26d1e7d2] .vgl-item .el-form-item__label {
6291
6291
  max-width: 130px !important;
6292
6292
  padding-right: 6px !important;
6293
6293
  }
6294
- [data-v-ff16a958] .vgl-item .el-form-item {
6294
+ [data-v-26d1e7d2] .vgl-item .el-form-item {
6295
6295
  padding: 6px 0 0 0 !important;
6296
6296
  }
6297
- [data-v-ff16a958] .vgl-item .el-form-item .el-input__wrapper {
6297
+ [data-v-26d1e7d2] .vgl-item .el-form-item .el-input__wrapper {
6298
6298
  padding: 1px 8px;
6299
6299
  }
6300
- [data-v-ff16a958] .vgl-item .el-form-item .el-select__wrapper {
6300
+ [data-v-26d1e7d2] .vgl-item .el-form-item .el-select__wrapper {
6301
6301
  padding: 8px 8px;
6302
6302
  }
6303
- .fec-el-form[data-v-ff16a958] {
6303
+ .fec-el-form[data-v-26d1e7d2] {
6304
6304
  padding: 8px !important;
6305
6305
  }
6306
6306
  }
6307
6307
  /* 2. 标准 PC 992px ~ 1199px */
6308
6308
  @media (min-width: 992px) and (max-width: 1365px) {
6309
- [data-v-ff16a958] .vgl-item .el-form-item__label {
6309
+ [data-v-26d1e7d2] .vgl-item .el-form-item__label {
6310
6310
  max-width: 125px !important;
6311
6311
  padding-right: 4px !important;
6312
6312
  }
6313
- [data-v-ff16a958] .vgl-item .el-form-item {
6313
+ [data-v-26d1e7d2] .vgl-item .el-form-item {
6314
6314
  padding: 0 !important;
6315
6315
  }
6316
- [data-v-ff16a958] .vgl-item .el-form-item .el-input__wrapper {
6316
+ [data-v-26d1e7d2] .vgl-item .el-form-item .el-input__wrapper {
6317
6317
  padding: 1px 6px;
6318
6318
  }
6319
- [data-v-ff16a958] .vgl-item .el-form-item .el-select__wrapper {
6319
+ [data-v-26d1e7d2] .vgl-item .el-form-item .el-select__wrapper {
6320
6320
  padding: 8px 6px;
6321
6321
  }
6322
- .fec-el-form[data-v-ff16a958] {
6322
+ .fec-el-form[data-v-26d1e7d2] {
6323
6323
  padding: 6px !important;
6324
6324
  }
6325
6325
  }
6326
6326
  /* 3. 小屏 PC / 窄窗口 <992px(最小到768px)*/
6327
6327
  @media (max-width: 991px) and (min-width: 768px) {
6328
- [data-v-ff16a958] .vgl-item .el-form-item__label {
6328
+ [data-v-26d1e7d2] .vgl-item .el-form-item__label {
6329
6329
  max-width: 100px !important;
6330
6330
  padding-right: 4px !important;
6331
6331
  }
6332
- [data-v-ff16a958] .vgl-item .el-form-item {
6332
+ [data-v-26d1e7d2] .vgl-item .el-form-item {
6333
6333
  padding: 0 !important;
6334
6334
  }
6335
- [data-v-ff16a958] .vgl-item .el-form-item .el-input__wrapper {
6335
+ [data-v-26d1e7d2] .vgl-item .el-form-item .el-input__wrapper {
6336
6336
  padding: 1px 4px;
6337
6337
  }
6338
- [data-v-ff16a958] .vgl-item .el-form-item .el-select__wrapper {
6338
+ [data-v-26d1e7d2] .vgl-item .el-form-item .el-select__wrapper {
6339
6339
  padding: 8px 4px;
6340
6340
  }
6341
- .fec-el-form[data-v-ff16a958] {
6341
+ .fec-el-form[data-v-26d1e7d2] {
6342
6342
  padding: 6px !important;
6343
6343
  }
6344
6344
  }
6345
6345
  /* 超小屏 <768px */
6346
6346
  @media (max-width: 767px) {
6347
- [data-v-ff16a958] .vgl-item .el-form-item__label {
6347
+ [data-v-26d1e7d2] .vgl-item .el-form-item__label {
6348
6348
  max-width: 80px !important;
6349
6349
  padding-right: 4px !important;
6350
6350
  }
6351
- [data-v-ff16a958] .vgl-item .el-form-item {
6351
+ [data-v-26d1e7d2] .vgl-item .el-form-item {
6352
6352
  padding: 0 !important;
6353
6353
  }
6354
- [data-v-ff16a958] .vgl-item .el-form-item .el-input__wrapper {
6354
+ [data-v-26d1e7d2] .vgl-item .el-form-item .el-input__wrapper {
6355
6355
  padding: 1px 2px;
6356
6356
  }
6357
- [data-v-ff16a958] .vgl-item .el-form-item .el-select__wrapper {
6357
+ [data-v-26d1e7d2] .vgl-item .el-form-item .el-select__wrapper {
6358
6358
  padding: 8px 2px;
6359
6359
  }
6360
- .fec-el-form[data-v-ff16a958] {
6360
+ .fec-el-form[data-v-26d1e7d2] {
6361
6361
  padding: 6px !important;
6362
6362
  }
6363
6363
  }.table-pagination[data-v-142fdd35] {
@@ -6934,14 +6934,14 @@ body,
6934
6934
  .van-swipe-item{position:relative;flex-shrink:0;width:100%;height:100%}
6935
6935
  :root,:host{--van-text-ellipsis-line-height: 1.6;--van-text-ellipsis-action-color: var(--van-blue)}.van-text-ellipsis{line-height:var(--van-text-ellipsis-line-height);white-space:pre-wrap;overflow-wrap:break-word}.van-text-ellipsis__action{cursor:pointer;color:var(--van-text-ellipsis-action-color)}.van-text-ellipsis__action:active{opacity:var(--van-active-opacity)}
6936
6936
 
6937
- .vue-render-container[data-v-0e3d5a60] {
6937
+ .vue-render-container[data-v-91bc8b03] {
6938
6938
  min-height: 200px;
6939
6939
  }
6940
- .fec-card-list[data-v-4837857b] {
6940
+ .fec-card-list[data-v-5ded7368] {
6941
6941
  flex: 1;
6942
6942
  overflow: auto;
6943
6943
  }
6944
- .fec-card-list[data-v-4837857b] .fec-card {
6944
+ .fec-card-list[data-v-5ded7368] .fec-card {
6945
6945
  min-height: 100px;
6946
6946
  }:root,:host{--van-action-sheet-max-height: 80%;--van-action-sheet-header-height: 48px;--van-action-sheet-header-font-size: var(--van-font-size-lg);--van-action-sheet-description-color: var(--van-text-color-2);--van-action-sheet-description-font-size: var(--van-font-size-md);--van-action-sheet-description-line-height: var(--van-line-height-md);--van-action-sheet-item-background: var(--van-background-2);--van-action-sheet-item-font-size: var(--van-font-size-lg);--van-action-sheet-item-line-height: var(--van-line-height-lg);--van-action-sheet-item-text-color: var(--van-text-color);--van-action-sheet-item-disabled-text-color: var(--van-text-color-3);--van-action-sheet-item-icon-size: 18px;--van-action-sheet-item-icon-margin-right: var(--van-padding-xs);--van-action-sheet-subname-color: var(--van-text-color-2);--van-action-sheet-subname-font-size: var(--van-font-size-sm);--van-action-sheet-subname-line-height: var(--van-line-height-sm);--van-action-sheet-close-icon-size: 22px;--van-action-sheet-close-icon-color: var(--van-gray-5);--van-action-sheet-close-icon-padding: 0 var(--van-padding-md);--van-action-sheet-cancel-text-color: var(--van-gray-7);--van-action-sheet-cancel-padding-top: var(--van-padding-xs);--van-action-sheet-cancel-padding-color: var(--van-background);--van-action-sheet-loading-icon-size: 22px}.van-action-sheet{display:flex;flex-direction:column;max-height:var(--van-action-sheet-max-height);overflow:hidden;color:var(--van-action-sheet-item-text-color)}.van-action-sheet__content{flex:1 auto;overflow-y:auto;-webkit-overflow-scrolling:touch}.van-action-sheet__item,.van-action-sheet__cancel{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;width:100%;padding:14px var(--van-padding-md);font-size:var(--van-action-sheet-item-font-size);background:var(--van-action-sheet-item-background);border:none;cursor:pointer}.van-action-sheet__item:active,.van-action-sheet__cancel:active{background-color:var(--van-active-color)}.van-action-sheet__item{line-height:var(--van-action-sheet-item-line-height)}.van-action-sheet__item--loading,.van-action-sheet__item--disabled{color:var(--van-action-sheet-item-disabled-text-color)}.van-action-sheet__item--loading:active,.van-action-sheet__item--disabled:active{background-color:var(--van-action-sheet-item-background)}.van-action-sheet__item--disabled{cursor:not-allowed}.van-action-sheet__item--loading{cursor:default}.van-action-sheet__item-icon{font-size:var(--van-action-sheet-item-icon-size);margin-right:var(--van-action-sheet-item-icon-margin-right)}.van-action-sheet__cancel{flex-shrink:0;box-sizing:border-box;color:var(--van-action-sheet-cancel-text-color)}.van-action-sheet__subname{width:100%;margin-top:var(--van-padding-xs);color:var(--van-action-sheet-subname-color);font-size:var(--van-action-sheet-subname-font-size);line-height:var(--van-action-sheet-subname-line-height);overflow-wrap:break-word}.van-action-sheet__gap{display:block;height:var(--van-action-sheet-cancel-padding-top);background:var(--van-action-sheet-cancel-padding-color)}.van-action-sheet__header{flex-shrink:0;font-weight:var(--van-font-bold);font-size:var(--van-action-sheet-header-font-size);line-height:var(--van-action-sheet-header-height);text-align:center}.van-action-sheet__description{position:relative;flex-shrink:0;padding:20px var(--van-padding-md);color:var(--van-action-sheet-description-color);font-size:var(--van-action-sheet-description-font-size);line-height:var(--van-action-sheet-description-line-height);text-align:center}.van-action-sheet__description: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-border-color);transform:scaleY(.5)}.van-action-sheet__loading-icon .van-loading__spinner{width:var(--van-action-sheet-loading-icon-size);height:var(--van-action-sheet-loading-icon-size)}.van-action-sheet__close{position:absolute;top:0;right:0;z-index:1;padding:var(--van-action-sheet-close-icon-padding);color:var(--van-action-sheet-close-icon-color);font-size:var(--van-action-sheet-close-icon-size);line-height:inherit}
6947
6947
  :root,:host{--van-dropdown-menu-height: 48px;--van-dropdown-menu-background: var(--van-background-2);--van-dropdown-menu-shadow: 0 2px 12px rgba(100, 101, 102, .12);--van-dropdown-menu-title-font-size: 15px;--van-dropdown-menu-title-text-color: var(--van-text-color);--van-dropdown-menu-title-active-text-color: var(--van-primary-color);--van-dropdown-menu-title-disabled-text-color: var(--van-text-color-2);--van-dropdown-menu-title-padding: 0 var(--van-padding-xs);--van-dropdown-menu-title-line-height: var(--van-line-height-lg);--van-dropdown-menu-option-active-color: var(--van-primary-color);--van-dropdown-menu-option-disabled-color: var(--van-text-color-3);--van-dropdown-menu-content-max-height: 80%}.van-dropdown-menu{-webkit-user-select:none;user-select:none}.van-dropdown-menu__bar{position:relative;display:flex;height:var(--van-dropdown-menu-height);background:var(--van-dropdown-menu-background);box-shadow:var(--van-dropdown-menu-shadow)}.van-dropdown-menu__bar--opened{z-index:calc(var(--van-dropdown-item-z-index) + 1)}.van-dropdown-menu__bar--scrollable{padding-left:var(--van-padding-base);padding-right:var(--van-padding-xs);overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch}.van-dropdown-menu__bar--scrollable::-webkit-scrollbar{display:none}.van-dropdown-menu__item{display:flex;flex:1;align-items:center;justify-content:center;min-width:0}.van-dropdown-menu__item--disabled .van-dropdown-menu__title{color:var(--van-dropdown-menu-title-disabled-text-color)}.van-dropdown-menu__item--grow{flex:1 0 auto;padding-left:var(--van-padding-base);padding-right:var(--van-padding-sm)}.van-dropdown-menu__title{position:relative;box-sizing:border-box;max-width:100%;padding:var(--van-dropdown-menu-title-padding);color:var(--van-dropdown-menu-title-text-color);font-size:var(--van-dropdown-menu-title-font-size);line-height:var(--van-dropdown-menu-title-line-height)}.van-dropdown-menu__title:after{position:absolute;top:50%;right:-4px;margin-top:-5px;border:3px solid;border-color:transparent transparent var(--van-gray-4) var(--van-gray-4);transform:rotate(-45deg);opacity:.8;content:""}.van-dropdown-menu__title--active{color:var(--van-dropdown-menu-title-active-text-color)}.van-dropdown-menu__title--active:after{border-color:transparent transparent currentColor currentColor}.van-dropdown-menu__title--down:after{margin-top:-1px;transform:rotate(135deg)}
@@ -61,6 +61,9 @@ const _sfc_main = {
61
61
  }
62
62
  initDataSourceManager();
63
63
  });
64
+ function eventHandler(funcName, rowData) {
65
+ console.log("🚀 ~ eventHandler ~ funcName, rowData:", funcName, rowData);
66
+ }
64
67
  const tableData = ref([]);
65
68
  const finished = ref(false);
66
69
  const error = ref(false);
@@ -152,7 +155,10 @@ const _sfc_main = {
152
155
  swipeDelete: __props.swipeDelete
153
156
  }, {
154
157
  default: withCtx(() => [
155
- createVNode(VueRender, { code: __props.vueTemplate }, null, 8, ["code"])
158
+ createVNode(VueRender, {
159
+ code: __props.vueTemplate,
160
+ params: { data: item, eventHandler }
161
+ }, null, 8, ["code", "params"])
156
162
  ]),
157
163
  _: 2
158
164
  }, 1032, ["swipeDelete"]);
@@ -163,7 +169,7 @@ const _sfc_main = {
163
169
  };
164
170
  }
165
171
  };
166
- const _CardList = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-4837857b"]]);
172
+ const _CardList = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5ded7368"]]);
167
173
  export {
168
174
  _CardList as default
169
175
  };
@@ -1,4 +1,4 @@
1
- import { ref, watch, createElementBlock, openBlock, createBlock, resolveDynamicComponent } from "vue";
1
+ import { ref, watch, createElementBlock, openBlock, createBlock, resolveDynamicComponent, normalizeProps, guardReactiveProps } from "vue";
2
2
  import { loadVueComponent } from "./vue3sfc.mjs";
3
3
  /* empty css */
4
4
  import _export_sfc from "../../../../../_virtual/_plugin-vue_export-helper.mjs";
@@ -6,7 +6,8 @@ const _hoisted_1 = { class: "vue-render-container" };
6
6
  const _sfc_main = {
7
7
  __name: "VueRender",
8
8
  props: {
9
- code: { type: String, default: "" }
9
+ code: { type: String, default: "" },
10
+ params: { type: Object, default: {} }
10
11
  },
11
12
  setup(__props) {
12
13
  const props = __props;
@@ -25,12 +26,12 @@ const _sfc_main = {
25
26
  );
26
27
  return (_ctx, _cache) => {
27
28
  return openBlock(), createElementBlock("div", _hoisted_1, [
28
- (openBlock(), createBlock(resolveDynamicComponent(dynamicComponent.value)))
29
+ (openBlock(), createBlock(resolveDynamicComponent(dynamicComponent.value), normalizeProps(guardReactiveProps(__props.params)), null, 16))
29
30
  ]);
30
31
  };
31
32
  }
32
33
  };
33
- const VueRender = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-0e3d5a60"]]);
34
+ const VueRender = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-91bc8b03"]]);
34
35
  export {
35
36
  VueRender as default
36
37
  };
@@ -261,7 +261,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
261
261
  });
262
262
  }
263
263
  if (state == "dynamic") {
264
- debugger;
265
264
  formData.value = { ...setFormData(props.modelValue, true), ...defaultData };
266
265
  } else {
267
266
  formData.value = { ...defaultData, ...setFormData(props.modelValue, true) };
@@ -1031,10 +1030,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
1031
1030
  if (!linkaged) {
1032
1031
  return;
1033
1032
  }
1034
- if (isEqual(newVal, prevFormData.value)) {
1033
+ const lastValue = { ...prevFormData.value };
1034
+ if (isEqual(newVal, lastValue)) {
1035
1035
  return;
1036
1036
  }
1037
- const changedFields = findChangedFields(newVal, prevFormData.value);
1037
+ const changedFields = findChangedFields(newVal, lastValue);
1038
1038
  if (changedFields.length > 0) {
1039
1039
  applyLinkageEffectsForChangedFields(changedFields);
1040
1040
  }
@@ -1208,7 +1208,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
1208
1208
  };
1209
1209
  }
1210
1210
  });
1211
- const _Form = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ff16a958"]]);
1211
+ const _Form = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-26d1e7d2"]]);
1212
1212
  export {
1213
1213
  _Form as default
1214
1214
  };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const version = "5.5.59";
3
+ const version = "5.5.60";
4
4
  const packageJson = {
5
5
  version
6
6
  };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("./index.vue.js");
3
+ const index = require("./index.vue2.js");
4
4
  const Vue = require("vue");
5
5
  function useDialogDialog() {
6
6
  const dialogDialogVisible = Vue.ref(false);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("./index.vue.js");
3
+ const index = require("./index.vue2.js");
4
4
  const Vue = require("vue");
5
5
  function useDialogGlobalDialog() {
6
6
  const dialogGlobalDialogVisible = Vue.ref(false);
@@ -54,8 +54,8 @@ const _pluginVue_exportHelper = require("../../../../../_virtual/_plugin-vue_exp
54
54
  require("../../../components/TemplateSelector.vue.js");
55
55
  require("../../table/default.js");
56
56
  ;/* empty css */
57
- ;/* empty css */
58
- ;/* empty css */
57
+ ;/* empty css */
58
+ ;/* empty css */
59
59
  require("../../../store/index.js");
60
60
  ;/* empty css */
61
61
  const index$2 = require("../../../../../node_modules/element-plus/es/components/collapse/index.js");
package/lib/designer.css CHANGED
@@ -6216,10 +6216,10 @@ body,
6216
6216
  align-items: center;
6217
6217
  flex-wrap: nowrap;
6218
6218
  }
6219
- .fec-form[data-v-ff16a958] {
6219
+ .fec-form[data-v-26d1e7d2] {
6220
6220
  height: 100%;
6221
6221
  }
6222
- .fec-form-col[data-v-ff16a958] {
6222
+ .fec-form-col[data-v-26d1e7d2] {
6223
6223
  padding: 0px !important;
6224
6224
  display: flex !important;
6225
6225
  flex-direction: column;
@@ -6228,22 +6228,22 @@ body,
6228
6228
  border-radius: 4px;
6229
6229
  overflow: hidden;
6230
6230
  }
6231
- [data-v-ff16a958] .vgl-layout {
6231
+ [data-v-26d1e7d2] .vgl-layout {
6232
6232
  position: relative;
6233
6233
  }
6234
- [data-v-ff16a958] .vgl-item {
6234
+ [data-v-26d1e7d2] .vgl-item {
6235
6235
  transition: none;
6236
6236
  }
6237
- [data-v-ff16a958] .vgl-item > .el-form-item {
6237
+ [data-v-26d1e7d2] .vgl-item > .el-form-item {
6238
6238
  width: 100%;
6239
6239
  padding: 6px 8px 0 8px;
6240
6240
  height: calc(100% - 15px);
6241
6241
  display: flex;
6242
6242
  }
6243
- [data-v-ff16a958] .vgl-item > .el-form-item.el-form-item--label-top {
6243
+ [data-v-26d1e7d2] .vgl-item > .el-form-item.el-form-item--label-top {
6244
6244
  flex-direction: column;
6245
6245
  }
6246
- [data-v-ff16a958] .vgl-item > .el-form-item .el-form-item__label {
6246
+ [data-v-26d1e7d2] .vgl-item > .el-form-item .el-form-item__label {
6247
6247
  line-height: 20px;
6248
6248
  display: inline-flex;
6249
6249
  align-items: center;
@@ -6257,107 +6257,107 @@ body,
6257
6257
  flex-shrink: 0;
6258
6258
  min-height: 45px;
6259
6259
  }
6260
- [data-v-ff16a958] .vgl-item > .el-form-item {
6260
+ [data-v-26d1e7d2] .vgl-item > .el-form-item {
6261
6261
  /* .el-form-item__error {
6262
6262
  padding-top: 10px;
6263
6263
  } */
6264
6264
  }
6265
- [data-v-ff16a958] .vgl-item > .el-form-item .el-input__wrapper {
6265
+ [data-v-26d1e7d2] .vgl-item > .el-form-item .el-input__wrapper {
6266
6266
  padding: 1px 12px;
6267
6267
  }
6268
- [data-v-ff16a958] .vgl-item > .el-container {
6268
+ [data-v-26d1e7d2] .vgl-item > .el-container {
6269
6269
  height: auto !important;
6270
6270
  }
6271
6271
  @media (min-width: 1720px) {
6272
- [data-v-ff16a958] .vgl-item .el-form-item__label {
6272
+ [data-v-26d1e7d2] .vgl-item .el-form-item__label {
6273
6273
  max-width: 160px !important;
6274
6274
  }
6275
- [data-v-ff16a958] .vgl-item .el-form-item {
6275
+ [data-v-26d1e7d2] .vgl-item .el-form-item {
6276
6276
  padding: 6px 8px 0 8px !important;
6277
6277
  }
6278
- [data-v-ff16a958] .vgl-item .el-form-item .el-input__wrapper {
6278
+ [data-v-26d1e7d2] .vgl-item .el-form-item .el-input__wrapper {
6279
6279
  padding: 1px 12px;
6280
6280
  }
6281
- [data-v-ff16a958] .vgl-item .el-form-item .el-select__wrapper {
6281
+ [data-v-26d1e7d2] .vgl-item .el-form-item .el-select__wrapper {
6282
6282
  padding: 8px 12px;
6283
6283
  }
6284
- .fec-el-form[data-v-ff16a958] {
6284
+ .fec-el-form[data-v-26d1e7d2] {
6285
6285
  padding: 12px !important;
6286
6286
  }
6287
6287
  }
6288
6288
  /* 标准 PC(1200px ~ 1439px)*/
6289
6289
  @media (min-width: 1366px) and (max-width: 1719px) {
6290
- [data-v-ff16a958] .vgl-item .el-form-item__label {
6290
+ [data-v-26d1e7d2] .vgl-item .el-form-item__label {
6291
6291
  max-width: 130px !important;
6292
6292
  padding-right: 6px !important;
6293
6293
  }
6294
- [data-v-ff16a958] .vgl-item .el-form-item {
6294
+ [data-v-26d1e7d2] .vgl-item .el-form-item {
6295
6295
  padding: 6px 0 0 0 !important;
6296
6296
  }
6297
- [data-v-ff16a958] .vgl-item .el-form-item .el-input__wrapper {
6297
+ [data-v-26d1e7d2] .vgl-item .el-form-item .el-input__wrapper {
6298
6298
  padding: 1px 8px;
6299
6299
  }
6300
- [data-v-ff16a958] .vgl-item .el-form-item .el-select__wrapper {
6300
+ [data-v-26d1e7d2] .vgl-item .el-form-item .el-select__wrapper {
6301
6301
  padding: 8px 8px;
6302
6302
  }
6303
- .fec-el-form[data-v-ff16a958] {
6303
+ .fec-el-form[data-v-26d1e7d2] {
6304
6304
  padding: 8px !important;
6305
6305
  }
6306
6306
  }
6307
6307
  /* 2. 标准 PC 992px ~ 1199px */
6308
6308
  @media (min-width: 992px) and (max-width: 1365px) {
6309
- [data-v-ff16a958] .vgl-item .el-form-item__label {
6309
+ [data-v-26d1e7d2] .vgl-item .el-form-item__label {
6310
6310
  max-width: 125px !important;
6311
6311
  padding-right: 4px !important;
6312
6312
  }
6313
- [data-v-ff16a958] .vgl-item .el-form-item {
6313
+ [data-v-26d1e7d2] .vgl-item .el-form-item {
6314
6314
  padding: 0 !important;
6315
6315
  }
6316
- [data-v-ff16a958] .vgl-item .el-form-item .el-input__wrapper {
6316
+ [data-v-26d1e7d2] .vgl-item .el-form-item .el-input__wrapper {
6317
6317
  padding: 1px 6px;
6318
6318
  }
6319
- [data-v-ff16a958] .vgl-item .el-form-item .el-select__wrapper {
6319
+ [data-v-26d1e7d2] .vgl-item .el-form-item .el-select__wrapper {
6320
6320
  padding: 8px 6px;
6321
6321
  }
6322
- .fec-el-form[data-v-ff16a958] {
6322
+ .fec-el-form[data-v-26d1e7d2] {
6323
6323
  padding: 6px !important;
6324
6324
  }
6325
6325
  }
6326
6326
  /* 3. 小屏 PC / 窄窗口 <992px(最小到768px)*/
6327
6327
  @media (max-width: 991px) and (min-width: 768px) {
6328
- [data-v-ff16a958] .vgl-item .el-form-item__label {
6328
+ [data-v-26d1e7d2] .vgl-item .el-form-item__label {
6329
6329
  max-width: 100px !important;
6330
6330
  padding-right: 4px !important;
6331
6331
  }
6332
- [data-v-ff16a958] .vgl-item .el-form-item {
6332
+ [data-v-26d1e7d2] .vgl-item .el-form-item {
6333
6333
  padding: 0 !important;
6334
6334
  }
6335
- [data-v-ff16a958] .vgl-item .el-form-item .el-input__wrapper {
6335
+ [data-v-26d1e7d2] .vgl-item .el-form-item .el-input__wrapper {
6336
6336
  padding: 1px 4px;
6337
6337
  }
6338
- [data-v-ff16a958] .vgl-item .el-form-item .el-select__wrapper {
6338
+ [data-v-26d1e7d2] .vgl-item .el-form-item .el-select__wrapper {
6339
6339
  padding: 8px 4px;
6340
6340
  }
6341
- .fec-el-form[data-v-ff16a958] {
6341
+ .fec-el-form[data-v-26d1e7d2] {
6342
6342
  padding: 6px !important;
6343
6343
  }
6344
6344
  }
6345
6345
  /* 超小屏 <768px */
6346
6346
  @media (max-width: 767px) {
6347
- [data-v-ff16a958] .vgl-item .el-form-item__label {
6347
+ [data-v-26d1e7d2] .vgl-item .el-form-item__label {
6348
6348
  max-width: 80px !important;
6349
6349
  padding-right: 4px !important;
6350
6350
  }
6351
- [data-v-ff16a958] .vgl-item .el-form-item {
6351
+ [data-v-26d1e7d2] .vgl-item .el-form-item {
6352
6352
  padding: 0 !important;
6353
6353
  }
6354
- [data-v-ff16a958] .vgl-item .el-form-item .el-input__wrapper {
6354
+ [data-v-26d1e7d2] .vgl-item .el-form-item .el-input__wrapper {
6355
6355
  padding: 1px 2px;
6356
6356
  }
6357
- [data-v-ff16a958] .vgl-item .el-form-item .el-select__wrapper {
6357
+ [data-v-26d1e7d2] .vgl-item .el-form-item .el-select__wrapper {
6358
6358
  padding: 8px 2px;
6359
6359
  }
6360
- .fec-el-form[data-v-ff16a958] {
6360
+ .fec-el-form[data-v-26d1e7d2] {
6361
6361
  padding: 6px !important;
6362
6362
  }
6363
6363
  }.table-pagination[data-v-142fdd35] {
@@ -6934,14 +6934,14 @@ body,
6934
6934
  .van-swipe-item{position:relative;flex-shrink:0;width:100%;height:100%}
6935
6935
  :root,:host{--van-text-ellipsis-line-height: 1.6;--van-text-ellipsis-action-color: var(--van-blue)}.van-text-ellipsis{line-height:var(--van-text-ellipsis-line-height);white-space:pre-wrap;overflow-wrap:break-word}.van-text-ellipsis__action{cursor:pointer;color:var(--van-text-ellipsis-action-color)}.van-text-ellipsis__action:active{opacity:var(--van-active-opacity)}
6936
6936
 
6937
- .vue-render-container[data-v-0e3d5a60] {
6937
+ .vue-render-container[data-v-91bc8b03] {
6938
6938
  min-height: 200px;
6939
6939
  }
6940
- .fec-card-list[data-v-4837857b] {
6940
+ .fec-card-list[data-v-5ded7368] {
6941
6941
  flex: 1;
6942
6942
  overflow: auto;
6943
6943
  }
6944
- .fec-card-list[data-v-4837857b] .fec-card {
6944
+ .fec-card-list[data-v-5ded7368] .fec-card {
6945
6945
  min-height: 100px;
6946
6946
  }:root,:host{--van-action-sheet-max-height: 80%;--van-action-sheet-header-height: 48px;--van-action-sheet-header-font-size: var(--van-font-size-lg);--van-action-sheet-description-color: var(--van-text-color-2);--van-action-sheet-description-font-size: var(--van-font-size-md);--van-action-sheet-description-line-height: var(--van-line-height-md);--van-action-sheet-item-background: var(--van-background-2);--van-action-sheet-item-font-size: var(--van-font-size-lg);--van-action-sheet-item-line-height: var(--van-line-height-lg);--van-action-sheet-item-text-color: var(--van-text-color);--van-action-sheet-item-disabled-text-color: var(--van-text-color-3);--van-action-sheet-item-icon-size: 18px;--van-action-sheet-item-icon-margin-right: var(--van-padding-xs);--van-action-sheet-subname-color: var(--van-text-color-2);--van-action-sheet-subname-font-size: var(--van-font-size-sm);--van-action-sheet-subname-line-height: var(--van-line-height-sm);--van-action-sheet-close-icon-size: 22px;--van-action-sheet-close-icon-color: var(--van-gray-5);--van-action-sheet-close-icon-padding: 0 var(--van-padding-md);--van-action-sheet-cancel-text-color: var(--van-gray-7);--van-action-sheet-cancel-padding-top: var(--van-padding-xs);--van-action-sheet-cancel-padding-color: var(--van-background);--van-action-sheet-loading-icon-size: 22px}.van-action-sheet{display:flex;flex-direction:column;max-height:var(--van-action-sheet-max-height);overflow:hidden;color:var(--van-action-sheet-item-text-color)}.van-action-sheet__content{flex:1 auto;overflow-y:auto;-webkit-overflow-scrolling:touch}.van-action-sheet__item,.van-action-sheet__cancel{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;width:100%;padding:14px var(--van-padding-md);font-size:var(--van-action-sheet-item-font-size);background:var(--van-action-sheet-item-background);border:none;cursor:pointer}.van-action-sheet__item:active,.van-action-sheet__cancel:active{background-color:var(--van-active-color)}.van-action-sheet__item{line-height:var(--van-action-sheet-item-line-height)}.van-action-sheet__item--loading,.van-action-sheet__item--disabled{color:var(--van-action-sheet-item-disabled-text-color)}.van-action-sheet__item--loading:active,.van-action-sheet__item--disabled:active{background-color:var(--van-action-sheet-item-background)}.van-action-sheet__item--disabled{cursor:not-allowed}.van-action-sheet__item--loading{cursor:default}.van-action-sheet__item-icon{font-size:var(--van-action-sheet-item-icon-size);margin-right:var(--van-action-sheet-item-icon-margin-right)}.van-action-sheet__cancel{flex-shrink:0;box-sizing:border-box;color:var(--van-action-sheet-cancel-text-color)}.van-action-sheet__subname{width:100%;margin-top:var(--van-padding-xs);color:var(--van-action-sheet-subname-color);font-size:var(--van-action-sheet-subname-font-size);line-height:var(--van-action-sheet-subname-line-height);overflow-wrap:break-word}.van-action-sheet__gap{display:block;height:var(--van-action-sheet-cancel-padding-top);background:var(--van-action-sheet-cancel-padding-color)}.van-action-sheet__header{flex-shrink:0;font-weight:var(--van-font-bold);font-size:var(--van-action-sheet-header-font-size);line-height:var(--van-action-sheet-header-height);text-align:center}.van-action-sheet__description{position:relative;flex-shrink:0;padding:20px var(--van-padding-md);color:var(--van-action-sheet-description-color);font-size:var(--van-action-sheet-description-font-size);line-height:var(--van-action-sheet-description-line-height);text-align:center}.van-action-sheet__description: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-border-color);transform:scaleY(.5)}.van-action-sheet__loading-icon .van-loading__spinner{width:var(--van-action-sheet-loading-icon-size);height:var(--van-action-sheet-loading-icon-size)}.van-action-sheet__close{position:absolute;top:0;right:0;z-index:1;padding:var(--van-action-sheet-close-icon-padding);color:var(--van-action-sheet-close-icon-color);font-size:var(--van-action-sheet-close-icon-size);line-height:inherit}
6947
6947
  :root,:host{--van-dropdown-menu-height: 48px;--van-dropdown-menu-background: var(--van-background-2);--van-dropdown-menu-shadow: 0 2px 12px rgba(100, 101, 102, .12);--van-dropdown-menu-title-font-size: 15px;--van-dropdown-menu-title-text-color: var(--van-text-color);--van-dropdown-menu-title-active-text-color: var(--van-primary-color);--van-dropdown-menu-title-disabled-text-color: var(--van-text-color-2);--van-dropdown-menu-title-padding: 0 var(--van-padding-xs);--van-dropdown-menu-title-line-height: var(--van-line-height-lg);--van-dropdown-menu-option-active-color: var(--van-primary-color);--van-dropdown-menu-option-disabled-color: var(--van-text-color-3);--van-dropdown-menu-content-max-height: 80%}.van-dropdown-menu{-webkit-user-select:none;user-select:none}.van-dropdown-menu__bar{position:relative;display:flex;height:var(--van-dropdown-menu-height);background:var(--van-dropdown-menu-background);box-shadow:var(--van-dropdown-menu-shadow)}.van-dropdown-menu__bar--opened{z-index:calc(var(--van-dropdown-item-z-index) + 1)}.van-dropdown-menu__bar--scrollable{padding-left:var(--van-padding-base);padding-right:var(--van-padding-xs);overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch}.van-dropdown-menu__bar--scrollable::-webkit-scrollbar{display:none}.van-dropdown-menu__item{display:flex;flex:1;align-items:center;justify-content:center;min-width:0}.van-dropdown-menu__item--disabled .van-dropdown-menu__title{color:var(--van-dropdown-menu-title-disabled-text-color)}.van-dropdown-menu__item--grow{flex:1 0 auto;padding-left:var(--van-padding-base);padding-right:var(--van-padding-sm)}.van-dropdown-menu__title{position:relative;box-sizing:border-box;max-width:100%;padding:var(--van-dropdown-menu-title-padding);color:var(--van-dropdown-menu-title-text-color);font-size:var(--van-dropdown-menu-title-font-size);line-height:var(--van-dropdown-menu-title-line-height)}.van-dropdown-menu__title:after{position:absolute;top:50%;right:-4px;margin-top:-5px;border:3px solid;border-color:transparent transparent var(--van-gray-4) var(--van-gray-4);transform:rotate(-45deg);opacity:.8;content:""}.van-dropdown-menu__title--active{color:var(--van-dropdown-menu-title-active-text-color)}.van-dropdown-menu__title--active:after{border-color:transparent transparent currentColor currentColor}.van-dropdown-menu__title--down:after{margin-top:-1px;transform:rotate(135deg)}
@@ -63,6 +63,9 @@ const _sfc_main = {
63
63
  }
64
64
  initDataSourceManager();
65
65
  });
66
+ function eventHandler(funcName, rowData) {
67
+ console.log("🚀 ~ eventHandler ~ funcName, rowData:", funcName, rowData);
68
+ }
66
69
  const tableData = Vue.ref([]);
67
70
  const finished = Vue.ref(false);
68
71
  const error = Vue.ref(false);
@@ -154,7 +157,10 @@ const _sfc_main = {
154
157
  swipeDelete: __props.swipeDelete
155
158
  }, {
156
159
  default: Vue.withCtx(() => [
157
- Vue.createVNode(VueRender.default, { code: __props.vueTemplate }, null, 8, ["code"])
160
+ Vue.createVNode(VueRender.default, {
161
+ code: __props.vueTemplate,
162
+ params: { data: item, eventHandler }
163
+ }, null, 8, ["code", "params"])
158
164
  ]),
159
165
  _: 2
160
166
  }, 1032, ["swipeDelete"]);
@@ -165,5 +171,5 @@ const _sfc_main = {
165
171
  };
166
172
  }
167
173
  };
168
- const _CardList = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-4837857b"]]);
174
+ const _CardList = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-5ded7368"]]);
169
175
  exports.default = _CardList;
@@ -8,7 +8,8 @@ const _hoisted_1 = { class: "vue-render-container" };
8
8
  const _sfc_main = {
9
9
  __name: "VueRender",
10
10
  props: {
11
- code: { type: String, default: "" }
11
+ code: { type: String, default: "" },
12
+ params: { type: Object, default: {} }
12
13
  },
13
14
  setup(__props) {
14
15
  const props = __props;
@@ -27,10 +28,10 @@ const _sfc_main = {
27
28
  );
28
29
  return (_ctx, _cache) => {
29
30
  return Vue.openBlock(), Vue.createElementBlock("div", _hoisted_1, [
30
- (Vue.openBlock(), Vue.createBlock(Vue.resolveDynamicComponent(dynamicComponent.value)))
31
+ (Vue.openBlock(), Vue.createBlock(Vue.resolveDynamicComponent(dynamicComponent.value), Vue.normalizeProps(Vue.guardReactiveProps(__props.params)), null, 16))
31
32
  ]);
32
33
  };
33
34
  }
34
35
  };
35
- const VueRender = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-0e3d5a60"]]);
36
+ const VueRender = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-91bc8b03"]]);
36
37
  exports.default = VueRender;
@@ -263,7 +263,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
263
263
  });
264
264
  }
265
265
  if (state == "dynamic") {
266
- debugger;
267
266
  formData.value = { ...setFormData(props.modelValue, true), ...defaultData };
268
267
  } else {
269
268
  formData.value = { ...defaultData, ...setFormData(props.modelValue, true) };
@@ -1033,10 +1032,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
1033
1032
  if (!linkaged) {
1034
1033
  return;
1035
1034
  }
1036
- if (common.isEqual(newVal, prevFormData.value)) {
1035
+ const lastValue = { ...prevFormData.value };
1036
+ if (common.isEqual(newVal, lastValue)) {
1037
1037
  return;
1038
1038
  }
1039
- const changedFields = findChangedFields(newVal, prevFormData.value);
1039
+ const changedFields = findChangedFields(newVal, lastValue);
1040
1040
  if (changedFields.length > 0) {
1041
1041
  applyLinkageEffectsForChangedFields(changedFields);
1042
1042
  }
@@ -1210,5 +1210,5 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
1210
1210
  };
1211
1211
  }
1212
1212
  });
1213
- const _Form = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-ff16a958"]]);
1213
+ const _Form = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-26d1e7d2"]]);
1214
1214
  exports.default = _Form;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fecp/designer",
3
- "version": "5.5.59",
3
+ "version": "5.5.60",
4
4
  "main": "lib/designer/index.js",
5
5
  "module": "es/designer/index.mjs",
6
6
  "files": [