vxe-table 3.12.10-beta.0 → 3.12.10-beta.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/locale/lang/ko-KR.js +515 -515
- package/es/style.css +1 -1
- package/es/table/src/methods.js +18 -7
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +24 -10
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/ko-KR.js +515 -515
- package/lib/locale/lang/ko-KR.min.js +1 -1
- package/lib/locale/lang/ko-KR.umd.js +515 -515
- package/lib/style.css +1 -1
- package/lib/table/src/methods.js +22 -8
- package/lib/table/src/methods.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/locale/lang/ko-KR.ts +515 -515
- package/packages/table/src/methods.ts +23 -11
- /package/es/{iconfont.1736688976404.ttf → iconfont.1736736807414.ttf} +0 -0
- /package/es/{iconfont.1736688976404.woff → iconfont.1736736807414.woff} +0 -0
- /package/es/{iconfont.1736688976404.woff2 → iconfont.1736736807414.woff2} +0 -0
- /package/lib/{iconfont.1736688976404.ttf → iconfont.1736736807414.ttf} +0 -0
- /package/lib/{iconfont.1736688976404.woff → iconfont.1736736807414.woff} +0 -0
- /package/lib/{iconfont.1736688976404.woff2 → iconfont.1736736807414.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -2220,7 +2220,7 @@ function getClass(property, params) {
|
|
|
2220
2220
|
;// CONCATENATED MODULE: ./packages/ui/index.ts
|
|
2221
2221
|
|
|
2222
2222
|
|
|
2223
|
-
const version = "3.12.10-beta.
|
|
2223
|
+
const version = "3.12.10-beta.2";
|
|
2224
2224
|
core_.VxeUI.version = version;
|
|
2225
2225
|
core_.VxeUI.tableVersion = version;
|
|
2226
2226
|
core_.VxeUI.setConfig({
|
|
@@ -2824,7 +2824,7 @@ function isNodeElement(elem) {
|
|
|
2824
2824
|
const {
|
|
2825
2825
|
log: log_log
|
|
2826
2826
|
} = core_.VxeUI;
|
|
2827
|
-
const log_version = `table v${"3.12.10-beta.
|
|
2827
|
+
const log_version = `table v${"3.12.10-beta.2"}`;
|
|
2828
2828
|
const warnLog = log_log.create('warn', log_version);
|
|
2829
2829
|
const errLog = log_log.create('error', log_version);
|
|
2830
2830
|
;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
|
|
@@ -8413,16 +8413,21 @@ const Methods = {
|
|
|
8413
8413
|
* 只对 tree-config 有效,获取行的父级
|
|
8414
8414
|
*/
|
|
8415
8415
|
getTreeParentRow(rowOrRowid) {
|
|
8416
|
+
const $xeTable = this;
|
|
8417
|
+
const props = $xeTable;
|
|
8418
|
+
const internalData = $xeTable;
|
|
8419
|
+
const {
|
|
8420
|
+
treeConfig
|
|
8421
|
+
} = props;
|
|
8416
8422
|
const {
|
|
8417
|
-
treeConfig,
|
|
8418
8423
|
fullDataRowIdData
|
|
8419
|
-
} =
|
|
8424
|
+
} = internalData;
|
|
8420
8425
|
if (rowOrRowid && treeConfig) {
|
|
8421
8426
|
let rowid;
|
|
8422
8427
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isString(rowOrRowid)) {
|
|
8423
8428
|
rowid = rowOrRowid;
|
|
8424
8429
|
} else {
|
|
8425
|
-
rowid = getRowid(
|
|
8430
|
+
rowid = getRowid($xeTable, rowOrRowid);
|
|
8426
8431
|
}
|
|
8427
8432
|
if (rowid) {
|
|
8428
8433
|
const rest = fullDataRowIdData[rowid];
|
|
@@ -8449,10 +8454,14 @@ const Methods = {
|
|
|
8449
8454
|
* 根据行获取行的唯一主键
|
|
8450
8455
|
* @param {Row} row 行对象
|
|
8451
8456
|
*/
|
|
8452
|
-
getRowid(
|
|
8457
|
+
getRowid(cellValue) {
|
|
8453
8458
|
const $xeTable = this;
|
|
8454
|
-
const
|
|
8455
|
-
|
|
8459
|
+
const internalData = $xeTable;
|
|
8460
|
+
const {
|
|
8461
|
+
fullDataRowIdData
|
|
8462
|
+
} = internalData;
|
|
8463
|
+
const rowid = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(cellValue) ? '' : encodeURIComponent(cellValue || '');
|
|
8464
|
+
return fullDataRowIdData[rowid] ? fullDataRowIdData[rowid].row : null;
|
|
8456
8465
|
},
|
|
8457
8466
|
/**
|
|
8458
8467
|
* 获取处理后的表格数据
|
|
@@ -8493,14 +8502,19 @@ const Methods = {
|
|
|
8493
8502
|
const treeOpts = $xeTable.computeTreeOpts;
|
|
8494
8503
|
const {
|
|
8495
8504
|
transform,
|
|
8496
|
-
mapChildrenField
|
|
8505
|
+
mapChildrenField,
|
|
8506
|
+
rowField,
|
|
8507
|
+
parentField
|
|
8497
8508
|
} = treeOpts;
|
|
8498
8509
|
const childrenField = treeOpts.children || treeOpts.childrenField;
|
|
8499
8510
|
if (transform) {
|
|
8500
8511
|
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toArrayTree(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toTreeArray(tableFullTreeData, {
|
|
8501
8512
|
children: mapChildrenField
|
|
8502
8513
|
}), {
|
|
8503
|
-
|
|
8514
|
+
key: rowField,
|
|
8515
|
+
parentKey: parentField,
|
|
8516
|
+
children: childrenField,
|
|
8517
|
+
mapChildren: mapChildrenField
|
|
8504
8518
|
});
|
|
8505
8519
|
}
|
|
8506
8520
|
return tableFullTreeData.slice(0);
|