cnhis-design-vue 3.1.41-beta.37 → 3.1.41-beta.38
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/fabric-chart/src/hooks/useBirthProcess.js +1 -1
- package/es/components/iho-table/index.d.ts +1 -0
- package/es/components/iho-table/src/IhoTable.vue.d.ts +1 -0
- package/es/components/iho-table/src/IhoTable.vue.js +1 -1
- package/es/components/iho-table/src/hooks/useTableTheme.d.ts +4 -0
- package/es/components/iho-table/src/hooks/useTableTheme.js +1 -0
- package/es/components/iho-table/style/index.css +1 -1
- package/es/components/index.css +1 -1
- package/es/components/scale-view/src/hooks/use-component.d.ts +82 -116
- package/es/components/select-label/index.d.ts +83 -169
- package/es/components/select-label/src/LabelFormContent.vue.d.ts +1 -53
- package/es/components/select-label/src/LabelFormContent.vue.js +1 -1
- package/es/components/select-label/src/SelectLabel.vue.d.ts +83 -116
- package/es/components/select-label/src/SelectLabel.vue2.js +1 -1
- package/es/components/select-label/src/components/label-classify.vue.js +1 -1
- package/es/components/select-label/style/iconfont.ttf +0 -0
- package/es/components/select-label/style/index.css +1 -1
- package/es/shared/utils/index.d.ts +1 -0
- package/es/shared/utils/index.js +1 -1
- package/package.json +2 -2
|
@@ -1,83 +1,115 @@
|
|
|
1
1
|
import { SFCWithInstall } from '../../../es/shared/types';
|
|
2
2
|
declare const SelectLabel: SFCWithInstall<import("vue").DefineComponent<{
|
|
3
3
|
selectedList: {
|
|
4
|
-
type:
|
|
5
|
-
required: false;
|
|
4
|
+
type: import("vue").PropType<any[]>;
|
|
6
5
|
default: () => never[];
|
|
7
6
|
};
|
|
8
7
|
item: {
|
|
9
|
-
type:
|
|
10
|
-
required: false;
|
|
8
|
+
type: import("vue").PropType<any>;
|
|
11
9
|
default: () => {};
|
|
12
10
|
};
|
|
13
11
|
isDetail: {
|
|
14
12
|
type: BooleanConstructor;
|
|
15
|
-
required: false;
|
|
16
13
|
default: boolean;
|
|
17
14
|
};
|
|
18
15
|
isLock: {
|
|
19
16
|
type: BooleanConstructor;
|
|
20
|
-
required: false;
|
|
21
17
|
default: boolean;
|
|
22
18
|
};
|
|
23
19
|
sourceType: {
|
|
24
20
|
type: StringConstructor;
|
|
25
|
-
required: false;
|
|
26
21
|
default: string;
|
|
27
22
|
};
|
|
23
|
+
explicit: {
|
|
24
|
+
type: BooleanConstructor;
|
|
25
|
+
default: boolean;
|
|
26
|
+
};
|
|
27
|
+
selectUsers: {
|
|
28
|
+
type: import("vue").PropType<any[]>;
|
|
29
|
+
default: () => never[];
|
|
30
|
+
};
|
|
28
31
|
getLabelList: {
|
|
29
32
|
type: FunctionConstructor;
|
|
30
|
-
required: false;
|
|
31
33
|
default: () => Promise<{
|
|
32
34
|
rows: never[];
|
|
33
35
|
}>;
|
|
34
36
|
};
|
|
35
|
-
explicit: {
|
|
36
|
-
type: BooleanConstructor;
|
|
37
|
-
required: false;
|
|
38
|
-
default: boolean;
|
|
39
|
-
};
|
|
40
|
-
explicitHeiht: {
|
|
41
|
-
type: StringConstructor;
|
|
42
|
-
required: false;
|
|
43
|
-
default: string;
|
|
44
|
-
};
|
|
45
37
|
queryCommonlabels: {
|
|
46
38
|
type: FunctionConstructor;
|
|
47
|
-
required: false;
|
|
48
39
|
default: () => Promise<{
|
|
49
40
|
data: {};
|
|
50
41
|
}>;
|
|
51
42
|
};
|
|
52
43
|
deleteLabel: {
|
|
53
44
|
type: FunctionConstructor;
|
|
54
|
-
required: false;
|
|
55
45
|
default: () => Promise<{
|
|
56
46
|
status: boolean;
|
|
57
47
|
}>;
|
|
58
48
|
};
|
|
59
49
|
saveLabelItem: {
|
|
60
50
|
type: FunctionConstructor;
|
|
61
|
-
required: false;
|
|
62
51
|
default: () => Promise<{
|
|
63
52
|
status: boolean;
|
|
64
53
|
}>;
|
|
65
54
|
};
|
|
66
55
|
}, {
|
|
67
|
-
props: {
|
|
68
|
-
selectedList:
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
56
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
57
|
+
selectedList: {
|
|
58
|
+
type: import("vue").PropType<any[]>;
|
|
59
|
+
default: () => never[];
|
|
60
|
+
};
|
|
61
|
+
item: {
|
|
62
|
+
type: import("vue").PropType<any>;
|
|
63
|
+
default: () => {};
|
|
64
|
+
};
|
|
65
|
+
isDetail: {
|
|
66
|
+
type: BooleanConstructor;
|
|
67
|
+
default: boolean;
|
|
68
|
+
};
|
|
69
|
+
isLock: {
|
|
70
|
+
type: BooleanConstructor;
|
|
71
|
+
default: boolean;
|
|
72
|
+
};
|
|
73
|
+
sourceType: {
|
|
74
|
+
type: StringConstructor;
|
|
75
|
+
default: string;
|
|
76
|
+
};
|
|
77
|
+
explicit: {
|
|
78
|
+
type: BooleanConstructor;
|
|
79
|
+
default: boolean;
|
|
80
|
+
};
|
|
81
|
+
selectUsers: {
|
|
82
|
+
type: import("vue").PropType<any[]>;
|
|
83
|
+
default: () => never[];
|
|
84
|
+
};
|
|
85
|
+
getLabelList: {
|
|
86
|
+
type: FunctionConstructor;
|
|
87
|
+
default: () => Promise<{
|
|
88
|
+
rows: never[];
|
|
89
|
+
}>;
|
|
90
|
+
};
|
|
91
|
+
queryCommonlabels: {
|
|
92
|
+
type: FunctionConstructor;
|
|
93
|
+
default: () => Promise<{
|
|
94
|
+
data: {};
|
|
95
|
+
}>;
|
|
96
|
+
};
|
|
97
|
+
deleteLabel: {
|
|
98
|
+
type: FunctionConstructor;
|
|
99
|
+
default: () => Promise<{
|
|
100
|
+
status: boolean;
|
|
101
|
+
}>;
|
|
102
|
+
};
|
|
103
|
+
saveLabelItem: {
|
|
104
|
+
type: FunctionConstructor;
|
|
105
|
+
default: () => Promise<{
|
|
106
|
+
status: boolean;
|
|
107
|
+
}>;
|
|
108
|
+
};
|
|
109
|
+
}>> & {
|
|
110
|
+
onOnChange?: ((...args: any[]) => any) | undefined;
|
|
111
|
+
}>>;
|
|
112
|
+
emit: (event: "onChange", ...args: any[]) => void;
|
|
81
113
|
labelFormContentRef: any;
|
|
82
114
|
state: {
|
|
83
115
|
labelVisible: boolean;
|
|
@@ -94,7 +126,6 @@ declare const SelectLabel: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
94
126
|
};
|
|
95
127
|
updateCommonChecked: (value: boolean, item: any) => void;
|
|
96
128
|
item_is_edit: import("vue").ComputedRef<any>;
|
|
97
|
-
titleRender: () => JSX.Element;
|
|
98
129
|
hadleCommonlabels: (commonLabelList: any[], selectList: any[]) => void;
|
|
99
130
|
getCommonlabelsList: (type: any) => Promise<void>;
|
|
100
131
|
closeTag: (d: {
|
|
@@ -231,58 +262,6 @@ declare const SelectLabel: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
231
262
|
anchorGetContainer: () => any;
|
|
232
263
|
handleResetOptions: () => void;
|
|
233
264
|
hanldeSetLabelItem: (id: string | number, status: boolean) => void;
|
|
234
|
-
NTabs: any;
|
|
235
|
-
NTabPane: import("vue").DefineComponent<{
|
|
236
|
-
readonly tab: import("vue").PropType<string | number | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
237
|
-
[key: string]: any;
|
|
238
|
-
}> | (() => import("vue").VNodeChild)>;
|
|
239
|
-
readonly name: {
|
|
240
|
-
readonly type: import("vue").PropType<string | number>;
|
|
241
|
-
readonly required: true;
|
|
242
|
-
};
|
|
243
|
-
readonly disabled: BooleanConstructor;
|
|
244
|
-
readonly displayDirective: {
|
|
245
|
-
readonly type: import("vue").PropType<"if" | "show" | "show:lazy">;
|
|
246
|
-
readonly default: "if";
|
|
247
|
-
};
|
|
248
|
-
readonly closable: {
|
|
249
|
-
readonly type: import("vue").PropType<boolean | undefined>;
|
|
250
|
-
readonly default: undefined;
|
|
251
|
-
};
|
|
252
|
-
readonly tabProps: import("vue").PropType<import("vue").HTMLAttributes>;
|
|
253
|
-
readonly label: import("vue").PropType<string | number | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
254
|
-
[key: string]: any;
|
|
255
|
-
}> | (() => import("vue").VNodeChild)>;
|
|
256
|
-
}, {
|
|
257
|
-
style: import("vue").Ref<string | import("vue").CSSProperties | undefined>;
|
|
258
|
-
class: import("vue").Ref<string | undefined>;
|
|
259
|
-
mergedClsPrefix: import("vue").Ref<string>;
|
|
260
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
261
|
-
readonly tab: import("vue").PropType<string | number | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
262
|
-
[key: string]: any;
|
|
263
|
-
}> | (() => import("vue").VNodeChild)>;
|
|
264
|
-
readonly name: {
|
|
265
|
-
readonly type: import("vue").PropType<string | number>;
|
|
266
|
-
readonly required: true;
|
|
267
|
-
};
|
|
268
|
-
readonly disabled: BooleanConstructor;
|
|
269
|
-
readonly displayDirective: {
|
|
270
|
-
readonly type: import("vue").PropType<"if" | "show" | "show:lazy">;
|
|
271
|
-
readonly default: "if";
|
|
272
|
-
};
|
|
273
|
-
readonly closable: {
|
|
274
|
-
readonly type: import("vue").PropType<boolean | undefined>;
|
|
275
|
-
readonly default: undefined;
|
|
276
|
-
};
|
|
277
|
-
readonly tabProps: import("vue").PropType<import("vue").HTMLAttributes>;
|
|
278
|
-
readonly label: import("vue").PropType<string | number | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
279
|
-
[key: string]: any;
|
|
280
|
-
}> | (() => import("vue").VNodeChild)>;
|
|
281
|
-
}>>, {
|
|
282
|
-
readonly disabled: boolean;
|
|
283
|
-
readonly closable: boolean | undefined;
|
|
284
|
-
readonly displayDirective: "if" | "show" | "show:lazy";
|
|
285
|
-
}>;
|
|
286
265
|
NAnchor: any;
|
|
287
266
|
NAnchorLink: import("vue").DefineComponent<{
|
|
288
267
|
readonly title: StringConstructor;
|
|
@@ -481,89 +460,76 @@ declare const SelectLabel: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
481
460
|
item: any;
|
|
482
461
|
isLock: boolean;
|
|
483
462
|
sourceType: string;
|
|
484
|
-
getLabelList: Function;
|
|
485
463
|
explicit: boolean;
|
|
464
|
+
getLabelList: Function;
|
|
486
465
|
deleteLabel: Function;
|
|
487
466
|
saveLabelItem: Function;
|
|
488
467
|
}>;
|
|
489
468
|
handleLabelColor: typeof import("../../shared/utils/vexutils").handleLabelColor;
|
|
490
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
469
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "onChange"[], "onChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
491
470
|
selectedList: {
|
|
492
|
-
type:
|
|
493
|
-
required: false;
|
|
471
|
+
type: import("vue").PropType<any[]>;
|
|
494
472
|
default: () => never[];
|
|
495
473
|
};
|
|
496
474
|
item: {
|
|
497
|
-
type:
|
|
498
|
-
required: false;
|
|
475
|
+
type: import("vue").PropType<any>;
|
|
499
476
|
default: () => {};
|
|
500
477
|
};
|
|
501
478
|
isDetail: {
|
|
502
479
|
type: BooleanConstructor;
|
|
503
|
-
required: false;
|
|
504
480
|
default: boolean;
|
|
505
481
|
};
|
|
506
482
|
isLock: {
|
|
507
483
|
type: BooleanConstructor;
|
|
508
|
-
required: false;
|
|
509
484
|
default: boolean;
|
|
510
485
|
};
|
|
511
486
|
sourceType: {
|
|
512
487
|
type: StringConstructor;
|
|
513
|
-
required: false;
|
|
514
488
|
default: string;
|
|
515
489
|
};
|
|
490
|
+
explicit: {
|
|
491
|
+
type: BooleanConstructor;
|
|
492
|
+
default: boolean;
|
|
493
|
+
};
|
|
494
|
+
selectUsers: {
|
|
495
|
+
type: import("vue").PropType<any[]>;
|
|
496
|
+
default: () => never[];
|
|
497
|
+
};
|
|
516
498
|
getLabelList: {
|
|
517
499
|
type: FunctionConstructor;
|
|
518
|
-
required: false;
|
|
519
500
|
default: () => Promise<{
|
|
520
501
|
rows: never[];
|
|
521
502
|
}>;
|
|
522
503
|
};
|
|
523
|
-
explicit: {
|
|
524
|
-
type: BooleanConstructor;
|
|
525
|
-
required: false;
|
|
526
|
-
default: boolean;
|
|
527
|
-
};
|
|
528
|
-
explicitHeiht: {
|
|
529
|
-
type: StringConstructor;
|
|
530
|
-
required: false;
|
|
531
|
-
default: string;
|
|
532
|
-
};
|
|
533
504
|
queryCommonlabels: {
|
|
534
505
|
type: FunctionConstructor;
|
|
535
|
-
required: false;
|
|
536
506
|
default: () => Promise<{
|
|
537
507
|
data: {};
|
|
538
508
|
}>;
|
|
539
509
|
};
|
|
540
510
|
deleteLabel: {
|
|
541
511
|
type: FunctionConstructor;
|
|
542
|
-
required: false;
|
|
543
512
|
default: () => Promise<{
|
|
544
513
|
status: boolean;
|
|
545
514
|
}>;
|
|
546
515
|
};
|
|
547
516
|
saveLabelItem: {
|
|
548
517
|
type: FunctionConstructor;
|
|
549
|
-
required: false;
|
|
550
518
|
default: () => Promise<{
|
|
551
519
|
status: boolean;
|
|
552
520
|
}>;
|
|
553
521
|
};
|
|
554
522
|
}>> & {
|
|
555
523
|
onOnChange?: ((...args: any[]) => any) | undefined;
|
|
556
|
-
onScaleChange?: ((...args: any[]) => any) | undefined;
|
|
557
|
-
onVodFileList?: ((...args: any[]) => any) | undefined;
|
|
558
524
|
}, {
|
|
559
|
-
selectedList:
|
|
525
|
+
selectedList: any[];
|
|
560
526
|
item: any;
|
|
561
527
|
isDetail: boolean;
|
|
562
528
|
isLock: boolean;
|
|
563
529
|
sourceType: string;
|
|
564
|
-
getLabelList: Function;
|
|
565
530
|
explicit: boolean;
|
|
566
|
-
|
|
531
|
+
selectUsers: any[];
|
|
532
|
+
getLabelList: Function;
|
|
567
533
|
queryCommonlabels: Function;
|
|
568
534
|
deleteLabel: Function;
|
|
569
535
|
saveLabelItem: Function;
|
|
@@ -678,58 +644,6 @@ declare const LabelFormContent: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
678
644
|
anchorGetContainer: () => any;
|
|
679
645
|
handleResetOptions: () => void;
|
|
680
646
|
hanldeSetLabelItem: (id: string | number, status: boolean) => void;
|
|
681
|
-
NTabs: any;
|
|
682
|
-
NTabPane: import("vue").DefineComponent<{
|
|
683
|
-
readonly tab: import("vue").PropType<string | number | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
684
|
-
[key: string]: any;
|
|
685
|
-
}> | (() => import("vue").VNodeChild)>;
|
|
686
|
-
readonly name: {
|
|
687
|
-
readonly type: import("vue").PropType<string | number>;
|
|
688
|
-
readonly required: true;
|
|
689
|
-
};
|
|
690
|
-
readonly disabled: BooleanConstructor;
|
|
691
|
-
readonly displayDirective: {
|
|
692
|
-
readonly type: import("vue").PropType<"if" | "show" | "show:lazy">;
|
|
693
|
-
readonly default: "if";
|
|
694
|
-
};
|
|
695
|
-
readonly closable: {
|
|
696
|
-
readonly type: import("vue").PropType<boolean | undefined>;
|
|
697
|
-
readonly default: undefined;
|
|
698
|
-
};
|
|
699
|
-
readonly tabProps: import("vue").PropType<import("vue").HTMLAttributes>;
|
|
700
|
-
readonly label: import("vue").PropType<string | number | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
701
|
-
[key: string]: any;
|
|
702
|
-
}> | (() => import("vue").VNodeChild)>;
|
|
703
|
-
}, {
|
|
704
|
-
style: import("vue").Ref<string | import("vue").CSSProperties | undefined>;
|
|
705
|
-
class: import("vue").Ref<string | undefined>;
|
|
706
|
-
mergedClsPrefix: import("vue").Ref<string>;
|
|
707
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
708
|
-
readonly tab: import("vue").PropType<string | number | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
709
|
-
[key: string]: any;
|
|
710
|
-
}> | (() => import("vue").VNodeChild)>;
|
|
711
|
-
readonly name: {
|
|
712
|
-
readonly type: import("vue").PropType<string | number>;
|
|
713
|
-
readonly required: true;
|
|
714
|
-
};
|
|
715
|
-
readonly disabled: BooleanConstructor;
|
|
716
|
-
readonly displayDirective: {
|
|
717
|
-
readonly type: import("vue").PropType<"if" | "show" | "show:lazy">;
|
|
718
|
-
readonly default: "if";
|
|
719
|
-
};
|
|
720
|
-
readonly closable: {
|
|
721
|
-
readonly type: import("vue").PropType<boolean | undefined>;
|
|
722
|
-
readonly default: undefined;
|
|
723
|
-
};
|
|
724
|
-
readonly tabProps: import("vue").PropType<import("vue").HTMLAttributes>;
|
|
725
|
-
readonly label: import("vue").PropType<string | number | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
726
|
-
[key: string]: any;
|
|
727
|
-
}> | (() => import("vue").VNodeChild)>;
|
|
728
|
-
}>>, {
|
|
729
|
-
readonly disabled: boolean;
|
|
730
|
-
readonly closable: boolean | undefined;
|
|
731
|
-
readonly displayDirective: "if" | "show" | "show:lazy";
|
|
732
|
-
}>;
|
|
733
647
|
NAnchor: any;
|
|
734
648
|
NAnchorLink: import("vue").DefineComponent<{
|
|
735
649
|
readonly title: StringConstructor;
|
|
@@ -928,8 +842,8 @@ declare const LabelFormContent: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
928
842
|
item: any;
|
|
929
843
|
isLock: boolean;
|
|
930
844
|
sourceType: string;
|
|
931
|
-
getLabelList: Function;
|
|
932
845
|
explicit: boolean;
|
|
846
|
+
getLabelList: Function;
|
|
933
847
|
deleteLabel: Function;
|
|
934
848
|
saveLabelItem: Function;
|
|
935
849
|
}>>;
|
|
@@ -109,58 +109,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
109
109
|
anchorGetContainer: () => any;
|
|
110
110
|
handleResetOptions: () => void;
|
|
111
111
|
hanldeSetLabelItem: (id: string | number, status: boolean) => void;
|
|
112
|
-
NTabs: any;
|
|
113
|
-
NTabPane: import("vue").DefineComponent<{
|
|
114
|
-
readonly tab: import("vue").PropType<string | number | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
115
|
-
[key: string]: any;
|
|
116
|
-
}> | (() => import("vue").VNodeChild)>;
|
|
117
|
-
readonly name: {
|
|
118
|
-
readonly type: import("vue").PropType<string | number>;
|
|
119
|
-
readonly required: true;
|
|
120
|
-
};
|
|
121
|
-
readonly disabled: BooleanConstructor;
|
|
122
|
-
readonly displayDirective: {
|
|
123
|
-
readonly type: import("vue").PropType<"if" | "show" | "show:lazy">;
|
|
124
|
-
readonly default: "if";
|
|
125
|
-
};
|
|
126
|
-
readonly closable: {
|
|
127
|
-
readonly type: import("vue").PropType<boolean | undefined>;
|
|
128
|
-
readonly default: undefined;
|
|
129
|
-
};
|
|
130
|
-
readonly tabProps: import("vue").PropType<import("vue").HTMLAttributes>;
|
|
131
|
-
readonly label: import("vue").PropType<string | number | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
132
|
-
[key: string]: any;
|
|
133
|
-
}> | (() => import("vue").VNodeChild)>;
|
|
134
|
-
}, {
|
|
135
|
-
style: import("vue").Ref<string | import("vue").CSSProperties | undefined>;
|
|
136
|
-
class: import("vue").Ref<string | undefined>;
|
|
137
|
-
mergedClsPrefix: import("vue").Ref<string>;
|
|
138
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
139
|
-
readonly tab: import("vue").PropType<string | number | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
140
|
-
[key: string]: any;
|
|
141
|
-
}> | (() => import("vue").VNodeChild)>;
|
|
142
|
-
readonly name: {
|
|
143
|
-
readonly type: import("vue").PropType<string | number>;
|
|
144
|
-
readonly required: true;
|
|
145
|
-
};
|
|
146
|
-
readonly disabled: BooleanConstructor;
|
|
147
|
-
readonly displayDirective: {
|
|
148
|
-
readonly type: import("vue").PropType<"if" | "show" | "show:lazy">;
|
|
149
|
-
readonly default: "if";
|
|
150
|
-
};
|
|
151
|
-
readonly closable: {
|
|
152
|
-
readonly type: import("vue").PropType<boolean | undefined>;
|
|
153
|
-
readonly default: undefined;
|
|
154
|
-
};
|
|
155
|
-
readonly tabProps: import("vue").PropType<import("vue").HTMLAttributes>;
|
|
156
|
-
readonly label: import("vue").PropType<string | number | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
157
|
-
[key: string]: any;
|
|
158
|
-
}> | (() => import("vue").VNodeChild)>;
|
|
159
|
-
}>>, {
|
|
160
|
-
readonly disabled: boolean;
|
|
161
|
-
readonly closable: boolean | undefined;
|
|
162
|
-
readonly displayDirective: "if" | "show" | "show:lazy";
|
|
163
|
-
}>;
|
|
164
112
|
NAnchor: any;
|
|
165
113
|
NAnchorLink: import("vue").DefineComponent<{
|
|
166
114
|
readonly title: StringConstructor;
|
|
@@ -359,8 +307,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
359
307
|
item: any;
|
|
360
308
|
isLock: boolean;
|
|
361
309
|
sourceType: string;
|
|
362
|
-
getLabelList: Function;
|
|
363
310
|
explicit: boolean;
|
|
311
|
+
getLabelList: Function;
|
|
364
312
|
deleteLabel: Function;
|
|
365
313
|
saveLabelItem: Function;
|
|
366
314
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as
|
|
1
|
+
import{defineComponent as t,ref as e,reactive as l,computed as a,watch as i,openBlock as n,createElementBlock as r,unref as s,createCommentVNode as d,withDirectives as o,createElementVNode as c,normalizeClass as b,createVNode as u,withCtx as p,Fragment as f,renderList as h,createBlock as y,createTextVNode as v,toDisplayString as m,vShow as g,nextTick as C}from"vue";import{useMessage as L,NAnchor as I,NAnchorLink as S}from"naive-ui";import E from"./components/label-classify.vue.js";import{handleLabelColor as w}from"../../../shared/utils/vexutils.js";import x from"../../../_virtual/plugin-vue_export-helper.js";import A from"xe-utils";const O={key:0,class:"label-disable-wrap"},K=[c("p",{class:"label-disable-title"},"无可选标签",-1),c("p",{class:"label-disable-desc"},"请联系管理员进行标签管理设置",-1)],j={style:{height:"100%"}},k={class:"label-wrap"},T=["id"],_={class:"edit-label-type"};var B=x(t({__name:"LabelFormContent",props:{item:{default:()=>({})},isEdit:{type:Boolean,default:!0},isLock:{type:Boolean,default:!1},labelSelectedList:null,isChangeWindow:{type:Boolean},getLabelList:{type:Function,default:()=>Promise.resolve({rows:[]})},deleteLabel:{type:Function,default:()=>Promise.resolve({status:!0})},saveLabelItem:{type:Function,default:()=>Promise.resolve({status:!0})},labelOptions:null,sourceType:{default:""},explicit:{type:Boolean,default:!1}},emits:["explicitOnChange","change","updateLabelData"],setup(t,{expose:x,emit:B}){const D=t,F=L(),V=e(null),P=l({editLabelItem:{},inited:!1,labelSelectedEdit:[],labelAnchorKey:"",cacheAnchorKey:"",labelConfig:{}});let N=e(0);const W=a((()=>{if(!P.inited)return!1;let t=P.labelConfig;return!t||Object.keys(t).every((e=>!t[e].itemList))})),$=a((()=>{let t=[].concat(...P.labelSelectedEdit,...D.labelSelectedList);return J(t,"labelId")})),q=a((()=>{const t=$.value||[];return Array.isArray(t)?t.map((t=>t.labelId)):[]})),J=(t,e)=>{let l={};return t.reduce(((t,a)=>(!l[a[e]]&&(l[a[e]]=t.push(a)),t)),[])},R=()=>{if(P.labelSelectedEdit=$.value,"object"==typeof P.labelConfig){Object.keys(P.labelConfig||{}).forEach((t=>{var e;let l=(null==(e=P.labelConfig[t])?void 0:e.itemList)||[];l.length&&l.forEach((t=>{q.value.includes(t.labelId)&&(t.isSelect=!0)}))}))}},z=(t,e)=>{if(!t)return;let l=Object.keys(t)||[];if(!l.length)return;let a=t[l[0]].curKey;if(e&&"string"==typeof e){let[i]=e.split("~"),n=l.find((e=>t[e]&&t[e].curKey&&t[e].curKey.includes(i)));n&&(a=t[n].curKey)}a&&Y(a)},G=(t,e)=>{e.showAdd=!0;const l=t.target.nextElementSibling;C((()=>{var t;null==(t=null==l?void 0:l.firstChild)||t.focus()}))},H=(t,e)=>{setTimeout((()=>{e.addVal?Q(e):e.showAdd=!1}),150)},M=(t,e)=>{e.addVal="",e.showAdd=!1},Q=async t=>{var e;if(!!t.itemList.filter((t=>!(t.isPublic&&1==t.isPublic))).find((e=>e.labelName===t.addVal)))return F.error("标签名称重复!"),!1;let l="";l=(null==(e=t.itemList)?void 0:e.length)?t.itemList[0].parentColor||t.parentColor||"":(null==t?void 0:t.parentColor)||"";const a={type:t.typeId,name:t.addVal,parentColor:l},{status:i}=await D.saveLabelItem(a,t);i&&(F.success("添加成功!"),B("updateLabelData"),t.showAdd=!1)},U=(t,e,l,a)=>{var i;const n=l.itemList,r=l.multipleChoice;let s=(null==(i=P.labelSelectedEdit)?void 0:i.length)&&A.clone(P.labelSelectedEdit,!0)||[];if(t){if(s.some((t=>t.labelId==e.labelId)))return;if(2==r){const{typeId:t,labelId:l}=e;s=s.filter((e=>e.typeId!==t)),n.forEach((t=>{t.labelId!==l&&(t.isSelect=!1)}))}s.push(e)}else{const t=s.findIndex((t=>t.labelId==e.labelId));-1!=t&&s.splice(t,1)}P.labelSelectedEdit=[...s],N.value++,D.explicit&&B("explicitOnChange",[...P.labelSelectedEdit])},X=async t=>{const{status:e}=await D.deleteLabel(t,D.item);if(e){F.success("删除成功!");for(const e in P.labelConfig){const l=P.labelConfig[e].itemList.findIndex((e=>e.labelId==t.labelId));-1!=l&&P.labelConfig[e].itemList.splice(l,1)}const e=P.labelSelectedEdit||[],l=D.labelSelectedList||[];if(e&&e.length){const l=e.findIndex((e=>e.labelId==t.labelId));-1!=l&&e.splice(l,1)}if(l&&l.length){const e=l.findIndex((e=>e.labelId==t.labelId));-1!=e&&l.splice(e,1),B("change",[...l],D.item)}B("updateLabelData")}else F.warning("删除失败")},Y=t=>{t&&setTimeout((()=>{let e,l="#"+t;e=V.value.querySelector("a[href='"+l+"']"),e&&e.click(),P.labelAnchorKey=t}),32)},Z=t=>{t.preventDefault()},tt=t=>{if(!t)return;let e=t.slice(1);P.cacheAnchorKey=e},et=()=>{var t;return null==(t=V.value)?void 0:t.querySelector(".right-label-wrap")};return i((()=>D.labelOptions),(t=>{t&&(()=>{var t;if(D.isLock)return;const e=JSON.parse(JSON.stringify(D.labelOptions));for(let l in e){let a=(null==(t=e[l])?void 0:t.typeId)||"";Object.assign(e[l],{curKey:`${l}_${a}}`})}P.labelConfig=e,C((()=>{let t;R(),D.explicit&&P.inited&&(t=P.labelAnchorKey),z(P.labelConfig,t),P.inited=!0}))})()}),{immediate:!0,deep:!0}),x({resetShowAdd:()=>{let{labelObj:t}=P.editLabelItem;if(t&&Object.keys(t).length)for(let e in t){let l=t[e];Object.assign(l,{showAdd:!1})}},handleLabelForm:t=>{t([...P.labelSelectedEdit||[]])},handleResetOptions:()=>{},hanldeSetLabelItem:(t,e)=>{if("object"==typeof P.labelConfig){Object.keys(P.labelConfig||{}).forEach((l=>{var a;let i=(null==(a=P.labelConfig[l])?void 0:a.itemList)||[];i.length&&i.forEach((l=>{t==l.labelId&&(l.isSelect=e)}))}))}if(!1===e&&Array.isArray(P.labelSelectedEdit)){const e=P.labelSelectedEdit.findIndex((e=>e.labelId==t));-1!=e&&P.labelSelectedEdit.splice(e,1)}}}),(e,l)=>(n(),r("div",{class:"c-label-form-content",ref_key:"labelFormContent",ref:V},[s(W)?(n(),r("div",O,K)):d("v-if",!0),o(c("div",j,[c("div",k,[d(" 表单内嵌打开标签组件的样式 "),d(' <div v-if="explicit" class="explicit-continer">\r\n\t\t\t\t\t<n-tabs :value="state.labelAnchorKey" type="card" @change="labelAnchorTabsOnChange" tab-position="top">\r\n\t\t\t\t\t\t<template v-for="(v, i) in state.labelConfig">\r\n\t\t\t\t\t\t\t<n-tab-pane :name="v.curKey">\r\n\t\t\t\t\t\t\t\t<span slot="tab">\r\n\t\t\t\t\t\t\t\t\t{{ i }}\r\n\t\t\t\t\t\t\t\t\t<span class="edit-label-type">({{ v.multipleChoice == 2 ? \'单\' : \'多\' }}选)</span>\r\n\t\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t\t<div class="explicit-label-wrap left-label-wrap">\r\n\t\t\t\t\t\t\t\t\t<div class="edit-label-content">\r\n\t\t\t\t\t\t\t\t\t\t<labelClassify\r\n\t\t\t\t\t\t\t\t\t\t\t:classifyItem="v"\r\n\t\t\t\t\t\t\t\t\t\t\t:handleLabelChange="handleLabelChange"\r\n\t\t\t\t\t\t\t\t\t\t\t:handleLabelColor="handleLabelColor"\r\n\t\t\t\t\t\t\t\t\t\t\t:handleDelLabel="handleDelLabel"\r\n\t\t\t\t\t\t\t\t\t\t\t:hanldeBlur="hanldeBlur"\r\n\t\t\t\t\t\t\t\t\t\t\t:handleAddLabel="handleAddLabel"\r\n\t\t\t\t\t\t\t\t\t\t\t:clearaddVal="clearaddVal"\r\n\t\t\t\t\t\t\t\t\t\t\t:isEdit="isEdit"\r\n\t\t\t\t\t\t\t\t\t\t\t:sourceType="sourceType"\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t</n-tab-pane>\r\n\t\t\t\t\t\t</template>\r\n\t\t\t\t\t</n-tabs>\r\n\t\t\t\t</div> '),d("\r\n\t\t\t\t\t普通标签样式\r\n\t\t\t\t\tv-else\r\n\t\t\t\t\texplicit\r\n\t\t\t\t "),c("div",{class:b(["left-label-wrap",{"total-left-label-wrap":t.isChangeWindow}])},[u(s(I),{"offset-target":et,type:"block",onClick:Z,onChange:tt},{default:p((()=>[(n(!0),r(f,null,h(P.labelConfig,((t,e)=>(n(),y(s(S),{href:`#${t.curKey}`,title:String(e)},null,8,["href","title"])))),256))])),_:1})],2),d(' v-if="!explicit" '),c("div",{class:b(["right-label-wrap",{"total-right-label-wrap":t.isChangeWindow}])},[(n(!0),r(f,null,h(P.labelConfig,((e,l)=>(n(),r("div",{key:l,class:"edit-label-content"},[c("div",{class:"edit-label",id:e.curKey},[v(m(l)+" ",1),c("span",_,"("+m(2==e.multipleChoice?"单":"多")+"选)",1)],8,T),u(E,{classifyItem:e,handleLabelChange:U,handleLabelColor:s(w),handleDelLabel:X,hanldeBlur:H,handleAddLabel:G,clearaddVal:M,isEdit:t.isEdit,sourceType:t.sourceType},null,8,["classifyItem","handleLabelColor","isEdit","sourceType"])])))),128))],2)])],512),[[g,!s(W)]])],512))}}),[["__file","LabelFormContent.vue"]]);export{B as default};
|