vxe-table 3.11.4 → 3.11.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vxe-table",
3
- "version": "3.11.4",
3
+ "version": "3.11.5",
4
4
  "description": "一个基于 vue 的 PC 端表格组件,支持增删改查、虚拟树、拖拽排序,懒加载、快捷菜单、数据校验、树形结构、打印、导入导出、自定义模板、渲染器、JSON 配置式...",
5
5
  "scripts": {
6
6
  "update": "npm install --legacy-peer-deps",
@@ -1123,6 +1123,7 @@ export default {
1123
1123
  const VxeUITooltipComponent = VxeUI.getComponent<VxeTooltipComponent>('VxeTooltip')
1124
1124
 
1125
1125
  const $xeTable = this
1126
+ const $xeGrid = $xeTable.$xeGrid
1126
1127
 
1127
1128
  const {
1128
1129
  _e,
@@ -1170,6 +1171,7 @@ export default {
1170
1171
  editRules
1171
1172
  } = $xeTable
1172
1173
  const { leftList, rightList } = columnStore
1174
+ const loadingSlot = $scopedSlots.loading
1173
1175
  const currLoading = this._isLoading || loading
1174
1176
  const vSize = computeSize
1175
1177
  const virtualScrollBars = $xeTable.computeVirtualScrollBars
@@ -1357,8 +1359,14 @@ export default {
1357
1359
  icon: loadingOpts.icon,
1358
1360
  text: loadingOpts.text
1359
1361
  }
1360
- }, this.callSlot($scopedSlots.loading, {}, h))
1361
- : _e(),
1362
+ }, $xeTable.callSlot(loadingSlot, { $table: $xeTable, $grid: $xeGrid, loading: currLoading }, h))
1363
+ : loadingSlot
1364
+ ? h('div', {
1365
+ class: ['vxe-loading--custom-wrapper', {
1366
+ 'is--visible': currLoading
1367
+ }]
1368
+ }, $xeTable.callSlot(loadingSlot, { $table: $xeTable, $grid: $xeGrid, loading: currLoading }, h))
1369
+ : renderEmptyElement($xeTable),
1362
1370
  /**
1363
1371
  * 自定义列
1364
1372
  */
@@ -1370,7 +1378,7 @@ export default {
1370
1378
  customStore
1371
1379
  }
1372
1380
  })
1373
- : _e(),
1381
+ : renderEmptyElement($xeTable),
1374
1382
  /**
1375
1383
  * 筛选
1376
1384
  */
@@ -45,6 +45,20 @@
45
45
  outline: 0;
46
46
  }
47
47
 
48
+ .vxe-loading--custom-wrapper {
49
+ display: none;
50
+ position: absolute;
51
+ width: 100%;
52
+ height: 100%;
53
+ top: 0;
54
+ left: 0;
55
+ z-index: 99;
56
+ user-select: none;
57
+ &.is--visible {
58
+ display: block;
59
+ }
60
+ }
61
+
48
62
  /*默认的渲染*/
49
63
  .vxe-cell,
50
64
  .vxe-table--filter-template {