vxe-table 3.11.29 → 3.11.30-beta.1
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/es/style.css +1 -1
- package/es/table/module/custom/mixin.js +31 -19
- package/es/table/module/keyboard/mixin.js +2 -1
- package/es/table/src/methods.js +237 -272
- package/es/table/src/table.js +23 -9
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +329 -345
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/module/custom/mixin.js +36 -23
- package/lib/table/module/custom/mixin.min.js +1 -1
- package/lib/table/module/keyboard/mixin.js +2 -3
- package/lib/table/module/keyboard/mixin.min.js +1 -1
- package/lib/table/src/methods.js +264 -306
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/src/table.js +25 -9
- package/lib/table/src/table.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/module/custom/mixin.ts +35 -19
- package/packages/table/module/keyboard/mixin.ts +3 -1
- package/packages/table/src/methods.ts +247 -262
- package/packages/table/src/table.ts +26 -9
- /package/es/{iconfont.1734067799153.ttf → iconfont.1734093222885.ttf} +0 -0
- /package/es/{iconfont.1734067799153.woff → iconfont.1734093222885.woff} +0 -0
- /package/es/{iconfont.1734067799153.woff2 → iconfont.1734093222885.woff2} +0 -0
- /package/lib/{iconfont.1734067799153.ttf → iconfont.1734093222885.ttf} +0 -0
- /package/lib/{iconfont.1734067799153.woff → iconfont.1734093222885.woff} +0 -0
- /package/lib/{iconfont.1734067799153.woff2 → iconfont.1734093222885.woff2} +0 -0
package/es/table/src/table.js
CHANGED
|
@@ -679,20 +679,34 @@ export default {
|
|
|
679
679
|
const { tableColumn, visibleColumn } = this;
|
|
680
680
|
return tableColumn.length || visibleColumn.length ? visibleColumn.filter((column) => column.width === 'auto' || column.minWidth === 'auto') : [];
|
|
681
681
|
},
|
|
682
|
-
|
|
683
|
-
const
|
|
682
|
+
computeFixedColumnSize() {
|
|
683
|
+
const $xeTable = this;
|
|
684
|
+
const reactData = $xeTable;
|
|
685
|
+
const internalData = $xeTable;
|
|
686
|
+
const { tableColumn } = reactData;
|
|
687
|
+
const { collectColumn } = internalData;
|
|
684
688
|
let fixedSize = 0;
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
689
|
+
// 只判断第一层
|
|
690
|
+
if (tableColumn.length && collectColumn.length) {
|
|
691
|
+
collectColumn.forEach((column) => {
|
|
692
|
+
if (column.renderFixed) {
|
|
693
|
+
fixedSize++;
|
|
694
|
+
}
|
|
695
|
+
});
|
|
696
|
+
}
|
|
690
697
|
return fixedSize;
|
|
691
698
|
},
|
|
699
|
+
fixedColumnSize() {
|
|
700
|
+
const $xeTable = this;
|
|
701
|
+
return $xeTable.computeFixedColumnSize;
|
|
702
|
+
},
|
|
692
703
|
computeIsMaxFixedColumn() {
|
|
693
|
-
const
|
|
704
|
+
const $xeTable = this;
|
|
705
|
+
const fixedColumnSize = $xeTable.computeFixedColumnSize;
|
|
706
|
+
const columnOpts = $xeTable.columnOpts;
|
|
707
|
+
const { maxFixedSize } = columnOpts;
|
|
694
708
|
if (maxFixedSize) {
|
|
695
|
-
return
|
|
709
|
+
return fixedColumnSize >= maxFixedSize;
|
|
696
710
|
}
|
|
697
711
|
return false;
|
|
698
712
|
},
|
package/es/ui/index.js
CHANGED
package/es/ui/src/log.js
CHANGED