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