cnhis-design-vue 3.1.42-beta.34 → 3.1.42-beta.36
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/button-print/index.d.ts +4 -4
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +4 -4
- 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/fabric-chart/index.d.ts +2 -2
- package/es/components/fabric-chart/src/FabricChart.vue.d.ts +2 -2
- package/es/components/field-set/index.d.ts +26 -81
- package/es/components/field-set/src/FieldSet.vue.d.ts +28 -32
- package/es/components/field-set/src/FieldSet.vue.js +1 -1
- package/es/components/field-set/style/index.css +1 -1
- package/es/components/form-config/index.d.ts +4 -4
- package/es/components/form-config/src/FormConfig.vue.d.ts +4 -4
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +2 -2
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +2 -2
- package/es/components/form-render/index.d.ts +2 -2
- package/es/components/form-render/src/FormRender.vue.d.ts +2 -2
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +2 -2
- package/es/components/form-render/src/components/renderer/select.js +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.js +1 -1
- package/es/components/iho-table/style/index.css +1 -1
- package/es/components/index.css +1 -1
- package/es/components/info-header/index.d.ts +4 -4
- package/es/components/info-header/src/InfoHeader.vue.d.ts +4 -4
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +2 -2
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +2 -2
- package/es/components/recommend-search/index.d.ts +4 -4
- package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +4 -4
- package/es/components/scale-view/src/components/formitem/standard-modal.d.ts +3 -3
- package/es/components/shortcut-setter/index.d.ts +2 -2
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +2 -2
- package/package.json +2 -2
|
@@ -917,7 +917,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
917
917
|
NUpload: any;
|
|
918
918
|
NUploadDragger: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
919
919
|
NP: import("vue").DefineComponent<{
|
|
920
|
-
depth: import("vue").PropType<2 | 1 | "1" | "2" | 3 |
|
|
920
|
+
depth: import("vue").PropType<2 | 1 | "1" | "2" | "3" | 3>;
|
|
921
921
|
theme: import("vue").PropType<import("naive-ui/es/_mixins").Theme<"Typography", {
|
|
922
922
|
aTextColor: string;
|
|
923
923
|
blockquoteTextColor: string;
|
|
@@ -1128,7 +1128,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1128
1128
|
themeClass: import("vue").Ref<string> | undefined;
|
|
1129
1129
|
onRender: (() => void) | undefined;
|
|
1130
1130
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1131
|
-
depth: import("vue").PropType<2 | 1 | "1" | "2" | 3 |
|
|
1131
|
+
depth: import("vue").PropType<2 | 1 | "1" | "2" | "3" | 3>;
|
|
1132
1132
|
theme: import("vue").PropType<import("naive-ui/es/_mixins").Theme<"Typography", {
|
|
1133
1133
|
aTextColor: string;
|
|
1134
1134
|
blockquoteTextColor: string;
|
|
@@ -1339,7 +1339,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1339
1339
|
readonly strong: BooleanConstructor;
|
|
1340
1340
|
readonly italic: BooleanConstructor;
|
|
1341
1341
|
readonly underline: BooleanConstructor;
|
|
1342
|
-
readonly depth: import("vue").PropType<2 | 1 | "1" | "2" | 3 |
|
|
1342
|
+
readonly depth: import("vue").PropType<2 | 1 | "1" | "2" | "3" | 3>;
|
|
1343
1343
|
readonly tag: StringConstructor;
|
|
1344
1344
|
readonly as: {
|
|
1345
1345
|
readonly type: StringConstructor;
|
|
@@ -1569,7 +1569,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1569
1569
|
readonly strong: BooleanConstructor;
|
|
1570
1570
|
readonly italic: BooleanConstructor;
|
|
1571
1571
|
readonly underline: BooleanConstructor;
|
|
1572
|
-
readonly depth: import("vue").PropType<2 | 1 | "1" | "2" | 3 |
|
|
1572
|
+
readonly depth: import("vue").PropType<2 | 1 | "1" | "2" | "3" | 3>;
|
|
1573
1573
|
readonly tag: StringConstructor;
|
|
1574
1574
|
readonly as: {
|
|
1575
1575
|
readonly type: StringConstructor;
|
|
@@ -925,7 +925,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
925
925
|
NUpload: any;
|
|
926
926
|
NUploadDragger: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
927
927
|
NP: import("vue").DefineComponent<{
|
|
928
|
-
depth: PropType<2 | 1 | "1" | "2" | 3 |
|
|
928
|
+
depth: PropType<2 | 1 | "1" | "2" | "3" | 3>;
|
|
929
929
|
theme: PropType<import("naive-ui/es/_mixins").Theme<"Typography", {
|
|
930
930
|
aTextColor: string;
|
|
931
931
|
blockquoteTextColor: string;
|
|
@@ -1136,7 +1136,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1136
1136
|
themeClass: import("vue").Ref<string> | undefined;
|
|
1137
1137
|
onRender: (() => void) | undefined;
|
|
1138
1138
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1139
|
-
depth: PropType<2 | 1 | "1" | "2" | 3 |
|
|
1139
|
+
depth: PropType<2 | 1 | "1" | "2" | "3" | 3>;
|
|
1140
1140
|
theme: PropType<import("naive-ui/es/_mixins").Theme<"Typography", {
|
|
1141
1141
|
aTextColor: string;
|
|
1142
1142
|
blockquoteTextColor: string;
|
|
@@ -1347,7 +1347,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1347
1347
|
readonly strong: BooleanConstructor;
|
|
1348
1348
|
readonly italic: BooleanConstructor;
|
|
1349
1349
|
readonly underline: BooleanConstructor;
|
|
1350
|
-
readonly depth: PropType<2 | 1 | "1" | "2" | 3 |
|
|
1350
|
+
readonly depth: PropType<2 | 1 | "1" | "2" | "3" | 3>;
|
|
1351
1351
|
readonly tag: StringConstructor;
|
|
1352
1352
|
readonly as: {
|
|
1353
1353
|
readonly type: StringConstructor;
|
|
@@ -1577,7 +1577,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1577
1577
|
readonly strong: BooleanConstructor;
|
|
1578
1578
|
readonly italic: BooleanConstructor;
|
|
1579
1579
|
readonly underline: BooleanConstructor;
|
|
1580
|
-
readonly depth: PropType<2 | 1 | "1" | "2" | 3 |
|
|
1580
|
+
readonly depth: PropType<2 | 1 | "1" | "2" | "3" | 3>;
|
|
1581
1581
|
readonly tag: StringConstructor;
|
|
1582
1582
|
readonly as: {
|
|
1583
1583
|
readonly type: StringConstructor;
|
|
@@ -363,7 +363,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
363
363
|
NUpload: any;
|
|
364
364
|
NUploadDragger: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
365
365
|
NP: import("vue").DefineComponent<{
|
|
366
|
-
depth: import("vue").PropType<2 | 1 | "1" | "2" | 3 |
|
|
366
|
+
depth: import("vue").PropType<2 | 1 | "1" | "2" | "3" | 3>;
|
|
367
367
|
theme: import("vue").PropType<import("naive-ui/es/_mixins").Theme<"Typography", {
|
|
368
368
|
aTextColor: string;
|
|
369
369
|
blockquoteTextColor: string;
|
|
@@ -574,7 +574,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
574
574
|
themeClass: import("vue").Ref<string> | undefined;
|
|
575
575
|
onRender: (() => void) | undefined;
|
|
576
576
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
577
|
-
depth: import("vue").PropType<2 | 1 | "1" | "2" | 3 |
|
|
577
|
+
depth: import("vue").PropType<2 | 1 | "1" | "2" | "3" | 3>;
|
|
578
578
|
theme: import("vue").PropType<import("naive-ui/es/_mixins").Theme<"Typography", {
|
|
579
579
|
aTextColor: string;
|
|
580
580
|
blockquoteTextColor: string;
|
|
@@ -785,7 +785,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
785
785
|
readonly strong: BooleanConstructor;
|
|
786
786
|
readonly italic: BooleanConstructor;
|
|
787
787
|
readonly underline: BooleanConstructor;
|
|
788
|
-
readonly depth: import("vue").PropType<2 | 1 | "1" | "2" | 3 |
|
|
788
|
+
readonly depth: import("vue").PropType<2 | 1 | "1" | "2" | "3" | 3>;
|
|
789
789
|
readonly tag: StringConstructor;
|
|
790
790
|
readonly as: {
|
|
791
791
|
readonly type: StringConstructor;
|
|
@@ -1015,7 +1015,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1015
1015
|
readonly strong: BooleanConstructor;
|
|
1016
1016
|
readonly italic: BooleanConstructor;
|
|
1017
1017
|
readonly underline: BooleanConstructor;
|
|
1018
|
-
readonly depth: import("vue").PropType<2 | 1 | "1" | "2" | 3 |
|
|
1018
|
+
readonly depth: import("vue").PropType<2 | 1 | "1" | "2" | "3" | 3>;
|
|
1019
1019
|
readonly tag: StringConstructor;
|
|
1020
1020
|
readonly as: {
|
|
1021
1021
|
readonly type: StringConstructor;
|
|
@@ -720,7 +720,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
720
720
|
NUpload: any;
|
|
721
721
|
NUploadDragger: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
722
722
|
NP: import("vue").DefineComponent<{
|
|
723
|
-
depth: import("vue").PropType<2 | 1 | "1" | "2" | 3 |
|
|
723
|
+
depth: import("vue").PropType<2 | 1 | "1" | "2" | "3" | 3>;
|
|
724
724
|
theme: import("vue").PropType<import("naive-ui/es/_mixins").Theme<"Typography", {
|
|
725
725
|
aTextColor: string;
|
|
726
726
|
blockquoteTextColor: string;
|
|
@@ -931,7 +931,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
931
931
|
themeClass: import("vue").Ref<string> | undefined;
|
|
932
932
|
onRender: (() => void) | undefined;
|
|
933
933
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
934
|
-
depth: import("vue").PropType<2 | 1 | "1" | "2" | 3 |
|
|
934
|
+
depth: import("vue").PropType<2 | 1 | "1" | "2" | "3" | 3>;
|
|
935
935
|
theme: import("vue").PropType<import("naive-ui/es/_mixins").Theme<"Typography", {
|
|
936
936
|
aTextColor: string;
|
|
937
937
|
blockquoteTextColor: string;
|
|
@@ -1142,7 +1142,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1142
1142
|
readonly strong: BooleanConstructor;
|
|
1143
1143
|
readonly italic: BooleanConstructor;
|
|
1144
1144
|
readonly underline: BooleanConstructor;
|
|
1145
|
-
readonly depth: import("vue").PropType<2 | 1 | "1" | "2" | 3 |
|
|
1145
|
+
readonly depth: import("vue").PropType<2 | 1 | "1" | "2" | "3" | 3>;
|
|
1146
1146
|
readonly tag: StringConstructor;
|
|
1147
1147
|
readonly as: {
|
|
1148
1148
|
readonly type: StringConstructor;
|
|
@@ -1372,7 +1372,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1372
1372
|
readonly strong: BooleanConstructor;
|
|
1373
1373
|
readonly italic: BooleanConstructor;
|
|
1374
1374
|
readonly underline: BooleanConstructor;
|
|
1375
|
-
readonly depth: import("vue").PropType<2 | 1 | "1" | "2" | 3 |
|
|
1375
|
+
readonly depth: import("vue").PropType<2 | 1 | "1" | "2" | "3" | 3>;
|
|
1376
1376
|
readonly tag: StringConstructor;
|
|
1377
1377
|
readonly as: {
|
|
1378
1378
|
readonly type: StringConstructor;
|
|
@@ -30,7 +30,7 @@ declare const FabricChart: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
30
30
|
onAdd?: ((...args: any[]) => any) | undefined;
|
|
31
31
|
onRemove?: ((...args: any[]) => any) | undefined;
|
|
32
32
|
}>>;
|
|
33
|
-
emits: (event: "
|
|
33
|
+
emits: (event: "select" | "change" | "add" | "remove", ...args: any[]) => void;
|
|
34
34
|
isTemperature: import("vue").ComputedRef<boolean>;
|
|
35
35
|
canvasRef: any;
|
|
36
36
|
canvas: import("vue").Ref<any>;
|
|
@@ -182,7 +182,7 @@ declare const FabricChart: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
182
182
|
show: boolean;
|
|
183
183
|
list: unknown[];
|
|
184
184
|
}>;
|
|
185
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
185
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "change" | "add" | "remove")[], "remove" | "select" | "change" | "add", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
186
186
|
type: {
|
|
187
187
|
type: import("vue").PropType<import("./src/interface").IType>;
|
|
188
188
|
default: string;
|
|
@@ -32,7 +32,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
32
32
|
onAdd?: ((...args: any[]) => any) | undefined;
|
|
33
33
|
onRemove?: ((...args: any[]) => any) | undefined;
|
|
34
34
|
}>>;
|
|
35
|
-
emits: (event: "
|
|
35
|
+
emits: (event: "select" | "change" | "add" | "remove", ...args: any[]) => void;
|
|
36
36
|
isTemperature: import("vue").ComputedRef<boolean>;
|
|
37
37
|
canvasRef: any;
|
|
38
38
|
canvas: import("vue").Ref<any>;
|
|
@@ -184,7 +184,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
184
184
|
show: boolean;
|
|
185
185
|
list: unknown[];
|
|
186
186
|
}>;
|
|
187
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
187
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "change" | "add" | "remove")[], "remove" | "select" | "change" | "add", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
188
188
|
type: {
|
|
189
189
|
type: PropType<IType>;
|
|
190
190
|
default: string;
|
|
@@ -36,13 +36,14 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
36
36
|
};
|
|
37
37
|
}, {
|
|
38
38
|
fieldsMapping: Record<string, string>;
|
|
39
|
-
|
|
39
|
+
fixedWayOptions: {
|
|
40
|
+
label: string;
|
|
41
|
+
value: string;
|
|
42
|
+
}[];
|
|
40
43
|
sortOptions: {
|
|
41
44
|
label: string;
|
|
42
45
|
value: string;
|
|
43
46
|
}[];
|
|
44
|
-
emit: (event: "onSave" | "onClose" | "reset", ...args: any[]) => void;
|
|
45
|
-
settingView: any;
|
|
46
47
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
47
48
|
fields: {
|
|
48
49
|
type: import("vue").PropType<Partial<{
|
|
@@ -79,83 +80,25 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
79
80
|
};
|
|
80
81
|
}>> & {
|
|
81
82
|
onReset?: ((...args: any[]) => any) | undefined;
|
|
82
|
-
|
|
83
|
-
|
|
83
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
84
|
+
onSave?: ((...args: any[]) => any) | undefined;
|
|
84
85
|
}>>;
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
isCustomSearch: boolean;
|
|
89
|
-
clickItem: {
|
|
90
|
-
[key: string]: any;
|
|
91
|
-
};
|
|
92
|
-
fields: Partial<{
|
|
93
|
-
[key: string]: any;
|
|
94
|
-
id: string;
|
|
95
|
-
name: string;
|
|
96
|
-
show: boolean;
|
|
97
|
-
sort: boolean;
|
|
98
|
-
sortDirection: "NONE" | "ASC" | "DESC";
|
|
99
|
-
title: string;
|
|
100
|
-
alias: string;
|
|
101
|
-
fixedShow: boolean;
|
|
102
|
-
fixedWay: "NONE" | "LEFT" | "RIGHT";
|
|
103
|
-
columnWidth: number | null;
|
|
104
|
-
editable: boolean;
|
|
105
|
-
editableDisable: boolean;
|
|
106
|
-
required: boolean;
|
|
107
|
-
requiredDisable: boolean;
|
|
108
|
-
hide: boolean;
|
|
109
|
-
}>[];
|
|
110
|
-
widthShow: string;
|
|
111
|
-
widthLarge: string;
|
|
112
|
-
};
|
|
113
|
-
leftStyle: (ele: Partial<{
|
|
114
|
-
[key: string]: any;
|
|
115
|
-
id: string;
|
|
116
|
-
name: string;
|
|
117
|
-
show: boolean;
|
|
118
|
-
sort: boolean;
|
|
119
|
-
sortDirection: "NONE" | "ASC" | "DESC";
|
|
120
|
-
title: string;
|
|
121
|
-
alias: string;
|
|
122
|
-
fixedShow: boolean;
|
|
123
|
-
fixedWay: "NONE" | "LEFT" | "RIGHT";
|
|
124
|
-
columnWidth: number | null;
|
|
125
|
-
editable: boolean;
|
|
126
|
-
editableDisable: boolean;
|
|
127
|
-
required: boolean;
|
|
128
|
-
requiredDisable: boolean;
|
|
129
|
-
hide: boolean;
|
|
130
|
-
}>) => {
|
|
131
|
-
background: string | undefined;
|
|
132
|
-
};
|
|
133
|
-
showCheckBox: (key: string) => boolean;
|
|
134
|
-
hideTab: () => void;
|
|
135
|
-
getTableFields: () => any[];
|
|
86
|
+
emit: (event: "close" | "save" | "reset", ...args: any[]) => void;
|
|
87
|
+
newFields: import("vue").Ref<import("../../../es/shared/types").AnyObject[]>;
|
|
88
|
+
columns: import("vue").Ref<import("../../../es/shared/types").AnyObject[]>;
|
|
136
89
|
handleFieldSave: () => void;
|
|
137
90
|
onCancle: () => void;
|
|
138
91
|
reset: () => void;
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
alias: string;
|
|
150
|
-
fixedShow: boolean;
|
|
151
|
-
fixedWay: "NONE" | "LEFT" | "RIGHT";
|
|
152
|
-
columnWidth: number | null;
|
|
153
|
-
editable: boolean;
|
|
154
|
-
editableDisable: boolean;
|
|
155
|
-
required: boolean;
|
|
156
|
-
requiredDisable: boolean;
|
|
157
|
-
hide: boolean;
|
|
158
|
-
}>) => void;
|
|
92
|
+
setOptions: (column: import("../../../es/shared/types").AnyObject) => {
|
|
93
|
+
label: string;
|
|
94
|
+
value: string;
|
|
95
|
+
}[];
|
|
96
|
+
setStyle: (column: import("../../../es/shared/types").AnyObject) => import("vue").CSSProperties;
|
|
97
|
+
isShowColumn: (column: import("../../../es/shared/types").AnyObject) => boolean;
|
|
98
|
+
initFields: () => import("../../../es/shared/types").AnyObject[];
|
|
99
|
+
getTableFields: () => import("../../../es/shared/types").AnyObject[];
|
|
100
|
+
handleAllCheck: (checked: boolean, field: string) => void;
|
|
101
|
+
handleCheck: (checked: boolean, column: import("../../../es/shared/types").AnyObject) => void;
|
|
159
102
|
isDisable: (item: Partial<{
|
|
160
103
|
[key: string]: any;
|
|
161
104
|
id: string;
|
|
@@ -174,15 +117,16 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
174
117
|
requiredDisable: boolean;
|
|
175
118
|
hide: boolean;
|
|
176
119
|
}>, key: string) => any;
|
|
177
|
-
|
|
120
|
+
initColumns: () => void;
|
|
121
|
+
isNoAllCheck: (field: string) => boolean;
|
|
178
122
|
NButton: any;
|
|
179
123
|
NCheckbox: any;
|
|
180
124
|
NSelect: any;
|
|
181
125
|
NInput: any;
|
|
182
126
|
NInputNumber: any;
|
|
183
|
-
NSpin: any;
|
|
184
127
|
NTooltip: any;
|
|
185
128
|
NPopconfirm: any;
|
|
129
|
+
NIcon: any;
|
|
186
130
|
Draggable: import("vue").DefineComponent<{
|
|
187
131
|
list: {
|
|
188
132
|
type: ArrayConstructor;
|
|
@@ -256,7 +200,8 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
256
200
|
modelValue: unknown[];
|
|
257
201
|
componentData: Record<string, any>;
|
|
258
202
|
}>;
|
|
259
|
-
},
|
|
203
|
+
ReorderTwoOutline: 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<{}>>, {}>;
|
|
204
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "save" | "reset")[], "close" | "save" | "reset", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
260
205
|
fields: {
|
|
261
206
|
type: import("vue").PropType<Partial<{
|
|
262
207
|
[key: string]: any;
|
|
@@ -292,8 +237,8 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
292
237
|
};
|
|
293
238
|
}>> & {
|
|
294
239
|
onReset?: ((...args: any[]) => any) | undefined;
|
|
295
|
-
|
|
296
|
-
|
|
240
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
241
|
+
onSave?: ((...args: any[]) => any) | undefined;
|
|
297
242
|
}, {
|
|
298
243
|
type: string;
|
|
299
244
|
fields: Partial<{
|
|
@@ -1,15 +1,6 @@
|
|
|
1
|
-
import { PropType } from 'vue';
|
|
1
|
+
import { PropType, CSSProperties } from 'vue';
|
|
2
2
|
import { FieldSetItem } from '../../../../es/components/field-set/src/types';
|
|
3
|
-
|
|
4
|
-
spinning: boolean;
|
|
5
|
-
isCustomSearch: boolean;
|
|
6
|
-
clickItem: {
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
};
|
|
9
|
-
fields: FieldSetItem[];
|
|
10
|
-
widthShow: string;
|
|
11
|
-
widthLarge: string;
|
|
12
|
-
};
|
|
3
|
+
import { AnyObject } from '../../../../es/shared/types';
|
|
13
4
|
declare const _default: import("vue").DefineComponent<{
|
|
14
5
|
fields: {
|
|
15
6
|
type: PropType<Partial<{
|
|
@@ -46,13 +37,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
46
37
|
};
|
|
47
38
|
}, {
|
|
48
39
|
fieldsMapping: Record<string, string>;
|
|
49
|
-
|
|
40
|
+
fixedWayOptions: {
|
|
41
|
+
label: string;
|
|
42
|
+
value: string;
|
|
43
|
+
}[];
|
|
50
44
|
sortOptions: {
|
|
51
45
|
label: string;
|
|
52
46
|
value: string;
|
|
53
47
|
}[];
|
|
54
|
-
emit: (event: "onSave" | "onClose" | "reset", ...args: any[]) => void;
|
|
55
|
-
settingView: any;
|
|
56
48
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
57
49
|
fields: {
|
|
58
50
|
type: PropType<Partial<{
|
|
@@ -89,33 +81,36 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
89
81
|
};
|
|
90
82
|
}>> & {
|
|
91
83
|
onReset?: ((...args: any[]) => any) | undefined;
|
|
92
|
-
|
|
93
|
-
|
|
84
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
85
|
+
onSave?: ((...args: any[]) => any) | undefined;
|
|
94
86
|
}>>;
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
background: string | undefined;
|
|
99
|
-
};
|
|
100
|
-
showCheckBox: (key: string) => boolean;
|
|
101
|
-
hideTab: () => void;
|
|
102
|
-
getTableFields: () => any[];
|
|
87
|
+
emit: (event: "close" | "save" | "reset", ...args: any[]) => void;
|
|
88
|
+
newFields: import("vue").Ref<AnyObject[]>;
|
|
89
|
+
columns: import("vue").Ref<AnyObject[]>;
|
|
103
90
|
handleFieldSave: () => void;
|
|
104
91
|
onCancle: () => void;
|
|
105
92
|
reset: () => void;
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
93
|
+
setOptions: (column: AnyObject) => {
|
|
94
|
+
label: string;
|
|
95
|
+
value: string;
|
|
96
|
+
}[];
|
|
97
|
+
setStyle: (column: AnyObject) => CSSProperties;
|
|
98
|
+
isShowColumn: (column: AnyObject) => boolean;
|
|
99
|
+
initFields: () => AnyObject[];
|
|
100
|
+
getTableFields: () => AnyObject[];
|
|
101
|
+
handleAllCheck: (checked: boolean, field: string) => void;
|
|
102
|
+
handleCheck: (checked: boolean, column: AnyObject) => void;
|
|
109
103
|
isDisable: (item: FieldSetItem, key: string) => any;
|
|
110
|
-
|
|
104
|
+
initColumns: () => void;
|
|
105
|
+
isNoAllCheck: (field: string) => boolean;
|
|
111
106
|
NButton: any;
|
|
112
107
|
NCheckbox: any;
|
|
113
108
|
NSelect: any;
|
|
114
109
|
NInput: any;
|
|
115
110
|
NInputNumber: any;
|
|
116
|
-
NSpin: any;
|
|
117
111
|
NTooltip: any;
|
|
118
112
|
NPopconfirm: any;
|
|
113
|
+
NIcon: any;
|
|
119
114
|
Draggable: import("vue").DefineComponent<{
|
|
120
115
|
list: {
|
|
121
116
|
type: ArrayConstructor;
|
|
@@ -189,7 +184,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
189
184
|
modelValue: unknown[];
|
|
190
185
|
componentData: Record<string, any>;
|
|
191
186
|
}>;
|
|
192
|
-
},
|
|
187
|
+
ReorderTwoOutline: 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<{}>>, {}>;
|
|
188
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "save" | "reset")[], "close" | "save" | "reset", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
193
189
|
fields: {
|
|
194
190
|
type: PropType<Partial<{
|
|
195
191
|
[key: string]: any;
|
|
@@ -225,8 +221,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
225
221
|
};
|
|
226
222
|
}>> & {
|
|
227
223
|
onReset?: ((...args: any[]) => any) | undefined;
|
|
228
|
-
|
|
229
|
-
|
|
224
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
225
|
+
onSave?: ((...args: any[]) => any) | undefined;
|
|
230
226
|
}, {
|
|
231
227
|
type: string;
|
|
232
228
|
fields: Partial<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,ref as l,
|
|
1
|
+
import{defineComponent as e,ref as l,watch as t,openBlock as i,createElementBlock as d,createElementVNode as a,Fragment as o,renderList as c,normalizeStyle as s,createBlock as n,unref as r,withCtx as u,createTextVNode as f,toDisplayString as p,createCommentVNode as h,createVNode as v,withDirectives as b,vShow as y,renderSlot as k}from"vue";import{NCheckbox as x,NTooltip as m,NIcon as g,NSelect as _,NInput as A,NInputNumber as S,NPopconfirm as E,NButton as w}from"naive-ui";import W from"../../../shared/components/VueDraggable/src/vuedraggable.js";import{ReorderTwoOutline as N}from"@vicons/ionicons5";import F from"../../../_virtual/plugin-vue_export-helper.js";const U={class:"c-field-set"},O={class:"c-field-set__table-header"},R={class:"c-field-set__table-body"},q=["tabindex"],D=["title"],C=a("span",null,"拖拽调整顺序",-1),T={key:0,class:"c-field-set__table-footer"};var j=F(e({__name:"FieldSet",props:{fields:{type:Array,default:function(){return[]}},footerFlag:{type:Boolean,default:!0},type:{type:String,default:"old"},isEdit:{type:Boolean,default:!1}},emits:["save","close","reset"],setup(e,{expose:F,emit:j}){const P=e,B={sid:"id",columnName:"name",isShow:"show",isSort:"sort",isFixed:"fixedWay",colWidth:"columnWidth"},G=[{label:"不固定",value:"NONE"},{label:"左固定",value:"LEFT"},{label:"右固定",value:"RIGHT"}],H=[{label:"不排序",value:"NONE"},{label:"升序",value:"ASC"},{label:"降序",value:"DESC"}],I=l([]),J=l([{title:"所有字段",type:"text",field:"title"},{title:"显示",type:"checkbox",checkedAll:!1,disabledAll:!1,field:"show"},{title:"编辑",type:"checkbox",checkedAll:!1,disabledAll:!1,field:"editable"},{title:"必填",type:"checkbox",checkedAll:!1,disabledAll:!1,field:"required"},{title:"排序",type:"checkbox",checkedAll:!1,disabledAll:!1,field:"sort"},{title:"加粗",type:"checkbox",checkedAll:!1,disabledAll:!1,field:"bold"},{title:"默认排序",type:"select",field:"sortDirection"},{title:"固定",type:"select",field:"fixedWay"},{title:"自定义标题",type:"input",field:"alias"},{title:"列宽",type:"inputNumber",field:"columnWidth"}]),L=()=>{j("save",{tableFields:Q()})},$=()=>{j("close")};function V(){I.value=M(),Y(),j("reset")}function z(e){return"fixedWay"===e.field?G:H}function K(e){const l={flex:"1 1 90px"};switch(e.type){case"text":Object.assign(l,{flex:"0 0 120px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"});break;case"checkbox":l.flex="1 1 60px";break;case"select":l.flex="1 1 80px";break;case"input":l.flex="1 1 100px"}return l}function M(){const e=JSON.parse(JSON.stringify(P.fields||[]));return Object.keys(B).forEach((l=>{e.forEach((e=>{"old"==P.type&&Reflect.has(e,l)&&("isFixed"==l?e.fixedWay=1==e[l]?"LEFT":2==e[l]?"RIGHT":"NONE":["isShow","isSort"].includes(l)&&"boolean"!=typeof l?e[B[l]]=1==e[l]:e[B[l]]=e[l],Reflect.deleteProperty(e,l)),e.columnWidth=+e.columnWidth||null,Reflect.has(e,"alias")||(e.alias=""),Reflect.has(e,"bold")||(e.bold=!1)}))})),e}const Q=()=>{if("old"==P.type){const e=[];return I.value.length>0&&I.value.forEach(((l,t)=>{e.push({id:l.id,field:l.name,visible:l.show,sequence:t,sortable:l.sort,title:l.alias,fixed:l.fixedWay,minWidth:l.columnWidth,bold:l.bold,sortDirection:l.sortDirection,...P.isEdit?{required:l.required,editable:l.editable}:{}})})),e}return I.value};function X(e,l){return["editable","required"].includes(l)&&e[`${l}Disable`]||["sort"].includes(l)&&1==e.notParticipatingSort}function Y(){J.value.forEach((e=>{if(function(e){const l=["editable","required"].includes(e.field);return l&&P.isEdit||!l}(e)&&(e.isShow=!0),"checkbox"===e.type){const l=I.value.every((l=>!Reflect.has(l,e.field)));e.checkedAll=!Z(e.field)&&!l}}))}function Z(e){return I.value.some((l=>!X(l,e)&&!l[e]&&"0001"!=l.id))}return t((()=>P.fields),(e=>{(null==e?void 0:e.length)>0&&(I.value=M(),Y())}),{immediate:!0,deep:!0}),F({getTableFields:Q}),(l,t)=>(i(),d("div",U,[a("div",O,[(i(!0),d(o,null,c(J.value,((e,l)=>(i(),d(o,{key:l},[e.isShow?(i(),d("span",{key:0,class:"table-cell",style:s(K(e))},["checkbox"===e.type?(i(),n(r(x),{key:0,checked:e.checkedAll,"onUpdate:checked":[l=>e.checkedAll=l,l=>{return t=l,i=e.field,void I.value.forEach((e=>{X(e,i)||(e[i]=t)}));var t,i}],disabled:e.disabledAll},{default:u((()=>[f(p(e.title),1)])),_:2},1032,["checked","onUpdate:checked","disabled"])):h("v-if",!0),f(" "+p("checkbox"!==e.type?e.title:""),1)],4)):h("v-if",!0)],64)))),128))]),a("div",R,[v(r(W),{list:I.value,animation:"150","item-key":"id",tag:"ul"},{item:u((({element:e,index:l})=>[e.hide?h("v-if",!0):(i(),d("li",{key:0,tabindex:l},[(i(!0),d(o,null,c(J.value,((l,t)=>(i(),d(o,{key:t},[l.isShow?(i(),d("span",{key:0,class:"table-cell",title:e[l.field],style:s(K(l))},["text"===l.type?(i(),d(o,{key:0},[v(r(m),{trigger:"hover"},{trigger:u((()=>[v(r(g),{style:{"margin-right":"5px",top:"2px"},component:r(N)},null,8,["component"])])),default:u((()=>[C])),_:1}),f(" "+p(e[l.field]),1)],64)):h("v-if",!0),"checkbox"===l.type?b((i(),n(r(x),{key:1,disabled:X(e,l.field),checked:e[l.field],"onUpdate:checked":[t=>e[l.field]=t,e=>function(e,l){const t=!e||Z(l.field);l.checkedAll=!t}(e,l)]},null,8,["disabled","checked","onUpdate:checked"])),[[y,"0001"!=e.id]]):h("v-if",!0),"select"===l.type?b((i(),n(r(_),{key:2,value:e[l.field],"onUpdate:value":t=>e[l.field]=t,options:z(l)},null,8,["value","onUpdate:value","options"])),[[y,"fixedWay"===l.field||"0001"!=e.id]]):h("v-if",!0),"input"===l.type?b((i(),n(r(A),{key:3,value:e[l.field],"onUpdate:value":t=>e[l.field]=t,clearable:""},null,8,["value","onUpdate:value"])),[[y,"0001"!=e.id]]):h("v-if",!0),"inputNumber"===l.type?(i(),n(r(S),{key:4,value:e[l.field],"onUpdate:value":t=>e[l.field]=t},null,8,["value","onUpdate:value"])):h("v-if",!0)],12,D)):h("v-if",!0)],64)))),128))],8,q))])),_:1},8,["list"])]),e.footerFlag?(i(),d("div",T,[h(" 底部按钮插槽 "),k(l.$slots,"footer",{},(()=>[v(r(E),{onPositiveClick:V},{trigger:u((()=>[v(r(w),{style:{"margin-right":"8px"}},{default:u((()=>[f("恢复默认设置")])),_:1})])),default:u((()=>[f(" 确认要恢复系统默认设置吗? ")])),_:1}),v(r(w),{style:{"margin-right":"8px"},onClick:$},{default:u((()=>[f("取消")])),_:1}),v(r(w),{type:"primary",onClick:L},{default:u((()=>[f("保存")])),_:1})]))])):h("v-if",!0)]))}}),[["__file","FieldSet.vue"]]);export{j as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.c-field-set{
|
|
1
|
+
.c-field-set{display:flex;flex-flow:column nowrap;height:100%;width:100%}.c-field-set ul{margin:0;padding:0}.c-field-set ul li{align-items:center;background:#fff;border-bottom:1px solid #e8e8e8;display:flex;height:52px;padding:5px 0}.c-field-set ul li:active{background:#f2f2f2;box-shadow:0 0 10px 0 #d5d5d5}.c-field-set ul li:focus{background-color:#f2f2f2}.c-field-set .table-cell{box-sizing:border-box;display:inline-block;padding:0 5px}.c-field-set__table-header{align-items:center;background:#f2f2f4;border:1px solid #f2f2f2;display:flex;height:52px}.c-field-set__table-body{flex:1;overflow-y:scroll}.c-field-set__table-footer{border-top:1px solid #d5d5d5;padding:12px 0}
|
|
@@ -3952,11 +3952,12 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
3952
3952
|
onBlur: (...args: any[]) => Promise<void>;
|
|
3953
3953
|
onInput: (...args: any[]) => Promise<void>;
|
|
3954
3954
|
reset: (options?: import("@formily/core").IFieldResetOptions | undefined) => Promise<void>;
|
|
3955
|
+
title: string;
|
|
3956
|
+
editable: boolean;
|
|
3955
3957
|
visible: boolean;
|
|
3956
3958
|
submit: <T_2>(onSubmit?: ((values: any) => void | Promise<T_2>) | undefined) => Promise<T_2>;
|
|
3957
3959
|
validator: import("@formily/core").FieldValidator;
|
|
3958
3960
|
pattern: import("@formily/core").FieldPatternTypes;
|
|
3959
|
-
title: string;
|
|
3960
3961
|
form: import("@formily/core").Form<any>;
|
|
3961
3962
|
content: any;
|
|
3962
3963
|
componentProps: Record<string, any>;
|
|
@@ -3964,7 +3965,6 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
3964
3965
|
display: import("@formily/core").FieldDisplayTypes;
|
|
3965
3966
|
description: string;
|
|
3966
3967
|
readOnly: boolean;
|
|
3967
|
-
editable: boolean;
|
|
3968
3968
|
hidden: boolean;
|
|
3969
3969
|
component: import("@formily/core").FieldComponent<any, any>;
|
|
3970
3970
|
decorator: import("@formily/core").FieldDecorator<any, any>;
|
|
@@ -9869,11 +9869,12 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
9869
9869
|
onBlur: (...args: any[]) => Promise<void>;
|
|
9870
9870
|
onInput: (...args: any[]) => Promise<void>;
|
|
9871
9871
|
reset: (options?: import("@formily/core").IFieldResetOptions | undefined) => Promise<void>;
|
|
9872
|
+
title: string;
|
|
9873
|
+
editable: boolean;
|
|
9872
9874
|
visible: boolean;
|
|
9873
9875
|
submit: <T_2>(onSubmit?: ((values: any) => void | Promise<T_2>) | undefined) => Promise<T_2>;
|
|
9874
9876
|
validator: import("@formily/core").FieldValidator;
|
|
9875
9877
|
pattern: import("@formily/core").FieldPatternTypes;
|
|
9876
|
-
title: string;
|
|
9877
9878
|
form: import("@formily/core").Form<any>;
|
|
9878
9879
|
content: any;
|
|
9879
9880
|
componentProps: Record<string, any>;
|
|
@@ -9881,7 +9882,6 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
9881
9882
|
display: import("@formily/core").FieldDisplayTypes;
|
|
9882
9883
|
description: string;
|
|
9883
9884
|
readOnly: boolean;
|
|
9884
|
-
editable: boolean;
|
|
9885
9885
|
hidden: boolean;
|
|
9886
9886
|
component: import("@formily/core").FieldComponent<any, any>;
|
|
9887
9887
|
decorator: import("@formily/core").FieldDecorator<any, any>;
|