@fecp/mobile 1.1.29 → 1.1.31
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 +6 -88
- 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 +40 -2
- 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 +27 -1
- 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 +29 -0
- package/es/packages/mobile/src/components/base/card/Card.vue.mjs +2 -2
- package/es/packages/mobile/src/components/dataDisplay/table/Table.vue.mjs +2 -2
- package/lib/mobile.css +6 -88
- 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 +38 -0
- 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 +27 -1
- 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 +29 -0
- package/lib/packages/mobile/src/components/base/card/Card.vue.js +2 -2
- package/lib/packages/mobile/src/components/dataDisplay/table/Table.vue.js +2 -2
- package/package.json +1 -1
|
@@ -255,6 +255,41 @@ 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
|
+
}
|
|
258
293
|
function getRootColumn($xeTable, column) {
|
|
259
294
|
const { internalData } = $xeTable;
|
|
260
295
|
const { fullColumnIdData } = internalData;
|
|
@@ -468,6 +503,7 @@ function colToVisible($xeTable, column, row) {
|
|
|
468
503
|
}
|
|
469
504
|
return Promise.resolve();
|
|
470
505
|
}
|
|
506
|
+
exports.assembleColumn = assembleColumn;
|
|
471
507
|
exports.calcTreeLine = calcTreeLine;
|
|
472
508
|
exports.clearTableAllStatus = clearTableAllStatus;
|
|
473
509
|
exports.clearTableDefaultStatus = clearTableDefaultStatus;
|
|
@@ -476,6 +512,7 @@ exports.convertHeaderColumnToRows = convertHeaderColumnToRows;
|
|
|
476
512
|
exports.createColumn = createColumn;
|
|
477
513
|
exports.createHandleGetRowId = createHandleGetRowId;
|
|
478
514
|
exports.createHandleUpdateRowId = createHandleUpdateRowId;
|
|
515
|
+
exports.destroyColumn = destroyColumn;
|
|
479
516
|
exports.encodeRowid = encodeRowid;
|
|
480
517
|
exports.getCellHeight = getCellHeight;
|
|
481
518
|
exports.getCellValue = getCellValue;
|
|
@@ -497,3 +534,4 @@ exports.toFilters = toFilters;
|
|
|
497
534
|
exports.toTreePathSeq = toTreePathSeq;
|
|
498
535
|
exports.updateDeepRowKey = updateDeepRowKey;
|
|
499
536
|
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) && (!queryMethod || queryMethod(target))) {
|
|
106
106
|
targetElem = target;
|
|
107
107
|
} else if (target === container) {
|
|
108
108
|
return { flag: queryCls ? !!targetElem : true, container, targetElem };
|
|
@@ -111,7 +111,31 @@ 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
|
+
}
|
|
114
137
|
exports.addClass = addClass;
|
|
138
|
+
exports.getAbsolutePos = getAbsolutePos;
|
|
115
139
|
exports.getDomNode = getDomNode;
|
|
116
140
|
exports.getEventTargetNode = getEventTargetNode;
|
|
117
141
|
exports.getOffsetHeight = getOffsetHeight;
|
|
@@ -125,7 +149,9 @@ exports.isPx = isPx;
|
|
|
125
149
|
exports.isScale = isScale;
|
|
126
150
|
exports.queryElement = queryElement;
|
|
127
151
|
exports.removeClass = removeClass;
|
|
152
|
+
exports.scrollToView = scrollToView;
|
|
128
153
|
exports.setScrollLeft = setScrollLeft;
|
|
129
154
|
exports.setScrollTop = setScrollTop;
|
|
130
155
|
exports.toCssUnit = toCssUnit;
|
|
156
|
+
exports.triggerEvent = triggerEvent;
|
|
131
157
|
exports.updateCellTitle = updateCellTitle;
|
|
@@ -1,6 +1,32 @@
|
|
|
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
|
+
}
|
|
4
30
|
function getSlotVNs(vns) {
|
|
5
31
|
if (vns === null || vns === void 0) {
|
|
6
32
|
return [];
|
|
@@ -10,4 +36,7 @@ function getSlotVNs(vns) {
|
|
|
10
36
|
}
|
|
11
37
|
return [vns];
|
|
12
38
|
}
|
|
39
|
+
exports.getChangeEvent = getChangeEvent;
|
|
40
|
+
exports.getModelEvent = getModelEvent;
|
|
41
|
+
exports.getOnName = getOnName;
|
|
13
42
|
exports.getSlotVNs = getSlotVNs;
|
|
@@ -8,13 +8,13 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
|
8
8
|
;/* empty css */
|
|
9
9
|
;/* empty css */
|
|
10
10
|
const vue = require("vue");
|
|
11
|
-
;/* empty css */
|
|
12
|
-
const _pluginVue_exportHelper = require("../../../../../../_virtual/_plugin-vue_export-helper.js");
|
|
13
11
|
;/* empty css */
|
|
14
12
|
;/* empty css */
|
|
15
13
|
;/* empty css */
|
|
16
14
|
;/* empty css */
|
|
17
15
|
;/* empty css */
|
|
16
|
+
;/* empty css */
|
|
17
|
+
const _pluginVue_exportHelper = require("../../../../../../_virtual/_plugin-vue_export-helper.js");
|
|
18
18
|
const index$1 = require("../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/swipe-cell/index.js");
|
|
19
19
|
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");
|
|
20
20
|
require("../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/dialog/index.js");
|
|
@@ -5,8 +5,7 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
|
5
5
|
;/* empty css */
|
|
6
6
|
;/* empty css */
|
|
7
7
|
const vue = require("vue");
|
|
8
|
-
|
|
9
|
-
;/* empty css */
|
|
8
|
+
require("../../../../../../node_modules/.pnpm/vxe-table@4.13.27_vue@3.5.13_typescript@5.7.3_/node_modules/vxe-table/es/components.js");
|
|
10
9
|
const dataSourceUtil = require("../../../utils/dataSourceUtil.js");
|
|
11
10
|
;/* empty css */
|
|
12
11
|
const formatterUtil = require("../../../utils/formatterUtil.js");
|
|
@@ -20,6 +19,7 @@ const formatterUtil = require("../../../utils/formatterUtil.js");
|
|
|
20
19
|
;/* empty css */
|
|
21
20
|
;/* empty css */
|
|
22
21
|
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");
|