@kengic/vue 0.23.1 → 0.23.3-beta.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +0 -2
- package/dist/index.css +1 -1
- package/dist/kengic-vue.js +7559 -7122
- package/dist/setting-outlined.7f72790b.mjs +8 -0
- package/dist/src/apis/WMS/Controllers/DescriptionController/List.d.ts +2 -0
- package/dist/src/apis/WMS/Controllers/WhController/ListVO.d.ts +2 -0
- package/dist/src/apis/WMS/models.d.ts +9 -9
- package/dist/src/components/KgButton/KgButton.Item.d.ts +15 -15
- package/dist/src/components/KgButton/KgButton.Item.data.d.ts +15 -15
- package/dist/src/components/KgButton/components/KgButton.Copy.d.ts +14 -14
- package/dist/src/components/KgButton/components/KgButton.Create.d.ts +14 -14
- package/dist/src/components/KgButton/components/KgButton.Delete.d.ts +15 -15
- package/dist/src/components/KgButton/components/KgButton.Export.d.ts +14 -14
- package/dist/src/components/KgButton/components/KgButton.ExportTemplate.d.ts +14 -14
- package/dist/src/components/KgButton/components/KgButton.Import.d.ts +14 -14
- package/dist/src/components/KgButton/components/KgButton.Other.d.ts +15 -15
- package/dist/src/components/KgButton/components/KgButton.Search.d.ts +15 -15
- package/dist/src/components/KgButton/components/KgButton.Update.d.ts +14 -14
- package/dist/src/components/KgForm/KgForm.d.ts +3 -3
- package/dist/src/components/KgForm/index.d.ts +4 -4
- package/dist/src/components/KgModal/KgModal.d.ts +105 -21
- package/dist/src/components/KgModal/KgModal.service.d.ts +1 -1
- package/dist/src/components/KgModal/components/KgModal.HeaderButtons.d.ts +18 -0
- package/dist/src/components/KgResizable/KgResizable.d.ts +4 -4
- package/dist/src/components/KgSearch/index.hooks.d.ts +1 -7
- package/dist/src/components/KgSearch/index.store.d.ts +3 -3
- package/dist/src/components/KgSubmit/index.hooks.d.ts +4 -4
- package/dist/src/components/KgSubmit/index.store.d.ts +9 -2
- package/dist/src/components/KgVar/index.hooks.d.ts +7 -1
- package/dist/src/components/KgVar/index.store.d.ts +5 -1
- package/dist/src/components/KgVarConfig/components/KgVarConfig.Modal.d.ts +1 -1
- package/dist/src/components/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButton.d.ts +6 -23
- package/dist/src/components/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButtonConfig.d.ts +0 -16
- package/dist/src/components/KgVarConfig/components/button/KgVarConfig.Modal.Button.d.ts +4 -21
- package/dist/src/components/KgVarConfig/index.d.ts +1 -0
- package/dist/src/components/KgVarConfig/index.hooks.d.ts +17 -0
- package/dist/src/components/KgVarConfig/index.store.d.ts +11 -5
- package/dist/src/components/KgVarConfig/index.vm.d.ts +8 -0
- package/dist/src/consts/i18n/en.d.ts +21 -4
- package/dist/src/consts/i18n/zh_CN.d.ts +21 -4
- package/dist/src/consts/index.vm.d.ts +74 -64
- package/dist/src/helpers/ant-design-vue.d.ts +1 -1
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Button.d.ts +0 -1
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.store.d.ts +111 -192
- package/dist/src/pages/KgPageDda/{index.const.d.ts → index.vm.d.ts} +1 -0
- package/dist/src/services/http-client.d.ts +6 -4
- package/dist/src/utils/kg-var.util.d.ts +31 -1
- package/dist/src/utils/kg.util.d.ts +38 -35
- package/package.json +1 -1
@@ -1,37 +1,37 @@
|
|
1
1
|
import { KG_BUTTON_TYPE } from '../../../consts';
|
2
2
|
declare const _default: import("vue").DefineComponent<{
|
3
3
|
kgButton: import("vue").PropType<import("../../..").VarButton>;
|
4
|
-
|
5
|
-
|
6
|
-
kgPrimary: {
|
4
|
+
kgColor: import("vue").PropType<import("../../../consts").KG__VAR_BUTTON__COLOR | null>;
|
5
|
+
kgDisabled: {
|
7
6
|
type: import("vue").PropType<boolean | null | undefined>;
|
8
7
|
default: undefined;
|
9
8
|
};
|
10
9
|
kgIcon: import("vue").PropType<string | null>;
|
11
|
-
|
12
|
-
|
13
|
-
kgDisabled: {
|
10
|
+
kgLoading: import("vue").PropType<boolean>;
|
11
|
+
kgPrimary: {
|
14
12
|
type: import("vue").PropType<boolean | null | undefined>;
|
15
13
|
default: undefined;
|
16
14
|
};
|
17
|
-
|
15
|
+
kgText: import("vue").PropType<string | null>;
|
16
|
+
kgType: import("vue").PropType<KG_BUTTON_TYPE | null>;
|
17
|
+
kgVarName: import("vue").PropType<string | null>;
|
18
18
|
onKgClick: import("vue").PropType<(args?: any) => Promise<boolean>>;
|
19
19
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
20
20
|
kgButton: import("vue").PropType<import("../../..").VarButton>;
|
21
|
-
|
22
|
-
|
23
|
-
kgPrimary: {
|
21
|
+
kgColor: import("vue").PropType<import("../../../consts").KG__VAR_BUTTON__COLOR | null>;
|
22
|
+
kgDisabled: {
|
24
23
|
type: import("vue").PropType<boolean | null | undefined>;
|
25
24
|
default: undefined;
|
26
25
|
};
|
27
26
|
kgIcon: import("vue").PropType<string | null>;
|
28
|
-
|
29
|
-
|
30
|
-
kgDisabled: {
|
27
|
+
kgLoading: import("vue").PropType<boolean>;
|
28
|
+
kgPrimary: {
|
31
29
|
type: import("vue").PropType<boolean | null | undefined>;
|
32
30
|
default: undefined;
|
33
31
|
};
|
34
|
-
|
32
|
+
kgText: import("vue").PropType<string | null>;
|
33
|
+
kgType: import("vue").PropType<KG_BUTTON_TYPE | null>;
|
34
|
+
kgVarName: import("vue").PropType<string | null>;
|
35
35
|
onKgClick: import("vue").PropType<(args?: any) => Promise<boolean>>;
|
36
36
|
}>>, {
|
37
37
|
kgDisabled: boolean | null | undefined;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { ExtractPropTypes } from 'vue';
|
2
2
|
import './KgForm.less';
|
3
3
|
export declare const getProps: () => {
|
4
|
-
layout: import("vue").PropType<"
|
4
|
+
layout: import("vue").PropType<"inline" | "horizontal" | "vertical">;
|
5
5
|
labelCol: {
|
6
6
|
type: import("vue").PropType<Partial<ExtractPropTypes<{
|
7
7
|
span: (NumberConstructor | StringConstructor)[];
|
@@ -137,7 +137,7 @@ export declare const getProps: () => {
|
|
137
137
|
};
|
138
138
|
export declare type IKgFormProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
139
139
|
declare const _default: import("vue").DefineComponent<{
|
140
|
-
layout: import("vue").PropType<"
|
140
|
+
layout: import("vue").PropType<"inline" | "horizontal" | "vertical">;
|
141
141
|
labelCol: {
|
142
142
|
type: import("vue").PropType<Partial<ExtractPropTypes<{
|
143
143
|
span: (NumberConstructor | StringConstructor)[];
|
@@ -271,7 +271,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
271
271
|
type: import("vue").PropType<((name: string | number | string[] | number[], status: boolean, errors: string[] | null) => void) | undefined>;
|
272
272
|
};
|
273
273
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
274
|
-
layout: import("vue").PropType<"
|
274
|
+
layout: import("vue").PropType<"inline" | "horizontal" | "vertical">;
|
275
275
|
labelCol: {
|
276
276
|
type: import("vue").PropType<Partial<ExtractPropTypes<{
|
277
277
|
span: (NumberConstructor | StringConstructor)[];
|
@@ -10,7 +10,7 @@ declare const _default: {
|
|
10
10
|
validateMessages: import("ant-design-vue/es/form/interface").ValidateMessages;
|
11
11
|
validateOnRuleChange: boolean;
|
12
12
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
13
|
-
layout: import("vue").PropType<"
|
13
|
+
layout: import("vue").PropType<"inline" | "horizontal" | "vertical">;
|
14
14
|
labelCol: {
|
15
15
|
type: import("vue").PropType<Partial<import("vue").ExtractPropTypes<{
|
16
16
|
span: (NumberConstructor | StringConstructor)[];
|
@@ -158,7 +158,7 @@ declare const _default: {
|
|
158
158
|
$emit: (event: string, ...args: any[]) => void;
|
159
159
|
$el: any;
|
160
160
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
161
|
-
layout: import("vue").PropType<"
|
161
|
+
layout: import("vue").PropType<"inline" | "horizontal" | "vertical">;
|
162
162
|
labelCol: {
|
163
163
|
type: import("vue").PropType<Partial<import("vue").ExtractPropTypes<{
|
164
164
|
span: (NumberConstructor | StringConstructor)[];
|
@@ -318,7 +318,7 @@ declare const _default: {
|
|
318
318
|
$nextTick: typeof import("vue").nextTick;
|
319
319
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
320
320
|
} & Readonly<import("vue").ExtractPropTypes<{
|
321
|
-
layout: import("vue").PropType<"
|
321
|
+
layout: import("vue").PropType<"inline" | "horizontal" | "vertical">;
|
322
322
|
labelCol: {
|
323
323
|
type: import("vue").PropType<Partial<import("vue").ExtractPropTypes<{
|
324
324
|
span: (NumberConstructor | StringConstructor)[];
|
@@ -456,7 +456,7 @@ declare const _default: {
|
|
456
456
|
__isTeleport?: undefined;
|
457
457
|
__isSuspense?: undefined;
|
458
458
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
459
|
-
layout: import("vue").PropType<"
|
459
|
+
layout: import("vue").PropType<"inline" | "horizontal" | "vertical">;
|
460
460
|
labelCol: {
|
461
461
|
type: import("vue").PropType<Partial<import("vue").ExtractPropTypes<{
|
462
462
|
span: (NumberConstructor | StringConstructor)[];
|
@@ -3,6 +3,8 @@ import './KgModal.less';
|
|
3
3
|
export declare const getProps: () => {
|
4
4
|
/**
|
5
5
|
* 高度是否撑满屏幕.
|
6
|
+
*
|
7
|
+
* @default true
|
6
8
|
*/
|
7
9
|
kgFullHeight: {
|
8
10
|
type: PropType<boolean>;
|
@@ -10,6 +12,8 @@ export declare const getProps: () => {
|
|
10
12
|
};
|
11
13
|
/**
|
12
14
|
* 是否默认全屏.
|
15
|
+
*
|
16
|
+
* @default false
|
13
17
|
*/
|
14
18
|
kgIsDefaultFullscreen: {
|
15
19
|
type: PropType<boolean>;
|
@@ -17,6 +21,8 @@ export declare const getProps: () => {
|
|
17
21
|
};
|
18
22
|
/**
|
19
23
|
* 是否可以拖拽改变位置.
|
24
|
+
*
|
25
|
+
* @default true
|
20
26
|
*/
|
21
27
|
kgIsDragToMove: {
|
22
28
|
type: PropType<boolean>;
|
@@ -24,42 +30,64 @@ export declare const getProps: () => {
|
|
24
30
|
};
|
25
31
|
/**
|
26
32
|
* 是否可以拖拽改变大小.
|
33
|
+
*
|
34
|
+
* @default true
|
27
35
|
*/
|
28
36
|
kgIsDragToResize: {
|
29
37
|
type: PropType<boolean>;
|
30
38
|
default: boolean;
|
31
39
|
};
|
32
|
-
/**
|
40
|
+
/**
|
41
|
+
* 是否显示全屏按钮.
|
42
|
+
*
|
43
|
+
* @default true
|
44
|
+
*/
|
33
45
|
kgIsShowFullscreenButton: {
|
34
46
|
type: PropType<boolean>;
|
35
47
|
default: boolean;
|
36
48
|
};
|
37
|
-
/**
|
49
|
+
/**
|
50
|
+
* 最大高度.
|
51
|
+
*/
|
38
52
|
kgMaxHeight: {
|
39
53
|
type: PropType<number>;
|
40
54
|
default: undefined;
|
41
55
|
};
|
42
|
-
/**
|
56
|
+
/**
|
57
|
+
* 最大宽度.
|
58
|
+
*/
|
43
59
|
kgMaxWidth: {
|
44
60
|
type: PropType<number>;
|
45
61
|
default: undefined;
|
46
62
|
};
|
47
|
-
/**
|
63
|
+
/**
|
64
|
+
* 最小高度.
|
65
|
+
*/
|
48
66
|
kgMinHeight: {
|
49
67
|
type: PropType<number>;
|
50
68
|
default: undefined;
|
51
69
|
};
|
52
|
-
/**
|
70
|
+
/**
|
71
|
+
* 最小宽度.
|
72
|
+
*/
|
53
73
|
kgMinWidth: {
|
54
74
|
type: PropType<number>;
|
55
75
|
default: undefined;
|
56
76
|
};
|
57
|
-
/**
|
77
|
+
/**
|
78
|
+
* 是否显示取消按钮.
|
79
|
+
*
|
80
|
+
* @default true
|
81
|
+
*/
|
58
82
|
kgShowCancelButton: {
|
59
83
|
type: PropType<boolean>;
|
60
84
|
default: boolean;
|
61
85
|
};
|
62
|
-
/**
|
86
|
+
/**
|
87
|
+
* 是否显示确定按钮.
|
88
|
+
*
|
89
|
+
* @default true
|
90
|
+
*/
|
63
91
|
kgShowOkButton: {
|
64
92
|
type: PropType<boolean>;
|
65
93
|
default: boolean;
|
@@ -239,6 +267,8 @@ export declare type IKgModalProps = Partial<ExtractPropTypes<ReturnType<typeof g
|
|
239
267
|
declare const _default: import("vue").DefineComponent<{
|
240
268
|
/**
|
241
269
|
* 高度是否撑满屏幕.
|
270
|
+
*
|
271
|
+
* @default true
|
242
272
|
*/
|
243
273
|
kgFullHeight: {
|
244
274
|
type: PropType<boolean>;
|
@@ -246,6 +276,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
246
276
|
};
|
247
277
|
/**
|
248
278
|
* 是否默认全屏.
|
279
|
+
*
|
280
|
+
* @default false
|
249
281
|
*/
|
250
282
|
kgIsDefaultFullscreen: {
|
251
283
|
type: PropType<boolean>;
|
@@ -253,6 +285,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
253
285
|
};
|
254
286
|
/**
|
255
287
|
* 是否可以拖拽改变位置.
|
288
|
+
*
|
289
|
+
* @default true
|
256
290
|
*/
|
257
291
|
kgIsDragToMove: {
|
258
292
|
type: PropType<boolean>;
|
@@ -260,42 +294,64 @@ declare const _default: import("vue").DefineComponent<{
|
|
260
294
|
};
|
261
295
|
/**
|
262
296
|
* 是否可以拖拽改变大小.
|
297
|
+
*
|
298
|
+
* @default true
|
263
299
|
*/
|
264
300
|
kgIsDragToResize: {
|
265
301
|
type: PropType<boolean>;
|
266
302
|
default: boolean;
|
267
303
|
};
|
268
|
-
/**
|
304
|
+
/**
|
305
|
+
* 是否显示全屏按钮.
|
306
|
+
*
|
307
|
+
* @default true
|
308
|
+
*/
|
269
309
|
kgIsShowFullscreenButton: {
|
270
310
|
type: PropType<boolean>;
|
271
311
|
default: boolean;
|
272
312
|
};
|
273
|
-
/**
|
313
|
+
/**
|
314
|
+
* 最大高度.
|
315
|
+
*/
|
274
316
|
kgMaxHeight: {
|
275
317
|
type: PropType<number>;
|
276
318
|
default: undefined;
|
277
319
|
};
|
278
|
-
/**
|
320
|
+
/**
|
321
|
+
* 最大宽度.
|
322
|
+
*/
|
279
323
|
kgMaxWidth: {
|
280
324
|
type: PropType<number>;
|
281
325
|
default: undefined;
|
282
326
|
};
|
283
|
-
/**
|
327
|
+
/**
|
328
|
+
* 最小高度.
|
329
|
+
*/
|
284
330
|
kgMinHeight: {
|
285
331
|
type: PropType<number>;
|
286
332
|
default: undefined;
|
287
333
|
};
|
288
|
-
/**
|
334
|
+
/**
|
335
|
+
* 最小宽度.
|
336
|
+
*/
|
289
337
|
kgMinWidth: {
|
290
338
|
type: PropType<number>;
|
291
339
|
default: undefined;
|
292
340
|
};
|
293
|
-
/**
|
341
|
+
/**
|
342
|
+
* 是否显示取消按钮.
|
343
|
+
*
|
344
|
+
* @default true
|
345
|
+
*/
|
294
346
|
kgShowCancelButton: {
|
295
347
|
type: PropType<boolean>;
|
296
348
|
default: boolean;
|
297
349
|
};
|
298
|
-
/**
|
350
|
+
/**
|
351
|
+
* 是否显示确定按钮.
|
352
|
+
*
|
353
|
+
* @default true
|
354
|
+
*/
|
299
355
|
kgShowOkButton: {
|
300
356
|
type: PropType<boolean>;
|
301
357
|
default: boolean;
|
@@ -473,6 +529,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
473
529
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
474
530
|
/**
|
475
531
|
* 高度是否撑满屏幕.
|
532
|
+
*
|
533
|
+
* @default true
|
476
534
|
*/
|
477
535
|
kgFullHeight: {
|
478
536
|
type: PropType<boolean>;
|
@@ -480,6 +538,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
480
538
|
};
|
481
539
|
/**
|
482
540
|
* 是否默认全屏.
|
541
|
+
*
|
542
|
+
* @default false
|
483
543
|
*/
|
484
544
|
kgIsDefaultFullscreen: {
|
485
545
|
type: PropType<boolean>;
|
@@ -487,6 +547,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
487
547
|
};
|
488
548
|
/**
|
489
549
|
* 是否可以拖拽改变位置.
|
550
|
+
*
|
551
|
+
* @default true
|
490
552
|
*/
|
491
553
|
kgIsDragToMove: {
|
492
554
|
type: PropType<boolean>;
|
@@ -494,42 +556,64 @@ declare const _default: import("vue").DefineComponent<{
|
|
494
556
|
};
|
495
557
|
/**
|
496
558
|
* 是否可以拖拽改变大小.
|
559
|
+
*
|
560
|
+
* @default true
|
497
561
|
*/
|
498
562
|
kgIsDragToResize: {
|
499
563
|
type: PropType<boolean>;
|
500
564
|
default: boolean;
|
501
565
|
};
|
502
|
-
/**
|
566
|
+
/**
|
567
|
+
* 是否显示全屏按钮.
|
568
|
+
*
|
569
|
+
* @default true
|
570
|
+
*/
|
503
571
|
kgIsShowFullscreenButton: {
|
504
572
|
type: PropType<boolean>;
|
505
573
|
default: boolean;
|
506
574
|
};
|
507
|
-
/**
|
575
|
+
/**
|
576
|
+
* 最大高度.
|
577
|
+
*/
|
508
578
|
kgMaxHeight: {
|
509
579
|
type: PropType<number>;
|
510
580
|
default: undefined;
|
511
581
|
};
|
512
|
-
/**
|
582
|
+
/**
|
583
|
+
* 最大宽度.
|
584
|
+
*/
|
513
585
|
kgMaxWidth: {
|
514
586
|
type: PropType<number>;
|
515
587
|
default: undefined;
|
516
588
|
};
|
517
|
-
/**
|
589
|
+
/**
|
590
|
+
* 最小高度.
|
591
|
+
*/
|
518
592
|
kgMinHeight: {
|
519
593
|
type: PropType<number>;
|
520
594
|
default: undefined;
|
521
595
|
};
|
522
|
-
/**
|
596
|
+
/**
|
597
|
+
* 最小宽度.
|
598
|
+
*/
|
523
599
|
kgMinWidth: {
|
524
600
|
type: PropType<number>;
|
525
601
|
default: undefined;
|
526
602
|
};
|
527
|
-
/**
|
603
|
+
/**
|
604
|
+
* 是否显示取消按钮.
|
605
|
+
*
|
606
|
+
* @default true
|
607
|
+
*/
|
528
608
|
kgShowCancelButton: {
|
529
609
|
type: PropType<boolean>;
|
530
610
|
default: boolean;
|
531
611
|
};
|
532
|
-
/**
|
612
|
+
/**
|
613
|
+
* 是否显示确定按钮.
|
614
|
+
*
|
615
|
+
* @default true
|
616
|
+
*/
|
533
617
|
kgShowOkButton: {
|
534
618
|
type: PropType<boolean>;
|
535
619
|
default: boolean;
|
@@ -28,6 +28,6 @@ export declare function useDragToResize(param: {
|
|
28
28
|
*/
|
29
29
|
onMousedown: (param: {
|
30
30
|
event: MouseEvent;
|
31
|
-
handleType: "
|
31
|
+
handleType: "left" | "right" | "top" | "bottom" | "top-left" | "top-right" | "bottom-right" | "bottom-left";
|
32
32
|
}) => void;
|
33
33
|
};
|
@@ -2,6 +2,8 @@ import { PropType } from 'vue';
|
|
2
2
|
export declare const getProps: () => {
|
3
3
|
/**
|
4
4
|
* 是否默认全屏.
|
5
|
+
*
|
6
|
+
* @default false
|
5
7
|
*/
|
6
8
|
kgIsDefaultFullscreen: {
|
7
9
|
type: PropType<boolean>;
|
@@ -9,6 +11,8 @@ export declare const getProps: () => {
|
|
9
11
|
};
|
10
12
|
/**
|
11
13
|
* 是否显示关闭按钮.
|
14
|
+
*
|
15
|
+
* @default true
|
12
16
|
*/
|
13
17
|
kgIsShowCloseButton: {
|
14
18
|
type: PropType<boolean>;
|
@@ -16,6 +20,8 @@ export declare const getProps: () => {
|
|
16
20
|
};
|
17
21
|
/**
|
18
22
|
* 是否显示全屏按钮.
|
23
|
+
*
|
24
|
+
* @default true
|
19
25
|
*/
|
20
26
|
kgIsShowFullscreenButton: {
|
21
27
|
type: PropType<boolean>;
|
@@ -25,6 +31,8 @@ export declare const getProps: () => {
|
|
25
31
|
declare const _default: import("vue").DefineComponent<{
|
26
32
|
/**
|
27
33
|
* 是否默认全屏.
|
34
|
+
*
|
35
|
+
* @default false
|
28
36
|
*/
|
29
37
|
kgIsDefaultFullscreen: {
|
30
38
|
type: PropType<boolean>;
|
@@ -32,6 +40,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
32
40
|
};
|
33
41
|
/**
|
34
42
|
* 是否显示关闭按钮.
|
43
|
+
*
|
44
|
+
* @default true
|
35
45
|
*/
|
36
46
|
kgIsShowCloseButton: {
|
37
47
|
type: PropType<boolean>;
|
@@ -39,6 +49,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
39
49
|
};
|
40
50
|
/**
|
41
51
|
* 是否显示全屏按钮.
|
52
|
+
*
|
53
|
+
* @default true
|
42
54
|
*/
|
43
55
|
kgIsShowFullscreenButton: {
|
44
56
|
type: PropType<boolean>;
|
@@ -47,6 +59,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
47
59
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
48
60
|
/**
|
49
61
|
* 是否默认全屏.
|
62
|
+
*
|
63
|
+
* @default false
|
50
64
|
*/
|
51
65
|
kgIsDefaultFullscreen: {
|
52
66
|
type: PropType<boolean>;
|
@@ -54,6 +68,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
54
68
|
};
|
55
69
|
/**
|
56
70
|
* 是否显示关闭按钮.
|
71
|
+
*
|
72
|
+
* @default true
|
57
73
|
*/
|
58
74
|
kgIsShowCloseButton: {
|
59
75
|
type: PropType<boolean>;
|
@@ -61,6 +77,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
61
77
|
};
|
62
78
|
/**
|
63
79
|
* 是否显示全屏按钮.
|
80
|
+
*
|
81
|
+
* @default true
|
64
82
|
*/
|
65
83
|
kgIsShowFullscreenButton: {
|
66
84
|
type: PropType<boolean>;
|
@@ -32,7 +32,7 @@ export declare const getProps: () => {
|
|
32
32
|
};
|
33
33
|
/** 拖拽条的位置. */
|
34
34
|
kgType: {
|
35
|
-
type: PropType<"
|
35
|
+
type: PropType<"left" | "right" | "top" | "bottom">;
|
36
36
|
default: string;
|
37
37
|
};
|
38
38
|
/** 当前宽度. */
|
@@ -76,7 +76,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
76
76
|
};
|
77
77
|
/** 拖拽条的位置. */
|
78
78
|
kgType: {
|
79
|
-
type: PropType<"
|
79
|
+
type: PropType<"left" | "right" | "top" | "bottom">;
|
80
80
|
default: string;
|
81
81
|
};
|
82
82
|
/** 当前宽度. */
|
@@ -118,7 +118,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
118
118
|
};
|
119
119
|
/** 拖拽条的位置. */
|
120
120
|
kgType: {
|
121
|
-
type: PropType<"
|
121
|
+
type: PropType<"left" | "right" | "top" | "bottom">;
|
122
122
|
default: string;
|
123
123
|
};
|
124
124
|
/** 当前宽度. */
|
@@ -137,7 +137,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
137
137
|
kgMinHeight: number;
|
138
138
|
kgMinWidth: number;
|
139
139
|
kgHeight: number;
|
140
|
-
kgType: "
|
140
|
+
kgType: "left" | "right" | "top" | "bottom";
|
141
141
|
kgWidth: number;
|
142
142
|
}>;
|
143
143
|
export default _default;
|
@@ -16,7 +16,7 @@ export declare type IUseKgSearch = {
|
|
16
16
|
/**
|
17
17
|
* 高级查询的操作符表单数据对象.
|
18
18
|
*/
|
19
|
-
|
19
|
+
dynamicQueryOperatorModel: ComputedRef<ReturnType<IKgSearchStore['getDynamicQueryOperatorModel']>>;
|
20
20
|
/**
|
21
21
|
* 界面标识.
|
22
22
|
*/
|
@@ -51,12 +51,6 @@ export declare type IUseKgSearch = {
|
|
51
51
|
* @param once 是否只会触发一次. 默认为 undefined.
|
52
52
|
*/
|
53
53
|
onSearch(cb: IKgSearchSearchEventListener, once?: boolean): IRemoveEventListenerHandler;
|
54
|
-
/**
|
55
|
-
* 高级查询的操作符表单数据对象.
|
56
|
-
*
|
57
|
-
* @deprecated 请使用 {@link dynamicOperatorModel}
|
58
|
-
*/
|
59
|
-
operatorModel: ComputedRef<ReturnType<IKgSearchStore['getDynamicOperatorModel']>>;
|
60
54
|
/** 重置. */
|
61
55
|
reset(): void;
|
62
56
|
/** 查询. */
|
@@ -51,7 +51,7 @@ export interface IUseKgSearchStoreGetters {
|
|
51
51
|
/**
|
52
52
|
* @param formID 界面标识.
|
53
53
|
*/
|
54
|
-
|
54
|
+
getDynamicQueryOperatorModel(): (formID: string | null | undefined) => Record<string, string> | null;
|
55
55
|
/**
|
56
56
|
* @param formID 界面标识.
|
57
57
|
*/
|
@@ -101,7 +101,7 @@ export interface IUseKgSearchStoreActions {
|
|
101
101
|
* @param formID 界面标识.
|
102
102
|
* @param properties 要修改的部分属性.
|
103
103
|
*/
|
104
|
-
|
104
|
+
patchDynamicQueryOperatorModel(formID: string | null | undefined, properties?: Record<string, any> | null): Promise<void>;
|
105
105
|
/**
|
106
106
|
* 修改查询字段的表单数据的部分属性.
|
107
107
|
*
|
@@ -116,7 +116,7 @@ export interface IUseKgSearchStoreActions {
|
|
116
116
|
* @param cb 回调函数.
|
117
117
|
*/
|
118
118
|
removeEventListener(formID: string, event: IKgSearchEvent, cb?: IKgSearchEventListener): void;
|
119
|
-
|
119
|
+
setDynamicQueryOperatorModel(formID: string | null | undefined, model?: Record<string, any> | null): void;
|
120
120
|
/**
|
121
121
|
* 设置表单数据.
|
122
122
|
* @param formID 界面标识.
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { FormInstance } from 'ant-design-vue';
|
2
2
|
import { ComputedRef, Ref } from 'vue';
|
3
3
|
import { VarSubmitConfig, VarSubmitDetail } from '../../apis/WMS/models';
|
4
|
-
import { IKgVarSubmitConfigProperties, IRemoveEventListenerHandler, KG__VAR_SUBMIT_CONFIG__DISPLAY_TYPE, KG__VAR_SUBMIT_CONFIG__LAYOUT, KG_BUTTON_TYPE,
|
4
|
+
import { IKgVarSubmitConfigProperties, IRemoveEventListenerHandler, KG__VAR_SUBMIT_CONFIG__DISPLAY_TYPE, KG__VAR_SUBMIT_CONFIG__LAYOUT, KG_BUTTON_TYPE, KG__VAR_SUBMIT_CONFIG_LABEL_COLUMN_UNIT } from '../../consts';
|
5
5
|
import { IKgSubmitAfterValidateEventListener, IKgSubmitBeforeOkEventListener, IKgSubmitBeforeOpenEventListener, IKgSubmitBeforeRequestEventListener, IKgSubmitCloseEventListener, IKgSubmitErrorEventListener, IKgSubmitOkEventListener, IKgSubmitOpenEventListener, IKgSubmitStore } from './index.store';
|
6
6
|
export interface IUseKgSubmit {
|
7
7
|
/**
|
@@ -61,7 +61,7 @@ export interface IUseKgSubmit {
|
|
61
61
|
*/
|
62
62
|
formRef: Ref<FormInstance | null>;
|
63
63
|
/**
|
64
|
-
*
|
64
|
+
* 自定义的表单验证规则.
|
65
65
|
*/
|
66
66
|
formRules: ReturnType<IKgSubmitStore['getFormRules']>;
|
67
67
|
/**
|
@@ -197,7 +197,7 @@ export interface IUseKgSubmit {
|
|
197
197
|
onOpen(cb: IKgSubmitOpenEventListener, once?: boolean): IRemoveEventListenerHandler;
|
198
198
|
/**
|
199
199
|
* <p>修改某个「提交表单字段」的部分属性.</p>
|
200
|
-
* <p>如果参数 param.buttonType 和 param.buttonVarName 都为 undefined,
|
200
|
+
* <p>如果参数 param.buttonType 和 param.buttonVarName 都为 undefined, 表示修改的是「当前按钮」的「提交表单字段」.</p>
|
201
201
|
*
|
202
202
|
* @param param.buttonType <p>按钮的类型, 对应的是 {@link VarButton.typ} 属性, 取值请参考 {@link KG_BUTTON_TYPE}.</p>
|
203
203
|
* @param param.buttonVarName <p>按钮的变量名称, 对应的是 {@link VarButton.var_nam} 属性.</p>
|
@@ -227,7 +227,7 @@ export interface IUseKgSubmit {
|
|
227
227
|
/**
|
228
228
|
* <p>「查询按钮」的「提交表单配置」的文本宽度单位.</p>
|
229
229
|
*/
|
230
|
-
searchVarSubmitConfig$LabelColumnUnit: ComputedRef<
|
230
|
+
searchVarSubmitConfig$LabelColumnUnit: ComputedRef<KG__VAR_SUBMIT_CONFIG_LABEL_COLUMN_UNIT>;
|
231
231
|
/**
|
232
232
|
* <p>「查询按钮」的「提交表单配置」的布局.</p>
|
233
233
|
*/
|
@@ -42,20 +42,27 @@ export declare type IKgSubmitOpenEventListenerParameter = {
|
|
42
42
|
};
|
43
43
|
export declare type IKgSubmitOpenEventListener = ((param: IKgSubmitOpenEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
44
44
|
export declare type IKgSubmitBeforeOkEventListenerParameter = {
|
45
|
+
/** @deprecated 已弃用 */
|
45
46
|
isCopying: boolean | null;
|
47
|
+
/** @deprecated 已弃用 */
|
46
48
|
isCreating: boolean | null;
|
49
|
+
/** @deprecated 已弃用 */
|
47
50
|
isDeleting: boolean | null;
|
51
|
+
/** @deprecated 已弃用 */
|
48
52
|
isUpdating: boolean | null;
|
49
53
|
/**
|
50
54
|
* 表单数据对象.
|
55
|
+
* @deprecated 已弃用, 请使用 {@link IUseKgSubmit.formModel}
|
51
56
|
*/
|
52
57
|
model: Ref<Record<string, any>>;
|
53
58
|
/**
|
54
59
|
* 表格当前勾选的唯一行.
|
60
|
+
* @deprecated 已弃用, 请使用 {@link IUseKgTable.selectedRow}
|
55
61
|
*/
|
56
62
|
row: IKgTableRow | null;
|
57
63
|
/**
|
58
64
|
* 表单验证规则.
|
65
|
+
* @deprecated 已弃用, 请使用 {@link IUseKgSubmit.formRules}
|
59
66
|
*/
|
60
67
|
rules: Ref<Record<string, RuleObject[]>>;
|
61
68
|
};
|
@@ -121,8 +128,8 @@ export interface IUseKgSubmitStoreState {
|
|
121
128
|
/** 表单对象. */
|
122
129
|
formRefMap: Map<string, Ref<FormInstance | null>>;
|
123
130
|
/**
|
124
|
-
* <p
|
125
|
-
* <p>在 beforeOk 事件中会将此对象传给调用者, 调用者可以修改此对象,
|
131
|
+
* <p>自定义的表单验证规则.</p>
|
132
|
+
* <p>在 beforeOk 事件中会将此对象传给调用者, 调用者可以修改此对象, 从而添加自定义的表单验证规则.</p>
|
126
133
|
*/
|
127
134
|
formRulesMap: Map<string, Ref<Record<string, Array<RuleObject>>>>;
|
128
135
|
isLoadingMap: Map<string, boolean>;
|