@fecp/designer 5.5.61 → 5.5.63
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 +47 -47
- package/es/packages/mobile/src/components/dataDisplay/cardList/CardList.vue.mjs +50 -35
- package/es/packages/mobile/src/components/dataDisplay/table/Table.vue.mjs +135 -120
- package/es/packages/mobile/src/components/form/search/Search.vue.mjs +34 -18
- package/es/packages/mobile/src/components/form/search/index.mjs +2 -2
- package/es/packages/vue/src/components/forms/cascader/Cascader.vue.mjs +1 -1
- package/es/packages/vue/src/components/forms/form/Form.vue.mjs +13 -9
- package/lib/designer/package.json.js +1 -1
- package/lib/designer.css +47 -47
- package/lib/packages/mobile/src/components/dataDisplay/cardList/CardList.vue.js +49 -34
- package/lib/packages/mobile/src/components/dataDisplay/table/Table.vue.js +134 -119
- package/lib/packages/mobile/src/components/form/search/Search.vue.js +33 -17
- package/lib/packages/vue/src/components/forms/cascader/Cascader.vue.js +1 -1
- package/lib/packages/vue/src/components/forms/form/Form.vue.js +13 -9
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
/* empty css */
|
|
5
|
-
import { getCurrentInstance, computed, ref, onMounted, createVNode, render, nextTick,
|
|
5
|
+
import { getCurrentInstance, computed, ref, onMounted, createVNode, render, nextTick, resolveComponent, createElementBlock, openBlock, Fragment, createBlock, createCommentVNode, normalizeStyle, normalizeClass, unref, withCtx, isRef, createSlots, createElementVNode, renderList, renderSlot } from "vue";
|
|
6
6
|
import { VxeGrid } from "vxe-table";
|
|
7
7
|
import { createDataSource } from "../../../utils/datasource.mjs";
|
|
8
8
|
/* empty css */
|
|
@@ -119,6 +119,14 @@ const _sfc_main = {
|
|
|
119
119
|
//左滑编辑
|
|
120
120
|
type: Boolean,
|
|
121
121
|
default: false
|
|
122
|
+
},
|
|
123
|
+
enableFilter: {
|
|
124
|
+
type: Boolean,
|
|
125
|
+
default: false
|
|
126
|
+
},
|
|
127
|
+
filterPlaceholder: {
|
|
128
|
+
type: String,
|
|
129
|
+
default: ""
|
|
122
130
|
}
|
|
123
131
|
},
|
|
124
132
|
emits: [
|
|
@@ -420,131 +428,138 @@ const _sfc_main = {
|
|
|
420
428
|
}
|
|
421
429
|
}
|
|
422
430
|
return (_ctx, _cache) => {
|
|
431
|
+
const _component_fec_mobile_search = resolveComponent("fec-mobile-search");
|
|
423
432
|
const _component_van_list = List;
|
|
424
433
|
const _component_van_cell_group = CellGroup;
|
|
425
|
-
return openBlock(),
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
createElementVNode("
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
434
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
435
|
+
__props.enableFilter ? (openBlock(), createBlock(_component_fec_mobile_search, {
|
|
436
|
+
key: 0,
|
|
437
|
+
placeholder: __props.filterPlaceholder
|
|
438
|
+
}, null, 8, ["placeholder"])) : createCommentVNode("", true),
|
|
439
|
+
createVNode(_component_van_cell_group, {
|
|
440
|
+
class: normalizeClass(["mTableContent", {
|
|
441
|
+
notAutoHeight: !__props.autoHeight,
|
|
442
|
+
isShadow: __props.isCard && __props.isShadow,
|
|
443
|
+
isCard: __props.isCard
|
|
444
|
+
}]),
|
|
445
|
+
style: normalizeStyle("height:" + unref(compHeight)),
|
|
446
|
+
ref_key: "listRef",
|
|
447
|
+
ref: listRef,
|
|
448
|
+
inset: __props.isCard
|
|
449
|
+
}, {
|
|
450
|
+
default: withCtx(() => [
|
|
451
|
+
createVNode(_component_van_list, {
|
|
452
|
+
class: normalizeClass({ fixedHead: __props.isFixedHead }),
|
|
453
|
+
loading: unref(loading),
|
|
454
|
+
"onUpdate:loading": _cache[0] || (_cache[0] = ($event) => isRef(loading) ? loading.value = $event : null),
|
|
455
|
+
error: unref(listError),
|
|
456
|
+
"onUpdate:error": _cache[1] || (_cache[1] = ($event) => isRef(listError) ? listError.value = $event : null),
|
|
457
|
+
finished: unref(listFinished),
|
|
458
|
+
disabled: !__props.scrollLoad || __props.isFixedHead,
|
|
459
|
+
offset: 0,
|
|
460
|
+
"finished-text": "没有更多了",
|
|
461
|
+
"error-text": "请求失败,点击重新加载",
|
|
462
|
+
onLoad
|
|
463
|
+
}, {
|
|
464
|
+
default: withCtx(() => [
|
|
465
|
+
createVNode(unref(VxeGrid), {
|
|
466
|
+
ref_key: "gridRef",
|
|
467
|
+
ref: gridRef,
|
|
468
|
+
class: "fec-table",
|
|
469
|
+
width: "100%",
|
|
470
|
+
"auto-resize": "",
|
|
471
|
+
data: unref(tableData),
|
|
472
|
+
columns: unref(columnOptions),
|
|
473
|
+
size: __props.size,
|
|
474
|
+
headerAlign: "center",
|
|
475
|
+
footerAlign: "center",
|
|
476
|
+
align: "center",
|
|
477
|
+
border: __props.border,
|
|
478
|
+
round: __props.round || __props.isCard,
|
|
479
|
+
stripe: __props.stripe,
|
|
480
|
+
height: __props.isFixedHead ? unref(compHeight) : "",
|
|
481
|
+
loading: unref(initLoading),
|
|
482
|
+
showHeader: __props.showHeader,
|
|
483
|
+
onScrollBoundary: onScrollLoads,
|
|
484
|
+
virtualYConfig,
|
|
485
|
+
onCellClick: cellClickEvent
|
|
486
|
+
}, createSlots({
|
|
487
|
+
loading: withCtx(() => [
|
|
488
|
+
_cache[2] || (_cache[2] = createElementVNode("div", {
|
|
489
|
+
class: "custom-loading van-loading van-loading--circular van-list__loading-icon",
|
|
490
|
+
"aria-live": "polite",
|
|
491
|
+
"aria-busy": "true"
|
|
492
|
+
}, [
|
|
493
|
+
createElementVNode("span", { class: "van-loading__spinner van-loading__spinner--circular" }, [
|
|
494
|
+
createElementVNode("svg", {
|
|
495
|
+
class: "van-loading__circular",
|
|
496
|
+
viewBox: "25 25 50 50"
|
|
497
|
+
}, [
|
|
498
|
+
createElementVNode("circle", {
|
|
499
|
+
cx: "50",
|
|
500
|
+
cy: "50",
|
|
501
|
+
r: "20",
|
|
502
|
+
fill: "none"
|
|
503
|
+
})
|
|
504
|
+
])
|
|
505
|
+
]),
|
|
506
|
+
createElementVNode("span", { class: "van-loading__text" }, "加载中...")
|
|
507
|
+
], -1))
|
|
508
|
+
]),
|
|
509
|
+
bottom: withCtx(() => [
|
|
510
|
+
__props.scrollLoad && __props.isFixedHead ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
511
|
+
unref(finished) ? (openBlock(), createElementBlock("div", _hoisted_1, " 没有更多了 ")) : createCommentVNode("", true),
|
|
512
|
+
unref(loading) ? (openBlock(), createElementBlock("div", _hoisted_2, _cache[3] || (_cache[3] = [
|
|
513
|
+
createElementVNode("div", {
|
|
514
|
+
class: "van-loading van-loading--circular van-list__loading-icon",
|
|
515
|
+
"aria-live": "polite",
|
|
516
|
+
"aria-busy": "true"
|
|
517
|
+
}, [
|
|
518
|
+
createElementVNode("span", { class: "van-loading__spinner van-loading__spinner--circular" }, [
|
|
519
|
+
createElementVNode("svg", {
|
|
520
|
+
class: "van-loading__circular",
|
|
521
|
+
viewBox: "25 25 50 50"
|
|
522
|
+
}, [
|
|
523
|
+
createElementVNode("circle", {
|
|
524
|
+
cx: "50",
|
|
525
|
+
cy: "50",
|
|
526
|
+
r: "20",
|
|
527
|
+
fill: "none"
|
|
528
|
+
})
|
|
529
|
+
])
|
|
530
|
+
]),
|
|
531
|
+
createElementVNode("span", { class: "van-loading__text" }, "加载中...")
|
|
532
|
+
], -1)
|
|
533
|
+
]))) : createCommentVNode("", true),
|
|
534
|
+
unref(error) ? (openBlock(), createElementBlock("div", {
|
|
535
|
+
key: 2,
|
|
536
|
+
class: "van-list__error-text",
|
|
537
|
+
onClick: errReload
|
|
538
|
+
}, " 请求失败,点击重新加载 ")) : createCommentVNode("", true)
|
|
539
|
+
], 64)) : createCommentVNode("", true)
|
|
540
|
+
]),
|
|
541
|
+
_: 2
|
|
542
|
+
}, [
|
|
543
|
+
renderList(_ctx.$slots, (item, key) => {
|
|
544
|
+
return {
|
|
545
|
+
name: key,
|
|
546
|
+
fn: withCtx(() => [
|
|
547
|
+
key != "bottom" ? renderSlot(_ctx.$slots, key, { key: 0 }, void 0, true) : createCommentVNode("", true)
|
|
490
548
|
])
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
"aria-live": "polite",
|
|
502
|
-
"aria-busy": "true"
|
|
503
|
-
}, [
|
|
504
|
-
createElementVNode("span", { class: "van-loading__spinner van-loading__spinner--circular" }, [
|
|
505
|
-
createElementVNode("svg", {
|
|
506
|
-
class: "van-loading__circular",
|
|
507
|
-
viewBox: "25 25 50 50"
|
|
508
|
-
}, [
|
|
509
|
-
createElementVNode("circle", {
|
|
510
|
-
cx: "50",
|
|
511
|
-
cy: "50",
|
|
512
|
-
r: "20",
|
|
513
|
-
fill: "none"
|
|
514
|
-
})
|
|
515
|
-
])
|
|
516
|
-
]),
|
|
517
|
-
createElementVNode("span", { class: "van-loading__text" }, "加载中...")
|
|
518
|
-
], -1)
|
|
519
|
-
]))) : createCommentVNode("", true),
|
|
520
|
-
unref(error) ? (openBlock(), createElementBlock("div", {
|
|
521
|
-
key: 2,
|
|
522
|
-
class: "van-list__error-text",
|
|
523
|
-
onClick: errReload
|
|
524
|
-
}, " 请求失败,点击重新加载 ")) : createCommentVNode("", true)
|
|
525
|
-
], 64)) : createCommentVNode("", true)
|
|
526
|
-
]),
|
|
527
|
-
_: 2
|
|
528
|
-
}, [
|
|
529
|
-
renderList(_ctx.$slots, (item, key) => {
|
|
530
|
-
return {
|
|
531
|
-
name: key,
|
|
532
|
-
fn: withCtx(() => [
|
|
533
|
-
key != "bottom" ? renderSlot(_ctx.$slots, key, { key: 0 }, void 0, true) : createCommentVNode("", true)
|
|
534
|
-
])
|
|
535
|
-
};
|
|
536
|
-
})
|
|
537
|
-
]), 1032, ["data", "columns", "size", "border", "round", "stripe", "height", "loading", "showHeader"])
|
|
538
|
-
]),
|
|
539
|
-
_: 3
|
|
540
|
-
}, 8, ["class", "loading", "error", "finished", "disabled"])
|
|
541
|
-
]),
|
|
542
|
-
_: 3
|
|
543
|
-
}, 8, ["class", "style", "inset"]);
|
|
549
|
+
};
|
|
550
|
+
})
|
|
551
|
+
]), 1032, ["data", "columns", "size", "border", "round", "stripe", "height", "loading", "showHeader"])
|
|
552
|
+
]),
|
|
553
|
+
_: 3
|
|
554
|
+
}, 8, ["class", "loading", "error", "finished", "disabled"])
|
|
555
|
+
]),
|
|
556
|
+
_: 3
|
|
557
|
+
}, 8, ["class", "style", "inset"])
|
|
558
|
+
], 64);
|
|
544
559
|
};
|
|
545
560
|
}
|
|
546
561
|
};
|
|
547
|
-
const _Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
562
|
+
const _Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f2f747af"]]);
|
|
548
563
|
export {
|
|
549
564
|
_Table as default
|
|
550
565
|
};
|
|
@@ -4,24 +4,40 @@
|
|
|
4
4
|
/* empty css */
|
|
5
5
|
/* empty css */
|
|
6
6
|
/* empty css */
|
|
7
|
-
import { createBlock, openBlock,
|
|
8
|
-
import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
7
|
+
import { ref, createBlock, openBlock, unref } from "vue";
|
|
9
8
|
import { Search } from "../../../../node_modules/vant/es/search/index.mjs";
|
|
10
|
-
const _sfc_main = {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
9
|
+
const _sfc_main = {
|
|
10
|
+
__name: "Search",
|
|
11
|
+
props: {
|
|
12
|
+
placeholder: {
|
|
13
|
+
type: String,
|
|
14
|
+
default: ""
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
setup(__props) {
|
|
18
|
+
const showAction = ref(false);
|
|
19
|
+
function onClickFilter() {
|
|
20
|
+
showAction.value = true;
|
|
21
|
+
}
|
|
22
|
+
function onSearch(val) {
|
|
23
|
+
}
|
|
24
|
+
function onCancel() {
|
|
25
|
+
showAction.value = false;
|
|
26
|
+
}
|
|
27
|
+
return (_ctx, _cache) => {
|
|
28
|
+
const _component_van_search = Search;
|
|
29
|
+
return openBlock(), createBlock(_component_van_search, {
|
|
30
|
+
shape: "round",
|
|
31
|
+
placeholder: __props.placeholder,
|
|
32
|
+
"show-action": unref(showAction),
|
|
33
|
+
clearable: "",
|
|
34
|
+
onSearch,
|
|
35
|
+
onCancel,
|
|
36
|
+
onClickInput: onClickFilter
|
|
37
|
+
}, null, 8, ["placeholder", "show-action"]);
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
};
|
|
25
41
|
export {
|
|
26
|
-
|
|
42
|
+
_sfc_main as default
|
|
27
43
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _sfc_main from "./Search.vue.mjs";
|
|
2
2
|
import install from "../../../utils/install.mjs";
|
|
3
|
-
const MobileSearch = install.withInstall("MobileSearch",
|
|
3
|
+
const MobileSearch = install.withInstall("MobileSearch", _sfc_main);
|
|
4
4
|
export {
|
|
5
5
|
MobileSearch,
|
|
6
6
|
MobileSearch as default
|
|
@@ -86,7 +86,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
86
86
|
if (props.config.displayFieldName && val) {
|
|
87
87
|
nextTick(() => {
|
|
88
88
|
const displayValue = getDisplayPath();
|
|
89
|
-
if (formData) {
|
|
89
|
+
if (formData && displayValue) {
|
|
90
90
|
formData.value[props.config.displayFieldName] = displayValue;
|
|
91
91
|
}
|
|
92
92
|
});
|
|
@@ -247,10 +247,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
247
247
|
hiddenFields.value.forEach((field) => {
|
|
248
248
|
if (field.fieldName) {
|
|
249
249
|
if (typeof field.value == "object") {
|
|
250
|
-
const value = parseSingleParamValue(
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
250
|
+
const value = parseSingleParamValue(
|
|
251
|
+
field.value || field.defaultValue,
|
|
252
|
+
defaultData,
|
|
253
|
+
[...fieldsData.value, ...hiddenFields.value]
|
|
254
|
+
);
|
|
254
255
|
if (value) {
|
|
255
256
|
defaultData[field.fieldName] = value;
|
|
256
257
|
}
|
|
@@ -1010,7 +1011,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
1010
1011
|
if (fecFormRef.value.$el.closest(".fec-layout-row")) {
|
|
1011
1012
|
return "top";
|
|
1012
1013
|
} else {
|
|
1013
|
-
|
|
1014
|
+
if (!props.isDialog) {
|
|
1015
|
+
return "right";
|
|
1016
|
+
} else {
|
|
1017
|
+
return "";
|
|
1018
|
+
}
|
|
1014
1019
|
}
|
|
1015
1020
|
} else {
|
|
1016
1021
|
return "";
|
|
@@ -1038,9 +1043,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
1038
1043
|
if (changedFields.length > 0) {
|
|
1039
1044
|
applyLinkageEffectsForChangedFields(changedFields);
|
|
1040
1045
|
}
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
emit("update:modelValue", { ...formDataTmp });
|
|
1046
|
+
prevFormData.value = { ...formData.value };
|
|
1047
|
+
emit("update:modelValue", getFormData());
|
|
1044
1048
|
},
|
|
1045
1049
|
{ deep: true }
|
|
1046
1050
|
);
|
|
@@ -1209,7 +1213,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
1209
1213
|
};
|
|
1210
1214
|
}
|
|
1211
1215
|
});
|
|
1212
|
-
const _Form = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
1216
|
+
const _Form = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5127d7fd"]]);
|
|
1213
1217
|
export {
|
|
1214
1218
|
_Form as default
|
|
1215
1219
|
};
|