ele-admin-plus 1.1.8-beta.2 → 1.1.8-beta.3
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/ele-data-table/index.js +15 -0
- package/lib/ele-data-table/index.cjs +15 -0
- package/package.json +26 -23
|
@@ -167,9 +167,24 @@ const index = defineComponent({
|
|
|
167
167
|
tableState.checkedKeys = checkedKeys;
|
|
168
168
|
if (isChanged) {
|
|
169
169
|
methods.clearSelection();
|
|
170
|
+
let flag = false;
|
|
170
171
|
checked.forEach((row) => {
|
|
172
|
+
var _a;
|
|
173
|
+
if ((_a = row[childKey.value]) == null ? void 0 : _a.length) {
|
|
174
|
+
flag = true;
|
|
175
|
+
}
|
|
171
176
|
methods.toggleRowSelection(row, true);
|
|
172
177
|
});
|
|
178
|
+
if (flag) {
|
|
179
|
+
const temp = methods.getSelectionRows() || [];
|
|
180
|
+
temp.forEach((t) => {
|
|
181
|
+
var _a;
|
|
182
|
+
const k = getValue(t, props.rowKey);
|
|
183
|
+
if (!checkedKeys.includes(k) && !((_a = t[childKey.value]) == null ? void 0 : _a.length)) {
|
|
184
|
+
methods.toggleRowSelection(t, false);
|
|
185
|
+
}
|
|
186
|
+
});
|
|
187
|
+
}
|
|
173
188
|
}
|
|
174
189
|
updateSelectedRowKeys(checkedKeys);
|
|
175
190
|
if (isChanged) {
|
|
@@ -168,9 +168,24 @@ const index = vue.defineComponent({
|
|
|
168
168
|
tableState.checkedKeys = checkedKeys;
|
|
169
169
|
if (isChanged) {
|
|
170
170
|
methods.clearSelection();
|
|
171
|
+
let flag = false;
|
|
171
172
|
checked.forEach((row) => {
|
|
173
|
+
var _a;
|
|
174
|
+
if ((_a = row[childKey.value]) == null ? void 0 : _a.length) {
|
|
175
|
+
flag = true;
|
|
176
|
+
}
|
|
172
177
|
methods.toggleRowSelection(row, true);
|
|
173
178
|
});
|
|
179
|
+
if (flag) {
|
|
180
|
+
const temp = methods.getSelectionRows() || [];
|
|
181
|
+
temp.forEach((t) => {
|
|
182
|
+
var _a;
|
|
183
|
+
const k = util.getValue(t, props$1.rowKey);
|
|
184
|
+
if (!checkedKeys.includes(k) && !((_a = t[childKey.value]) == null ? void 0 : _a.length)) {
|
|
185
|
+
methods.toggleRowSelection(t, false);
|
|
186
|
+
}
|
|
187
|
+
});
|
|
188
|
+
}
|
|
174
189
|
}
|
|
175
190
|
updateSelectedRowKeys(checkedKeys);
|
|
176
191
|
if (isChanged) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ele-admin-plus",
|
|
3
|
-
"version": "1.1.8-beta.
|
|
3
|
+
"version": "1.1.8-beta.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "vite --host --config vite.global.ts",
|
|
@@ -18,60 +18,60 @@
|
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@amap/amap-jsapi-loader": "^1.0.1",
|
|
20
20
|
"@ant-design/colors": "^7.0.2",
|
|
21
|
-
"@babel/types": "^7.23.
|
|
21
|
+
"@babel/types": "^7.23.9",
|
|
22
22
|
"@bytemd/plugin-gfm": "^1.21.0",
|
|
23
23
|
"@bytemd/plugin-highlight": "^1.21.0",
|
|
24
24
|
"@element-plus/icons-vue": "^2.3.1",
|
|
25
25
|
"@types/fs-extra": "^11.0.4",
|
|
26
|
-
"@types/node": "^20.11.
|
|
26
|
+
"@types/node": "^20.11.19",
|
|
27
27
|
"@types/nprogress": "^0.2.3",
|
|
28
|
-
"@types/sortablejs": "^1.15.
|
|
29
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
30
|
-
"@typescript-eslint/parser": "^
|
|
31
|
-
"@vitejs/plugin-vue": "^5.0.
|
|
28
|
+
"@types/sortablejs": "^1.15.8",
|
|
29
|
+
"@typescript-eslint/eslint-plugin": "^7.0.2",
|
|
30
|
+
"@typescript-eslint/parser": "^7.0.2",
|
|
31
|
+
"@vitejs/plugin-vue": "^5.0.4",
|
|
32
32
|
"@vitejs/plugin-vue-jsx": "^3.1.0",
|
|
33
|
-
"@vue/compiler-sfc": "^3.4.
|
|
34
|
-
"axios": "^1.6.
|
|
33
|
+
"@vue/compiler-sfc": "^3.4.19",
|
|
34
|
+
"axios": "^1.6.7",
|
|
35
35
|
"bytemd": "^1.21.0",
|
|
36
36
|
"chalk": "^5.3.0",
|
|
37
37
|
"countup.js": "^2.8.0",
|
|
38
38
|
"cropperjs": "^1.6.1",
|
|
39
39
|
"dayjs": "^1.11.10",
|
|
40
|
-
"echarts": "^5.
|
|
40
|
+
"echarts": "^5.5.0",
|
|
41
41
|
"echarts-wordcloud": "^2.1.0",
|
|
42
|
-
"element-plus": "^2.5.
|
|
42
|
+
"element-plus": "^2.5.6",
|
|
43
43
|
"eslint": "^8.56.0",
|
|
44
44
|
"eslint-config-prettier": "^9.1.0",
|
|
45
45
|
"eslint-plugin-prettier": "^5.1.3",
|
|
46
|
-
"eslint-plugin-vue": "^9.
|
|
46
|
+
"eslint-plugin-vue": "^9.21.1",
|
|
47
47
|
"esno": "^4.0.0",
|
|
48
48
|
"execa": "^8.0.1",
|
|
49
|
-
"github-markdown-css": "^5.5.
|
|
49
|
+
"github-markdown-css": "^5.5.1",
|
|
50
50
|
"highlight.js": "^11.9.0",
|
|
51
51
|
"jsbarcode": "^3.11.6",
|
|
52
52
|
"nprogress": "^0.2.0",
|
|
53
53
|
"p-limit": "^5.0.0",
|
|
54
54
|
"pinia": "^2.1.7",
|
|
55
|
-
"postcss": "^8.4.
|
|
56
|
-
"prettier": "^3.2.
|
|
55
|
+
"postcss": "^8.4.35",
|
|
56
|
+
"prettier": "^3.2.5",
|
|
57
57
|
"rimraf": "^5.0.5",
|
|
58
|
-
"sass": "^1.
|
|
58
|
+
"sass": "^1.71.0",
|
|
59
59
|
"sortablejs": "^1.15.2",
|
|
60
60
|
"tinymce": "^5.10.9",
|
|
61
61
|
"typescript": "^5.3.3",
|
|
62
62
|
"unplugin-vue-components": "^0.26.0",
|
|
63
|
-
"vite": "^5.
|
|
63
|
+
"vite": "^5.1.3",
|
|
64
64
|
"vite-plugin-dts": "^3.7.2",
|
|
65
|
-
"vue": "^3.4.
|
|
66
|
-
"vue-echarts": "^6.6.
|
|
65
|
+
"vue": "^3.4.19",
|
|
66
|
+
"vue-echarts": "^6.6.9",
|
|
67
67
|
"vue-eslint-parser": "^9.4.2",
|
|
68
|
-
"vue-i18n": "^9.9.
|
|
68
|
+
"vue-i18n": "^9.9.1",
|
|
69
69
|
"vue-router": "^4.2.5",
|
|
70
70
|
"vue-tsc": "^1.8.27",
|
|
71
71
|
"vuedraggable": "^4.1.0",
|
|
72
|
-
"xgplayer": "^3.0.
|
|
73
|
-
"xgplayer-hls": "^3.0.
|
|
74
|
-
"xgplayer-music": "^3.0.
|
|
72
|
+
"xgplayer": "^3.0.13",
|
|
73
|
+
"xgplayer-hls": "^3.0.13",
|
|
74
|
+
"xgplayer-music": "^3.0.13",
|
|
75
75
|
"xlsx": "^0.18.5"
|
|
76
76
|
},
|
|
77
77
|
"main": "lib/index.cjs",
|
|
@@ -164,6 +164,9 @@
|
|
|
164
164
|
],
|
|
165
165
|
"require": "./lib/*.cjs"
|
|
166
166
|
},
|
|
167
|
+
"./typings/*": {
|
|
168
|
+
"types": "./typings/*.d.ts"
|
|
169
|
+
},
|
|
167
170
|
"./*": "./*"
|
|
168
171
|
},
|
|
169
172
|
"keywords": [
|