@fecp/mobile 1.0.45 → 1.0.47
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/mobile.css +19 -5
- package/es/packages/mobile/src/components/dataDisplay/table/Table.vue.mjs +133 -112
- package/es/packages/mobile/src/components/form/form/Form.vue.mjs +15 -4
- package/es/packages/mobile/src/components/form/form/index.mjs +2 -2
- package/lib/mobile.css +19 -5
- package/lib/packages/mobile/src/components/dataDisplay/table/Table.vue.js +135 -114
- package/lib/packages/mobile/src/components/form/form/Form.vue.js +15 -4
- package/package.json +1 -1
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/* empty css */
|
|
2
|
+
/* empty css */
|
|
2
3
|
/* empty css */
|
|
3
4
|
/* empty css */
|
|
4
|
-
import { computed, ref, onMounted, nextTick,
|
|
5
|
+
import { computed, ref, onMounted, nextTick, createBlock, openBlock, normalizeStyle, normalizeClass, unref, withCtx, createVNode, isRef, createSlots, createElementBlock, createCommentVNode, Fragment, createElementVNode, renderList, renderSlot } from "vue";
|
|
5
6
|
import "../../../../../../node_modules/.pnpm/vxe-table@4.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/vxe-table/es/components.mjs";
|
|
6
7
|
import { useDataSource } from "../../../utils/dataSourceUtil.mjs";
|
|
7
8
|
/* empty css */
|
|
@@ -9,6 +10,7 @@ import { textFormatter, dateFormatter, cascadeFormatter, multipleFormatter, sele
|
|
|
9
10
|
/* empty css */
|
|
10
11
|
import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
11
12
|
import { VxeGrid } from "../../../../../../node_modules/.pnpm/vxe-table@4.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/vxe-table/es/grid/index.mjs";
|
|
13
|
+
import { CellGroup } from "../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/cell-group/index.mjs";
|
|
12
14
|
import { List } from "../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/list/index.mjs";
|
|
13
15
|
const _hoisted_1 = {
|
|
14
16
|
key: 0,
|
|
@@ -87,6 +89,16 @@ const _sfc_main = {
|
|
|
87
89
|
pageSize: {
|
|
88
90
|
type: String,
|
|
89
91
|
default: "10"
|
|
92
|
+
},
|
|
93
|
+
isCard: {
|
|
94
|
+
//卡片风格
|
|
95
|
+
type: Boolean,
|
|
96
|
+
default: false
|
|
97
|
+
},
|
|
98
|
+
isShadow: {
|
|
99
|
+
//卡片阴影
|
|
100
|
+
type: Boolean,
|
|
101
|
+
default: true
|
|
90
102
|
}
|
|
91
103
|
},
|
|
92
104
|
emits: ["update:modelValue"],
|
|
@@ -164,7 +176,7 @@ const _sfc_main = {
|
|
|
164
176
|
const listRef = ref();
|
|
165
177
|
let isDesigner = false;
|
|
166
178
|
onMounted(() => {
|
|
167
|
-
const uid = listRef.value.$el.
|
|
179
|
+
const uid = listRef.value.$el.getAttribute("data-uid");
|
|
168
180
|
if (uid) {
|
|
169
181
|
isDesigner = true;
|
|
170
182
|
}
|
|
@@ -224,9 +236,11 @@ const _sfc_main = {
|
|
|
224
236
|
}
|
|
225
237
|
loading.value = false;
|
|
226
238
|
initLoading.value = false;
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
239
|
+
setTimeout(() => {
|
|
240
|
+
nextTick(() => {
|
|
241
|
+
checkHasScroll();
|
|
242
|
+
});
|
|
243
|
+
}, 300);
|
|
230
244
|
}).catch((err) => {
|
|
231
245
|
console.error(err);
|
|
232
246
|
if (props.isFixedHead) {
|
|
@@ -270,117 +284,124 @@ const _sfc_main = {
|
|
|
270
284
|
}
|
|
271
285
|
return (_ctx, _cache) => {
|
|
272
286
|
const _component_van_list = List;
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
createElementVNode("
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
287
|
+
const _component_van_cell_group = CellGroup;
|
|
288
|
+
return openBlock(), createBlock(_component_van_cell_group, {
|
|
289
|
+
class: normalizeClass(["mTableContent", { notAutoHeight: !__props.autoHeight, isShadow: __props.isShadow, isCard: __props.isCard }]),
|
|
290
|
+
style: normalizeStyle("height:" + unref(compHeight)),
|
|
291
|
+
ref_key: "listRef",
|
|
292
|
+
ref: listRef,
|
|
293
|
+
inset: __props.isCard
|
|
294
|
+
}, {
|
|
295
|
+
default: withCtx(() => [
|
|
296
|
+
createVNode(_component_van_list, {
|
|
297
|
+
ref_key: "listRef",
|
|
298
|
+
ref: listRef,
|
|
299
|
+
class: normalizeClass({ fixedHead: __props.isFixedHead }),
|
|
300
|
+
loading: unref(loading),
|
|
301
|
+
"onUpdate:loading": _cache[0] || (_cache[0] = ($event) => isRef(loading) ? loading.value = $event : null),
|
|
302
|
+
error: unref(listError),
|
|
303
|
+
"onUpdate:error": _cache[1] || (_cache[1] = ($event) => isRef(listError) ? listError.value = $event : null),
|
|
304
|
+
finished: unref(listFinished),
|
|
305
|
+
disabled: !__props.scrollLoad || __props.isFixedHead,
|
|
306
|
+
offset: 0,
|
|
307
|
+
"finished-text": "没有更多了",
|
|
308
|
+
"error-text": "请求失败,点击重新加载",
|
|
309
|
+
onLoad
|
|
310
|
+
}, {
|
|
311
|
+
default: withCtx(() => [
|
|
312
|
+
createVNode(unref(VxeGrid), {
|
|
313
|
+
ref_key: "gridRef",
|
|
314
|
+
ref: gridRef,
|
|
315
|
+
"auto-resize": "",
|
|
316
|
+
data: unref(tableData),
|
|
317
|
+
columns: unref(columnOptions),
|
|
318
|
+
size: __props.size,
|
|
319
|
+
headerAlign: "center",
|
|
320
|
+
align: "center",
|
|
321
|
+
border: __props.border,
|
|
322
|
+
round: __props.round || __props.isCard,
|
|
323
|
+
stripe: __props.stripe,
|
|
324
|
+
height: __props.isFixedHead ? unref(compHeight) : "",
|
|
325
|
+
loading: unref(initLoading),
|
|
326
|
+
showHeader: __props.showHeader,
|
|
327
|
+
onScrollBoundary: onScrollLoads,
|
|
328
|
+
virtualYConfig
|
|
329
|
+
}, createSlots({
|
|
330
|
+
loading: withCtx(() => [
|
|
331
|
+
_cache[2] || (_cache[2] = createElementVNode("div", {
|
|
332
|
+
class: "custom-loading van-loading van-loading--circular van-list__loading-icon",
|
|
333
|
+
"aria-live": "polite",
|
|
334
|
+
"aria-busy": "true"
|
|
335
|
+
}, [
|
|
336
|
+
createElementVNode("span", { class: "van-loading__spinner van-loading__spinner--circular" }, [
|
|
337
|
+
createElementVNode("svg", {
|
|
338
|
+
class: "van-loading__circular",
|
|
339
|
+
viewBox: "25 25 50 50"
|
|
340
|
+
}, [
|
|
341
|
+
createElementVNode("circle", {
|
|
342
|
+
cx: "50",
|
|
343
|
+
cy: "50",
|
|
344
|
+
r: "20",
|
|
345
|
+
fill: "none"
|
|
346
|
+
})
|
|
347
|
+
])
|
|
348
|
+
]),
|
|
349
|
+
createElementVNode("span", { class: "van-loading__text" }, "加载中...")
|
|
350
|
+
], -1))
|
|
351
|
+
]),
|
|
352
|
+
bottom: withCtx(() => [
|
|
353
|
+
__props.scrollLoad && __props.isFixedHead ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
354
|
+
unref(finished) ? (openBlock(), createElementBlock("div", _hoisted_1, " 没有更多了 ")) : createCommentVNode("", true),
|
|
355
|
+
unref(loading) ? (openBlock(), createElementBlock("div", _hoisted_2, _cache[3] || (_cache[3] = [
|
|
356
|
+
createElementVNode("div", {
|
|
357
|
+
class: "van-loading van-loading--circular van-list__loading-icon",
|
|
358
|
+
"aria-live": "polite",
|
|
359
|
+
"aria-busy": "true"
|
|
360
|
+
}, [
|
|
361
|
+
createElementVNode("span", { class: "van-loading__spinner van-loading__spinner--circular" }, [
|
|
362
|
+
createElementVNode("svg", {
|
|
363
|
+
class: "van-loading__circular",
|
|
364
|
+
viewBox: "25 25 50 50"
|
|
365
|
+
}, [
|
|
366
|
+
createElementVNode("circle", {
|
|
367
|
+
cx: "50",
|
|
368
|
+
cy: "50",
|
|
369
|
+
r: "20",
|
|
370
|
+
fill: "none"
|
|
371
|
+
})
|
|
372
|
+
])
|
|
373
|
+
]),
|
|
374
|
+
createElementVNode("span", { class: "van-loading__text" }, "加载中...")
|
|
375
|
+
], -1)
|
|
376
|
+
]))) : createCommentVNode("", true),
|
|
377
|
+
unref(error) ? (openBlock(), createElementBlock("div", {
|
|
378
|
+
key: 2,
|
|
379
|
+
class: "van-list__error-text",
|
|
380
|
+
onClick: errReload
|
|
381
|
+
}, " 请求失败,点击重新加载 ")) : createCommentVNode("", true)
|
|
382
|
+
], 64)) : createCommentVNode("", true)
|
|
383
|
+
]),
|
|
384
|
+
_: 2
|
|
385
|
+
}, [
|
|
386
|
+
renderList(_ctx.$slots, (item, key) => {
|
|
387
|
+
return {
|
|
388
|
+
name: key,
|
|
389
|
+
fn: withCtx(() => [
|
|
390
|
+
key != "bottom" ? renderSlot(_ctx.$slots, key, { key: 0 }, void 0, true) : createCommentVNode("", true)
|
|
328
391
|
])
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
class: "van-loading van-loading--circular van-list__loading-icon",
|
|
339
|
-
"aria-live": "polite",
|
|
340
|
-
"aria-busy": "true"
|
|
341
|
-
}, [
|
|
342
|
-
createElementVNode("span", { class: "van-loading__spinner van-loading__spinner--circular" }, [
|
|
343
|
-
createElementVNode("svg", {
|
|
344
|
-
class: "van-loading__circular",
|
|
345
|
-
viewBox: "25 25 50 50"
|
|
346
|
-
}, [
|
|
347
|
-
createElementVNode("circle", {
|
|
348
|
-
cx: "50",
|
|
349
|
-
cy: "50",
|
|
350
|
-
r: "20",
|
|
351
|
-
fill: "none"
|
|
352
|
-
})
|
|
353
|
-
])
|
|
354
|
-
]),
|
|
355
|
-
createElementVNode("span", { class: "van-loading__text" }, "加载中...")
|
|
356
|
-
], -1)
|
|
357
|
-
]))) : createCommentVNode("", true),
|
|
358
|
-
unref(error) ? (openBlock(), createElementBlock("div", {
|
|
359
|
-
key: 2,
|
|
360
|
-
class: "van-list__error-text",
|
|
361
|
-
onClick: errReload
|
|
362
|
-
}, " 请求失败,点击重新加载 ")) : createCommentVNode("", true)
|
|
363
|
-
], 64)) : createCommentVNode("", true)
|
|
364
|
-
]),
|
|
365
|
-
_: 2
|
|
366
|
-
}, [
|
|
367
|
-
renderList(_ctx.$slots, (item, key) => {
|
|
368
|
-
return {
|
|
369
|
-
name: key,
|
|
370
|
-
fn: withCtx(() => [
|
|
371
|
-
key != "bottom" ? renderSlot(_ctx.$slots, key, { key: 0 }, void 0, true) : createCommentVNode("", true)
|
|
372
|
-
])
|
|
373
|
-
};
|
|
374
|
-
})
|
|
375
|
-
]), 1032, ["data", "columns", "size", "border", "round", "stripe", "height", "loading", "showHeader"])
|
|
376
|
-
]),
|
|
377
|
-
_: 3
|
|
378
|
-
}, 8, ["class", "loading", "error", "finished", "disabled"])
|
|
379
|
-
], 6);
|
|
392
|
+
};
|
|
393
|
+
})
|
|
394
|
+
]), 1032, ["data", "columns", "size", "border", "round", "stripe", "height", "loading", "showHeader"])
|
|
395
|
+
]),
|
|
396
|
+
_: 3
|
|
397
|
+
}, 8, ["class", "loading", "error", "finished", "disabled"])
|
|
398
|
+
]),
|
|
399
|
+
_: 3
|
|
400
|
+
}, 8, ["class", "style", "inset"]);
|
|
380
401
|
};
|
|
381
402
|
}
|
|
382
403
|
};
|
|
383
|
-
const _Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
404
|
+
const _Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-464e59f3"]]);
|
|
384
405
|
export {
|
|
385
406
|
_Table as default
|
|
386
407
|
};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/* empty css */
|
|
2
2
|
/* empty css */
|
|
3
3
|
import { computed, provide, createBlock, openBlock, mergeProps, withCtx, createVNode, renderSlot } from "vue";
|
|
4
|
+
/* empty css */
|
|
5
|
+
import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
6
|
import { Form } from "../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/form/index.mjs";
|
|
5
7
|
import { CellGroup } from "../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/cell-group/index.mjs";
|
|
6
8
|
const _sfc_main = {
|
|
@@ -22,6 +24,11 @@ const _sfc_main = {
|
|
|
22
24
|
//卡片风格
|
|
23
25
|
type: Boolean,
|
|
24
26
|
default: false
|
|
27
|
+
},
|
|
28
|
+
isShadow: {
|
|
29
|
+
//卡片阴影
|
|
30
|
+
type: Boolean,
|
|
31
|
+
default: true
|
|
25
32
|
}
|
|
26
33
|
},
|
|
27
34
|
emits: ["update:modelValue"],
|
|
@@ -48,20 +55,24 @@ const _sfc_main = {
|
|
|
48
55
|
return (_ctx, _cache) => {
|
|
49
56
|
const _component_van_cell_group = CellGroup;
|
|
50
57
|
const _component_van_form = Form;
|
|
51
|
-
return openBlock(), createBlock(_component_van_form, mergeProps(_ctx.$attrs, {
|
|
58
|
+
return openBlock(), createBlock(_component_van_form, mergeProps(_ctx.$attrs, {
|
|
59
|
+
required: "auto",
|
|
60
|
+
class: { fecMForm: true, isShadow: __props.isShadow }
|
|
61
|
+
}), {
|
|
52
62
|
default: withCtx(() => [
|
|
53
63
|
createVNode(_component_van_cell_group, { inset: __props.isCard }, {
|
|
54
64
|
default: withCtx(() => [
|
|
55
|
-
renderSlot(_ctx.$slots, "default")
|
|
65
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
56
66
|
]),
|
|
57
67
|
_: 3
|
|
58
68
|
}, 8, ["inset"])
|
|
59
69
|
]),
|
|
60
70
|
_: 3
|
|
61
|
-
}, 16);
|
|
71
|
+
}, 16, ["class"]);
|
|
62
72
|
};
|
|
63
73
|
}
|
|
64
74
|
};
|
|
75
|
+
const _Form = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-2e5e1e9b"]]);
|
|
65
76
|
export {
|
|
66
|
-
|
|
77
|
+
_Form as default
|
|
67
78
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _Form from "./Form.vue.mjs";
|
|
2
2
|
import install from "../../../utils/install.mjs";
|
|
3
|
-
const MobileForm = install.withInstall("MobileForm",
|
|
3
|
+
const MobileForm = install.withInstall("MobileForm", _Form);
|
|
4
4
|
export {
|
|
5
5
|
MobileForm,
|
|
6
6
|
MobileForm as default
|