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