vxe-table 4.15.3 → 4.15.5
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/README.en.md +2 -6
- package/README.ja-JP.md +2 -6
- package/README.md +2 -6
- package/README.zh-TW.md +2 -6
- package/es/grid/src/grid.js +9 -1
- package/es/style.css +1 -1
- package/es/table/src/header.js +2 -2
- package/es/table/src/table.js +49 -141
- package/es/table/src/util.js +117 -10
- package/es/toolbar/src/toolbar.js +10 -4
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/grid/src/grid.js +9 -1
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/index.umd.js +147 -65
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/src/header.js +2 -2
- package/lib/table/src/table.js +8 -47
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/src/util.js +118 -10
- package/lib/table/src/util.min.js +1 -1
- package/lib/toolbar/src/toolbar.js +9 -3
- package/lib/toolbar/src/toolbar.min.js +1 -1
- package/lib/ui/index.js +1 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/package.json +1 -1
- package/packages/grid/src/grid.ts +12 -2
- package/packages/table/src/header.ts +5 -5
- package/packages/table/src/table.ts +52 -146
- package/packages/table/src/util.ts +122 -11
- package/packages/toolbar/src/toolbar.ts +12 -4
- package/styles/cssvar.scss +0 -2
- /package/es/{iconfont.1754441841476.ttf → iconfont.1754615009926.ttf} +0 -0
- /package/es/{iconfont.1754441841476.woff → iconfont.1754615009926.woff} +0 -0
- /package/es/{iconfont.1754441841476.woff2 → iconfont.1754615009926.woff2} +0 -0
- /package/lib/{iconfont.1754441841476.ttf → iconfont.1754615009926.ttf} +0 -0
- /package/lib/{iconfont.1754441841476.woff → iconfont.1754615009926.woff} +0 -0
- /package/lib/{iconfont.1754441841476.woff2 → iconfont.1754615009926.woff2} +0 -0
package/README.en.md
CHANGED
|
@@ -34,15 +34,11 @@ Get on [unpkg](https://unpkg.com/vxe-table/) and [cdnjs](https://cdn.jsdelivr.ne
|
|
|
34
34
|
|
|
35
35
|
```javascript
|
|
36
36
|
// ...
|
|
37
|
-
import
|
|
37
|
+
import VxeUITable from 'vxe-table'
|
|
38
38
|
import 'vxe-table/lib/style.css'
|
|
39
39
|
// ...
|
|
40
40
|
|
|
41
|
-
|
|
42
|
-
import 'vxe-pc-ui/lib/style.css'
|
|
43
|
-
// ...
|
|
44
|
-
|
|
45
|
-
createApp(App).use(VxeUI).use(VxeTable).mount('#app')
|
|
41
|
+
createApp(App).use(VxeUITable).mount('#app')
|
|
46
42
|
```
|
|
47
43
|
|
|
48
44
|
### CDN
|
package/README.ja-JP.md
CHANGED
|
@@ -34,15 +34,11 @@ npm install vxe-table@next
|
|
|
34
34
|
|
|
35
35
|
```javascript
|
|
36
36
|
// ...
|
|
37
|
-
import
|
|
37
|
+
import VxeUITable from 'vxe-table'
|
|
38
38
|
import 'vxe-table/lib/style.css'
|
|
39
39
|
// ...
|
|
40
40
|
|
|
41
|
-
|
|
42
|
-
import 'vxe-pc-ui/lib/style.css'
|
|
43
|
-
// ...
|
|
44
|
-
|
|
45
|
-
createApp(App).use(VxeUI).use(VxeTable).mount('#app')
|
|
41
|
+
createApp(App).use(VxeUITable).mount('#app')
|
|
46
42
|
```
|
|
47
43
|
|
|
48
44
|
### CDN
|
package/README.md
CHANGED
|
@@ -128,15 +128,11 @@ Get on [unpkg](https://unpkg.com/vxe-table/) and [cdnjs](https://cdn.jsdelivr.ne
|
|
|
128
128
|
|
|
129
129
|
```javascript
|
|
130
130
|
// ...
|
|
131
|
-
import
|
|
131
|
+
import VxeUITable from 'vxe-table'
|
|
132
132
|
import 'vxe-table/lib/style.css'
|
|
133
133
|
// ...
|
|
134
134
|
|
|
135
|
-
|
|
136
|
-
import 'vxe-pc-ui/lib/style.css'
|
|
137
|
-
// ...
|
|
138
|
-
|
|
139
|
-
createApp(App).use(VxeUIAll).use(VxeTable).mount('#app')
|
|
135
|
+
createApp(App).use(VxeUITable).mount('#app')
|
|
140
136
|
```
|
|
141
137
|
|
|
142
138
|
### CDN
|
package/README.zh-TW.md
CHANGED
|
@@ -34,15 +34,11 @@ Get on [unpkg](https://unpkg.com/vxe-table/) and [cdnjs](https://cdn.jsdelivr.ne
|
|
|
34
34
|
|
|
35
35
|
```javascript
|
|
36
36
|
// ...
|
|
37
|
-
import
|
|
37
|
+
import VxeUITable from 'vxe-table'
|
|
38
38
|
import 'vxe-table/lib/style.css'
|
|
39
39
|
// ...
|
|
40
40
|
|
|
41
|
-
|
|
42
|
-
import 'vxe-pc-ui/lib/style.css'
|
|
43
|
-
// ...
|
|
44
|
-
|
|
45
|
-
createApp(App).use(VxeUI).use(VxeTable).mount('#app')
|
|
41
|
+
createApp(App).use(VxeUITable).mount('#app')
|
|
46
42
|
```
|
|
47
43
|
|
|
48
44
|
### CDN
|
package/es/grid/src/grid.js
CHANGED
|
@@ -12,7 +12,7 @@ import { getSlotVNs } from '../../ui/src/vn';
|
|
|
12
12
|
import { warnLog, errLog } from '../../ui/src/log';
|
|
13
13
|
const { getConfig, getI18n, commands, hooks, useFns, createEvent, globalEvents, GLOBAL_EVENT_KEYS, renderEmptyElement } = VxeUI;
|
|
14
14
|
const tableComponentPropKeys = Object.keys(tableComponentProps);
|
|
15
|
-
const tableComponentMethodKeys = ['clearAll', 'syncData', 'updateData', 'loadData', 'reloadData', 'reloadRow', 'loadColumn', 'reloadColumn', 'getRowNode', 'getColumnNode', 'getRowIndex', 'getVTRowIndex', 'getVMRowIndex', 'getColumnIndex', 'getVTColumnIndex', 'getVMColumnIndex', 'setRow', 'createData', 'createRow', 'revertData', 'clearData', 'isRemoveByRow', 'isInsertByRow', 'isUpdateByRow', 'getColumns', 'getColumnById', 'getColumnByField', 'getTableColumn', 'getFullColumns', 'getData', 'getCheckboxRecords', 'getParentRow', 'getTreeRowChildren', 'getTreeParentRow', 'getRowSeq', 'getRowById', 'getRowid', 'getTableData', 'getFullData', 'setColumnFixed', 'clearColumnFixed', 'setColumnWidth', 'getColumnWidth', 'setRowHeightConf', 'getRowHeightConf', 'setRowHeight', 'getRowHeight', 'hideColumn', 'showColumn', 'resetColumn', 'refreshColumn', 'refreshScroll', 'recalculate', 'closeTooltip', 'isAllCheckboxChecked', 'isAllCheckboxIndeterminate', 'getCheckboxIndeterminateRecords', 'setCheckboxRow', 'setCheckboxRowKey', 'isCheckedByCheckboxRow', 'isCheckedByCheckboxRowKey', 'isIndeterminateByCheckboxRow', 'isIndeterminateByCheckboxRowKey', 'toggleCheckboxRow', 'setAllCheckboxRow', 'getRadioReserveRecord', 'clearRadioReserve', 'getCheckboxReserveRecords', 'clearCheckboxReserve', 'toggleAllCheckboxRow', 'clearCheckboxRow', 'setCurrentRow', 'isCheckedByRadioRow', 'isCheckedByRadioRowKey', 'setRadioRow', 'setRadioRowKey', 'clearCurrentRow', 'clearRadioRow', 'getCurrentRecord', 'getRadioRecord', 'getCurrentColumn', 'setCurrentColumn', 'clearCurrentColumn', 'setPendingRow', 'togglePendingRow', 'hasPendingByRow', 'isPendingByRow', 'getPendingRecords', 'clearPendingRow', 'setFilterByEvent', 'sort', 'setSort', 'setSortByEvent', 'clearSort', 'clearSortByEvent', 'isSort', 'getSortColumns', 'closeFilter', 'isFilter', 'clearFilterByEvent', 'isActiveFilterByColumn', 'isRowExpandLoaded', 'clearRowExpandLoaded', 'reloadRowExpand', 'reloadRowExpand', 'toggleRowExpand', 'setAllRowExpand', 'setRowExpand', 'isExpandByRow', 'isRowExpandByRow', 'clearRowExpand', 'clearRowExpandReserve', 'getRowExpandRecords', 'getTreeExpandRecords', 'isTreeExpandLoaded', 'clearTreeExpandLoaded', 'reloadTreeExpand', 'reloadTreeChilds', 'toggleTreeExpand', 'setAllTreeExpand', 'setTreeExpand', 'isTreeExpandByRow', 'clearTreeExpand', 'clearTreeExpandReserve', 'getScroll', 'scrollTo', 'scrollToRow', 'scrollToColumn', 'clearScroll', 'updateFooter', 'updateStatus', 'setMergeCells', 'removeInsertRow', 'removeMergeCells', 'getMergeCells', 'clearMergeCells', 'setMergeFooterItems', 'removeMergeFooterItems', 'getMergeFooterItems', 'clearMergeFooterItems', 'getCustomStoreData', 'setRowGroupExpand', 'setAllRowGroupExpand', 'clearRowGroupExpand', 'isRowGroupExpandByRow', 'isRowGroupRecord', 'isAggregateRecord', 'isAggregateExpandByRow', 'getAggregateContentByRow', 'getAggregateRowChildren', 'setRowGroups', 'clearRowGroups', 'openTooltip', 'moveColumnTo', 'moveRowTo', 'getCellLabel', 'getCellElement', 'focus', 'blur', 'connect'];
|
|
15
|
+
const tableComponentMethodKeys = ['clearAll', 'syncData', 'updateData', 'loadData', 'reloadData', 'reloadRow', 'loadColumn', 'reloadColumn', 'getRowNode', 'getColumnNode', 'getRowIndex', 'getVTRowIndex', 'getVMRowIndex', 'getColumnIndex', 'getVTColumnIndex', 'getVMColumnIndex', 'setRow', 'createData', 'createRow', 'revertData', 'clearData', 'isRemoveByRow', 'isInsertByRow', 'isUpdateByRow', 'getColumns', 'getColumnById', 'getColumnByField', 'getTableColumn', 'getFullColumns', 'getData', 'getCheckboxRecords', 'getParentRow', 'getTreeRowChildren', 'getTreeParentRow', 'getRowSeq', 'getRowById', 'getRowid', 'getTableData', 'getFullData', 'setColumnFixed', 'clearColumnFixed', 'setColumnWidth', 'getColumnWidth', 'recalcRowHeight', 'setRowHeightConf', 'getRowHeightConf', 'setRowHeight', 'getRowHeight', 'hideColumn', 'showColumn', 'resetColumn', 'refreshColumn', 'refreshScroll', 'recalculate', 'closeTooltip', 'isAllCheckboxChecked', 'isAllCheckboxIndeterminate', 'getCheckboxIndeterminateRecords', 'setCheckboxRow', 'setCheckboxRowKey', 'isCheckedByCheckboxRow', 'isCheckedByCheckboxRowKey', 'isIndeterminateByCheckboxRow', 'isIndeterminateByCheckboxRowKey', 'toggleCheckboxRow', 'setAllCheckboxRow', 'getRadioReserveRecord', 'clearRadioReserve', 'getCheckboxReserveRecords', 'clearCheckboxReserve', 'toggleAllCheckboxRow', 'clearCheckboxRow', 'setCurrentRow', 'isCheckedByRadioRow', 'isCheckedByRadioRowKey', 'setRadioRow', 'setRadioRowKey', 'clearCurrentRow', 'clearRadioRow', 'getCurrentRecord', 'getRadioRecord', 'getCurrentColumn', 'setCurrentColumn', 'clearCurrentColumn', 'setPendingRow', 'togglePendingRow', 'hasPendingByRow', 'isPendingByRow', 'getPendingRecords', 'clearPendingRow', 'setFilterByEvent', 'sort', 'setSort', 'setSortByEvent', 'clearSort', 'clearSortByEvent', 'isSort', 'getSortColumns', 'closeFilter', 'isFilter', 'clearFilterByEvent', 'isActiveFilterByColumn', 'isRowExpandLoaded', 'clearRowExpandLoaded', 'reloadRowExpand', 'reloadRowExpand', 'toggleRowExpand', 'setAllRowExpand', 'setRowExpand', 'isExpandByRow', 'isRowExpandByRow', 'clearRowExpand', 'clearRowExpandReserve', 'getRowExpandRecords', 'getTreeExpandRecords', 'isTreeExpandLoaded', 'clearTreeExpandLoaded', 'reloadTreeExpand', 'reloadTreeChilds', 'toggleTreeExpand', 'setAllTreeExpand', 'setTreeExpand', 'isTreeExpandByRow', 'clearTreeExpand', 'clearTreeExpandReserve', 'getScroll', 'scrollTo', 'scrollToRow', 'scrollToColumn', 'clearScroll', 'updateFooter', 'updateStatus', 'setMergeCells', 'removeInsertRow', 'removeMergeCells', 'getMergeCells', 'clearMergeCells', 'setMergeFooterItems', 'removeMergeFooterItems', 'getMergeFooterItems', 'clearMergeFooterItems', 'getCustomStoreData', 'setRowGroupExpand', 'setAllRowGroupExpand', 'clearRowGroupExpand', 'isRowGroupExpandByRow', 'isRowGroupRecord', 'isAggregateRecord', 'isAggregateExpandByRow', 'getAggregateContentByRow', 'getAggregateRowChildren', 'setRowGroups', 'clearRowGroups', 'openTooltip', 'moveColumnTo', 'moveRowTo', 'getCellLabel', 'getCellElement', 'focus', 'blur', 'connect'];
|
|
16
16
|
const gridComponentEmits = [
|
|
17
17
|
...tableComponentEmits,
|
|
18
18
|
'page-change',
|
|
@@ -28,6 +28,11 @@ const gridComponentEmits = [
|
|
|
28
28
|
'toolbar-tool-click',
|
|
29
29
|
'zoom'
|
|
30
30
|
];
|
|
31
|
+
function createInternalData() {
|
|
32
|
+
return {
|
|
33
|
+
connectTable: null
|
|
34
|
+
};
|
|
35
|
+
}
|
|
31
36
|
export default defineVxeComponent({
|
|
32
37
|
name: 'VxeGrid',
|
|
33
38
|
props: Object.assign(Object.assign({}, tableComponentProps), { layouts: Array, columns: Array, pagerConfig: Object, proxyConfig: Object, toolbarConfig: Object, formConfig: Object, zoomConfig: Object, size: {
|
|
@@ -59,6 +64,7 @@ export default defineVxeComponent({
|
|
|
59
64
|
currentPage: 1
|
|
60
65
|
}
|
|
61
66
|
});
|
|
67
|
+
const internalData = createInternalData();
|
|
62
68
|
const refElem = ref();
|
|
63
69
|
const refTable = ref();
|
|
64
70
|
const refForm = ref();
|
|
@@ -235,6 +241,7 @@ export default defineVxeComponent({
|
|
|
235
241
|
props: props,
|
|
236
242
|
context,
|
|
237
243
|
reactData,
|
|
244
|
+
internalData,
|
|
238
245
|
getRefMaps: () => refMaps,
|
|
239
246
|
getComputeMaps: () => computeMaps
|
|
240
247
|
};
|
|
@@ -1478,6 +1485,7 @@ export default defineVxeComponent({
|
|
|
1478
1485
|
});
|
|
1479
1486
|
onUnmounted(() => {
|
|
1480
1487
|
globalEvents.off($xeGrid, 'keydown');
|
|
1488
|
+
XEUtils.assign(internalData, createInternalData());
|
|
1481
1489
|
});
|
|
1482
1490
|
$xeGrid.renderVN = renderVN;
|
|
1483
1491
|
provide('$xeGrid', $xeGrid);
|