vue2-client 1.8.358 → 1.8.360
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/package.json
CHANGED
|
@@ -423,7 +423,7 @@ export default {
|
|
|
423
423
|
this.serviceName = serviceName
|
|
424
424
|
this.viewMode = viewMode
|
|
425
425
|
this.env = env
|
|
426
|
-
this.rowKey = this.
|
|
426
|
+
this.rowKey = this.getPrimaryKeyName()
|
|
427
427
|
let totalWidth = 0
|
|
428
428
|
for (let i = 0; i < this.tableColumns.length; i++) {
|
|
429
429
|
const item = this.tableColumns[i]
|
|
@@ -579,7 +579,8 @@ export default {
|
|
|
579
579
|
return primaryKeyData[0].model
|
|
580
580
|
}
|
|
581
581
|
}
|
|
582
|
-
|
|
582
|
+
const realColumns = this.tableColumns.filter(i => i?.slotType !== 'index')
|
|
583
|
+
return realColumns[0].dataIndex
|
|
583
584
|
},
|
|
584
585
|
// 导出选中或本页数据
|
|
585
586
|
handleExport (isSelected) {
|