ct-component-plus 0.0.40 → 0.0.41
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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ct-component-plus",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.41",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "packages/components/index.js",
|
|
7
7
|
"files": [
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"docs:build": "vuepress build docs"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"cingta-icon": "^2.
|
|
18
|
+
"cingta-icon": "^2.1.3",
|
|
19
19
|
"element-plus": "~2.3.4",
|
|
20
20
|
"vue": "^3.2.47"
|
|
21
21
|
},
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
:data="showData"
|
|
8
8
|
:span-method="spanMethod"
|
|
9
9
|
@selection-change="handleSelectChange"
|
|
10
|
-
row-key="rowKey"
|
|
10
|
+
:row-key="rowKey || 'rowKey'"
|
|
11
11
|
v-bind="$attrs">
|
|
12
12
|
<el-table-column
|
|
13
13
|
v-if="isMultiSelect"
|
|
@@ -119,12 +119,13 @@ const handleCurrentChange = (val) => {
|
|
|
119
119
|
pageNo.value = val;
|
|
120
120
|
};
|
|
121
121
|
const showData = computed(() => {
|
|
122
|
-
const table = props.tableProps.tableData.map((item, index) => {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
});
|
|
122
|
+
// const table = props.tableProps.tableData.map((item, index) => {
|
|
123
|
+
// return {
|
|
124
|
+
// ...item,
|
|
125
|
+
// rowKey: `ct-row-${index}`,
|
|
126
|
+
// };
|
|
127
|
+
// });
|
|
128
|
+
const table = props.tableProps.tableData;
|
|
128
129
|
if (props.pagination) {
|
|
129
130
|
return table.slice(
|
|
130
131
|
(pageNo.value - 1) * pageSize.value,
|