vxe-table 4.9.3 → 4.9.4

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 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.warnLog=exports.errLog=void 0;var _core=require("@vxe-ui/core");const log=_core.VxeUI["log"],version="table v4.9.3",warnLog=exports.warnLog=log.create("warn",version),errLog=exports.errLog=log.create("error",version);
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.warnLog=exports.errLog=void 0;var _core=require("@vxe-ui/core");const log=_core.VxeUI["log"],version="table v4.9.4",warnLog=exports.warnLog=log.create("warn",version),errLog=exports.errLog=log.create("error",version);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vxe-table",
3
- "version": "4.9.3",
3
+ "version": "4.9.4",
4
4
  "description": "一个基于 vue 的 PC 端表格组件,支持增删改查、虚拟树、拖拽排序,懒加载、快捷菜单、数据校验、树形结构、打印、导入导出、自定义模板、渲染器、JSON 配置式...",
5
5
  "scripts": {
6
6
  "update": "npm install --legacy-peer-deps",
@@ -31,7 +31,7 @@ function renderTitleSuffixIcon (params: VxeTableDefines.CellRenderHeaderParams)
31
31
  const { $table, column } = params
32
32
  const titleSuffix = column.titleSuffix
33
33
  if (titleSuffix) {
34
- h('i', {
34
+ return h('i', {
35
35
  class: ['vxe-cell-title-suffix-icon', titleSuffix.icon || getIcon().TABLE_TITLE_SUFFIX],
36
36
  onMouseenter (evnt: MouseEvent) {
37
37
  $table.triggerHeaderTitleEvent(evnt, titleSuffix, params)
@@ -839,14 +839,20 @@ export const Cell = {
839
839
  * 排序和筛选
840
840
  */
841
841
  renderSortAndFilterHeader (params: VxeTableDefines.CellRenderHeaderParams) {
842
- return renderHeaderCellBaseVNs(params, Cell.renderHeaderTitle(params).concat(Cell.renderSortIcon(params).concat(Cell.renderFilterIcon(params))))
842
+ return renderHeaderCellBaseVNs(
843
+ params,
844
+ Cell.renderHeaderTitle(params).concat(Cell.renderSortIcon(params).concat(Cell.renderFilterIcon(params)))
845
+ )
843
846
  },
844
847
 
845
848
  /**
846
849
  * 排序
847
850
  */
848
851
  renderSortHeader (params: VxeTableDefines.CellRenderHeaderParams) {
849
- return renderHeaderCellBaseVNs(params, Cell.renderHeaderTitle(params).concat(Cell.renderSortIcon(params)))
852
+ return renderHeaderCellBaseVNs(
853
+ params,
854
+ Cell.renderHeaderTitle(params).concat(Cell.renderSortIcon(params))
855
+ )
850
856
  },
851
857
  renderSortIcon (params: VxeTableDefines.CellRenderHeaderParams | VxeTableDefines.CellRenderHeaderParams) {
852
858
  const { $table, column } = params
@@ -1,40 +1,40 @@
1
1
  @use './base.scss';
2
- @use '../variable.scss' as light-variable;
2
+ @use '../variable.scss' as light_variable;
3
3
 
4
4
  [data-vxe-ui-theme="light"] {
5
5
  /*font color*/
6
- --vxe-ui-font-color: #{light-variable.$vxe-ui-font-color};
7
- --vxe-ui-font-primary-color: #{light-variable.$vxe-ui-font-primary-color};
8
- --vxe-ui-font-lighten-color: #{light-variable.$vxe-ui-font-lighten-color};
9
- --vxe-ui-font-darken-color: #{light-variable.$vxe-ui-font-darken-color};
10
- --vxe-ui-font-disabled-color: #{light-variable.$vxe-ui-font-disabled-color};
6
+ --vxe-ui-font-color: #{light_variable.$vxe-ui-font-color};
7
+ --vxe-ui-font-primary-color: #{light_variable.$vxe-ui-font-primary-color};
8
+ --vxe-ui-font-lighten-color: #{light_variable.$vxe-ui-font-lighten-color};
9
+ --vxe-ui-font-darken-color: #{light_variable.$vxe-ui-font-darken-color};
10
+ --vxe-ui-font-disabled-color: #{light_variable.$vxe-ui-font-disabled-color};
11
11
 
12
12
  /*base*/
13
- --vxe-ui-base-popup-border-color: #{light-variable.$vxe-ui-base-popup-border-color};
14
- --vxe-ui-base-popup-box-shadow: #{light-variable.$vxe-ui-base-popup-box-shadow};
13
+ --vxe-ui-base-popup-border-color: #{light_variable.$vxe-ui-base-popup-border-color};
14
+ --vxe-ui-base-popup-box-shadow: #{light_variable.$vxe-ui-base-popup-box-shadow};
15
15
 
16
16
  /*layout*/
17
- --vxe-ui-layout-background-color: #{light-variable.$vxe-ui-layout-background-color};
17
+ --vxe-ui-layout-background-color: #{light_variable.$vxe-ui-layout-background-color};
18
18
 
19
19
  /*input*/
20
- --vxe-ui-input-border-color: #{light-variable.$vxe-ui-input-border-color};
21
- --vxe-ui-input-placeholder-color: #{light-variable.$vxe-ui-input-placeholder-color};
22
- --vxe-ui-input-disabled-background-color: #{light-variable.$vxe-ui-input-disabled-background-color};
20
+ --vxe-ui-input-border-color: #{light_variable.$vxe-ui-input-border-color};
21
+ --vxe-ui-input-placeholder-color: #{light_variable.$vxe-ui-input-placeholder-color};
22
+ --vxe-ui-input-disabled-background-color: #{light_variable.$vxe-ui-input-disabled-background-color};
23
23
 
24
24
  /*loading*/
25
- --vxe-ui-loading-background-color: #{light-variable.$vxe-ui-loading-background-color};
25
+ --vxe-ui-loading-background-color: #{light_variable.$vxe-ui-loading-background-color};
26
26
 
27
27
  /*table*/
28
- --vxe-ui-table-header-background-color: #{light-variable.$vxe-ui-table-header-background-color};
29
- --vxe-ui-table-border-color: #{light-variable.$vxe-ui-table-border-color};
30
- --vxe-ui-table-row-hover-background-color: #{light-variable.$vxe-ui-table-row-hover-background-color};
31
- --vxe-ui-table-row-striped-background-color: #{light-variable.$vxe-ui-table-row-striped-background-color};
32
- --vxe-ui-table-row-hover-striped-background-color: #{light-variable.$vxe-ui-table-row-hover-striped-background-color};
33
- --vxe-ui-table-row-radio-checked-background-color: #{light-variable.$vxe-ui-table-row-radio-checked-background-color};
34
- --vxe-ui-table-row-hover-radio-checked-background-color: #{light-variable.$vxe-ui-table-row-hover-radio-checked-background-color};
35
- --vxe-ui-table-row-checkbox-checked-background-color: #{light-variable.$vxe-ui-table-row-checkbox-checked-background-color};
36
- --vxe-ui-table-row-hover-checkbox-checked-background-color: #{light-variable.$vxe-ui-table-row-hover-checkbox-checked-background-color};
37
- --vxe-ui-table-row-current-background-color: #{light-variable.$vxe-ui-table-row-current-background-color};
38
- --vxe-ui-table-row-hover-current-background-color: #{light-variable.$vxe-ui-table-row-hover-current-background-color};
39
- --vxe-ui-table-fixed-scrolling-box-shadow-color: #{light-variable.$vxe-ui-table-fixed-scrolling-box-shadow-color};
28
+ --vxe-ui-table-header-background-color: #{light_variable.$vxe-ui-table-header-background-color};
29
+ --vxe-ui-table-border-color: #{light_variable.$vxe-ui-table-border-color};
30
+ --vxe-ui-table-row-hover-background-color: #{light_variable.$vxe-ui-table-row-hover-background-color};
31
+ --vxe-ui-table-row-striped-background-color: #{light_variable.$vxe-ui-table-row-striped-background-color};
32
+ --vxe-ui-table-row-hover-striped-background-color: #{light_variable.$vxe-ui-table-row-hover-striped-background-color};
33
+ --vxe-ui-table-row-radio-checked-background-color: #{light_variable.$vxe-ui-table-row-radio-checked-background-color};
34
+ --vxe-ui-table-row-hover-radio-checked-background-color: #{light_variable.$vxe-ui-table-row-hover-radio-checked-background-color};
35
+ --vxe-ui-table-row-checkbox-checked-background-color: #{light_variable.$vxe-ui-table-row-checkbox-checked-background-color};
36
+ --vxe-ui-table-row-hover-checkbox-checked-background-color: #{light_variable.$vxe-ui-table-row-hover-checkbox-checked-background-color};
37
+ --vxe-ui-table-row-current-background-color: #{light_variable.$vxe-ui-table-row-current-background-color};
38
+ --vxe-ui-table-row-hover-current-background-color: #{light_variable.$vxe-ui-table-row-hover-current-background-color};
39
+ --vxe-ui-table-fixed-scrolling-box-shadow-color: #{light_variable.$vxe-ui-table-fixed-scrolling-box-shadow-color};
40
40
  }