@fecp/mobile 1.1.26 → 1.1.28
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 +93 -11
- package/es/node_modules/.pnpm/vxe-table@4.13.27_vue@3.5.13_typescript@5.7.3_/node_modules/vxe-table/es/table/src/util.mjs +2 -40
- package/es/node_modules/.pnpm/vxe-table@4.13.27_vue@3.5.13_typescript@5.7.3_/node_modules/vxe-table/es/ui/src/dom.mjs +1 -27
- package/es/node_modules/.pnpm/vxe-table@4.13.27_vue@3.5.13_typescript@5.7.3_/node_modules/vxe-table/es/ui/src/vn.mjs +0 -29
- package/es/packages/mobile/src/components/dataDisplay/table/Table.vue.mjs +4 -19
- package/lib/mobile.css +93 -11
- package/lib/node_modules/.pnpm/vxe-table@4.13.27_vue@3.5.13_typescript@5.7.3_/node_modules/vxe-table/es/table/src/util.js +0 -38
- package/lib/node_modules/.pnpm/vxe-table@4.13.27_vue@3.5.13_typescript@5.7.3_/node_modules/vxe-table/es/ui/src/dom.js +1 -27
- package/lib/node_modules/.pnpm/vxe-table@4.13.27_vue@3.5.13_typescript@5.7.3_/node_modules/vxe-table/es/ui/src/vn.js +0 -29
- package/lib/packages/mobile/src/components/dataDisplay/table/Table.vue.js +4 -19
- package/package.json +1 -1
|
@@ -255,41 +255,6 @@ function isColumnInfo(column) {
|
|
|
255
255
|
function createColumn($xeTable, options, renderOptions) {
|
|
256
256
|
return isColumnInfo(options) ? options : vue.reactive(new columnInfo.ColumnInfo($xeTable, options, renderOptions));
|
|
257
257
|
}
|
|
258
|
-
function watchColumn($xeTable, props, column) {
|
|
259
|
-
Object.keys(props).forEach((name) => {
|
|
260
|
-
vue.watch(() => props[name], (value) => {
|
|
261
|
-
column.update(name, value);
|
|
262
|
-
if ($xeTable) {
|
|
263
|
-
if (name === "filters") {
|
|
264
|
-
$xeTable.setFilter(column, value);
|
|
265
|
-
$xeTable.handleUpdateDataQueue();
|
|
266
|
-
} else if (["visible", "fixed", "width", "minWidth", "maxWidth"].includes(name)) {
|
|
267
|
-
$xeTable.handleRefreshColumnQueue();
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
});
|
|
271
|
-
});
|
|
272
|
-
}
|
|
273
|
-
function assembleColumn($xeTable, elem, column, colgroup) {
|
|
274
|
-
const { reactData } = $xeTable;
|
|
275
|
-
const { staticColumns } = reactData;
|
|
276
|
-
const parentElem = elem.parentNode;
|
|
277
|
-
const parentColumn = colgroup ? colgroup.columnConfig : null;
|
|
278
|
-
const parentCols = parentColumn ? parentColumn.children : staticColumns;
|
|
279
|
-
if (parentElem && parentCols) {
|
|
280
|
-
parentCols.splice(index.default.arrayIndexOf(parentElem.children, elem), 0, column);
|
|
281
|
-
reactData.staticColumns = staticColumns.slice(0);
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
function destroyColumn($xeTable, column) {
|
|
285
|
-
const { reactData } = $xeTable;
|
|
286
|
-
const { staticColumns } = reactData;
|
|
287
|
-
const matchObj = index.default.findTree(staticColumns, (item) => item.id === column.id, { children: "children" });
|
|
288
|
-
if (matchObj) {
|
|
289
|
-
matchObj.items.splice(matchObj.index, 1);
|
|
290
|
-
}
|
|
291
|
-
reactData.staticColumns = staticColumns.slice(0);
|
|
292
|
-
}
|
|
293
258
|
function getRootColumn($xeTable, column) {
|
|
294
259
|
const { internalData } = $xeTable;
|
|
295
260
|
const { fullColumnIdData } = internalData;
|
|
@@ -503,7 +468,6 @@ function colToVisible($xeTable, column, row) {
|
|
|
503
468
|
}
|
|
504
469
|
return Promise.resolve();
|
|
505
470
|
}
|
|
506
|
-
exports.assembleColumn = assembleColumn;
|
|
507
471
|
exports.calcTreeLine = calcTreeLine;
|
|
508
472
|
exports.clearTableAllStatus = clearTableAllStatus;
|
|
509
473
|
exports.clearTableDefaultStatus = clearTableDefaultStatus;
|
|
@@ -512,7 +476,6 @@ exports.convertHeaderColumnToRows = convertHeaderColumnToRows;
|
|
|
512
476
|
exports.createColumn = createColumn;
|
|
513
477
|
exports.createHandleGetRowId = createHandleGetRowId;
|
|
514
478
|
exports.createHandleUpdateRowId = createHandleUpdateRowId;
|
|
515
|
-
exports.destroyColumn = destroyColumn;
|
|
516
479
|
exports.encodeRowid = encodeRowid;
|
|
517
480
|
exports.getCellHeight = getCellHeight;
|
|
518
481
|
exports.getCellValue = getCellValue;
|
|
@@ -534,4 +497,3 @@ exports.toFilters = toFilters;
|
|
|
534
497
|
exports.toTreePathSeq = toTreePathSeq;
|
|
535
498
|
exports.updateDeepRowKey = updateDeepRowKey;
|
|
536
499
|
exports.updateFastRowKey = updateFastRowKey;
|
|
537
|
-
exports.watchColumn = watchColumn;
|
|
@@ -102,7 +102,7 @@ function getEventTargetNode(evnt, container, queryCls, queryMethod) {
|
|
|
102
102
|
let targetElem;
|
|
103
103
|
let target = evnt.target.shadowRoot && evnt.composed ? evnt.composedPath()[0] || evnt.target : evnt.target;
|
|
104
104
|
while (target && target.nodeType && target !== document) {
|
|
105
|
-
if (queryCls && hasClass(target, queryCls) &&
|
|
105
|
+
if (queryCls && hasClass(target, queryCls) && true) {
|
|
106
106
|
targetElem = target;
|
|
107
107
|
} else if (target === container) {
|
|
108
108
|
return { flag: queryCls ? !!targetElem : true, container, targetElem };
|
|
@@ -111,31 +111,7 @@ function getEventTargetNode(evnt, container, queryCls, queryMethod) {
|
|
|
111
111
|
}
|
|
112
112
|
return { flag: false };
|
|
113
113
|
}
|
|
114
|
-
function getAbsolutePos(elem) {
|
|
115
|
-
const bounding = elem.getBoundingClientRect();
|
|
116
|
-
const boundingTop = bounding.top;
|
|
117
|
-
const boundingLeft = bounding.left;
|
|
118
|
-
const { scrollTop, scrollLeft, visibleHeight, visibleWidth } = getDomNode();
|
|
119
|
-
return { boundingTop, top: scrollTop + boundingTop, boundingLeft, left: scrollLeft + boundingLeft, visibleHeight, visibleWidth };
|
|
120
|
-
}
|
|
121
|
-
const scrollIntoViewIfNeeded = "scrollIntoViewIfNeeded";
|
|
122
|
-
const scrollIntoView = "scrollIntoView";
|
|
123
|
-
function scrollToView(elem) {
|
|
124
|
-
if (elem) {
|
|
125
|
-
if (elem[scrollIntoViewIfNeeded]) {
|
|
126
|
-
elem[scrollIntoViewIfNeeded]();
|
|
127
|
-
} else if (elem[scrollIntoView]) {
|
|
128
|
-
elem[scrollIntoView]();
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
function triggerEvent(targetElem, type) {
|
|
133
|
-
if (targetElem) {
|
|
134
|
-
targetElem.dispatchEvent(new Event(type));
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
114
|
exports.addClass = addClass;
|
|
138
|
-
exports.getAbsolutePos = getAbsolutePos;
|
|
139
115
|
exports.getDomNode = getDomNode;
|
|
140
116
|
exports.getEventTargetNode = getEventTargetNode;
|
|
141
117
|
exports.getOffsetHeight = getOffsetHeight;
|
|
@@ -149,9 +125,7 @@ exports.isPx = isPx;
|
|
|
149
125
|
exports.isScale = isScale;
|
|
150
126
|
exports.queryElement = queryElement;
|
|
151
127
|
exports.removeClass = removeClass;
|
|
152
|
-
exports.scrollToView = scrollToView;
|
|
153
128
|
exports.setScrollLeft = setScrollLeft;
|
|
154
129
|
exports.setScrollTop = setScrollTop;
|
|
155
130
|
exports.toCssUnit = toCssUnit;
|
|
156
|
-
exports.triggerEvent = triggerEvent;
|
|
157
131
|
exports.updateCellTitle = updateCellTitle;
|
|
@@ -1,32 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const index = require("../../../../../../../../_virtual/index.js");
|
|
4
|
-
function getOnName(type) {
|
|
5
|
-
return "on" + type.substring(0, 1).toLocaleUpperCase() + type.substring(1);
|
|
6
|
-
}
|
|
7
|
-
function getModelEvent(renderOpts) {
|
|
8
|
-
switch (renderOpts.name) {
|
|
9
|
-
case "input":
|
|
10
|
-
case "textarea":
|
|
11
|
-
return "input";
|
|
12
|
-
case "select":
|
|
13
|
-
return "change";
|
|
14
|
-
}
|
|
15
|
-
return "update:modelValue";
|
|
16
|
-
}
|
|
17
|
-
function getChangeEvent(renderOpts) {
|
|
18
|
-
switch (renderOpts.name) {
|
|
19
|
-
case "input":
|
|
20
|
-
case "textarea":
|
|
21
|
-
case "VxeInput":
|
|
22
|
-
case "VxeNumberInput":
|
|
23
|
-
case "VxeTextarea":
|
|
24
|
-
case "$input":
|
|
25
|
-
case "$textarea":
|
|
26
|
-
return "input";
|
|
27
|
-
}
|
|
28
|
-
return "change";
|
|
29
|
-
}
|
|
30
4
|
function getSlotVNs(vns) {
|
|
31
5
|
if (vns === null || vns === void 0) {
|
|
32
6
|
return [];
|
|
@@ -36,7 +10,4 @@ function getSlotVNs(vns) {
|
|
|
36
10
|
}
|
|
37
11
|
return [vns];
|
|
38
12
|
}
|
|
39
|
-
exports.getChangeEvent = getChangeEvent;
|
|
40
|
-
exports.getModelEvent = getModelEvent;
|
|
41
|
-
exports.getOnName = getOnName;
|
|
42
13
|
exports.getSlotVNs = getSlotVNs;
|
|
@@ -5,7 +5,8 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
|
5
5
|
;/* empty css */
|
|
6
6
|
;/* empty css */
|
|
7
7
|
const vue = require("vue");
|
|
8
|
-
require("../../../../../../node_modules/.pnpm/vxe-table@4.13.27_vue@3.5.13_typescript@5.7.3_/node_modules/vxe-table/es/
|
|
8
|
+
const index$4 = require("../../../../../../node_modules/.pnpm/vxe-table@4.13.27_vue@3.5.13_typescript@5.7.3_/node_modules/vxe-table/es/grid/index.js");
|
|
9
|
+
;/* empty css */
|
|
9
10
|
const dataSourceUtil = require("../../../utils/dataSourceUtil.js");
|
|
10
11
|
;/* empty css */
|
|
11
12
|
const formatterUtil = require("../../../utils/formatterUtil.js");
|
|
@@ -19,7 +20,6 @@ const formatterUtil = require("../../../utils/formatterUtil.js");
|
|
|
19
20
|
;/* empty css */
|
|
20
21
|
;/* empty css */
|
|
21
22
|
const _pluginVue_exportHelper = require("../../../../../../_virtual/_plugin-vue_export-helper.js");
|
|
22
|
-
const index$4 = require("../../../../../../node_modules/.pnpm/vxe-table@4.13.27_vue@3.5.13_typescript@5.7.3_/node_modules/vxe-table/es/grid/index.js");
|
|
23
23
|
const index = require("../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/swipe-cell/index.js");
|
|
24
24
|
const index$1 = require("../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/button/index.js");
|
|
25
25
|
const functionCall = require("../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/dialog/function-call.js");
|
|
@@ -462,25 +462,10 @@ const _sfc_main = {
|
|
|
462
462
|
stripe: __props.stripe,
|
|
463
463
|
height: __props.isFixedHead ? vue.unref(compHeight) : "",
|
|
464
464
|
minHeight: 200,
|
|
465
|
-
resizable: false,
|
|
466
465
|
loading: vue.unref(initLoading),
|
|
467
466
|
showHeader: __props.showHeader,
|
|
468
467
|
onScrollBoundary: onScrollLoads,
|
|
469
|
-
virtualYConfig
|
|
470
|
-
fit: false,
|
|
471
|
-
highlightCurrentRow: false,
|
|
472
|
-
highlightHoverRow: false,
|
|
473
|
-
highlightCurrentColumn: false,
|
|
474
|
-
highlightHoverColumn: false,
|
|
475
|
-
showOverflow: true,
|
|
476
|
-
showHeaderOverflow: true,
|
|
477
|
-
showFooterOverflow: true,
|
|
478
|
-
rowId: "",
|
|
479
|
-
emptyText: "没有更多数据了!",
|
|
480
|
-
keepSource: false,
|
|
481
|
-
autoResize: true,
|
|
482
|
-
animat: false,
|
|
483
|
-
delayHover: false
|
|
468
|
+
virtualYConfig
|
|
484
469
|
}, vue.createSlots({
|
|
485
470
|
loading: vue.withCtx(() => [
|
|
486
471
|
_cache[2] || (_cache[2] = vue.createElementVNode("div", {
|
|
@@ -556,5 +541,5 @@ const _sfc_main = {
|
|
|
556
541
|
};
|
|
557
542
|
}
|
|
558
543
|
};
|
|
559
|
-
const _Table = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
544
|
+
const _Table = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-a3ac8e87"]]);
|
|
560
545
|
exports.default = _Table;
|