cnhis-design-vue 3.1.41-beta.32 → 3.1.41-beta.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/big-table/index.d.ts +1 -0
- package/es/components/big-table/src/BigTable.vue.d.ts +1 -0
- package/es/components/big-table/src/BigTable.vue2.js +1 -1
- package/es/components/big-table/style/index.css +1 -1
- package/es/components/config-provider/index.d.ts +14 -0
- package/es/components/config-provider/index.js +1 -0
- package/es/components/config-provider/src/ConfigProvider.d.ts +14 -0
- package/es/components/config-provider/src/ConfigProvider.js +1 -0
- package/es/components/config-provider/src/interface.d.ts +18 -0
- package/es/components/config-provider/src/interface.js +1 -0
- package/es/components/config-provider/src/utils/index.d.ts +2 -0
- package/es/components/config-provider/src/utils/index.js +1 -0
- package/es/components/fabric-chart/src/hooks/useBirthProcess.js +1 -1
- package/es/components/form-config/index.d.ts +27 -27
- package/es/components/form-config/src/FormConfig.vue.d.ts +27 -27
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +11 -11
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +14 -14
- package/es/components/form-render/index.d.ts +11 -11
- package/es/components/form-render/src/FormRender.vue.d.ts +11 -11
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +11 -11
- package/es/components/form-render/src/FormRenderWrapper.vue.js +1 -1
- package/es/components/form-render/src/components/renderer/radio&checkbox.d.ts +2 -2
- package/es/components/form-render/src/components/renderer/radio_checkbox.js +1 -1
- package/es/components/form-render/src/components/renderer/select.js +1 -1
- package/es/components/form-render/src/hooks/useFieldListAdaptor.d.ts +1 -1
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
- package/es/components/form-render/src/hooks/useFormRenderOptions.d.ts +4 -2
- package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +3 -1
- package/es/components/index.js +1 -1
- package/es/components/info-header/index.d.ts +421 -141
- package/es/components/info-header/src/InfoHeader.vue.d.ts +422 -141
- package/es/components/info-header/src/InfoHeader.vue.js +1 -1
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +320 -0
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.js +1 -0
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +447 -0
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.js +1 -0
- package/es/components/info-header/src/components/infoDescription/HiddenContent.vue.d.ts +2 -2
- package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue.d.ts +1 -1
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +412 -139
- package/es/components/info-header/src/components/infoDescription/index.vue.js +1 -1
- package/es/components/info-header/src/constants/index.d.ts +4 -0
- package/es/components/info-header/src/constants/index.js +1 -0
- package/es/components/info-header/src/hooks/useThemeOverrides.d.ts +4 -0
- package/es/components/info-header/src/hooks/useThemeOverrides.js +1 -0
- package/es/components/info-header/src/types/index.d.ts +12 -3
- package/es/components/info-header/style/index.css +1 -1
- package/es/components/keyboard/index.d.ts +3 -1
- package/es/components/keyboard/src/Keyboard.vue.d.ts +3 -1
- package/es/components/keyboard/src/Keyboard.vue.js +1 -1
- package/es/components/keyboard/src/constants/index.d.ts +2 -0
- package/es/components/keyboard/src/constants/index.js +1 -0
- package/es/components/keyboard/style/index.css +1 -1
- package/es/components/scale-view/src/components/formitem/sign-com.d.ts +1 -1
- package/es/components/shortcut-setter/index.d.ts +12 -12
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +12 -12
- package/es/components/steps-wheel/index.d.ts +1 -0
- package/es/components/steps-wheel/src/StepsWheel.vue.d.ts +1 -0
- package/es/components/steps-wheel/src/StepsWheel.vue.js +1 -1
- package/es/components/steps-wheel/src/constants/index.d.ts +2 -0
- package/es/components/steps-wheel/src/constants/index.js +1 -0
- package/es/components/steps-wheel/style/index.css +1 -1
- package/es/shared/mixins/index.d.ts +1 -0
- package/es/shared/mixins/index.js +1 -0
- package/es/shared/mixins/useTheme.d.ts +3 -0
- package/es/shared/mixins/useTheme.js +1 -0
- package/package.json +2 -2
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Func } from '../../../../../../es/shared/types';
|
|
2
|
+
import { FormChangePayload } from '../../../../../../es/components/form-render';
|
|
3
3
|
import { InfoHeaderTypes } from '../../../../../../es/components/info-header/src/types';
|
|
4
4
|
declare const _default: import("vue").DefineComponent<{
|
|
5
|
-
compact: {
|
|
6
|
-
type: BooleanConstructor;
|
|
7
|
-
required: false;
|
|
8
|
-
default: boolean;
|
|
9
|
-
};
|
|
10
5
|
infoList: {
|
|
11
6
|
type: ArrayConstructor;
|
|
12
7
|
required: false;
|
|
@@ -27,28 +22,24 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
27
22
|
required: false;
|
|
28
23
|
default: number;
|
|
29
24
|
};
|
|
30
|
-
rowHeight: {
|
|
31
|
-
type: (NumberConstructor | StringConstructor)[];
|
|
32
|
-
required: false;
|
|
33
|
-
default: number;
|
|
34
|
-
};
|
|
35
25
|
rootSlot: {
|
|
36
26
|
type: ObjectConstructor;
|
|
37
27
|
required: true;
|
|
38
28
|
};
|
|
39
29
|
}, {
|
|
40
30
|
props: {
|
|
41
|
-
compact: boolean;
|
|
42
31
|
infoList: InfoHeaderTypes.InfoItem[];
|
|
43
32
|
labelField: string;
|
|
44
33
|
valueField: string;
|
|
45
34
|
minColumnWidth: string | number;
|
|
46
|
-
rowHeight: string | number;
|
|
47
35
|
rootSlot: Record<string, Func>;
|
|
48
36
|
};
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
37
|
+
themeOverrides: import("naive-ui").GlobalThemeOverrides;
|
|
38
|
+
globEmit: ((eventName: string, ...payload: any[]) => void) | undefined;
|
|
39
|
+
hasForm: import("vue").ComputedRef<boolean>;
|
|
40
|
+
initialData: import("vue").ComputedRef<Record<string, any>>;
|
|
41
|
+
onFormChange: (payload: FormChangePayload) => void;
|
|
42
|
+
formRenderRef: import("vue").Ref<import("../../../../../../es/components/form-render").FormRenderExpose | undefined> | undefined;
|
|
52
43
|
columnNum: import("vue").Ref<number>;
|
|
53
44
|
infoRef: import("vue").Ref<HTMLElement | undefined>;
|
|
54
45
|
maxColumnWidth: import("vue").Ref<number>;
|
|
@@ -67,165 +58,454 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
67
58
|
timer: any;
|
|
68
59
|
stopInterval: () => void;
|
|
69
60
|
startInterval: () => void;
|
|
70
|
-
NDescriptions: any;
|
|
71
|
-
NDescriptionsItem: import("vue").DefineComponent<{
|
|
72
|
-
readonly label: StringConstructor;
|
|
73
|
-
readonly span: {
|
|
74
|
-
readonly type: NumberConstructor;
|
|
75
|
-
readonly default: 1;
|
|
76
|
-
};
|
|
77
|
-
readonly labelStyle: import("vue").PropType<string | CSSProperties>;
|
|
78
|
-
readonly contentStyle: import("vue").PropType<string | CSSProperties>;
|
|
79
|
-
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
80
|
-
readonly label: StringConstructor;
|
|
81
|
-
readonly span: {
|
|
82
|
-
readonly type: NumberConstructor;
|
|
83
|
-
readonly default: 1;
|
|
84
|
-
};
|
|
85
|
-
readonly labelStyle: import("vue").PropType<string | CSSProperties>;
|
|
86
|
-
readonly contentStyle: import("vue").PropType<string | CSSProperties>;
|
|
87
|
-
}>>, {
|
|
88
|
-
readonly span: number;
|
|
89
|
-
}>;
|
|
90
61
|
NScrollbar: any;
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
type: import("vue").PropType<Record<string, Func<any[], any>>>;
|
|
98
|
-
};
|
|
99
|
-
}, () => any, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
100
|
-
renderer: {
|
|
101
|
-
type: import("vue").PropType<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | Func<any[], any>>;
|
|
102
|
-
required: true;
|
|
103
|
-
};
|
|
104
|
-
rootSlots: {
|
|
105
|
-
type: import("vue").PropType<Record<string, Func<any[], any>>>;
|
|
62
|
+
NConfigProvider: any;
|
|
63
|
+
DescriptionList: import("vue").DefineComponent<{
|
|
64
|
+
infoList: {
|
|
65
|
+
type: ArrayConstructor;
|
|
66
|
+
required: false;
|
|
67
|
+
default: () => never[];
|
|
106
68
|
};
|
|
107
|
-
|
|
108
|
-
InfoEllipsis: import("vue").DefineComponent<{
|
|
109
|
-
content: {
|
|
69
|
+
labelField: {
|
|
110
70
|
type: StringConstructor;
|
|
71
|
+
required: false;
|
|
111
72
|
default: string;
|
|
112
73
|
};
|
|
113
|
-
|
|
114
|
-
type: StringConstructor;
|
|
115
|
-
};
|
|
116
|
-
contentStyle: {
|
|
117
|
-
type: import("vue").PropType<CSSProperties>;
|
|
118
|
-
default: () => {};
|
|
119
|
-
};
|
|
120
|
-
}, {
|
|
121
|
-
NEllipsis: any;
|
|
122
|
-
NTooltip: any;
|
|
123
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
124
|
-
content: {
|
|
74
|
+
valueField: {
|
|
125
75
|
type: StringConstructor;
|
|
76
|
+
required: false;
|
|
126
77
|
default: string;
|
|
127
78
|
};
|
|
128
|
-
|
|
129
|
-
type:
|
|
130
|
-
|
|
131
|
-
contentStyle: {
|
|
132
|
-
type: import("vue").PropType<CSSProperties>;
|
|
133
|
-
default: () => {};
|
|
79
|
+
rootSlot: {
|
|
80
|
+
type: ObjectConstructor;
|
|
81
|
+
required: true;
|
|
134
82
|
};
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
HiddenContent: import("vue").DefineComponent<{
|
|
140
|
-
content: {
|
|
141
|
-
type: StringConstructor;
|
|
142
|
-
default: string;
|
|
83
|
+
descriptionWidthList: {
|
|
84
|
+
type: ArrayConstructor;
|
|
85
|
+
required: true;
|
|
86
|
+
default: () => never[];
|
|
143
87
|
};
|
|
144
|
-
|
|
145
|
-
width: {
|
|
88
|
+
columnNum: {
|
|
146
89
|
type: NumberConstructor;
|
|
90
|
+
required: true;
|
|
91
|
+
default: number;
|
|
147
92
|
};
|
|
148
|
-
|
|
149
|
-
type:
|
|
150
|
-
|
|
93
|
+
inForm: {
|
|
94
|
+
type: BooleanConstructor;
|
|
95
|
+
required: false;
|
|
151
96
|
};
|
|
152
97
|
}, {
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
98
|
+
descriptionStyle: {
|
|
99
|
+
height: string;
|
|
100
|
+
display: string;
|
|
101
|
+
'align-items': string;
|
|
102
|
+
};
|
|
103
|
+
NDescriptions: any;
|
|
104
|
+
NDescriptionsItem: import("vue").DefineComponent<{
|
|
105
|
+
readonly label: StringConstructor;
|
|
106
|
+
readonly span: {
|
|
107
|
+
readonly type: NumberConstructor;
|
|
108
|
+
readonly default: 1;
|
|
157
109
|
};
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
110
|
+
readonly labelStyle: import("vue").PropType<string | import("vue").CSSProperties>;
|
|
111
|
+
readonly contentStyle: import("vue").PropType<string | import("vue").CSSProperties>;
|
|
112
|
+
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
113
|
+
readonly label: StringConstructor;
|
|
114
|
+
readonly span: {
|
|
115
|
+
readonly type: NumberConstructor;
|
|
116
|
+
readonly default: 1;
|
|
161
117
|
};
|
|
162
|
-
|
|
163
|
-
|
|
118
|
+
readonly labelStyle: import("vue").PropType<string | import("vue").CSSProperties>;
|
|
119
|
+
readonly contentStyle: import("vue").PropType<string | import("vue").CSSProperties>;
|
|
120
|
+
}>>, {
|
|
121
|
+
readonly span: number;
|
|
122
|
+
}>;
|
|
123
|
+
DescriptionItem: import("vue").DefineComponent<{
|
|
124
|
+
infoItem: {
|
|
125
|
+
type: null;
|
|
126
|
+
required: true;
|
|
164
127
|
default: () => {};
|
|
165
128
|
};
|
|
166
|
-
|
|
167
|
-
hidden: import("vue").Ref<boolean>;
|
|
168
|
-
toggleHidden: () => void;
|
|
169
|
-
wrapperStyle: import("vue").ComputedRef<{
|
|
170
|
-
maxWidth: string;
|
|
171
|
-
width: string;
|
|
172
|
-
}>;
|
|
173
|
-
parsedContentStyle: import("vue").ComputedRef<{}>;
|
|
174
|
-
displayContent: import("vue").ComputedRef<string>;
|
|
175
|
-
InfoEllipsis: import("vue").DefineComponent<{
|
|
176
|
-
content: {
|
|
129
|
+
labelField: {
|
|
177
130
|
type: StringConstructor;
|
|
131
|
+
required: false;
|
|
178
132
|
default: string;
|
|
179
133
|
};
|
|
180
|
-
|
|
134
|
+
valueField: {
|
|
181
135
|
type: StringConstructor;
|
|
136
|
+
required: false;
|
|
137
|
+
default: string;
|
|
182
138
|
};
|
|
183
|
-
|
|
184
|
-
type:
|
|
185
|
-
|
|
139
|
+
width: {
|
|
140
|
+
type: NumberConstructor;
|
|
141
|
+
required: false;
|
|
142
|
+
};
|
|
143
|
+
rootSlot: {
|
|
144
|
+
type: ObjectConstructor;
|
|
145
|
+
required: true;
|
|
186
146
|
};
|
|
187
147
|
}, {
|
|
188
|
-
|
|
189
|
-
|
|
148
|
+
props: {
|
|
149
|
+
infoItem: Partial<{
|
|
150
|
+
[K: string]: any;
|
|
151
|
+
slot: string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | ((payload: {
|
|
152
|
+
width: unknown;
|
|
153
|
+
item: Partial<any>;
|
|
154
|
+
}) => any);
|
|
155
|
+
tip: string;
|
|
156
|
+
formField: Partial<import("../../../../../../es/components/form-render").FieldItem>;
|
|
157
|
+
edit: boolean;
|
|
158
|
+
}>;
|
|
159
|
+
labelField: string;
|
|
160
|
+
valueField: string;
|
|
161
|
+
width?: number | undefined;
|
|
162
|
+
rootSlot: Record<string, any>;
|
|
163
|
+
};
|
|
164
|
+
SchemaField: import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>;
|
|
165
|
+
formRenderRef: import("vue").Ref<import("../../../../../../es/components/form-render").FormRenderExpose | undefined>;
|
|
166
|
+
onItemDblclick: (item: Partial<{
|
|
167
|
+
[K: string]: any;
|
|
168
|
+
slot: string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | ((payload: {
|
|
169
|
+
width: unknown;
|
|
170
|
+
item: Partial<any>;
|
|
171
|
+
}) => any);
|
|
172
|
+
tip: string;
|
|
173
|
+
formField: Partial<import("../../../../../../es/components/form-render").FieldItem>;
|
|
174
|
+
edit: boolean;
|
|
175
|
+
}>) => Promise<void>;
|
|
176
|
+
onItemClick: (item: Partial<{
|
|
177
|
+
[K: string]: any;
|
|
178
|
+
slot: string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | ((payload: {
|
|
179
|
+
width: unknown;
|
|
180
|
+
item: Partial<any>;
|
|
181
|
+
}) => any);
|
|
182
|
+
tip: string;
|
|
183
|
+
formField: Partial<import("../../../../../../es/components/form-render").FieldItem>;
|
|
184
|
+
edit: boolean;
|
|
185
|
+
}>) => Promise<void>;
|
|
186
|
+
collector: import("../../../../../../es/components/form-render").BusinessCollector | undefined;
|
|
187
|
+
schemaAdaptor: (fieldList: import("../../../../../../es/components/form-render").FieldItem[]) => Record<string, import("@formily/json-schema").Stringify<{
|
|
188
|
+
[key: symbol]: any;
|
|
189
|
+
[key: `x-${string}`]: any;
|
|
190
|
+
[key: `x-${number}`]: any;
|
|
191
|
+
version?: string | undefined;
|
|
192
|
+
name?: import("@formily/json-schema").SchemaKey | undefined;
|
|
193
|
+
title?: any;
|
|
194
|
+
description?: any;
|
|
195
|
+
default?: any;
|
|
196
|
+
readOnly?: boolean | undefined;
|
|
197
|
+
writeOnly?: boolean | undefined;
|
|
198
|
+
type?: import("@formily/json-schema").SchemaTypes | undefined;
|
|
199
|
+
enum?: import("@formily/json-schema").SchemaEnum<any> | undefined;
|
|
200
|
+
const?: any;
|
|
201
|
+
multipleOf?: number | undefined;
|
|
202
|
+
maximum?: number | undefined;
|
|
203
|
+
exclusiveMaximum?: number | undefined;
|
|
204
|
+
minimum?: number | undefined;
|
|
205
|
+
exclusiveMinimum?: number | undefined;
|
|
206
|
+
maxLength?: number | undefined;
|
|
207
|
+
minLength?: number | undefined;
|
|
208
|
+
pattern?: string | RegExp | undefined;
|
|
209
|
+
maxItems?: number | undefined;
|
|
210
|
+
minItems?: number | undefined;
|
|
211
|
+
uniqueItems?: boolean | undefined;
|
|
212
|
+
maxProperties?: number | undefined;
|
|
213
|
+
minProperties?: number | undefined;
|
|
214
|
+
required?: string | boolean | string[] | undefined;
|
|
215
|
+
format?: string | undefined;
|
|
216
|
+
$ref?: string | undefined;
|
|
217
|
+
$namespace?: string | undefined;
|
|
218
|
+
definitions?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
|
|
219
|
+
properties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
|
|
220
|
+
items?: import("@formily/json-schema").SchemaItems<any, any, any, any, any, any, any, any> | undefined;
|
|
221
|
+
additionalItems?: import("@formily/json-schema").Stringify<any> | undefined;
|
|
222
|
+
patternProperties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
|
|
223
|
+
additionalProperties?: import("@formily/json-schema").Stringify<any> | undefined;
|
|
224
|
+
"x-value"?: any;
|
|
225
|
+
"x-index"?: number | undefined;
|
|
226
|
+
"x-pattern"?: any;
|
|
227
|
+
"x-display"?: any;
|
|
228
|
+
"x-validator"?: any;
|
|
229
|
+
"x-decorator"?: any;
|
|
230
|
+
"x-decorator-props"?: any;
|
|
231
|
+
"x-component"?: any;
|
|
232
|
+
"x-component-props"?: any;
|
|
233
|
+
"x-reactions"?: import("@formily/json-schema").SchemaReactions<any> | undefined;
|
|
234
|
+
"x-content"?: any;
|
|
235
|
+
"x-data"?: any;
|
|
236
|
+
"x-visible"?: boolean | undefined;
|
|
237
|
+
"x-hidden"?: boolean | undefined;
|
|
238
|
+
"x-disabled"?: boolean | undefined;
|
|
239
|
+
"x-editable"?: boolean | undefined;
|
|
240
|
+
"x-read-only"?: boolean | undefined;
|
|
241
|
+
"x-read-pretty"?: boolean | undefined;
|
|
242
|
+
"x-compile-omitted"?: string[] | undefined;
|
|
243
|
+
}>>;
|
|
244
|
+
formModel: import("vue").Ref<import("../../../../../../es/components/form-render").Form<any>>;
|
|
245
|
+
schema: import("vue").ComputedRef<import("@formily/json-schema").Stringify<{
|
|
246
|
+
[key: symbol]: any;
|
|
247
|
+
[key: `x-${string}`]: any;
|
|
248
|
+
[key: `x-${number}`]: any;
|
|
249
|
+
version?: string | undefined;
|
|
250
|
+
name?: import("@formily/json-schema").SchemaKey | undefined;
|
|
251
|
+
title?: any;
|
|
252
|
+
description?: any;
|
|
253
|
+
default?: any;
|
|
254
|
+
readOnly?: boolean | undefined;
|
|
255
|
+
writeOnly?: boolean | undefined;
|
|
256
|
+
type?: import("@formily/json-schema").SchemaTypes | undefined;
|
|
257
|
+
enum?: import("@formily/json-schema").SchemaEnum<any> | undefined;
|
|
258
|
+
const?: any;
|
|
259
|
+
multipleOf?: number | undefined;
|
|
260
|
+
maximum?: number | undefined;
|
|
261
|
+
exclusiveMaximum?: number | undefined;
|
|
262
|
+
minimum?: number | undefined;
|
|
263
|
+
exclusiveMinimum?: number | undefined;
|
|
264
|
+
maxLength?: number | undefined;
|
|
265
|
+
minLength?: number | undefined;
|
|
266
|
+
pattern?: string | RegExp | undefined;
|
|
267
|
+
maxItems?: number | undefined;
|
|
268
|
+
minItems?: number | undefined;
|
|
269
|
+
uniqueItems?: boolean | undefined;
|
|
270
|
+
maxProperties?: number | undefined;
|
|
271
|
+
minProperties?: number | undefined;
|
|
272
|
+
required?: string | boolean | string[] | undefined;
|
|
273
|
+
format?: string | undefined;
|
|
274
|
+
$ref?: string | undefined;
|
|
275
|
+
$namespace?: string | undefined;
|
|
276
|
+
definitions?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
|
|
277
|
+
properties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
|
|
278
|
+
items?: import("@formily/json-schema").SchemaItems<any, any, any, any, any, any, any, any> | undefined;
|
|
279
|
+
additionalItems?: import("@formily/json-schema").Stringify<any> | undefined;
|
|
280
|
+
patternProperties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
|
|
281
|
+
additionalProperties?: import("@formily/json-schema").Stringify<any> | undefined;
|
|
282
|
+
"x-value"?: any;
|
|
283
|
+
"x-index"?: number | undefined;
|
|
284
|
+
"x-pattern"?: any;
|
|
285
|
+
"x-display"?: any;
|
|
286
|
+
"x-validator"?: any;
|
|
287
|
+
"x-decorator"?: any;
|
|
288
|
+
"x-decorator-props"?: any;
|
|
289
|
+
"x-component"?: any;
|
|
290
|
+
"x-component-props"?: any;
|
|
291
|
+
"x-reactions"?: import("@formily/json-schema").SchemaReactions<any> | undefined;
|
|
292
|
+
"x-content"?: any;
|
|
293
|
+
"x-data"?: any;
|
|
294
|
+
"x-visible"?: boolean | undefined;
|
|
295
|
+
"x-hidden"?: boolean | undefined;
|
|
296
|
+
"x-disabled"?: boolean | undefined;
|
|
297
|
+
"x-editable"?: boolean | undefined;
|
|
298
|
+
"x-read-only"?: boolean | undefined;
|
|
299
|
+
"x-read-pretty"?: boolean | undefined;
|
|
300
|
+
"x-compile-omitted"?: string[] | undefined;
|
|
301
|
+
}>>;
|
|
302
|
+
itemStyle: import("vue").ComputedRef<any>;
|
|
303
|
+
ellipsisStyle: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
304
|
+
isHiddenContent: import("vue").ComputedRef<boolean>;
|
|
305
|
+
HiddenContent: import("vue").DefineComponent<{
|
|
306
|
+
content: {
|
|
307
|
+
type: StringConstructor;
|
|
308
|
+
default: string;
|
|
309
|
+
};
|
|
310
|
+
tip: StringConstructor;
|
|
311
|
+
width: {
|
|
312
|
+
type: NumberConstructor;
|
|
313
|
+
};
|
|
314
|
+
contentStyle: {
|
|
315
|
+
type: import("vue").PropType<import("vue").CSSProperties>;
|
|
316
|
+
default: () => {};
|
|
317
|
+
};
|
|
318
|
+
}, {
|
|
319
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
320
|
+
content: {
|
|
321
|
+
type: StringConstructor;
|
|
322
|
+
default: string;
|
|
323
|
+
};
|
|
324
|
+
tip: StringConstructor;
|
|
325
|
+
width: {
|
|
326
|
+
type: NumberConstructor;
|
|
327
|
+
};
|
|
328
|
+
contentStyle: {
|
|
329
|
+
type: import("vue").PropType<import("vue").CSSProperties>;
|
|
330
|
+
default: () => {};
|
|
331
|
+
};
|
|
332
|
+
}>> & {}>>;
|
|
333
|
+
hidden: import("vue").Ref<boolean>;
|
|
334
|
+
toggleHidden: () => void;
|
|
335
|
+
wrapperStyle: import("vue").ComputedRef<{
|
|
336
|
+
maxWidth: string;
|
|
337
|
+
width: string;
|
|
338
|
+
}>;
|
|
339
|
+
parsedContentStyle: import("vue").ComputedRef<{}>;
|
|
340
|
+
displayContent: import("vue").ComputedRef<string>;
|
|
341
|
+
InfoEllipsis: import("vue").DefineComponent<{
|
|
342
|
+
content: {
|
|
343
|
+
type: StringConstructor;
|
|
344
|
+
default: string;
|
|
345
|
+
};
|
|
346
|
+
tip: {
|
|
347
|
+
type: StringConstructor;
|
|
348
|
+
};
|
|
349
|
+
contentStyle: {
|
|
350
|
+
type: import("vue").PropType<import("vue").CSSProperties>;
|
|
351
|
+
default: () => {};
|
|
352
|
+
};
|
|
353
|
+
}, {
|
|
354
|
+
NEllipsis: any;
|
|
355
|
+
NTooltip: any;
|
|
356
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
357
|
+
content: {
|
|
358
|
+
type: StringConstructor;
|
|
359
|
+
default: string;
|
|
360
|
+
};
|
|
361
|
+
tip: {
|
|
362
|
+
type: StringConstructor;
|
|
363
|
+
};
|
|
364
|
+
contentStyle: {
|
|
365
|
+
type: import("vue").PropType<import("vue").CSSProperties>;
|
|
366
|
+
default: () => {};
|
|
367
|
+
};
|
|
368
|
+
}>>, {
|
|
369
|
+
content: string;
|
|
370
|
+
contentStyle: import("vue").CSSProperties;
|
|
371
|
+
}>;
|
|
372
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
373
|
+
content: {
|
|
374
|
+
type: StringConstructor;
|
|
375
|
+
default: string;
|
|
376
|
+
};
|
|
377
|
+
tip: StringConstructor;
|
|
378
|
+
width: {
|
|
379
|
+
type: NumberConstructor;
|
|
380
|
+
};
|
|
381
|
+
contentStyle: {
|
|
382
|
+
type: import("vue").PropType<import("vue").CSSProperties>;
|
|
383
|
+
default: () => {};
|
|
384
|
+
};
|
|
385
|
+
}>>, {
|
|
386
|
+
content: string;
|
|
387
|
+
contentStyle: import("vue").CSSProperties;
|
|
388
|
+
}>;
|
|
389
|
+
InfoEllipsis: import("vue").DefineComponent<{
|
|
390
|
+
content: {
|
|
391
|
+
type: StringConstructor;
|
|
392
|
+
default: string;
|
|
393
|
+
};
|
|
394
|
+
tip: {
|
|
395
|
+
type: StringConstructor;
|
|
396
|
+
};
|
|
397
|
+
contentStyle: {
|
|
398
|
+
type: import("vue").PropType<import("vue").CSSProperties>;
|
|
399
|
+
default: () => {};
|
|
400
|
+
};
|
|
401
|
+
}, {
|
|
402
|
+
NEllipsis: any;
|
|
403
|
+
NTooltip: any;
|
|
404
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
405
|
+
content: {
|
|
406
|
+
type: StringConstructor;
|
|
407
|
+
default: string;
|
|
408
|
+
};
|
|
409
|
+
tip: {
|
|
410
|
+
type: StringConstructor;
|
|
411
|
+
};
|
|
412
|
+
contentStyle: {
|
|
413
|
+
type: import("vue").PropType<import("vue").CSSProperties>;
|
|
414
|
+
default: () => {};
|
|
415
|
+
};
|
|
416
|
+
}>>, {
|
|
417
|
+
content: string;
|
|
418
|
+
contentStyle: import("vue").CSSProperties;
|
|
419
|
+
}>;
|
|
420
|
+
SlotRender: import("vue").DefineComponent<{
|
|
421
|
+
renderer: {
|
|
422
|
+
type: import("vue").PropType<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | Func<any[], any>>;
|
|
423
|
+
required: true;
|
|
424
|
+
};
|
|
425
|
+
rootSlots: {
|
|
426
|
+
type: import("vue").PropType<Record<string, Func<any[], any>>>;
|
|
427
|
+
};
|
|
428
|
+
}, () => any, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
429
|
+
renderer: {
|
|
430
|
+
type: import("vue").PropType<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | Func<any[], any>>;
|
|
431
|
+
required: true;
|
|
432
|
+
};
|
|
433
|
+
rootSlots: {
|
|
434
|
+
type: import("vue").PropType<Record<string, Func<any[], any>>>;
|
|
435
|
+
};
|
|
436
|
+
}>>, {}>;
|
|
190
437
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
191
|
-
|
|
438
|
+
infoItem: {
|
|
439
|
+
type: null;
|
|
440
|
+
required: true;
|
|
441
|
+
default: () => {};
|
|
442
|
+
};
|
|
443
|
+
labelField: {
|
|
192
444
|
type: StringConstructor;
|
|
445
|
+
required: false;
|
|
193
446
|
default: string;
|
|
194
447
|
};
|
|
195
|
-
|
|
448
|
+
valueField: {
|
|
196
449
|
type: StringConstructor;
|
|
450
|
+
required: false;
|
|
451
|
+
default: string;
|
|
197
452
|
};
|
|
198
|
-
|
|
199
|
-
type:
|
|
200
|
-
|
|
453
|
+
width: {
|
|
454
|
+
type: NumberConstructor;
|
|
455
|
+
required: false;
|
|
456
|
+
};
|
|
457
|
+
rootSlot: {
|
|
458
|
+
type: ObjectConstructor;
|
|
459
|
+
required: true;
|
|
201
460
|
};
|
|
202
461
|
}>>, {
|
|
203
|
-
|
|
204
|
-
|
|
462
|
+
labelField: string;
|
|
463
|
+
valueField: string;
|
|
464
|
+
infoItem: any;
|
|
205
465
|
}>;
|
|
206
466
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
207
|
-
|
|
467
|
+
infoList: {
|
|
468
|
+
type: ArrayConstructor;
|
|
469
|
+
required: false;
|
|
470
|
+
default: () => never[];
|
|
471
|
+
};
|
|
472
|
+
labelField: {
|
|
208
473
|
type: StringConstructor;
|
|
474
|
+
required: false;
|
|
209
475
|
default: string;
|
|
210
476
|
};
|
|
211
|
-
|
|
212
|
-
|
|
477
|
+
valueField: {
|
|
478
|
+
type: StringConstructor;
|
|
479
|
+
required: false;
|
|
480
|
+
default: string;
|
|
481
|
+
};
|
|
482
|
+
rootSlot: {
|
|
483
|
+
type: ObjectConstructor;
|
|
484
|
+
required: true;
|
|
485
|
+
};
|
|
486
|
+
descriptionWidthList: {
|
|
487
|
+
type: ArrayConstructor;
|
|
488
|
+
required: true;
|
|
489
|
+
default: () => never[];
|
|
490
|
+
};
|
|
491
|
+
columnNum: {
|
|
213
492
|
type: NumberConstructor;
|
|
493
|
+
required: true;
|
|
494
|
+
default: number;
|
|
214
495
|
};
|
|
215
|
-
|
|
216
|
-
type:
|
|
217
|
-
|
|
496
|
+
inForm: {
|
|
497
|
+
type: BooleanConstructor;
|
|
498
|
+
required: false;
|
|
218
499
|
};
|
|
219
500
|
}>>, {
|
|
220
|
-
|
|
221
|
-
|
|
501
|
+
infoList: unknown[];
|
|
502
|
+
labelField: string;
|
|
503
|
+
valueField: string;
|
|
504
|
+
descriptionWidthList: unknown[];
|
|
505
|
+
columnNum: number;
|
|
506
|
+
inForm: boolean;
|
|
222
507
|
}>;
|
|
223
508
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
224
|
-
compact: {
|
|
225
|
-
type: BooleanConstructor;
|
|
226
|
-
required: false;
|
|
227
|
-
default: boolean;
|
|
228
|
-
};
|
|
229
509
|
infoList: {
|
|
230
510
|
type: ArrayConstructor;
|
|
231
511
|
required: false;
|
|
@@ -246,21 +526,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
246
526
|
required: false;
|
|
247
527
|
default: number;
|
|
248
528
|
};
|
|
249
|
-
rowHeight: {
|
|
250
|
-
type: (NumberConstructor | StringConstructor)[];
|
|
251
|
-
required: false;
|
|
252
|
-
default: number;
|
|
253
|
-
};
|
|
254
529
|
rootSlot: {
|
|
255
530
|
type: ObjectConstructor;
|
|
256
531
|
required: true;
|
|
257
532
|
};
|
|
258
533
|
}>>, {
|
|
259
|
-
compact: boolean;
|
|
260
534
|
infoList: unknown[];
|
|
261
535
|
labelField: string;
|
|
262
536
|
valueField: string;
|
|
263
537
|
minColumnWidth: string | number;
|
|
264
|
-
rowHeight: string | number;
|
|
265
538
|
}>;
|
|
266
539
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,ref as t,nextTick as l,onMounted as n,watch as
|
|
1
|
+
import{defineComponent as e,inject as i,computed as o,ref as t,nextTick as l,onMounted as n,watch as r,onBeforeUnmount as a,onDeactivated as s,onActivated as u,resolveComponent as m,openBlock as d,createElementBlock as f,normalizeStyle as c,createVNode as p,unref as v,withCtx as h,createCommentVNode as _,renderSlot as y,createElementVNode as w,createBlock as F,mergeProps as x}from"vue";import{useThrottleFn as L,useEventListener as b}from"@vueuse/core";import{isArray as g}from"lodash-es";import{NScrollbar as C,NConfigProvider as W}from"naive-ui";import k from"./DescriptionList.vue.js";import{InjectionInfoHeaderEmit as j,InjectionInfoHeaderFormRef as R}from"../../constants/index.js";import{useThemeOverrides as $}from"../../hooks/useThemeOverrides.js";import A from"../../../../../_virtual/plugin-vue_export-helper.js";const I={style:{"margin-top":"8px","margin-bottom":"12px"}};var M=A(e({__name:"index",props:{infoList:{default:()=>[]},labelField:{default:"label"},valueField:{default:"value"},minColumnWidth:{default:180},rootSlot:null},setup(e,{expose:A}){const M=e,{themeOverrides:O}=$(),S=i(j),q=o((()=>g(M.infoList)&&M.infoList.some((e=>e.formField)))),z=o((()=>g(M.infoList)?M.infoList.reduce(((e,i)=>(i.formField&&(e[i[M.labelField]]=i[M.valueField]),e)),{}):{}));function D(e){var i;const{fieldKey:o,value:t}=e,l=null==(i=M.infoList)?void 0:i.find((e=>e[M.labelField]===o));l&&(l[M.valueField]=t,S&&S("formChange",e))}const K=i(R),T=t(3),B=t(),E=t(0),G=t([]),H=L((async function(){await l();const e=B.value;if(!e)return;const{clientWidth:i}=e;T.value=Math.floor(i/+M.minColumnWidth),E.value=Math.floor(i/T.value),await l();const o=e.querySelectorAll(".n-descriptions-table-content__label");o&&(G.value=Array.from(o).map((e=>E.value-e.clientWidth-8)))}),200,!0,!1);let J;function N(){clearInterval(J)}function P(){N(),J=setInterval(H,700)}return n(H),r([()=>M.minColumnWidth,()=>M.infoList],H,{flush:"post",deep:!0}),b(window,"resize",H),a(N),s(N),u(P),n(P),A({updateColumn:H}),(e,i)=>{const o=m("c-form-render");return d(),f("section",{class:"c-info-header__info",ref_key:"infoRef",ref:B,style:c({"--column-width":E.value})},[p(v(C),{class:"c-info-header__infoWrapper"},{default:h((()=>[_(" 描述信息区插槽 "),y(e.$slots,"info",{},(()=>[w("section",I,[v(q)?(d(),F(o,{key:1,onFormChange:D,"initial-data":v(z),ref_key:"formRenderRef",ref:K},{default:h((()=>[p(v(W),{"theme-overrides":v(O),style:c({"grid-column":"span min(var(--column), 999) / span min(var(--column), 999)"})},{default:h((()=>[p(k,x(e.$props,{"description-width-list":G.value,"column-num":T.value,"in-form":""}),null,16,["description-width-list","column-num"])])),_:1},8,["theme-overrides","style"])])),_:1},8,["initial-data"])):(d(),F(k,x({key:0},e.$props,{"description-width-list":G.value,"column-num":T.value}),null,16,["description-width-list","column-num"]))])]))])),_:3})],4)}}}),[["__file","index.vue"]]);export{M as default};
|