wangshaoping 9 months ago
parent
commit
c76c67a326
  1. 2
      io.sc.platform.core.frontend/package.json
  2. 6
      io.sc.platform.core.frontend/src/platform/components/grid/WGrid.vue

2
io.sc.platform.core.frontend/package.json

@ -1,6 +1,6 @@
{ {
"name": "platform-core", "name": "platform-core",
"version": "8.1.226", "version": "8.1.227",
"description": "前端核心包,用于快速构建前端的脚手架", "description": "前端核心包,用于快速构建前端的脚手架",
"//main": "库的主文件", "//main": "库的主文件",
"main": "dist/platform-core.js", "main": "dist/platform-core.js",

6
io.sc.platform.core.frontend/src/platform/components/grid/WGrid.vue

@ -1538,8 +1538,8 @@ const initRowDataExtraProperty = (rowData) => {
rowData[rowDataExtraPropertyName.rowKey] = Tools.uuid(); rowData[rowDataExtraPropertyName.rowKey] = Tools.uuid();
rowData[rowDataExtraPropertyName.ticked] = rowData[rowDataExtraPropertyName.ticked] || false; rowData[rowDataExtraPropertyName.ticked] = rowData[rowDataExtraPropertyName.ticked] || false;
rowData[rowDataExtraPropertyName.selected] = rowData[rowDataExtraPropertyName.selected] || false; rowData[rowDataExtraPropertyName.selected] = rowData[rowDataExtraPropertyName.selected] || false;
if (props.tree && Tools.isEmpty(rowData[rowDataExtraPropertyName.expend])) { if (props.tree && Tools.isEmpty(rowData[rowDataExtraPropertyName.expand])) {
rowData[rowDataExtraPropertyName.expend] = false; rowData[rowDataExtraPropertyName.expand] = false;
} }
}; };
/** /**
@ -1581,6 +1581,7 @@ const setRowDataExtraProperty = (rows: []) => {
const addData = (rowData) => { const addData = (rowData) => {
if (props.tree) { if (props.tree) {
addTreeRow(rowData); addTreeRow(rowData);
setRowDataExtraProperty(table.rows);
} else { } else {
addRow(rowData, false); addRow(rowData, false);
} }
@ -1822,7 +1823,6 @@ const addTreeRow = (row) => {
parent['children'] = [row]; parent['children'] = [row];
} }
} }
setRowDataExtraProperty(table.rows);
} }
}; };

Loading…
Cancel
Save