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