cnhis-design-vue 3.1.34-beta.5 → 3.1.34-beta.6
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.
|
@@ -2078,6 +2078,7 @@ declare const IhoTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2078
2078
|
uuid?: string | undefined;
|
|
2079
2079
|
isTree?: 0 | 2 | 1 | 3 | undefined;
|
|
2080
2080
|
isSort?: 0 | 1 | undefined;
|
|
2081
|
+
isBatchSelect?: 0 | 1 | undefined;
|
|
2081
2082
|
showSeq?: boolean | undefined;
|
|
2082
2083
|
selectType?: "checkbox" | "radio" | null | undefined;
|
|
2083
2084
|
rowGroupSetting?: {
|
|
@@ -4468,6 +4469,7 @@ declare const IhoTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
4468
4469
|
uuid?: string | undefined;
|
|
4469
4470
|
isTree?: 0 | 2 | 1 | 3 | undefined;
|
|
4470
4471
|
isSort?: 0 | 1 | undefined;
|
|
4472
|
+
isBatchSelect?: 0 | 1 | undefined;
|
|
4471
4473
|
showSeq?: boolean | undefined;
|
|
4472
4474
|
selectType?: "checkbox" | "radio" | null | undefined;
|
|
4473
4475
|
rowGroupSetting?: {
|
|
@@ -2077,6 +2077,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2077
2077
|
uuid?: string | undefined;
|
|
2078
2078
|
isTree?: 0 | 2 | 1 | 3 | undefined;
|
|
2079
2079
|
isSort?: 0 | 1 | undefined;
|
|
2080
|
+
isBatchSelect?: 0 | 1 | undefined;
|
|
2080
2081
|
showSeq?: boolean | undefined;
|
|
2081
2082
|
selectType?: "checkbox" | "radio" | null | undefined;
|
|
2082
2083
|
rowGroupSetting?: {
|
|
@@ -4467,6 +4468,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4467
4468
|
uuid?: string | undefined;
|
|
4468
4469
|
isTree?: 0 | 2 | 1 | 3 | undefined;
|
|
4469
4470
|
isSort?: 0 | 1 | undefined;
|
|
4471
|
+
isBatchSelect?: 0 | 1 | undefined;
|
|
4470
4472
|
showSeq?: boolean | undefined;
|
|
4471
4473
|
selectType?: "checkbox" | "radio" | null | undefined;
|
|
4472
4474
|
rowGroupSetting?: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { mergeWith } from 'lodash-es';
|
|
2
|
-
import { HIGHEST_PRIORITY, IHO_TABLE_TREE_TYPE } from '../../constants/index.js';
|
|
1
|
+
import { mergeWith, isObject } from 'lodash-es';
|
|
2
|
+
import { HIGHEST_PRIORITY, IHO_TABLE_TREE_TYPE, IHO_TABLE_NUMBER_STATUS } from '../../constants/index.js';
|
|
3
3
|
import { defineTablePlugin } from '../../hooks/useTablePlugin.js';
|
|
4
4
|
|
|
5
5
|
function defaultConfigPlugin() {
|
|
@@ -13,7 +13,6 @@ function defaultConfigPlugin() {
|
|
|
13
13
|
height: "100%",
|
|
14
14
|
border: true,
|
|
15
15
|
showSeq: true,
|
|
16
|
-
selectType: "checkbox",
|
|
17
16
|
columnConfig: { resizable: true },
|
|
18
17
|
rowConfig: { height: 36, isHover: true, isCurrent: true, keyField: "theUniqueKey" },
|
|
19
18
|
mouseConfig: { selected: true },
|
|
@@ -29,7 +28,13 @@ function defaultConfigPlugin() {
|
|
|
29
28
|
config
|
|
30
29
|
);
|
|
31
30
|
if (config.isTree === IHO_TABLE_TREE_TYPE.TRANSFORM_TREE_TYPE) {
|
|
32
|
-
result.treeConfig = {
|
|
31
|
+
result.treeConfig = Object.assign({}, { transform: true }, result.treeConfig);
|
|
32
|
+
}
|
|
33
|
+
if (config.isBatchSelect === IHO_TABLE_NUMBER_STATUS.POSITIVE || config.selectType) {
|
|
34
|
+
result.selectType = config.selectType || "checkbox";
|
|
35
|
+
}
|
|
36
|
+
if (isObject(config.keyboardConfig)) {
|
|
37
|
+
result.mouseConfig = Object.assign({}, { selected: config.keyboardConfig.isEdit }, result.mouseConfig);
|
|
33
38
|
}
|
|
34
39
|
return result;
|
|
35
40
|
});
|
|
@@ -15,6 +15,7 @@ export declare type IhoTableConfig = VxeTableProps & Partial<{
|
|
|
15
15
|
uuid: string;
|
|
16
16
|
isTree: 0 | 1 | 2 | 3;
|
|
17
17
|
isSort: 0 | 1;
|
|
18
|
+
isBatchSelect: 0 | 1;
|
|
18
19
|
showSeq: boolean;
|
|
19
20
|
selectType: Exclude<VxeTableDefines.ColumnInfo['type'], 'seq' | 'expand' | 'html'>;
|
|
20
21
|
rowGroupSetting: Partial<Record<TupleToUnion<typeof IhoTableRowGroupSequence>, IhoTableRowGroupItem[]>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cnhis-design-vue",
|
|
3
|
-
"version": "3.1.34-beta.
|
|
3
|
+
"version": "3.1.34-beta.6",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"module": "./es/components/index.js",
|
|
6
6
|
"main": "./es/components/index.js",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"iOS 7",
|
|
62
62
|
"last 3 iOS versions"
|
|
63
63
|
],
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "67795a79ebf11c9ca6a3f6f511d012786eb2199a"
|
|
65
65
|
}
|