cnhis-design-vue 3.1.37-beta.1 → 3.1.37
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/components/big-table/index.d.ts +66 -166
- package/es/components/big-table/src/BigTable.vue.d.ts +79 -194
- package/es/components/button-print/index.d.ts +24 -27
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +101 -100
- package/es/components/button-print/src/components/EditFormat.vue.d.ts +4 -4
- package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +4 -4
- package/es/components/button-print/src/utils/print.js +1 -6
- package/es/components/fabric-chart/index.d.ts +34 -11
- package/es/components/fabric-chart/src/FabricChart.vue.d.ts +35 -12
- package/es/components/fabric-chart/src/FabricChart.vue.js +9 -9
- package/es/components/fabric-chart/src/hooks/useBirthProcess.d.ts +1 -18
- package/es/components/fabric-chart/src/hooks/useBirthProcess.js +129 -42
- package/es/components/fabric-chart/src/hooks/useBirthProcessChart.d.ts +25 -0
- package/es/components/fabric-chart/src/hooks/useBirthProcessChart.js +151 -0
- package/es/components/fabric-chart/src/hooks/useCenter.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/useCenter.js +6 -7
- package/es/components/fabric-chart/src/hooks/useOther.js +3 -2
- package/es/components/fabric-chart/src/hooks/useTemperatureChart.js +1 -1
- package/es/components/fabric-chart/src/interface.d.ts +3 -1
- package/es/components/fabric-chart/src/utils/utils.d.ts +1 -1
- package/es/components/fabric-chart/src/utils/utils.js +7 -4
- package/es/components/form-config/index.d.ts +2 -2
- package/es/components/form-config/src/FormConfig.vue.d.ts +2 -2
- package/es/components/form-config/src/components/FormConfigDragDisplay.vue.d.ts +1 -1
- package/es/components/form-config/src/components/FormConfigDragDisplay.vue.js +1 -1
- package/es/components/form-config/src/components/renderer/ComplexNode.vue.d.ts +1 -1
- package/es/components/form-config/src/hooks/useSortalbeConfig.d.ts +2 -1
- package/es/components/form-config/src/hooks/useSortalbeConfig.js +2 -2
- package/es/components/form-render/src/hooks/useLowCodeReactions.js +19 -18
- package/es/components/form-render/src/types/index.d.ts +2 -2
- package/es/components/iho-table/src/constants/index.d.ts +2 -2
- package/es/components/iho-table/style/index.css +1 -1
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +1 -2
- package/es/components/index.js +0 -3
- package/es/components/scale-view/src/hooks/use-component.d.ts +30 -81
- package/es/components/select-label/index.d.ts +30 -81
- package/es/components/select-label/src/SelectLabel.vue.d.ts +30 -81
- package/es/components/select-person/index.d.ts +113 -41
- package/es/components/select-person/src/SelectPerson.vue.d.ts +76 -45
- package/es/shared/utils/tapable/AsyncParallelBailHook.js +1 -1
- package/es/shared/utils/tapable/AsyncSeriesWaterfallHook.js +2 -3
- package/es/shared/utils/tapable/Hook.d.ts +1 -1
- package/es/shared/utils/tapable/Hook.js +1 -1
- package/es/shared/utils/tapable/HookCodeFactory.js +3 -6
- package/es/shared/utils/tapable/SyncWaterfallHook.js +1 -2
- package/package.json +2 -2
- package/es/components/drag-layout/index.d.ts +0 -606
- package/es/components/drag-layout/index.js +0 -11
- package/es/components/drag-layout/src/DragFormLeftItem.vue.d.ts +0 -21
- package/es/components/drag-layout/src/DragFormLeftItem.vue.js +0 -122
- package/es/components/drag-layout/src/DragFormRightItem.vue.d.ts +0 -125
- package/es/components/drag-layout/src/DragFormRightItem.vue.js +0 -267
- package/es/components/drag-layout/src/DragLayout.vue.d.ts +0 -606
- package/es/components/drag-layout/src/DragLayout.vue.js +0 -662
- package/es/components/drag-layout/style/index.css +0 -1
- package/es/components/fabric-chart/src/BirthProcessChart.vue.d.ts +0 -181
|
@@ -1,10 +1,28 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { type TreeOption } from 'naive-ui';
|
|
3
|
+
import { AnyObject } from '../../../../es/shared/types';
|
|
4
|
+
declare type IKey = string | number;
|
|
5
|
+
declare type ITreeOption = TreeOption & AnyObject;
|
|
6
|
+
declare type IWordBook<T> = {
|
|
7
|
+
parent_id_obj: keyof T;
|
|
8
|
+
parent_name_obj: keyof T;
|
|
9
|
+
user_count_obj?: keyof T;
|
|
10
|
+
};
|
|
11
|
+
declare type IWordBookChild<T> = {
|
|
12
|
+
user_id_obj: keyof T;
|
|
13
|
+
user_name_obj: keyof T;
|
|
14
|
+
};
|
|
15
|
+
declare type ITag = {
|
|
16
|
+
key: IKey;
|
|
17
|
+
name: string;
|
|
18
|
+
};
|
|
1
19
|
declare const _default: import("vue").DefineComponent<{
|
|
2
20
|
defaultList: {
|
|
3
|
-
type:
|
|
21
|
+
type: PropType<(IKey | ITag)[]>;
|
|
4
22
|
default: () => never[];
|
|
5
23
|
};
|
|
6
24
|
data: {
|
|
7
|
-
type:
|
|
25
|
+
type: PropType<ITreeOption[]>;
|
|
8
26
|
default: () => never[];
|
|
9
27
|
};
|
|
10
28
|
searchPlaceholder: {
|
|
@@ -16,11 +34,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
16
34
|
default: string;
|
|
17
35
|
};
|
|
18
36
|
wordbook: {
|
|
19
|
-
type:
|
|
37
|
+
type: PropType<IWordBook<ITreeOption>>;
|
|
20
38
|
default: () => {};
|
|
21
39
|
};
|
|
22
40
|
wordbookChild: {
|
|
23
|
-
type:
|
|
41
|
+
type: PropType<IWordBookChild<ITreeOption>>;
|
|
24
42
|
default: () => {};
|
|
25
43
|
};
|
|
26
44
|
showCount: {
|
|
@@ -36,21 +54,21 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
36
54
|
default: boolean;
|
|
37
55
|
};
|
|
38
56
|
queryLoadChildData: {
|
|
39
|
-
type:
|
|
57
|
+
type: PropType<(node: TreeOption) => Promise<void>>;
|
|
40
58
|
default: undefined;
|
|
41
59
|
};
|
|
42
60
|
queryTreeSearch: {
|
|
43
|
-
type:
|
|
61
|
+
type: PropType<(keyWork: string) => Promise<Array<AnyObject>>>;
|
|
44
62
|
default: () => Promise<never[]>;
|
|
45
63
|
};
|
|
46
64
|
}, {
|
|
47
65
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
48
66
|
defaultList: {
|
|
49
|
-
type:
|
|
67
|
+
type: PropType<(IKey | ITag)[]>;
|
|
50
68
|
default: () => never[];
|
|
51
69
|
};
|
|
52
70
|
data: {
|
|
53
|
-
type:
|
|
71
|
+
type: PropType<ITreeOption[]>;
|
|
54
72
|
default: () => never[];
|
|
55
73
|
};
|
|
56
74
|
searchPlaceholder: {
|
|
@@ -62,11 +80,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
62
80
|
default: string;
|
|
63
81
|
};
|
|
64
82
|
wordbook: {
|
|
65
|
-
type:
|
|
83
|
+
type: PropType<IWordBook<ITreeOption>>;
|
|
66
84
|
default: () => {};
|
|
67
85
|
};
|
|
68
86
|
wordbookChild: {
|
|
69
|
-
type:
|
|
87
|
+
type: PropType<IWordBookChild<ITreeOption>>;
|
|
70
88
|
default: () => {};
|
|
71
89
|
};
|
|
72
90
|
showCount: {
|
|
@@ -82,11 +100,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
82
100
|
default: boolean;
|
|
83
101
|
};
|
|
84
102
|
queryLoadChildData: {
|
|
85
|
-
type:
|
|
103
|
+
type: PropType<(node: TreeOption) => Promise<void>>;
|
|
86
104
|
default: undefined;
|
|
87
105
|
};
|
|
88
106
|
queryTreeSearch: {
|
|
89
|
-
type:
|
|
107
|
+
type: PropType<(keyWork: string) => Promise<Array<AnyObject>>>;
|
|
90
108
|
default: () => Promise<never[]>;
|
|
91
109
|
};
|
|
92
110
|
}>> & {
|
|
@@ -95,29 +113,42 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
95
113
|
emit: (event: "check", ...args: any[]) => void;
|
|
96
114
|
keyword: import("vue").Ref<string>;
|
|
97
115
|
checkedAll: import("vue").Ref<boolean>;
|
|
98
|
-
checkedKeys: import("vue").Ref<
|
|
99
|
-
expandedKeys: import("vue").Ref<
|
|
100
|
-
treeData: import("vue").Ref<
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
116
|
+
checkedKeys: import("vue").Ref<IKey[]>;
|
|
117
|
+
expandedKeys: import("vue").Ref<IKey[]>;
|
|
118
|
+
treeData: import("vue").Ref<{
|
|
119
|
+
[x: string]: unknown;
|
|
120
|
+
key?: import("naive-ui/es/tree/src/interface").Key | undefined;
|
|
121
|
+
label?: string | undefined;
|
|
122
|
+
checkboxDisabled?: boolean | undefined;
|
|
123
|
+
disabled?: boolean | undefined;
|
|
124
|
+
isLeaf?: boolean | undefined;
|
|
125
|
+
children?: any[] | undefined;
|
|
126
|
+
prefix?: (() => import("vue").VNodeChild) | undefined;
|
|
127
|
+
suffix?: (() => import("vue").VNodeChild) | undefined;
|
|
128
|
+
}[]>;
|
|
129
|
+
tagData: import("vue").Ref<{
|
|
130
|
+
key: IKey;
|
|
131
|
+
name: string;
|
|
132
|
+
}[]>;
|
|
133
|
+
temp: ITreeOption[];
|
|
134
|
+
allCheckedKeys: IKey[];
|
|
104
135
|
isRemote: import("vue").ComputedRef<boolean>;
|
|
105
136
|
init: () => void;
|
|
106
|
-
setDisabled: (data:
|
|
137
|
+
setDisabled: (data: TreeOption) => void;
|
|
107
138
|
renderLabel: ({ option }: {
|
|
108
|
-
option:
|
|
109
|
-
}) =>
|
|
110
|
-
getLabelName: (option:
|
|
111
|
-
setAllCheckedKeys: (tree:
|
|
139
|
+
option: TreeOption;
|
|
140
|
+
}) => JSX.Element;
|
|
141
|
+
getLabelName: (option: TreeOption) => unknown;
|
|
142
|
+
setAllCheckedKeys: (tree: TreeOption[]) => void;
|
|
112
143
|
onSearch: () => Promise<void>;
|
|
113
|
-
setTreeCheckd: (tree:
|
|
114
|
-
checkedAllChange: (checked:
|
|
115
|
-
uniq: (arr:
|
|
116
|
-
setTagData: (tree:
|
|
117
|
-
updateTreeChecked: (keys:
|
|
144
|
+
setTreeCheckd: (tree: TreeOption[], checked: boolean) => void;
|
|
145
|
+
checkedAllChange: (checked: boolean) => void;
|
|
146
|
+
uniq: (arr: ITag[]) => ITag[];
|
|
147
|
+
setTagData: (tree: TreeOption[]) => void;
|
|
148
|
+
updateTreeChecked: (keys: Array<IKey>) => void;
|
|
118
149
|
setCheckedAll: () => void;
|
|
119
150
|
clearAll: () => void;
|
|
120
|
-
closeTag: (tag:
|
|
151
|
+
closeTag: (tag: ITag) => void;
|
|
121
152
|
NButton: any;
|
|
122
153
|
NInput: any;
|
|
123
154
|
NInputGroup: import("vue").DefineComponent<{
|
|
@@ -138,11 +169,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
138
169
|
NGrid: any;
|
|
139
170
|
NGi: import("vue").DefineComponent<{
|
|
140
171
|
readonly span: {
|
|
141
|
-
readonly type:
|
|
172
|
+
readonly type: PropType<string | number>;
|
|
142
173
|
readonly default: 1;
|
|
143
174
|
};
|
|
144
175
|
readonly offset: {
|
|
145
|
-
readonly type:
|
|
176
|
+
readonly type: PropType<string | number>;
|
|
146
177
|
readonly default: 0;
|
|
147
178
|
};
|
|
148
179
|
readonly suffix: BooleanConstructor;
|
|
@@ -165,11 +196,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
165
196
|
};
|
|
166
197
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
167
198
|
readonly span: {
|
|
168
|
-
readonly type:
|
|
199
|
+
readonly type: PropType<string | number>;
|
|
169
200
|
readonly default: 1;
|
|
170
201
|
};
|
|
171
202
|
readonly offset: {
|
|
172
|
-
readonly type:
|
|
203
|
+
readonly type: PropType<string | number>;
|
|
173
204
|
readonly default: 0;
|
|
174
205
|
};
|
|
175
206
|
readonly suffix: BooleanConstructor;
|
|
@@ -189,11 +220,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
189
220
|
CloseCircleSharp: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
190
221
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "check"[], "check", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
191
222
|
defaultList: {
|
|
192
|
-
type:
|
|
223
|
+
type: PropType<(IKey | ITag)[]>;
|
|
193
224
|
default: () => never[];
|
|
194
225
|
};
|
|
195
226
|
data: {
|
|
196
|
-
type:
|
|
227
|
+
type: PropType<ITreeOption[]>;
|
|
197
228
|
default: () => never[];
|
|
198
229
|
};
|
|
199
230
|
searchPlaceholder: {
|
|
@@ -205,11 +236,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
205
236
|
default: string;
|
|
206
237
|
};
|
|
207
238
|
wordbook: {
|
|
208
|
-
type:
|
|
239
|
+
type: PropType<IWordBook<ITreeOption>>;
|
|
209
240
|
default: () => {};
|
|
210
241
|
};
|
|
211
242
|
wordbookChild: {
|
|
212
|
-
type:
|
|
243
|
+
type: PropType<IWordBookChild<ITreeOption>>;
|
|
213
244
|
default: () => {};
|
|
214
245
|
};
|
|
215
246
|
showCount: {
|
|
@@ -225,26 +256,26 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
225
256
|
default: boolean;
|
|
226
257
|
};
|
|
227
258
|
queryLoadChildData: {
|
|
228
|
-
type:
|
|
259
|
+
type: PropType<(node: TreeOption) => Promise<void>>;
|
|
229
260
|
default: undefined;
|
|
230
261
|
};
|
|
231
262
|
queryTreeSearch: {
|
|
232
|
-
type:
|
|
263
|
+
type: PropType<(keyWork: string) => Promise<Array<AnyObject>>>;
|
|
233
264
|
default: () => Promise<never[]>;
|
|
234
265
|
};
|
|
235
266
|
}>> & {
|
|
236
267
|
onCheck?: ((...args: any[]) => any) | undefined;
|
|
237
268
|
}, {
|
|
238
|
-
data:
|
|
239
|
-
defaultList:
|
|
269
|
+
data: ITreeOption[];
|
|
270
|
+
defaultList: (IKey | ITag)[];
|
|
240
271
|
searchPlaceholder: string;
|
|
241
272
|
searchButtonText: string;
|
|
242
|
-
wordbook:
|
|
243
|
-
wordbookChild:
|
|
273
|
+
wordbook: IWordBook<ITreeOption>;
|
|
274
|
+
wordbookChild: IWordBookChild<ITreeOption>;
|
|
244
275
|
showCount: boolean;
|
|
245
276
|
showClear: boolean;
|
|
246
277
|
multiple: boolean;
|
|
247
|
-
queryLoadChildData:
|
|
248
|
-
queryTreeSearch:
|
|
278
|
+
queryLoadChildData: (node: TreeOption) => Promise<void>;
|
|
279
|
+
queryTreeSearch: (keyWork: string) => Promise<Array<AnyObject>>;
|
|
249
280
|
}>;
|
|
250
281
|
export default _default;
|
|
@@ -2,7 +2,7 @@ import './Hook.js';
|
|
|
2
2
|
import HookCodeFactory from './HookCodeFactory.js';
|
|
3
3
|
|
|
4
4
|
class AsyncSeriesWaterfallHookCodeFactory extends HookCodeFactory {
|
|
5
|
-
content({ onError, onResult
|
|
5
|
+
content({ onError, onResult }) {
|
|
6
6
|
return this.callTapsSeries({
|
|
7
7
|
onError: (i, err, next, doneBreak) => onError(err) + doneBreak(true),
|
|
8
8
|
onResult: (i, result, next) => {
|
|
@@ -11,8 +11,7 @@ class AsyncSeriesWaterfallHookCodeFactory extends HookCodeFactory {
|
|
|
11
11
|
`;
|
|
12
12
|
code += `${this._args[0]} = ${result};
|
|
13
13
|
`;
|
|
14
|
-
code +=
|
|
15
|
-
`;
|
|
14
|
+
code += "}\n";
|
|
16
15
|
code += next();
|
|
17
16
|
return code;
|
|
18
17
|
},
|
|
@@ -12,7 +12,7 @@ declare class Hook {
|
|
|
12
12
|
_promise: typeof PROMISE_DELEGATE;
|
|
13
13
|
promise: typeof PROMISE_DELEGATE;
|
|
14
14
|
_x: any;
|
|
15
|
-
compile(
|
|
15
|
+
compile(): void;
|
|
16
16
|
_createCall(type: any): void;
|
|
17
17
|
_tap(type: any, options: any, fn: any): void;
|
|
18
18
|
tap(options: any, fn: any): void;
|
|
@@ -293,8 +293,7 @@ class HookCodeFactory {
|
|
|
293
293
|
code += `function _next${i}() {
|
|
294
294
|
`;
|
|
295
295
|
code += current();
|
|
296
|
-
code +=
|
|
297
|
-
`;
|
|
296
|
+
code += "}\n";
|
|
298
297
|
current = () => `${somethingReturns ? "return " : ""}_next${i}();
|
|
299
298
|
`;
|
|
300
299
|
}
|
|
@@ -348,11 +347,9 @@ class HookCodeFactory {
|
|
|
348
347
|
if (!syncOnly)
|
|
349
348
|
code2 += "if(_loopAsync) _looper();\n";
|
|
350
349
|
code2 += doneBreak(true);
|
|
351
|
-
code2 +=
|
|
352
|
-
`;
|
|
350
|
+
code2 += "} else {\n";
|
|
353
351
|
code2 += next();
|
|
354
|
-
code2 +=
|
|
355
|
-
`;
|
|
352
|
+
code2 += "}\n";
|
|
356
353
|
return code2;
|
|
357
354
|
},
|
|
358
355
|
onDone: onDone && (() => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cnhis-design-vue",
|
|
3
|
-
"version": "3.1.37
|
|
3
|
+
"version": "3.1.37",
|
|
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": "47d539ee769b9f51d6883ba88c687b89993e2253"
|
|
65
65
|
}
|