vxe-table 4.9.4 → 4.9.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": "4.9.4",
3
+ "version": "4.9.5",
4
4
  "description": "一个基于 vue 的 PC 端表格组件,支持增删改查、虚拟树、拖拽排序,懒加载、快捷菜单、数据校验、树形结构、打印、导入导出、自定义模板、渲染器、JSON 配置式...",
5
5
  "scripts": {
6
6
  "update": "npm install --legacy-peer-deps",
@@ -28,7 +28,7 @@
28
28
  "style": "lib/style.css",
29
29
  "typings": "types/index.d.ts",
30
30
  "dependencies": {
31
- "vxe-pc-ui": "^4.3.2"
31
+ "vxe-pc-ui": "^4.3.3"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@types/resize-observer-browser": "^0.1.11",
@@ -7760,10 +7760,16 @@ export default defineComponent({
7760
7760
  text: loadingOpts.text
7761
7761
  }, loadingSlot
7762
7762
  ? {
7763
- default: () => loadingSlot({ $table: $xeTable, $grid: $xeGrid })
7763
+ default: () => callSlot(loadingSlot, { $table: $xeTable, $grid: $xeGrid, loading: currLoading })
7764
7764
  }
7765
7765
  : {})
7766
- : renderEmptyElement($xeTable),
7766
+ : loadingSlot
7767
+ ? h('div', {
7768
+ class: ['vxe-loading--custom-wrapper', {
7769
+ 'is--visible': currLoading
7770
+ }]
7771
+ }, callSlot(loadingSlot, { $table: $xeTable, $grid: $xeGrid, loading: currLoading }))
7772
+ : renderEmptyElement($xeTable),
7767
7773
  /**
7768
7774
  * 自定义列
7769
7775
  */
@@ -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 {