cnhis-design-vue 3.1.5-beta.10 → 3.1.5-beta.13
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/CHANGELOG.md +90 -0
- package/es/packages/big-table/index.d.ts +3 -2
- package/es/packages/big-table/src/BigTable.vue.d.ts +3 -2
- package/es/packages/big-table/src/BigTable.vue_vue_type_script_setup_true_lang.mjs +44 -71
- package/es/packages/big-table/src/bigTableEmits2.mjs +2 -1
- package/es/packages/button-print/index.d.ts +51 -87
- package/es/packages/button-print/src/ButtonPrint.vue.d.ts +60 -87
- package/es/packages/button-print/src/ButtonPrint.vue_vue_type_script_setup_true_lang.mjs +27 -39
- package/es/packages/form-render/index.d.ts +281 -3
- package/es/packages/form-render/index.mjs +2 -0
- package/es/packages/form-render/index2.mjs +1 -0
- package/es/packages/form-render/src/FormRender.vue.d.ts +283 -5
- package/es/packages/form-render/src/FormRender.vue_vue_type_script_setup_true_lang.mjs +47 -23
- package/es/packages/form-render/src/components/cascader.d.ts +10 -2
- package/es/packages/form-render/src/components/cascader2.mjs +38 -20
- package/es/packages/form-render/src/components/combination2.mjs +2 -2
- package/es/packages/form-render/src/components/complex.d.ts +13 -0
- package/es/packages/form-render/src/components/complex.mjs +1 -0
- package/es/packages/form-render/src/components/complex2.mjs +31 -0
- package/es/packages/form-render/src/components/date.d.ts +6 -5037
- package/es/packages/form-render/src/components/date2.mjs +20 -3
- package/es/packages/form-render/src/components/index.d.ts +1 -0
- package/es/packages/form-render/src/components/index.mjs +1 -0
- package/es/packages/form-render/src/components/index2.mjs +1 -0
- package/es/packages/form-render/src/components/inputNumber.d.ts +4 -2182
- package/es/packages/form-render/src/components/inputNumber2.mjs +12 -1
- package/es/packages/form-render/src/components/select.d.ts +20 -4
- package/es/packages/form-render/src/components/select2.mjs +70 -30
- package/es/packages/form-render/src/components/switch.d.ts +3 -1
- package/es/packages/form-render/src/components/switch2.mjs +6 -7
- package/es/packages/form-render/src/constants/index.d.ts +8 -3
- package/es/packages/form-render/src/constants/index.mjs +1 -1
- package/es/packages/form-render/src/constants/index2.mjs +5 -1
- package/es/packages/form-render/src/hooks/index.d.ts +11 -9
- package/es/packages/form-render/src/hooks/index.mjs +2 -0
- package/es/packages/form-render/src/hooks/useAsyncQueue.d.ts +13 -33
- package/es/packages/form-render/src/hooks/useBusinessBinding.d.ts +7 -5
- package/es/packages/form-render/src/hooks/useBusinessBinding2.mjs +25 -13
- package/es/packages/form-render/src/hooks/useChangeContext.d.ts +11 -0
- package/es/packages/form-render/src/hooks/useChangeContext.mjs +1 -0
- package/es/packages/form-render/src/hooks/useChangeContext2.mjs +21 -0
- package/es/packages/form-render/src/hooks/useFieldList2Schema2.mjs +10 -1
- package/es/packages/form-render/src/hooks/useFormField.d.ts +1 -0
- package/es/packages/form-render/src/hooks/useFormField2.mjs +7 -1
- package/es/packages/form-render/src/hooks/useFormItemDeps.d.ts +8 -0
- package/es/packages/form-render/src/hooks/useFormItemDeps.mjs +1 -0
- package/es/packages/form-render/src/hooks/useFormItemDeps2.mjs +29 -0
- package/es/packages/form-render/src/hooks/useFormValidator2.mjs +1 -1
- package/es/packages/form-render/src/types/fieldItem.d.ts +2 -0
- package/es/packages/form-render/src/types/index.d.ts +16 -6
- package/es/packages/form-render/src/utils/index.d.ts +5 -3
- package/es/packages/form-render/src/utils/index.mjs +1 -1
- package/es/packages/form-render/src/utils/index2.mjs +13 -1
- package/es/packages/form-render/style/index.css +8 -0
- package/es/packages/form-render/style/index.less +8 -0
- package/es/packages/index.css +35 -23
- package/es/packages/index.d.ts +2 -2
- package/es/packages/index.less +25 -14
- package/es/packages/index.mjs +3 -1
- package/es/packages/index2.mjs +2 -2
- package/es/packages/info-header/index.d.ts +38 -18
- package/es/packages/info-header/src/HiddenContent.vue.d.ts +29 -13
- package/es/packages/info-header/src/HiddenContent.vue_vue_type_script_setup_true_lang.mjs +6 -4
- package/es/packages/info-header/src/InfoHeader.vue.d.ts +38 -18
- package/es/packages/info-header/src/InfoHeader.vue_vue_type_script_setup_true_lang.mjs +22 -10
- package/es/packages/info-header/style/index.css +0 -3
- package/es/packages/info-header/style/index.less +0 -4
- package/es/packages/scale-view/index.d.ts +13 -12
- package/es/packages/scale-view/src/ScaleView.vue.d.ts +13 -15
- package/es/packages/scale-view/src/ScaleView.vue_vue_type_script_setup_true_lang.mjs +11 -4
- package/es/packages/scale-view/src/components/formitem/r-address2.mjs +1 -1
- package/es/packages/scale-view/src/components/formitem/r-checkbox2.mjs +10 -4
- package/es/packages/scale-view/src/components/formitem/r-collection2.mjs +0 -1
- package/es/packages/scale-view/src/components/formitem/r-datetime2.mjs +20 -11
- package/es/packages/scale-view/src/components/formitem/r-input2.mjs +1 -1
- package/es/packages/scale-view/src/components/formitem/r-map2.mjs +2 -1
- package/es/packages/scale-view/src/components/formitem/r-radio2.mjs +10 -4
- package/es/packages/scale-view/src/components/formitem/r-select2.mjs +6 -1
- package/es/packages/scale-view/src/hooks/scaleview-computed2.mjs +11 -12
- package/es/packages/scale-view/src/hooks/scaleview-init2.mjs +4 -3
- package/es/packages/scale-view/src/hooks/scaleview-props.d.ts +3 -3
- package/es/packages/scale-view/src/hooks/scaleview-props2.mjs +3 -3
- package/es/packages/scale-view/src/hooks/scaleview-validate2.mjs +85 -64
- package/es/packages/scale-view/src/hooks/use-component.d.ts +10 -6
- package/es/packages/scale-view/src/hooks/use-component2.mjs +4 -4
- package/es/packages/scale-view/style/index.css +27 -20
- package/es/packages/scale-view/style/index.less +17 -10
- package/es/packages/select-label/index.d.ts +8 -4
- package/es/packages/select-label/src/SelectLabel.vue.d.ts +13 -15
- package/es/packages/select-label/src/SelectLabel.vue_vue_type_script_setup_true_lang.mjs +4 -4
- package/es/packages/select-person/src/SelectPerson.vue.d.ts +3 -4
- package/es/packages/select-person/src/SelectPerson.vue_vue_type_script_setup_true_lang.mjs +49 -33
- package/es/packages/select-person/src/utils/index.d.ts +4 -4
- package/es/packages/select-person/src/utils/index2.mjs +32 -5
- package/es/src/types/index.d.ts +1 -0
- package/package.json +132 -127
- package/sync-w.sh +13 -0
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
flex-wrap: wrap;
|
|
4
4
|
width: 100%;
|
|
5
5
|
}
|
|
6
|
+
.c-choice-wrap .n-radio-input {
|
|
7
|
+
width: 14px;
|
|
8
|
+
height: 14px;
|
|
9
|
+
}
|
|
6
10
|
.c-choice-wrap .scale-choice-img-wrap {
|
|
7
11
|
display: inline-block;
|
|
8
12
|
position: relative;
|
|
@@ -70,18 +74,18 @@
|
|
|
70
74
|
align-items: center;
|
|
71
75
|
margin: 4px 0;
|
|
72
76
|
}
|
|
73
|
-
.c-choice-wrap label
|
|
77
|
+
.c-choice-wrap label .n-radio__label {
|
|
74
78
|
flex: 1;
|
|
75
79
|
display: inline-flex;
|
|
76
80
|
align-items: center;
|
|
77
81
|
white-space: normal;
|
|
78
82
|
}
|
|
79
|
-
.c-choice-wrap >
|
|
83
|
+
.c-choice-wrap > .n-checkbox {
|
|
80
84
|
display: inline-flex;
|
|
81
85
|
align-items: center;
|
|
82
86
|
margin: 4px 0;
|
|
83
87
|
}
|
|
84
|
-
.c-choice-wrap >
|
|
88
|
+
.c-choice-wrap > .n-checkbox .n-checkbox__label {
|
|
85
89
|
flex: 1;
|
|
86
90
|
display: inline-flex;
|
|
87
91
|
align-items: center;
|
|
@@ -113,7 +117,7 @@
|
|
|
113
117
|
box-sizing: border-box;
|
|
114
118
|
color: rgba(0, 0, 0, 0.65);
|
|
115
119
|
}
|
|
116
|
-
.c-scale
|
|
120
|
+
.c-scale .n-form-item-label {
|
|
117
121
|
font-weight: 700;
|
|
118
122
|
}
|
|
119
123
|
.c-scale .scale-container {
|
|
@@ -142,7 +146,7 @@
|
|
|
142
146
|
border-radius: 10px;
|
|
143
147
|
background-color: #dbdcdc;
|
|
144
148
|
}
|
|
145
|
-
.c-scale
|
|
149
|
+
.c-scale .no-data-tip {
|
|
146
150
|
width: 100%;
|
|
147
151
|
height: 100%;
|
|
148
152
|
}
|
|
@@ -213,10 +217,10 @@
|
|
|
213
217
|
.rich-text-content {
|
|
214
218
|
word-break: break-all;
|
|
215
219
|
}
|
|
216
|
-
.rich-text-content
|
|
220
|
+
.rich-text-content p {
|
|
217
221
|
margin-bottom: 0;
|
|
218
222
|
}
|
|
219
|
-
.rich-text-content
|
|
223
|
+
.rich-text-content img {
|
|
220
224
|
max-width: 100%;
|
|
221
225
|
}
|
|
222
226
|
.n-dialog.n-modal.c-evatip-dialog-wrap {
|
|
@@ -513,6 +517,9 @@
|
|
|
513
517
|
width: 100%;
|
|
514
518
|
text-align: left;
|
|
515
519
|
}
|
|
520
|
+
.c-scale .n-form-item {
|
|
521
|
+
--n-label-height: unset !important;
|
|
522
|
+
}
|
|
516
523
|
.no-data-tip {
|
|
517
524
|
display: flex;
|
|
518
525
|
flex-direction: column;
|
|
@@ -599,13 +606,13 @@
|
|
|
599
606
|
width: 100%;
|
|
600
607
|
cursor: pointer;
|
|
601
608
|
}
|
|
602
|
-
.c-map-container
|
|
609
|
+
.c-map-container .n-input.map-input .n-input__prefix {
|
|
603
610
|
transform: rotate(180deg);
|
|
604
611
|
}
|
|
605
|
-
.c-map-container
|
|
612
|
+
.c-map-container .n-input.map-input .n-input__prefix .n-icon {
|
|
606
613
|
color: rgba(0, 0, 0, 0.65);
|
|
607
614
|
}
|
|
608
|
-
.c-map-container
|
|
615
|
+
.c-map-container .n-input.map-input.n-input--disabled .n-input__input-el {
|
|
609
616
|
color: rgba(0, 0, 0, 0.65);
|
|
610
617
|
background-color: #fff;
|
|
611
618
|
cursor: pointer;
|
|
@@ -616,33 +623,33 @@
|
|
|
616
623
|
.c-scale-upload {
|
|
617
624
|
width: 100%;
|
|
618
625
|
}
|
|
619
|
-
.c-scale-upload
|
|
626
|
+
.c-scale-upload .n-upload-file-list {
|
|
620
627
|
display: flex;
|
|
621
628
|
}
|
|
622
|
-
.c-scale-upload
|
|
629
|
+
.c-scale-upload .n-upload-file-list .n-upload-file .n-upload-file-info .n-upload-file-info__action.n-upload-file-info__action--image-card-type {
|
|
623
630
|
box-sizing: border-box;
|
|
624
631
|
background: rgba(0, 0, 0, 0.5);
|
|
625
632
|
}
|
|
626
|
-
.c-scale-upload
|
|
633
|
+
.c-scale-upload .n-upload-file-list .n-upload-file .n-upload-file-info .n-upload-file-info__action.n-upload-file-info__action--image-card-type span.n-button__icon {
|
|
627
634
|
color: #fff;
|
|
628
635
|
}
|
|
629
|
-
.c-scale-upload
|
|
636
|
+
.c-scale-upload .n-upload-file-list .n-upload-trigger.n-upload-trigger--image-card {
|
|
630
637
|
width: 184px;
|
|
631
638
|
height: 184px;
|
|
632
639
|
border-color: #d5d5d5;
|
|
633
640
|
background-color: #fafafa;
|
|
634
641
|
}
|
|
635
|
-
.c-scale-upload
|
|
642
|
+
.c-scale-upload .n-upload-file-list .n-upload-file.n-upload-file--image-card-type {
|
|
636
643
|
width: 184px;
|
|
637
644
|
height: 184px;
|
|
638
645
|
padding: 8px;
|
|
639
646
|
border-color: #d5d5d5;
|
|
640
647
|
background-color: #fafafa;
|
|
641
648
|
}
|
|
642
|
-
.c-scale-upload
|
|
649
|
+
.c-scale-upload .n-upload-file-list .n-upload-file.n-upload-file--image-card-type .n-image {
|
|
643
650
|
height: 100%;
|
|
644
651
|
}
|
|
645
|
-
.c-scale-upload
|
|
652
|
+
.c-scale-upload .n-upload-file-list .n-upload-file.n-upload-file--image-card-type img {
|
|
646
653
|
object-fit: cover !important;
|
|
647
654
|
}
|
|
648
655
|
.c-scale-upload .upload-img-wrap {
|
|
@@ -664,15 +671,15 @@
|
|
|
664
671
|
.c-scale-upload.scale-upload-file .dragger-upload-text {
|
|
665
672
|
color: rgba(0, 0, 0, 0.65);
|
|
666
673
|
}
|
|
667
|
-
.c-scale-upload.scale-upload-file
|
|
674
|
+
.c-scale-upload.scale-upload-file .n-upload-file-list {
|
|
668
675
|
display: flex;
|
|
669
676
|
flex-direction: column;
|
|
670
677
|
width: 100%;
|
|
671
678
|
}
|
|
672
|
-
.c-scale-upload.scale-upload-file
|
|
679
|
+
.c-scale-upload.scale-upload-file .n-upload-file-list .n-upload-file {
|
|
673
680
|
width: 100%;
|
|
674
681
|
}
|
|
675
|
-
.c-scale-upload.scale-upload-file
|
|
682
|
+
.c-scale-upload.scale-upload-file .n-upload-trigger {
|
|
676
683
|
width: 100%;
|
|
677
684
|
background: #fafafa;
|
|
678
685
|
border-color: #d5d5d5;
|
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-wrap: wrap;
|
|
4
4
|
width: 100%;
|
|
5
|
+
.n-radio-input {
|
|
6
|
+
width: 14px;
|
|
7
|
+
height: 14px;
|
|
8
|
+
}
|
|
5
9
|
.scale-choice-img-wrap {
|
|
6
10
|
display: inline-block;
|
|
7
11
|
position: relative;
|
|
@@ -74,14 +78,14 @@
|
|
|
74
78
|
display: inline-flex;
|
|
75
79
|
align-items: center;
|
|
76
80
|
margin: 4px 0;
|
|
77
|
-
|
|
81
|
+
.n-radio__label {
|
|
78
82
|
flex: 1;
|
|
79
83
|
display: inline-flex;
|
|
80
84
|
align-items: center;
|
|
81
85
|
white-space: normal;
|
|
82
86
|
}
|
|
83
87
|
}
|
|
84
|
-
>
|
|
88
|
+
> .n-checkbox {
|
|
85
89
|
display: inline-flex;
|
|
86
90
|
align-items: center;
|
|
87
91
|
margin: 4px 0;
|
|
@@ -118,7 +122,7 @@
|
|
|
118
122
|
padding-bottom: 50px;
|
|
119
123
|
box-sizing: border-box;
|
|
120
124
|
color: rgba(0, 0, 0, 0.65);
|
|
121
|
-
|
|
125
|
+
.n-form-item-label {
|
|
122
126
|
font-weight: 700;
|
|
123
127
|
}
|
|
124
128
|
.scale-container {
|
|
@@ -149,7 +153,7 @@
|
|
|
149
153
|
background-color: #dbdcdc;
|
|
150
154
|
}
|
|
151
155
|
}
|
|
152
|
-
|
|
156
|
+
.no-data-tip {
|
|
153
157
|
width: 100%;
|
|
154
158
|
height: 100%;
|
|
155
159
|
}
|
|
@@ -221,10 +225,10 @@
|
|
|
221
225
|
}
|
|
222
226
|
.rich-text-content {
|
|
223
227
|
word-break: break-all;
|
|
224
|
-
|
|
228
|
+
p {
|
|
225
229
|
margin-bottom: 0;
|
|
226
230
|
}
|
|
227
|
-
|
|
231
|
+
img {
|
|
228
232
|
max-width: 100%;
|
|
229
233
|
}
|
|
230
234
|
}
|
|
@@ -536,6 +540,9 @@
|
|
|
536
540
|
width: 100%;
|
|
537
541
|
text-align: left;
|
|
538
542
|
}
|
|
543
|
+
.n-form-item {
|
|
544
|
+
--n-label-height: unset !important;
|
|
545
|
+
}
|
|
539
546
|
}
|
|
540
547
|
|
|
541
548
|
.no-data-tip {
|
|
@@ -627,7 +634,7 @@
|
|
|
627
634
|
.c-map-container {
|
|
628
635
|
width: 100%;
|
|
629
636
|
cursor: pointer;
|
|
630
|
-
|
|
637
|
+
.n-input.map-input {
|
|
631
638
|
.n-input__prefix {
|
|
632
639
|
transform: rotate(180deg);
|
|
633
640
|
.n-icon {
|
|
@@ -648,7 +655,7 @@
|
|
|
648
655
|
|
|
649
656
|
.c-scale-upload {
|
|
650
657
|
width: 100%;
|
|
651
|
-
|
|
658
|
+
.n-upload-file-list {
|
|
652
659
|
display: flex;
|
|
653
660
|
.n-upload-file .n-upload-file-info .n-upload-file-info__action.n-upload-file-info__action--image-card-type {
|
|
654
661
|
box-sizing: border-box;
|
|
@@ -699,7 +706,7 @@
|
|
|
699
706
|
.dragger-upload-text {
|
|
700
707
|
color: rgba(0, 0, 0, 0.65)
|
|
701
708
|
}
|
|
702
|
-
|
|
709
|
+
.n-upload-file-list {
|
|
703
710
|
display: flex;
|
|
704
711
|
flex-direction: column;
|
|
705
712
|
width: 100%;
|
|
@@ -708,7 +715,7 @@
|
|
|
708
715
|
}
|
|
709
716
|
|
|
710
717
|
}
|
|
711
|
-
|
|
718
|
+
.n-upload-trigger {
|
|
712
719
|
width: 100%;
|
|
713
720
|
background: #fafafa;
|
|
714
721
|
border-color: #d5d5d5;
|
|
@@ -102,9 +102,11 @@ declare const SelectLabel: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
102
102
|
}>;
|
|
103
103
|
};
|
|
104
104
|
}>> & {
|
|
105
|
-
|
|
105
|
+
onOnChange?: ((...args: any[]) => any) | undefined;
|
|
106
|
+
onScaleChange?: ((...args: any[]) => any) | undefined;
|
|
107
|
+
onVodFileList?: ((...args: any[]) => any) | undefined;
|
|
106
108
|
}>>;
|
|
107
|
-
emit: (event: "
|
|
109
|
+
emit: (event: "onChange" | "scaleChange" | "vodFileList", ...args: any[]) => void;
|
|
108
110
|
labelFormContentRef: import("vue").Ref<null>;
|
|
109
111
|
state: {
|
|
110
112
|
labelVisible: boolean;
|
|
@@ -7459,7 +7461,7 @@ declare const SelectLabel: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
7459
7461
|
saveLabelItem: Function;
|
|
7460
7462
|
}>;
|
|
7461
7463
|
handleLabelColor: typeof import("../../src/utils/vexutils").handleLabelColor;
|
|
7462
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "
|
|
7464
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onChange" | "scaleChange" | "vodFileList")[], "onChange" | "scaleChange" | "vodFileList", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
7463
7465
|
selectedList: {
|
|
7464
7466
|
type: ArrayConstructor;
|
|
7465
7467
|
required: false;
|
|
@@ -7510,7 +7512,9 @@ declare const SelectLabel: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
7510
7512
|
}>;
|
|
7511
7513
|
};
|
|
7512
7514
|
}>> & {
|
|
7513
|
-
|
|
7515
|
+
onOnChange?: ((...args: any[]) => any) | undefined;
|
|
7516
|
+
onScaleChange?: ((...args: any[]) => any) | undefined;
|
|
7517
|
+
onVodFileList?: ((...args: any[]) => any) | undefined;
|
|
7514
7518
|
}, {
|
|
7515
7519
|
isDetail: boolean;
|
|
7516
7520
|
selectedList: unknown[];
|
|
@@ -103,9 +103,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
103
103
|
}>;
|
|
104
104
|
};
|
|
105
105
|
}>> & {
|
|
106
|
-
|
|
106
|
+
onOnChange?: ((...args: any[]) => any) | undefined;
|
|
107
|
+
onScaleChange?: ((...args: any[]) => any) | undefined;
|
|
108
|
+
onVodFileList?: ((...args: any[]) => any) | undefined;
|
|
107
109
|
}>>;
|
|
108
|
-
emit: (event: "
|
|
110
|
+
emit: (event: "onChange" | "scaleChange" | "vodFileList", ...args: any[]) => void;
|
|
109
111
|
labelFormContentRef: import("vue").Ref<null>;
|
|
110
112
|
state: {
|
|
111
113
|
labelVisible: boolean;
|
|
@@ -3701,11 +3703,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3701
3703
|
linkTextColorActive: string;
|
|
3702
3704
|
linkFontSize: string;
|
|
3703
3705
|
linkPadding: string;
|
|
3704
|
-
railWidth: string;
|
|
3705
|
-
* labelObj 展示的分类值
|
|
3706
|
-
* labelList 原始数据结构
|
|
3707
|
-
* selectList 已选的数据
|
|
3708
|
-
*/
|
|
3706
|
+
railWidth: string;
|
|
3709
3707
|
}, any>>>;
|
|
3710
3708
|
}, {
|
|
3711
3709
|
scrollTo(href: string): void;
|
|
@@ -4576,11 +4574,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4576
4574
|
borderRadius: string;
|
|
4577
4575
|
color: string;
|
|
4578
4576
|
dividerColor: string;
|
|
4579
|
-
textColor: string;
|
|
4580
|
-
* labelObj 展示的分类值
|
|
4581
|
-
* labelList 原始数据结构
|
|
4582
|
-
* selectList 已选的数据
|
|
4583
|
-
*/
|
|
4577
|
+
textColor: string;
|
|
4584
4578
|
boxShadow: string;
|
|
4585
4579
|
space: string;
|
|
4586
4580
|
spaceArrow: string;
|
|
@@ -6491,7 +6485,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6491
6485
|
NInput: import("vue").DefineComponent<{
|
|
6492
6486
|
bordered: {
|
|
6493
6487
|
type: import("vue").PropType<boolean | undefined>;
|
|
6494
|
-
default: undefined;
|
|
6488
|
+
default: undefined; /**
|
|
6489
|
+
* 清空选项和常用值;
|
|
6490
|
+
*/
|
|
6495
6491
|
};
|
|
6496
6492
|
type: {
|
|
6497
6493
|
type: import("vue").PropType<"text" | "textarea" | "password">;
|
|
@@ -7468,7 +7464,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7468
7464
|
saveLabelItem: Function;
|
|
7469
7465
|
}>;
|
|
7470
7466
|
handleLabelColor: typeof handleLabelColor;
|
|
7471
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "
|
|
7467
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onChange" | "scaleChange" | "vodFileList")[], "onChange" | "scaleChange" | "vodFileList", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
7472
7468
|
selectedList: {
|
|
7473
7469
|
type: ArrayConstructor;
|
|
7474
7470
|
required: false;
|
|
@@ -7519,7 +7515,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7519
7515
|
}>;
|
|
7520
7516
|
};
|
|
7521
7517
|
}>> & {
|
|
7522
|
-
|
|
7518
|
+
onOnChange?: ((...args: any[]) => any) | undefined;
|
|
7519
|
+
onScaleChange?: ((...args: any[]) => any) | undefined;
|
|
7520
|
+
onVodFileList?: ((...args: any[]) => any) | undefined;
|
|
7523
7521
|
}, {
|
|
7524
7522
|
isDetail: boolean;
|
|
7525
7523
|
selectedList: unknown[];
|
|
@@ -67,7 +67,7 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
67
67
|
})
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
|
-
emits: ["
|
|
70
|
+
emits: ["onChange", "scaleChange", "vodFileList"],
|
|
71
71
|
setup(__props, {
|
|
72
72
|
emit
|
|
73
73
|
}) {
|
|
@@ -127,7 +127,7 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
127
127
|
if (fdIndex != -1) {
|
|
128
128
|
selectedList.splice(fdIndex, 1);
|
|
129
129
|
}
|
|
130
|
-
emit("
|
|
130
|
+
emit("onChange", [...selectedList]);
|
|
131
131
|
state.labelSelectedList = selectedList;
|
|
132
132
|
hanldeSetLabelItem(d.labelId, false);
|
|
133
133
|
};
|
|
@@ -148,7 +148,7 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
148
148
|
selectedList.splice(fdIndex, 1);
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
|
-
emit("
|
|
151
|
+
emit("onChange", [...selectedList]);
|
|
152
152
|
state.labelSelectedList = selectedList;
|
|
153
153
|
};
|
|
154
154
|
const handleEditLabel = (type) => {
|
|
@@ -183,7 +183,7 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
183
183
|
const handleSaveLabel = () => {
|
|
184
184
|
var _a;
|
|
185
185
|
(_a = labelFormContentRef.value) == null ? void 0 : _a.handleLabelForm((selectList) => {
|
|
186
|
-
emit("
|
|
186
|
+
emit("onChange", [...selectList]);
|
|
187
187
|
state.labelSelectedList = selectList;
|
|
188
188
|
hadleCommonlabels(state.commonLabelList, selectList);
|
|
189
189
|
handleLabelCancel();
|
|
@@ -320,6 +320,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
320
320
|
textColorDisabledPrimary: string;
|
|
321
321
|
textColorTextPrimary: string;
|
|
322
322
|
textColorTextHoverPrimary: string;
|
|
323
|
+
/** 提交映射 */
|
|
323
324
|
textColorTextPressedPrimary: string;
|
|
324
325
|
textColorTextFocusPrimary: string;
|
|
325
326
|
textColorTextDisabledPrimary: string;
|
|
@@ -1668,9 +1669,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1668
1669
|
onInput: import("vue").PropType<import("naive-ui/es/input/src/interface").OnUpdateValue>;
|
|
1669
1670
|
onFocus: import("vue").PropType<import("naive-ui/es/_utils").MaybeArray<(e: FocusEvent) => void>>;
|
|
1670
1671
|
onBlur: import("vue").PropType<import("naive-ui/es/_utils").MaybeArray<(e: FocusEvent) => void>>;
|
|
1671
|
-
onClick: import("vue").PropType<import("naive-ui/es/_utils").MaybeArray<(e: MouseEvent) => void>>;
|
|
1672
|
-
* 过滤默认值的右边展示
|
|
1673
|
-
*/
|
|
1672
|
+
onClick: import("vue").PropType<import("naive-ui/es/_utils").MaybeArray<(e: MouseEvent) => void>>;
|
|
1674
1673
|
onChange: import("vue").PropType<import("naive-ui/es/input/src/interface").OnUpdateValue>;
|
|
1675
1674
|
onClear: import("vue").PropType<import("naive-ui/es/_utils").MaybeArray<(e: MouseEvent) => void>>;
|
|
1676
1675
|
status: import("vue").PropType<import("naive-ui/es/form/src/interface").FormValidationStatus>;
|
|
@@ -2113,7 +2112,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2113
2112
|
'--n-height': string;
|
|
2114
2113
|
'--n-padding-left': string;
|
|
2115
2114
|
'--n-padding-right': string;
|
|
2116
|
-
'--n-text-color': string;
|
|
2115
|
+
'--n-text-color': string;
|
|
2117
2116
|
'--n-caret-color': string;
|
|
2118
2117
|
'--n-text-decoration-color': string;
|
|
2119
2118
|
'--n-border': string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, reactive, computed, nextTick, watch, onMounted, openBlock, createElementBlock, createVNode, unref, withCtx, createElementVNode, createCommentVNode, createTextVNode, toDisplayString, createBlock, withDirectives, vShow, mergeProps, renderSlot, Fragment, renderList, normalizeClass } from 'vue';
|
|
1
|
+
import { defineComponent, ref, reactive, computed, nextTick, watch, onMounted, openBlock, createElementBlock, createVNode, unref, withCtx, createElementVNode, createCommentVNode, withKeys, createTextVNode, toDisplayString, createBlock, withDirectives, vShow, mergeProps, renderSlot, Fragment, renderList, normalizeClass } from 'vue';
|
|
2
2
|
import { useMessage, NSpin, NInputGroup, NInput, NButton, NCheckbox, NTree, NIcon, NTooltip } from 'naive-ui';
|
|
3
3
|
import { CloseCircleSharp } from '@vicons/ionicons5';
|
|
4
4
|
import vexutils from 'cnhis-design-vue/es/src/utils/vexutils';
|
|
@@ -350,12 +350,13 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
350
350
|
const generateDataList = (data, dataList) => {
|
|
351
351
|
for (let i = 0; i < data.length; i++) {
|
|
352
352
|
const node = data[i];
|
|
353
|
-
dataList.push({
|
|
354
|
-
parentId: getParentId(node),
|
|
355
|
-
...node
|
|
356
|
-
});
|
|
357
353
|
if (node.children) {
|
|
358
354
|
generateDataList(node.children, dataList);
|
|
355
|
+
} else {
|
|
356
|
+
dataList.push({
|
|
357
|
+
parentId: getParentId(node),
|
|
358
|
+
...node
|
|
359
|
+
});
|
|
359
360
|
}
|
|
360
361
|
}
|
|
361
362
|
};
|
|
@@ -504,28 +505,24 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
504
505
|
});
|
|
505
506
|
};
|
|
506
507
|
const staticDataSearch = () => {
|
|
508
|
+
state.expandedKeys = [];
|
|
507
509
|
if (!state.title) {
|
|
508
510
|
state.treeData.main = JSON.parse(JSON.stringify(props.data));
|
|
509
511
|
return;
|
|
510
512
|
}
|
|
511
|
-
let copyData = JSON.parse(JSON.stringify(
|
|
512
|
-
filterTree({
|
|
513
|
+
let copyData = JSON.parse(JSON.stringify(props.data));
|
|
514
|
+
state.treeData.main = filterTree({
|
|
513
515
|
value: state.title,
|
|
514
516
|
data: copyData,
|
|
515
|
-
prop: "title"
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
if (item.visible) {
|
|
521
|
-
expandedKeys.push(item.key);
|
|
522
|
-
}
|
|
523
|
-
if ((_a = item.children) == null ? void 0 : _a.length) {
|
|
524
|
-
item.children = item.children.filter((child) => child.visible);
|
|
517
|
+
prop: "title",
|
|
518
|
+
filter: true,
|
|
519
|
+
callback: (child) => {
|
|
520
|
+
var _a;
|
|
521
|
+
child.visible && ((_a = child.children) == null ? void 0 : _a.length) && state.expandedKeys.push(child.key);
|
|
525
522
|
}
|
|
526
|
-
});
|
|
527
|
-
state.
|
|
528
|
-
state.
|
|
523
|
+
}) || [];
|
|
524
|
+
state.dataList.main = [];
|
|
525
|
+
generateDataList(state.treeData.main, state.dataList.main);
|
|
529
526
|
};
|
|
530
527
|
const onExpand = (expandedKeys) => {
|
|
531
528
|
state.expandedKeys = expandedKeys;
|
|
@@ -546,10 +543,23 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
546
543
|
state.indeterminate = false;
|
|
547
544
|
state.singleChecked = false;
|
|
548
545
|
} else {
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
546
|
+
const getAllKeys = (tree) => {
|
|
547
|
+
if (!(tree == null ? void 0 : tree.length))
|
|
548
|
+
return 0;
|
|
549
|
+
let n = 0;
|
|
550
|
+
tree.forEach((item) => {
|
|
551
|
+
var _a;
|
|
552
|
+
if (!((_a = item == null ? void 0 : item.children) == null ? void 0 : _a.length)) {
|
|
553
|
+
n++;
|
|
554
|
+
} else {
|
|
555
|
+
n += getAllKeys(item.children);
|
|
556
|
+
}
|
|
557
|
+
});
|
|
558
|
+
return n;
|
|
559
|
+
};
|
|
560
|
+
let keys = getAllKeys(state.treeData.main);
|
|
561
|
+
state.indeterminate = !(keys == state.checkedKeys.main.length);
|
|
562
|
+
state.singleChecked = keys == state.checkedKeys.main.length;
|
|
553
563
|
}
|
|
554
564
|
};
|
|
555
565
|
const addCheckedkeysMain = (keys) => {
|
|
@@ -590,9 +600,9 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
590
600
|
};
|
|
591
601
|
const radioChange = (checked) => {
|
|
592
602
|
if (searchTreeVisable.value) {
|
|
593
|
-
state.singleChecked = checked;
|
|
594
|
-
} else {
|
|
595
603
|
state.searchChecked = checked;
|
|
604
|
+
} else {
|
|
605
|
+
state.singleChecked = checked;
|
|
596
606
|
}
|
|
597
607
|
checkAll(checked ? 1 : 2);
|
|
598
608
|
};
|
|
@@ -601,6 +611,8 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
601
611
|
return false;
|
|
602
612
|
if (type == 1) {
|
|
603
613
|
state.expandedKeys = [];
|
|
614
|
+
state.dataList.main = [];
|
|
615
|
+
generateDataList(state.treeData.main, state.dataList.main);
|
|
604
616
|
state.checkedKeys.main = dataListMainKeys.value;
|
|
605
617
|
} else if (type == 2) {
|
|
606
618
|
state.checkedKeys.main = [];
|
|
@@ -775,8 +787,11 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
775
787
|
immediate: true
|
|
776
788
|
});
|
|
777
789
|
watch(() => state.checkedKeys.main, (val) => {
|
|
778
|
-
|
|
779
|
-
|
|
790
|
+
if (!searchTreeVisable.value) {
|
|
791
|
+
isAllCheck(val);
|
|
792
|
+
} else {
|
|
793
|
+
isSearchAllCheck();
|
|
794
|
+
}
|
|
780
795
|
emit("check", val);
|
|
781
796
|
}, {
|
|
782
797
|
immediate: true,
|
|
@@ -806,8 +821,9 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
806
821
|
clearable: "",
|
|
807
822
|
value: state.title,
|
|
808
823
|
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => state.title = $event),
|
|
809
|
-
placeholder: __props.searchPlaceholder
|
|
810
|
-
|
|
824
|
+
placeholder: __props.searchPlaceholder,
|
|
825
|
+
onKeyup: withKeys(searchClick, ["enter", "native"])
|
|
826
|
+
}, null, 8, ["value", "placeholder", "onKeyup"]), createVNode(unref(NButton), {
|
|
811
827
|
type: "primary",
|
|
812
828
|
onClick: searchClick
|
|
813
829
|
}, {
|
|
@@ -826,15 +842,15 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
826
842
|
}, 8, ["checked", "indeterminate"])) : (openBlock(), createBlock(unref(NCheckbox), {
|
|
827
843
|
key: 1,
|
|
828
844
|
checked: state.singleChecked,
|
|
829
|
-
|
|
830
|
-
|
|
845
|
+
indeterminate: state.searchIndeterminate,
|
|
846
|
+
"onUpdate:checked": radioChange
|
|
831
847
|
}, {
|
|
832
848
|
default: withCtx(() => [_hoisted_5]),
|
|
833
849
|
_: 1
|
|
834
850
|
}, 8, ["checked", "indeterminate"])), createCommentVNode(' <div v-show="state.search.status == 3 || (state.search.status == 0 && state.treeData.main && state.treeData.main.length == 0)" class="no-data-tips">\r\n \u67E5\u65E0\u7ED3\u679C\r\n </div> '), createCommentVNode(" main tree "), withDirectives(createVNode(unref(NTree), {
|
|
835
851
|
class: "main-tree-container",
|
|
836
852
|
"checked-keys": state.checkedKeys.main,
|
|
837
|
-
"onUpdate:checked-keys": _cache[
|
|
853
|
+
"onUpdate:checked-keys": _cache[2] || (_cache[2] = ($event) => state.checkedKeys.main = $event),
|
|
838
854
|
"expanded-keys": state.expandedKeys,
|
|
839
855
|
checkable: "",
|
|
840
856
|
cascade: "",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export declare const filterTree: ({ value, data, prop, filter, filterXor, children, visible, filterChildren, callback }: {
|
|
2
2
|
value?: string | undefined;
|
|
3
3
|
data?: any[] | undefined;
|
|
4
4
|
prop?: string | undefined;
|
|
@@ -7,6 +7,6 @@ export function filterTree({ value, data, prop, filter, filterXor, children, vis
|
|
|
7
7
|
children?: string | undefined;
|
|
8
8
|
visible?: string | undefined;
|
|
9
9
|
filterChildren?: boolean | undefined;
|
|
10
|
-
callback?:
|
|
11
|
-
})
|
|
12
|
-
export
|
|
10
|
+
callback?: Function | undefined;
|
|
11
|
+
}) => any[] | undefined;
|
|
12
|
+
export declare const deepTraversalFirst: (node: any, nodeList?: any[]) => any[];
|
|
@@ -1,4 +1,14 @@
|
|
|
1
|
-
const filterTree = ({
|
|
1
|
+
const filterTree = ({
|
|
2
|
+
value = "",
|
|
3
|
+
data = [],
|
|
4
|
+
prop = "title",
|
|
5
|
+
filter = false,
|
|
6
|
+
filterXor = false,
|
|
7
|
+
children = "children",
|
|
8
|
+
visible = "visible",
|
|
9
|
+
filterChildren = true,
|
|
10
|
+
callback
|
|
11
|
+
}) => {
|
|
2
12
|
visible = visible || "visible";
|
|
3
13
|
children = children || "children";
|
|
4
14
|
prop = prop || "text";
|
|
@@ -9,17 +19,30 @@ const filterTree = ({ value = "", data = [], prop = "title", filter = false, fil
|
|
|
9
19
|
let flag = (data2[prop] || "").indexOf(value2) !== -1;
|
|
10
20
|
return filterXor ? !flag : flag;
|
|
11
21
|
};
|
|
22
|
+
const setVisible = (tree, isVisible) => {
|
|
23
|
+
if (!(tree == null ? void 0 : tree.length))
|
|
24
|
+
return;
|
|
25
|
+
tree.forEach((item) => {
|
|
26
|
+
var _a;
|
|
27
|
+
item[visible] = isVisible;
|
|
28
|
+
((_a = item[children]) == null ? void 0 : _a.length) && setVisible(item[children], isVisible);
|
|
29
|
+
});
|
|
30
|
+
};
|
|
12
31
|
const traverse = function(node) {
|
|
13
32
|
const childNodes = node[children] || [];
|
|
14
33
|
childNodes.forEach((child) => {
|
|
15
|
-
|
|
16
|
-
child[visible] = !node.root && !filterChildren && node[visible] || filterNodeMethod.call(child, value, child, prop);
|
|
34
|
+
child[visible] = !node.root && !filterChildren && node[visible] || filterNodeMethod.call(child, value, child);
|
|
17
35
|
traverse(child);
|
|
36
|
+
callback && callback(child);
|
|
18
37
|
});
|
|
19
|
-
if (
|
|
38
|
+
if (childNodes.length) {
|
|
20
39
|
let allHidden = true;
|
|
21
40
|
allHidden = !childNodes.some((child) => child[visible]);
|
|
22
|
-
node[visible]
|
|
41
|
+
if (!node[visible]) {
|
|
42
|
+
node[visible] = allHidden === false;
|
|
43
|
+
} else {
|
|
44
|
+
setVisible(childNodes, true);
|
|
45
|
+
}
|
|
23
46
|
}
|
|
24
47
|
};
|
|
25
48
|
let totalData = {
|
|
@@ -31,10 +54,14 @@ const filterTree = ({ value = "", data = [], prop = "title", filter = false, fil
|
|
|
31
54
|
let copyData = data.slice();
|
|
32
55
|
let filterHandle = (filterData) => {
|
|
33
56
|
return filterData.filter((item, index) => {
|
|
57
|
+
var _a;
|
|
34
58
|
if (item[visible]) {
|
|
35
59
|
if (item[children]) {
|
|
36
60
|
item[children] = filterHandle(item[children]);
|
|
37
61
|
}
|
|
62
|
+
if (!((_a = item[children]) == null ? void 0 : _a.length)) {
|
|
63
|
+
item[children] = void 0;
|
|
64
|
+
}
|
|
38
65
|
return true;
|
|
39
66
|
}
|
|
40
67
|
return false;
|
package/es/src/types/index.d.ts
CHANGED
|
@@ -6,3 +6,4 @@ export declare type AnyObject = Record<string, any>;
|
|
|
6
6
|
export declare type Func<T extends Array<any> = any[], P = any> = (...args: T) => P;
|
|
7
7
|
export declare type WithNull<T> = T | null;
|
|
8
8
|
export declare type WithUndefined<T> = T | undefined;
|
|
9
|
+
export declare type ArrayAble<T> = T | T[];
|