vxe-table 4.8.4 → 4.8.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.md +12 -12
- package/es/grid/src/grid.js +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/module/custom/hook.js +135 -3
- package/es/table/module/custom/panel.js +151 -175
- package/es/table/src/table.js +8 -28
- package/es/table/style.css +42 -37
- package/es/table/style.min.css +1 -1
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/es/vxe-table/style.css +42 -37
- package/es/vxe-table/style.min.css +1 -1
- package/lib/grid/src/grid.js +1 -1
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/index.umd.js +265 -197
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/module/custom/hook.js +177 -3
- package/lib/table/module/custom/hook.min.js +1 -1
- package/lib/table/module/custom/panel.js +77 -157
- package/lib/table/module/custom/panel.min.js +1 -1
- package/lib/table/src/table.js +8 -34
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/style/style.css +42 -37
- package/lib/table/style/style.min.css +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/lib/vxe-table/style/style.css +42 -37
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +2 -2
- package/packages/grid/src/grid.ts +1 -1
- package/packages/table/module/custom/hook.ts +136 -3
- package/packages/table/module/custom/panel.ts +157 -179
- package/packages/table/src/table.ts +8 -28
- package/styles/components/table-module/custom.scss +21 -5
- /package/es/{iconfont.1730946045701.ttf → iconfont.1730971754265.ttf} +0 -0
- /package/es/{iconfont.1730946045701.woff → iconfont.1730971754265.woff} +0 -0
- /package/es/{iconfont.1730946045701.woff2 → iconfont.1730971754265.woff2} +0 -0
- /package/lib/{iconfont.1730946045701.ttf → iconfont.1730971754265.ttf} +0 -0
- /package/lib/{iconfont.1730946045701.woff → iconfont.1730971754265.woff} +0 -0
- /package/lib/{iconfont.1730946045701.woff2 → iconfont.1730971754265.woff2} +0 -0
|
@@ -2271,7 +2271,9 @@ export default defineComponent({
|
|
|
2271
2271
|
Promise.resolve(
|
|
2272
2272
|
loadMethod({ $table: $xeTable, row })
|
|
2273
2273
|
).then((childRecords: any) => {
|
|
2274
|
-
rowRest
|
|
2274
|
+
if (rowRest) {
|
|
2275
|
+
rowRest.treeLoaded = true
|
|
2276
|
+
}
|
|
2275
2277
|
if (treeExpandLazyLoadedMaps[rowid]) {
|
|
2276
2278
|
delete treeExpandLazyLoadedMaps[rowid]
|
|
2277
2279
|
}
|
|
@@ -2297,7 +2299,9 @@ export default defineComponent({
|
|
|
2297
2299
|
}
|
|
2298
2300
|
}).catch(() => {
|
|
2299
2301
|
const { treeExpandLazyLoadedMaps } = reactData
|
|
2300
|
-
rowRest
|
|
2302
|
+
if (rowRest) {
|
|
2303
|
+
rowRest.treeLoaded = false
|
|
2304
|
+
}
|
|
2301
2305
|
if (treeExpandLazyLoadedMaps[rowid]) {
|
|
2302
2306
|
delete treeExpandLazyLoadedMaps[rowid]
|
|
2303
2307
|
}
|
|
@@ -3721,32 +3725,8 @@ export default defineComponent({
|
|
|
3721
3725
|
* 如果已关联工具栏,则会同步更新
|
|
3722
3726
|
*/
|
|
3723
3727
|
resetColumn (options) {
|
|
3724
|
-
|
|
3725
|
-
|
|
3726
|
-
const { checkMethod } = customOpts
|
|
3727
|
-
const opts: VxeTableDefines.VxeTableCustomStorageObj = Object.assign({
|
|
3728
|
-
visible: true,
|
|
3729
|
-
resizable: options === true,
|
|
3730
|
-
fixed: options === true,
|
|
3731
|
-
sort: options === true
|
|
3732
|
-
}, options)
|
|
3733
|
-
XEUtils.eachTree(collectColumn, (column) => {
|
|
3734
|
-
if (opts.resizable) {
|
|
3735
|
-
column.resizeWidth = 0
|
|
3736
|
-
}
|
|
3737
|
-
if (opts.fixed) {
|
|
3738
|
-
column.fixed = column.defaultFixed
|
|
3739
|
-
}
|
|
3740
|
-
if (opts.sort) {
|
|
3741
|
-
column.renderSortNumber = column.sortNumber
|
|
3742
|
-
}
|
|
3743
|
-
if (!checkMethod || checkMethod({ column })) {
|
|
3744
|
-
column.visible = column.defaultVisible
|
|
3745
|
-
}
|
|
3746
|
-
column.renderResizeWidth = column.renderWidth
|
|
3747
|
-
})
|
|
3748
|
-
$xeTable.saveCustomStore('reset')
|
|
3749
|
-
return tablePrivateMethods.handleCustom()
|
|
3728
|
+
warnLog('vxe.error.delFunc', ['resetColumn', 'resetCustom'])
|
|
3729
|
+
return $xeTable.resetCustom(options)
|
|
3750
3730
|
},
|
|
3751
3731
|
/**
|
|
3752
3732
|
* 刷新列信息
|
|
@@ -94,15 +94,14 @@
|
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
.vxe-table-custom--
|
|
97
|
+
.vxe-table-custom--body {
|
|
98
98
|
display: block;
|
|
99
99
|
flex-grow: 1;
|
|
100
100
|
overflow-x: hidden;
|
|
101
101
|
overflow-y: auto;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
.vxe-table-custom--
|
|
105
|
-
.vxe-table-custom--body {
|
|
104
|
+
.vxe-table-custom--panel-list {
|
|
106
105
|
list-style-type: none;
|
|
107
106
|
margin: 0;
|
|
108
107
|
padding: 0;
|
|
@@ -130,7 +129,7 @@
|
|
|
130
129
|
user-select: none;
|
|
131
130
|
}
|
|
132
131
|
|
|
133
|
-
.vxe-table-custom--
|
|
132
|
+
.vxe-table-custom--panel-list {
|
|
134
133
|
padding: 0.2em 0;
|
|
135
134
|
.vxe-table-custom--checkbox-option {
|
|
136
135
|
&:hover {
|
|
@@ -139,7 +138,8 @@
|
|
|
139
138
|
}
|
|
140
139
|
}
|
|
141
140
|
|
|
142
|
-
.vxe-table-custom--footer {
|
|
141
|
+
.vxe-table-custom--footer-buttons {
|
|
142
|
+
width: 100%;
|
|
143
143
|
display: flex;
|
|
144
144
|
flex-direction: row;
|
|
145
145
|
flex-shrink: 0;
|
|
@@ -390,3 +390,19 @@
|
|
|
390
390
|
margin-left: 5px;
|
|
391
391
|
cursor: help;
|
|
392
392
|
}
|
|
393
|
+
|
|
394
|
+
.vxe-table-custom-popup--table-col-seq {
|
|
395
|
+
width: 80px;
|
|
396
|
+
}
|
|
397
|
+
.vxe-table-custom-popup--table-col-sort {
|
|
398
|
+
width: 80px;
|
|
399
|
+
}
|
|
400
|
+
.vxe-table-custom-popup--table-col-title {
|
|
401
|
+
min-width: 120px;
|
|
402
|
+
}
|
|
403
|
+
.vxe-table-custom-popup--table-col-width {
|
|
404
|
+
width: 140px;
|
|
405
|
+
}
|
|
406
|
+
.vxe-table-custom-popup--table-col-fixed {
|
|
407
|
+
width: 200px;
|
|
408
|
+
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|