@fecp/mobile 1.0.46 → 1.0.48
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 +32 -5
- package/es/packages/mobile/index.mjs +1 -0
- package/es/packages/mobile/src/components/dataDisplay/table/Table.vue.mjs +135 -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/es/packages/mobile/src/components/form/formItem/FormItem.vue.mjs +1 -1
- package/lib/mobile.css +32 -5
- package/lib/packages/mobile/index.js +1 -0
- package/lib/packages/mobile/src/components/dataDisplay/table/Table.vue.js +137 -114
- package/lib/packages/mobile/src/components/form/form/Form.vue.js +15 -4
- package/lib/packages/mobile/src/components/form/formItem/FormItem.vue.js +1 -1
- 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.getAttribute("data-uid");
|
|
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,119 +284,128 @@ const _sfc_main = {
|
|
|
270
284
|
}
|
|
271
285
|
return (_ctx, _cache) => {
|
|
272
286
|
const _component_van_list = List;
|
|
273
|
-
|
|
274
|
-
|
|
287
|
+
const _component_van_cell_group = CellGroup;
|
|
288
|
+
return openBlock(), createBlock(_component_van_cell_group, {
|
|
289
|
+
class: normalizeClass(["mTableContent", {
|
|
290
|
+
notAutoHeight: !__props.autoHeight,
|
|
291
|
+
isShadow: __props.isCard && __props.isShadow,
|
|
292
|
+
isCard: __props.isCard
|
|
293
|
+
}]),
|
|
275
294
|
style: normalizeStyle("height:" + unref(compHeight)),
|
|
276
295
|
ref_key: "listRef",
|
|
277
|
-
ref: listRef
|
|
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
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
296
|
+
ref: listRef,
|
|
297
|
+
inset: __props.isCard
|
|
298
|
+
}, {
|
|
299
|
+
default: withCtx(() => [
|
|
300
|
+
createVNode(_component_van_list, {
|
|
301
|
+
ref_key: "listRef",
|
|
302
|
+
ref: listRef,
|
|
303
|
+
class: normalizeClass({ fixedHead: __props.isFixedHead }),
|
|
304
|
+
loading: unref(loading),
|
|
305
|
+
"onUpdate:loading": _cache[0] || (_cache[0] = ($event) => isRef(loading) ? loading.value = $event : null),
|
|
306
|
+
error: unref(listError),
|
|
307
|
+
"onUpdate:error": _cache[1] || (_cache[1] = ($event) => isRef(listError) ? listError.value = $event : null),
|
|
308
|
+
finished: unref(listFinished),
|
|
309
|
+
disabled: !__props.scrollLoad || __props.isFixedHead,
|
|
310
|
+
offset: 0,
|
|
311
|
+
"finished-text": "没有更多了",
|
|
312
|
+
"error-text": "请求失败,点击重新加载",
|
|
313
|
+
onLoad
|
|
314
|
+
}, {
|
|
315
|
+
default: withCtx(() => [
|
|
316
|
+
createVNode(unref(VxeGrid), {
|
|
317
|
+
ref_key: "gridRef",
|
|
318
|
+
ref: gridRef,
|
|
319
|
+
"auto-resize": "",
|
|
320
|
+
data: unref(tableData),
|
|
321
|
+
columns: unref(columnOptions),
|
|
322
|
+
size: __props.size,
|
|
323
|
+
headerAlign: "center",
|
|
324
|
+
align: "center",
|
|
325
|
+
border: __props.border,
|
|
326
|
+
round: __props.round || __props.isCard,
|
|
327
|
+
stripe: __props.stripe,
|
|
328
|
+
height: __props.isFixedHead ? unref(compHeight) : "",
|
|
329
|
+
loading: unref(initLoading),
|
|
330
|
+
showHeader: __props.showHeader,
|
|
331
|
+
onScrollBoundary: onScrollLoads,
|
|
332
|
+
virtualYConfig
|
|
333
|
+
}, createSlots({
|
|
334
|
+
loading: withCtx(() => [
|
|
335
|
+
_cache[2] || (_cache[2] = createElementVNode("div", {
|
|
336
|
+
class: "custom-loading van-loading van-loading--circular van-list__loading-icon",
|
|
337
|
+
"aria-live": "polite",
|
|
338
|
+
"aria-busy": "true"
|
|
339
|
+
}, [
|
|
340
|
+
createElementVNode("span", { class: "van-loading__spinner van-loading__spinner--circular" }, [
|
|
341
|
+
createElementVNode("svg", {
|
|
342
|
+
class: "van-loading__circular",
|
|
343
|
+
viewBox: "25 25 50 50"
|
|
344
|
+
}, [
|
|
345
|
+
createElementVNode("circle", {
|
|
346
|
+
cx: "50",
|
|
347
|
+
cy: "50",
|
|
348
|
+
r: "20",
|
|
349
|
+
fill: "none"
|
|
350
|
+
})
|
|
351
|
+
])
|
|
352
|
+
]),
|
|
353
|
+
createElementVNode("span", { class: "van-loading__text" }, "加载中...")
|
|
354
|
+
], -1))
|
|
355
|
+
]),
|
|
356
|
+
bottom: withCtx(() => [
|
|
357
|
+
__props.scrollLoad && __props.isFixedHead ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
358
|
+
unref(finished) ? (openBlock(), createElementBlock("div", _hoisted_1, " 没有更多了 ")) : createCommentVNode("", true),
|
|
359
|
+
unref(loading) ? (openBlock(), createElementBlock("div", _hoisted_2, _cache[3] || (_cache[3] = [
|
|
360
|
+
createElementVNode("div", {
|
|
361
|
+
class: "van-loading van-loading--circular van-list__loading-icon",
|
|
362
|
+
"aria-live": "polite",
|
|
363
|
+
"aria-busy": "true"
|
|
364
|
+
}, [
|
|
365
|
+
createElementVNode("span", { class: "van-loading__spinner van-loading__spinner--circular" }, [
|
|
366
|
+
createElementVNode("svg", {
|
|
367
|
+
class: "van-loading__circular",
|
|
368
|
+
viewBox: "25 25 50 50"
|
|
369
|
+
}, [
|
|
370
|
+
createElementVNode("circle", {
|
|
371
|
+
cx: "50",
|
|
372
|
+
cy: "50",
|
|
373
|
+
r: "20",
|
|
374
|
+
fill: "none"
|
|
375
|
+
})
|
|
376
|
+
])
|
|
377
|
+
]),
|
|
378
|
+
createElementVNode("span", { class: "van-loading__text" }, "加载中...")
|
|
379
|
+
], -1)
|
|
380
|
+
]))) : createCommentVNode("", true),
|
|
381
|
+
unref(error) ? (openBlock(), createElementBlock("div", {
|
|
382
|
+
key: 2,
|
|
383
|
+
class: "van-list__error-text",
|
|
384
|
+
onClick: errReload
|
|
385
|
+
}, " 请求失败,点击重新加载 ")) : createCommentVNode("", true)
|
|
386
|
+
], 64)) : createCommentVNode("", true)
|
|
387
|
+
]),
|
|
388
|
+
_: 2
|
|
389
|
+
}, [
|
|
390
|
+
renderList(_ctx.$slots, (item, key) => {
|
|
391
|
+
return {
|
|
392
|
+
name: key,
|
|
393
|
+
fn: withCtx(() => [
|
|
394
|
+
key != "bottom" ? renderSlot(_ctx.$slots, key, { key: 0 }, void 0, true) : createCommentVNode("", true)
|
|
330
395
|
])
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
class: "van-loading van-loading--circular van-list__loading-icon",
|
|
341
|
-
"aria-live": "polite",
|
|
342
|
-
"aria-busy": "true"
|
|
343
|
-
}, [
|
|
344
|
-
createElementVNode("span", { class: "van-loading__spinner van-loading__spinner--circular" }, [
|
|
345
|
-
createElementVNode("svg", {
|
|
346
|
-
class: "van-loading__circular",
|
|
347
|
-
viewBox: "25 25 50 50"
|
|
348
|
-
}, [
|
|
349
|
-
createElementVNode("circle", {
|
|
350
|
-
cx: "50",
|
|
351
|
-
cy: "50",
|
|
352
|
-
r: "20",
|
|
353
|
-
fill: "none"
|
|
354
|
-
})
|
|
355
|
-
])
|
|
356
|
-
]),
|
|
357
|
-
createElementVNode("span", { class: "van-loading__text" }, "加载中...")
|
|
358
|
-
], -1)
|
|
359
|
-
]))) : createCommentVNode("", true),
|
|
360
|
-
unref(error) ? (openBlock(), createElementBlock("div", {
|
|
361
|
-
key: 2,
|
|
362
|
-
class: "van-list__error-text",
|
|
363
|
-
onClick: errReload
|
|
364
|
-
}, " 请求失败,点击重新加载 ")) : createCommentVNode("", true)
|
|
365
|
-
], 64)) : createCommentVNode("", true)
|
|
366
|
-
]),
|
|
367
|
-
_: 2
|
|
368
|
-
}, [
|
|
369
|
-
renderList(_ctx.$slots, (item, key) => {
|
|
370
|
-
return {
|
|
371
|
-
name: key,
|
|
372
|
-
fn: withCtx(() => [
|
|
373
|
-
key != "bottom" ? renderSlot(_ctx.$slots, key, { key: 0 }, void 0, true) : createCommentVNode("", true)
|
|
374
|
-
])
|
|
375
|
-
};
|
|
376
|
-
})
|
|
377
|
-
]), 1032, ["data", "columns", "size", "border", "round", "stripe", "height", "loading", "showHeader"])
|
|
378
|
-
]),
|
|
379
|
-
_: 3
|
|
380
|
-
}, 8, ["class", "loading", "error", "finished", "disabled"])
|
|
381
|
-
], 6);
|
|
396
|
+
};
|
|
397
|
+
})
|
|
398
|
+
]), 1032, ["data", "columns", "size", "border", "round", "stripe", "height", "loading", "showHeader"])
|
|
399
|
+
]),
|
|
400
|
+
_: 3
|
|
401
|
+
}, 8, ["class", "loading", "error", "finished", "disabled"])
|
|
402
|
+
]),
|
|
403
|
+
_: 3
|
|
404
|
+
}, 8, ["class", "style", "inset"]);
|
|
382
405
|
};
|
|
383
406
|
}
|
|
384
407
|
};
|
|
385
|
-
const _Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
408
|
+
const _Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-1bede0a3"]]);
|
|
386
409
|
export {
|
|
387
410
|
_Table as default
|
|
388
411
|
};
|
|
@@ -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.isCard && __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-29a7106f"]]);
|
|
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
|
|
@@ -81,7 +81,7 @@ const _sfc_main = {
|
|
|
81
81
|
modelValue: unref(compValue),
|
|
82
82
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(compValue) ? compValue.value = $event : null),
|
|
83
83
|
rules: unref(rules),
|
|
84
|
-
required:
|
|
84
|
+
required: unref(formItemReadonly) ? false : "auto",
|
|
85
85
|
disabled: unref(formItemDisabled),
|
|
86
86
|
readonly: unref(formItemReadonly),
|
|
87
87
|
placeholder: unref(formItemReadonly) ? "" : __props.placeholder
|