vxe-table 4.9.3 → 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/README.en.md +3 -0
- package/README.ja-JP.md +3 -0
- package/README.md +10 -6
- package/README.zh-TW.md +3 -0
- package/es/style.css +1 -1
- package/es/table/src/cell.js +1 -1
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +3 -3
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/src/cell.js +1 -1
- package/lib/table/src/cell.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 +2 -2
- package/packages/table/src/cell.ts +9 -3
- package/packages/table/src/table.ts +8 -2
- package/styles/components/table.scss +14 -0
- package/styles/theme/light.scss +25 -25
- /package/es/{iconfont.1732069896680.ttf → iconfont.1732176664916.ttf} +0 -0
- /package/es/{iconfont.1732069896680.woff → iconfont.1732176664916.woff} +0 -0
- /package/es/{iconfont.1732069896680.woff2 → iconfont.1732176664916.woff2} +0 -0
- /package/lib/{iconfont.1732069896680.ttf → iconfont.1732176664916.ttf} +0 -0
- /package/lib/{iconfont.1732069896680.woff → iconfont.1732176664916.woff} +0 -0
- /package/lib/{iconfont.1732069896680.woff2 → iconfont.1732176664916.woff2} +0 -0
package/lib/ui/src/log.min.js
CHANGED
|
@@ -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.
|
|
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
|
+
"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.
|
|
31
|
+
"vxe-pc-ui": "^4.3.3"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@types/resize-observer-browser": "^0.1.11",
|
|
@@ -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(
|
|
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(
|
|
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
|
|
@@ -7760,10 +7760,16 @@ export default defineComponent({
|
|
|
7760
7760
|
text: loadingOpts.text
|
|
7761
7761
|
}, loadingSlot
|
|
7762
7762
|
? {
|
|
7763
|
-
default: () => loadingSlot
|
|
7763
|
+
default: () => callSlot(loadingSlot, { $table: $xeTable, $grid: $xeGrid, loading: currLoading })
|
|
7764
7764
|
}
|
|
7765
7765
|
: {})
|
|
7766
|
-
:
|
|
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 {
|
package/styles/theme/light.scss
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
@use './base.scss';
|
|
2
|
-
@use '../variable.scss' as
|
|
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: #{
|
|
7
|
-
--vxe-ui-font-primary-color: #{
|
|
8
|
-
--vxe-ui-font-lighten-color: #{
|
|
9
|
-
--vxe-ui-font-darken-color: #{
|
|
10
|
-
--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: #{
|
|
14
|
-
--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: #{
|
|
17
|
+
--vxe-ui-layout-background-color: #{light_variable.$vxe-ui-layout-background-color};
|
|
18
18
|
|
|
19
19
|
/*input*/
|
|
20
|
-
--vxe-ui-input-border-color: #{
|
|
21
|
-
--vxe-ui-input-placeholder-color: #{
|
|
22
|
-
--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: #{
|
|
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: #{
|
|
29
|
-
--vxe-ui-table-border-color: #{
|
|
30
|
-
--vxe-ui-table-row-hover-background-color: #{
|
|
31
|
-
--vxe-ui-table-row-striped-background-color: #{
|
|
32
|
-
--vxe-ui-table-row-hover-striped-background-color: #{
|
|
33
|
-
--vxe-ui-table-row-radio-checked-background-color: #{
|
|
34
|
-
--vxe-ui-table-row-hover-radio-checked-background-color: #{
|
|
35
|
-
--vxe-ui-table-row-checkbox-checked-background-color: #{
|
|
36
|
-
--vxe-ui-table-row-hover-checkbox-checked-background-color: #{
|
|
37
|
-
--vxe-ui-table-row-current-background-color: #{
|
|
38
|
-
--vxe-ui-table-row-hover-current-background-color: #{
|
|
39
|
-
--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
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|