vxe-table 3.9.1 → 3.9.2
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/src/methods.js +56 -9
- package/es/ui/index.js +2 -2
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +71 -12
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/src/methods.js +68 -9
- package/lib/table/src/methods.min.js +1 -1
- package/lib/ui/index.js +2 -2
- 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/methods.ts +56 -9
- /package/es/{iconfont.1728483486168.ttf → iconfont.1728637870047.ttf} +0 -0
- /package/es/{iconfont.1728483486168.woff → iconfont.1728637870047.woff} +0 -0
- /package/es/{iconfont.1728483486168.woff2 → iconfont.1728637870047.woff2} +0 -0
- /package/lib/{iconfont.1728483486168.ttf → iconfont.1728637870047.ttf} +0 -0
- /package/lib/{iconfont.1728483486168.woff → iconfont.1728637870047.woff} +0 -0
- /package/lib/{iconfont.1728483486168.woff2 → iconfont.1728637870047.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -2220,9 +2220,9 @@ function getClass(property, params) {
|
|
|
2220
2220
|
;// CONCATENATED MODULE: ./packages/ui/index.ts
|
|
2221
2221
|
|
|
2222
2222
|
|
|
2223
|
-
const version = "3.9.
|
|
2223
|
+
const version = "3.9.2";
|
|
2224
2224
|
core_.VxeUI.version = version;
|
|
2225
|
-
core_.VxeUI.tableVersion = "3.9.
|
|
2225
|
+
core_.VxeUI.tableVersion = "3.9.2";
|
|
2226
2226
|
core_.VxeUI.setConfig({
|
|
2227
2227
|
emptyCell: ' ',
|
|
2228
2228
|
table: {
|
|
@@ -2764,7 +2764,7 @@ function isNodeElement(elem) {
|
|
|
2764
2764
|
const {
|
|
2765
2765
|
log: log_log
|
|
2766
2766
|
} = core_.VxeUI;
|
|
2767
|
-
const log_version = `table v${"3.9.
|
|
2767
|
+
const log_version = `table v${"3.9.2"}`;
|
|
2768
2768
|
const warnLog = log_log.create('warn', log_version);
|
|
2769
2769
|
const errLog = log_log.create('error', log_version);
|
|
2770
2770
|
;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
|
|
@@ -5732,11 +5732,11 @@ const Methods = {
|
|
|
5732
5732
|
*/
|
|
5733
5733
|
getRowSeq(row) {
|
|
5734
5734
|
const {
|
|
5735
|
-
|
|
5735
|
+
fullAllDataRowIdData
|
|
5736
5736
|
} = this;
|
|
5737
5737
|
if (row) {
|
|
5738
5738
|
const rowid = getRowid(this, row);
|
|
5739
|
-
const rest =
|
|
5739
|
+
const rest = fullAllDataRowIdData[rowid];
|
|
5740
5740
|
if (rest) {
|
|
5741
5741
|
return rest.seq;
|
|
5742
5742
|
}
|
|
@@ -5748,14 +5748,34 @@ const Methods = {
|
|
|
5748
5748
|
* @param {Row} row 行对象
|
|
5749
5749
|
*/
|
|
5750
5750
|
getRowIndex(row) {
|
|
5751
|
-
|
|
5751
|
+
const {
|
|
5752
|
+
fullAllDataRowIdData
|
|
5753
|
+
} = this;
|
|
5754
|
+
if (row) {
|
|
5755
|
+
const rowid = getRowid(this, row);
|
|
5756
|
+
const rest = fullAllDataRowIdData[rowid];
|
|
5757
|
+
if (rest) {
|
|
5758
|
+
return rest.index;
|
|
5759
|
+
}
|
|
5760
|
+
}
|
|
5761
|
+
return -1;
|
|
5752
5762
|
},
|
|
5753
5763
|
/**
|
|
5754
5764
|
* 根据 row 获取相对于当前数据中的索引
|
|
5755
5765
|
* @param {Row} row 行对象
|
|
5756
5766
|
*/
|
|
5757
5767
|
getVTRowIndex(row) {
|
|
5758
|
-
|
|
5768
|
+
const {
|
|
5769
|
+
fullAllDataRowIdData
|
|
5770
|
+
} = this;
|
|
5771
|
+
if (row) {
|
|
5772
|
+
const rowid = getRowid(this, row);
|
|
5773
|
+
const rest = fullAllDataRowIdData[rowid];
|
|
5774
|
+
if (rest) {
|
|
5775
|
+
return rest._index;
|
|
5776
|
+
}
|
|
5777
|
+
}
|
|
5778
|
+
return -1;
|
|
5759
5779
|
},
|
|
5760
5780
|
// 在 v3 中废弃
|
|
5761
5781
|
_getRowIndex(row) {
|
|
@@ -5769,7 +5789,17 @@ const Methods = {
|
|
|
5769
5789
|
* @param {Row} row 行对象
|
|
5770
5790
|
*/
|
|
5771
5791
|
getVMRowIndex(row) {
|
|
5772
|
-
|
|
5792
|
+
const {
|
|
5793
|
+
fullAllDataRowIdData
|
|
5794
|
+
} = this;
|
|
5795
|
+
if (row) {
|
|
5796
|
+
const rowid = getRowid(this, row);
|
|
5797
|
+
const rest = fullAllDataRowIdData[rowid];
|
|
5798
|
+
if (rest) {
|
|
5799
|
+
return rest.$index;
|
|
5800
|
+
}
|
|
5801
|
+
}
|
|
5802
|
+
return -1;
|
|
5773
5803
|
},
|
|
5774
5804
|
// 在 v3 中废弃
|
|
5775
5805
|
$getRowIndex(row) {
|
|
@@ -5783,14 +5813,32 @@ const Methods = {
|
|
|
5783
5813
|
* @param {ColumnInfo} column 列配置
|
|
5784
5814
|
*/
|
|
5785
5815
|
getColumnIndex(column) {
|
|
5786
|
-
|
|
5816
|
+
const {
|
|
5817
|
+
fullColumnIdData
|
|
5818
|
+
} = this;
|
|
5819
|
+
if (column) {
|
|
5820
|
+
const rest = fullColumnIdData[column.id];
|
|
5821
|
+
if (rest) {
|
|
5822
|
+
return rest.index;
|
|
5823
|
+
}
|
|
5824
|
+
}
|
|
5825
|
+
return -1;
|
|
5787
5826
|
},
|
|
5788
5827
|
/**
|
|
5789
5828
|
* 根据 column 获取相对于当前表格列中的索引
|
|
5790
5829
|
* @param {ColumnInfo} column 列配置
|
|
5791
5830
|
*/
|
|
5792
5831
|
getVTColumnIndex(column) {
|
|
5793
|
-
|
|
5832
|
+
const {
|
|
5833
|
+
fullColumnIdData
|
|
5834
|
+
} = this;
|
|
5835
|
+
if (column) {
|
|
5836
|
+
const rest = fullColumnIdData[column.id];
|
|
5837
|
+
if (rest) {
|
|
5838
|
+
return rest._index;
|
|
5839
|
+
}
|
|
5840
|
+
}
|
|
5841
|
+
return -1;
|
|
5794
5842
|
},
|
|
5795
5843
|
// 在 v3 中废弃
|
|
5796
5844
|
_getColumnIndex(column) {
|
|
@@ -5804,7 +5852,16 @@ const Methods = {
|
|
|
5804
5852
|
* @param {ColumnInfo} column 列配置
|
|
5805
5853
|
*/
|
|
5806
5854
|
getVMColumnIndex(column) {
|
|
5807
|
-
|
|
5855
|
+
const {
|
|
5856
|
+
fullColumnIdData
|
|
5857
|
+
} = this;
|
|
5858
|
+
if (column) {
|
|
5859
|
+
const rest = fullColumnIdData[column.id];
|
|
5860
|
+
if (rest) {
|
|
5861
|
+
return rest.$index;
|
|
5862
|
+
}
|
|
5863
|
+
}
|
|
5864
|
+
return -1;
|
|
5808
5865
|
},
|
|
5809
5866
|
// 在 v3 中废弃
|
|
5810
5867
|
$getColumnIndex(column) {
|
|
@@ -7261,7 +7318,9 @@ const Methods = {
|
|
|
7261
7318
|
});
|
|
7262
7319
|
} else {
|
|
7263
7320
|
const labelEl = cellEl.firstChild;
|
|
7264
|
-
|
|
7321
|
+
if (labelEl) {
|
|
7322
|
+
titleWidth = labelEl.offsetWidth;
|
|
7323
|
+
}
|
|
7265
7324
|
}
|
|
7266
7325
|
if (titleWidth) {
|
|
7267
7326
|
colWidth = Math.max(colWidth, Math.ceil(titleWidth) + 4);
|