cnhis-design-vue 3.1.9-beta.1 → 3.1.9-beta.4
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/README.md +22 -22
- package/es/packages/big-table/index.d.ts +1 -1
- package/es/packages/big-table/src/BigTable.vue.d.ts +1 -1
- package/es/packages/big-table/src/BigTable.vue_vue_type_script_setup_true_lang.mjs +3 -1
- package/es/packages/big-table/style/index.less +557 -557
- package/es/packages/bpmn-workflow/style/index.less +29 -29
- package/es/packages/button-print/style/index.less +30 -30
- package/es/packages/chunk-upload/src/chunk-upload-new.vue.d.ts +4 -6
- package/es/packages/chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.d.ts +0 -3
- package/es/packages/chunk-upload/style/index.less +394 -394
- package/es/packages/drag-layout/src/DragLayout.vue.d.ts +5 -8
- package/es/packages/drag-layout/style/index.less +208 -208
- package/es/packages/field-set/style/index.less +157 -157
- package/es/packages/form-render/index.d.ts +267 -3
- package/es/packages/form-render/index.mjs +2 -0
- package/es/packages/form-render/src/FormRender.vue.d.ts +267 -3
- package/es/packages/form-render/src/FormRender.vue_vue_type_script_setup_true_lang.mjs +39 -25
- package/es/packages/form-render/src/components/cascader.d.ts +6 -2
- package/es/packages/form-render/src/components/cascader.mjs +12 -6
- package/es/packages/form-render/src/components/select.d.ts +12 -2
- package/es/packages/form-render/src/components/select.mjs +65 -29
- package/es/packages/form-render/src/constants/index.d.ts +4 -1
- package/es/packages/form-render/src/constants/index.mjs +3 -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 +5 -3
- package/es/packages/form-render/src/hooks/useBusinessBinding.mjs +15 -15
- package/es/packages/form-render/src/hooks/useChangeContext.d.ts +11 -0
- package/es/packages/form-render/src/hooks/useChangeContext.mjs +21 -0
- package/es/packages/form-render/src/hooks/useFormField.d.ts +1 -0
- package/es/packages/form-render/src/hooks/useFormField.mjs +7 -1
- package/es/packages/form-render/src/hooks/useFormItemDeps.d.ts +8 -0
- package/es/packages/form-render/src/hooks/useFormItemDeps.mjs +29 -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 +13 -1
- package/es/packages/form-table/style/index.less +301 -301
- package/es/packages/grid/style/index.less +12 -12
- package/es/packages/index.css +0 -3
- package/es/packages/index.less +2941 -2945
- package/es/packages/index.mjs +2 -0
- package/es/packages/info-header/index.d.ts +18 -2
- 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 +18 -2
- package/es/packages/info-header/src/InfoHeader.vue_vue_type_script_setup_true_lang.mjs +10 -5
- package/es/packages/info-header/style/index.css +0 -3
- package/es/packages/info-header/style/index.less +149 -153
- package/es/packages/map/style/index.less +59 -59
- package/es/packages/scale-view/style/index.less +748 -748
- package/es/packages/select-label/src/LabelFormContent.vue.d.ts +0 -3
- package/es/packages/select-label/style/index.less +151 -151
- package/es/packages/select-person/src/SelectPerson.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/es/packages/select-person/style/index.less +229 -229
- package/es/packages/time-line/style/index.less +34 -34
- package/es/src/types/index.d.ts +1 -0
- package/es/src/utils/anime.mjs +1 -1
- package/global.d.ts +8 -8
- package/package.json +1 -1
- package/yarn-error.log +8659 -103
|
@@ -1,157 +1,157 @@
|
|
|
1
|
-
.c-field-set {
|
|
2
|
-
ul {
|
|
3
|
-
margin: 0;
|
|
4
|
-
padding: 0;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.fields-set-content {
|
|
8
|
-
height: 100%;
|
|
9
|
-
display: flex;
|
|
10
|
-
flex-direction: column;
|
|
11
|
-
overflow: hidden;
|
|
12
|
-
.fields-table {
|
|
13
|
-
flex: 1;
|
|
14
|
-
display: flex;
|
|
15
|
-
flex-direction: column;
|
|
16
|
-
overflow: auto;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
height: 100%;
|
|
21
|
-
position: relative;
|
|
22
|
-
.n-spin-container {
|
|
23
|
-
width: 100%;
|
|
24
|
-
height: 100%;
|
|
25
|
-
}
|
|
26
|
-
.n-spin-content {
|
|
27
|
-
height: 100%;
|
|
28
|
-
}
|
|
29
|
-
.setting-title {
|
|
30
|
-
background: #f2f2f4;
|
|
31
|
-
border: 1px solid #f2f2f2;
|
|
32
|
-
height: 52px;
|
|
33
|
-
line-height: 52px;
|
|
34
|
-
span {
|
|
35
|
-
display: inline-block;
|
|
36
|
-
}
|
|
37
|
-
&.seting-title-api {
|
|
38
|
-
.width-large {
|
|
39
|
-
width: 15%;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
.set-show {
|
|
44
|
-
min-height: 100px;
|
|
45
|
-
overflow-y: auto;
|
|
46
|
-
&.set-show-api {
|
|
47
|
-
.width-large {
|
|
48
|
-
width: 15%;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.left-style.sortable-chosen {
|
|
53
|
-
background: #fafafa;
|
|
54
|
-
box-shadow: 0px 0px 10px 0px #d5d5d5;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
li {
|
|
58
|
-
padding: 5px 0;
|
|
59
|
-
display: flex;
|
|
60
|
-
align-items: center;
|
|
61
|
-
border-bottom: 1px solid #e8e8e8;
|
|
62
|
-
height: 52px;
|
|
63
|
-
line-height: 52px;
|
|
64
|
-
}
|
|
65
|
-
.alias-style {
|
|
66
|
-
outline: none;
|
|
67
|
-
border-radius: 4px 4px 4px 4px;
|
|
68
|
-
border: solid 1px #d5d5d5;
|
|
69
|
-
height: 32px;
|
|
70
|
-
text-indent: 16px;
|
|
71
|
-
color: #38454f;
|
|
72
|
-
width: 100%;
|
|
73
|
-
}
|
|
74
|
-
.is-sort-style {
|
|
75
|
-
outline: none;
|
|
76
|
-
border-radius: 4px 4px 4px 4px;
|
|
77
|
-
border: solid 1px #d5d5d5;
|
|
78
|
-
height: 32px;
|
|
79
|
-
text-indent: 6px;
|
|
80
|
-
color: #38454f;
|
|
81
|
-
width: 87px;
|
|
82
|
-
margin-right: 5px;
|
|
83
|
-
&:disabled {
|
|
84
|
-
cursor: not-allowed;
|
|
85
|
-
background: #f5f5f5;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
.col-width-style {
|
|
89
|
-
width: 70px;
|
|
90
|
-
}
|
|
91
|
-
.title-item {
|
|
92
|
-
display: inline-flex;
|
|
93
|
-
justify-content: flex-start;
|
|
94
|
-
align-items: center;
|
|
95
|
-
text-align: left;
|
|
96
|
-
> span {
|
|
97
|
-
display: inline-block;
|
|
98
|
-
max-width: calc(100% - 20px);
|
|
99
|
-
overflow: hidden;
|
|
100
|
-
white-space: nowrap;
|
|
101
|
-
text-overflow: ellipsis;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
.alias-style {
|
|
106
|
-
outline: none;
|
|
107
|
-
border-radius: 4px 4px 4px 4px;
|
|
108
|
-
border: solid 1px rgba(212, 222, 229, 1);
|
|
109
|
-
height: 32px;
|
|
110
|
-
text-indent: 16px;
|
|
111
|
-
color: #38454f;
|
|
112
|
-
}
|
|
113
|
-
.btn-operate {
|
|
114
|
-
border-top: 1px solid #d5d5d5;
|
|
115
|
-
padding: 12px 0 12px;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
.width-show {
|
|
119
|
-
display: inline-block;
|
|
120
|
-
width: 10%;
|
|
121
|
-
overflow: hidden;
|
|
122
|
-
white-space: nowrap;
|
|
123
|
-
text-overflow: ellipsis;
|
|
124
|
-
}
|
|
125
|
-
.drag-icon-wrap {
|
|
126
|
-
width: 5% !important;
|
|
127
|
-
cursor: pointer;
|
|
128
|
-
text-align: center;
|
|
129
|
-
}
|
|
130
|
-
.width-showed {
|
|
131
|
-
display: inline-block;
|
|
132
|
-
width: 15%;
|
|
133
|
-
overflow: hidden;
|
|
134
|
-
white-space: nowrap;
|
|
135
|
-
text-overflow: ellipsis;
|
|
136
|
-
select {
|
|
137
|
-
width: 90% !important;
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
.width-word {
|
|
141
|
-
display: inline-block;
|
|
142
|
-
width: 20%;
|
|
143
|
-
line-height: 52px;
|
|
144
|
-
overflow: hidden;
|
|
145
|
-
white-space: nowrap;
|
|
146
|
-
input {
|
|
147
|
-
width: 90% !important;
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
.width-large {
|
|
151
|
-
display: inline-block;
|
|
152
|
-
width: 20%;
|
|
153
|
-
overflow: hidden;
|
|
154
|
-
white-space: nowrap;
|
|
155
|
-
text-overflow: ellipsis;
|
|
156
|
-
}
|
|
157
|
-
}
|
|
1
|
+
.c-field-set {
|
|
2
|
+
ul {
|
|
3
|
+
margin: 0;
|
|
4
|
+
padding: 0;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.fields-set-content {
|
|
8
|
+
height: 100%;
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
overflow: hidden;
|
|
12
|
+
.fields-table {
|
|
13
|
+
flex: 1;
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
overflow: auto;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
height: 100%;
|
|
21
|
+
position: relative;
|
|
22
|
+
.n-spin-container {
|
|
23
|
+
width: 100%;
|
|
24
|
+
height: 100%;
|
|
25
|
+
}
|
|
26
|
+
.n-spin-content {
|
|
27
|
+
height: 100%;
|
|
28
|
+
}
|
|
29
|
+
.setting-title {
|
|
30
|
+
background: #f2f2f4;
|
|
31
|
+
border: 1px solid #f2f2f2;
|
|
32
|
+
height: 52px;
|
|
33
|
+
line-height: 52px;
|
|
34
|
+
span {
|
|
35
|
+
display: inline-block;
|
|
36
|
+
}
|
|
37
|
+
&.seting-title-api {
|
|
38
|
+
.width-large {
|
|
39
|
+
width: 15%;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
.set-show {
|
|
44
|
+
min-height: 100px;
|
|
45
|
+
overflow-y: auto;
|
|
46
|
+
&.set-show-api {
|
|
47
|
+
.width-large {
|
|
48
|
+
width: 15%;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.left-style.sortable-chosen {
|
|
53
|
+
background: #fafafa;
|
|
54
|
+
box-shadow: 0px 0px 10px 0px #d5d5d5;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
li {
|
|
58
|
+
padding: 5px 0;
|
|
59
|
+
display: flex;
|
|
60
|
+
align-items: center;
|
|
61
|
+
border-bottom: 1px solid #e8e8e8;
|
|
62
|
+
height: 52px;
|
|
63
|
+
line-height: 52px;
|
|
64
|
+
}
|
|
65
|
+
.alias-style {
|
|
66
|
+
outline: none;
|
|
67
|
+
border-radius: 4px 4px 4px 4px;
|
|
68
|
+
border: solid 1px #d5d5d5;
|
|
69
|
+
height: 32px;
|
|
70
|
+
text-indent: 16px;
|
|
71
|
+
color: #38454f;
|
|
72
|
+
width: 100%;
|
|
73
|
+
}
|
|
74
|
+
.is-sort-style {
|
|
75
|
+
outline: none;
|
|
76
|
+
border-radius: 4px 4px 4px 4px;
|
|
77
|
+
border: solid 1px #d5d5d5;
|
|
78
|
+
height: 32px;
|
|
79
|
+
text-indent: 6px;
|
|
80
|
+
color: #38454f;
|
|
81
|
+
width: 87px;
|
|
82
|
+
margin-right: 5px;
|
|
83
|
+
&:disabled {
|
|
84
|
+
cursor: not-allowed;
|
|
85
|
+
background: #f5f5f5;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
.col-width-style {
|
|
89
|
+
width: 70px;
|
|
90
|
+
}
|
|
91
|
+
.title-item {
|
|
92
|
+
display: inline-flex;
|
|
93
|
+
justify-content: flex-start;
|
|
94
|
+
align-items: center;
|
|
95
|
+
text-align: left;
|
|
96
|
+
> span {
|
|
97
|
+
display: inline-block;
|
|
98
|
+
max-width: calc(100% - 20px);
|
|
99
|
+
overflow: hidden;
|
|
100
|
+
white-space: nowrap;
|
|
101
|
+
text-overflow: ellipsis;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
.alias-style {
|
|
106
|
+
outline: none;
|
|
107
|
+
border-radius: 4px 4px 4px 4px;
|
|
108
|
+
border: solid 1px rgba(212, 222, 229, 1);
|
|
109
|
+
height: 32px;
|
|
110
|
+
text-indent: 16px;
|
|
111
|
+
color: #38454f;
|
|
112
|
+
}
|
|
113
|
+
.btn-operate {
|
|
114
|
+
border-top: 1px solid #d5d5d5;
|
|
115
|
+
padding: 12px 0 12px;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.width-show {
|
|
119
|
+
display: inline-block;
|
|
120
|
+
width: 10%;
|
|
121
|
+
overflow: hidden;
|
|
122
|
+
white-space: nowrap;
|
|
123
|
+
text-overflow: ellipsis;
|
|
124
|
+
}
|
|
125
|
+
.drag-icon-wrap {
|
|
126
|
+
width: 5% !important;
|
|
127
|
+
cursor: pointer;
|
|
128
|
+
text-align: center;
|
|
129
|
+
}
|
|
130
|
+
.width-showed {
|
|
131
|
+
display: inline-block;
|
|
132
|
+
width: 15%;
|
|
133
|
+
overflow: hidden;
|
|
134
|
+
white-space: nowrap;
|
|
135
|
+
text-overflow: ellipsis;
|
|
136
|
+
select {
|
|
137
|
+
width: 90% !important;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
.width-word {
|
|
141
|
+
display: inline-block;
|
|
142
|
+
width: 20%;
|
|
143
|
+
line-height: 52px;
|
|
144
|
+
overflow: hidden;
|
|
145
|
+
white-space: nowrap;
|
|
146
|
+
input {
|
|
147
|
+
width: 90% !important;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
.width-large {
|
|
151
|
+
display: inline-block;
|
|
152
|
+
width: 20%;
|
|
153
|
+
overflow: hidden;
|
|
154
|
+
white-space: nowrap;
|
|
155
|
+
text-overflow: ellipsis;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
@@ -186,9 +186,9 @@ declare const FormRender: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
186
186
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
187
187
|
}>>;
|
|
188
188
|
emit: (event: "formChange", ...args: any[]) => void;
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
189
|
+
businessCollector: import("./src/hooks").BusinessCollector;
|
|
190
|
+
changeContextCollector: import("./src/hooks").ContextCollector;
|
|
191
|
+
formItemDepsCollector: import("./src/hooks").FormItemDepsCollector;
|
|
192
192
|
formModel: import("@formily/core").Form<{
|
|
193
193
|
[x: string]: any;
|
|
194
194
|
}>;
|
|
@@ -313,6 +313,270 @@ declare const FormRender: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
313
313
|
form: any;
|
|
314
314
|
}>;
|
|
315
315
|
FormConsumer: import("vue").DefineComponent<{}, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
316
|
+
NForm: import("vue").DefineComponent<{
|
|
317
|
+
readonly inline: BooleanConstructor;
|
|
318
|
+
readonly labelWidth: import("vue").PropType<string | number>;
|
|
319
|
+
readonly labelAlign: import("vue").PropType<import("naive-ui/es/form/src/interface").LabelAlign>;
|
|
320
|
+
readonly labelPlacement: {
|
|
321
|
+
readonly type: import("vue").PropType<import("naive-ui/es/form/src/interface").LabelPlacement>;
|
|
322
|
+
readonly default: "top";
|
|
323
|
+
};
|
|
324
|
+
readonly model: {
|
|
325
|
+
readonly type: import("vue").PropType<Record<string, any>>;
|
|
326
|
+
readonly default: () => void;
|
|
327
|
+
};
|
|
328
|
+
readonly rules: import("vue").PropType<import("naive-ui").FormRules>;
|
|
329
|
+
readonly disabled: BooleanConstructor;
|
|
330
|
+
readonly size: import("vue").PropType<import("naive-ui/es/form/src/interface").Size>;
|
|
331
|
+
readonly showRequireMark: {
|
|
332
|
+
readonly type: import("vue").PropType<boolean | undefined>;
|
|
333
|
+
readonly default: undefined;
|
|
334
|
+
};
|
|
335
|
+
readonly requireMarkPlacement: import("vue").PropType<"left" | "right" | "right-hanging">;
|
|
336
|
+
readonly showFeedback: {
|
|
337
|
+
readonly type: BooleanConstructor;
|
|
338
|
+
readonly default: true;
|
|
339
|
+
};
|
|
340
|
+
readonly onSubmit: {
|
|
341
|
+
readonly type: import("vue").PropType<(e: Event) => void>;
|
|
342
|
+
readonly default: (e: Event) => void;
|
|
343
|
+
};
|
|
344
|
+
readonly showLabel: {
|
|
345
|
+
readonly type: import("vue").PropType<boolean | undefined>;
|
|
346
|
+
readonly default: undefined;
|
|
347
|
+
};
|
|
348
|
+
readonly validateMessages: import("vue").PropType<Partial<import("naive-ui/es/form/src/interface").FormValidateMessages>>;
|
|
349
|
+
readonly theme: import("vue").PropType<import("naive-ui/es/_mixins").Theme<"Form", {
|
|
350
|
+
blankHeightSmall: string;
|
|
351
|
+
blankHeightMedium: string;
|
|
352
|
+
blankHeightLarge: string;
|
|
353
|
+
lineHeight: string;
|
|
354
|
+
labelTextColor: string;
|
|
355
|
+
asteriskColor: string;
|
|
356
|
+
feedbackTextColorError: string;
|
|
357
|
+
feedbackTextColorWarning: string;
|
|
358
|
+
feedbackTextColor: string;
|
|
359
|
+
feedbackPadding: string;
|
|
360
|
+
feedbackHeightSmall: string;
|
|
361
|
+
feedbackHeightMedium: string;
|
|
362
|
+
feedbackHeightLarge: string;
|
|
363
|
+
feedbackFontSizeSmall: string;
|
|
364
|
+
feedbackFontSizeMedium: string;
|
|
365
|
+
feedbackFontSizeLarge: string;
|
|
366
|
+
labelFontSizeLeftSmall: string;
|
|
367
|
+
labelFontSizeLeftMedium: string;
|
|
368
|
+
labelFontSizeLeftLarge: string;
|
|
369
|
+
labelFontSizeTopSmall: string;
|
|
370
|
+
labelFontSizeTopMedium: string;
|
|
371
|
+
labelFontSizeTopLarge: string;
|
|
372
|
+
labelHeightSmall: string;
|
|
373
|
+
labelHeightMedium: string;
|
|
374
|
+
labelHeightLarge: string;
|
|
375
|
+
labelPaddingVertical: string;
|
|
376
|
+
labelPaddingHorizontal: string;
|
|
377
|
+
labelTextAlignVertical: string;
|
|
378
|
+
labelTextAlignHorizontal: string;
|
|
379
|
+
}, any>>;
|
|
380
|
+
readonly themeOverrides: import("vue").PropType<import("naive-ui/es/_mixins/use-theme").ExtractThemeOverrides<import("naive-ui/es/_mixins").Theme<"Form", {
|
|
381
|
+
blankHeightSmall: string;
|
|
382
|
+
blankHeightMedium: string;
|
|
383
|
+
blankHeightLarge: string;
|
|
384
|
+
lineHeight: string;
|
|
385
|
+
labelTextColor: string;
|
|
386
|
+
asteriskColor: string;
|
|
387
|
+
feedbackTextColorError: string;
|
|
388
|
+
feedbackTextColorWarning: string;
|
|
389
|
+
feedbackTextColor: string;
|
|
390
|
+
feedbackPadding: string;
|
|
391
|
+
feedbackHeightSmall: string;
|
|
392
|
+
feedbackHeightMedium: string;
|
|
393
|
+
feedbackHeightLarge: string;
|
|
394
|
+
feedbackFontSizeSmall: string;
|
|
395
|
+
feedbackFontSizeMedium: string;
|
|
396
|
+
feedbackFontSizeLarge: string;
|
|
397
|
+
labelFontSizeLeftSmall: string;
|
|
398
|
+
labelFontSizeLeftMedium: string;
|
|
399
|
+
labelFontSizeLeftLarge: string;
|
|
400
|
+
labelFontSizeTopSmall: string;
|
|
401
|
+
labelFontSizeTopMedium: string;
|
|
402
|
+
labelFontSizeTopLarge: string;
|
|
403
|
+
labelHeightSmall: string;
|
|
404
|
+
labelHeightMedium: string;
|
|
405
|
+
labelHeightLarge: string;
|
|
406
|
+
labelPaddingVertical: string;
|
|
407
|
+
labelPaddingHorizontal: string;
|
|
408
|
+
labelTextAlignVertical: string;
|
|
409
|
+
labelTextAlignHorizontal: string;
|
|
410
|
+
}, any>>>;
|
|
411
|
+
readonly builtinThemeOverrides: import("vue").PropType<import("naive-ui/es/_mixins/use-theme").ExtractThemeOverrides<import("naive-ui/es/_mixins").Theme<"Form", {
|
|
412
|
+
blankHeightSmall: string;
|
|
413
|
+
blankHeightMedium: string;
|
|
414
|
+
blankHeightLarge: string;
|
|
415
|
+
lineHeight: string;
|
|
416
|
+
labelTextColor: string;
|
|
417
|
+
asteriskColor: string;
|
|
418
|
+
feedbackTextColorError: string;
|
|
419
|
+
feedbackTextColorWarning: string;
|
|
420
|
+
feedbackTextColor: string;
|
|
421
|
+
feedbackPadding: string;
|
|
422
|
+
feedbackHeightSmall: string;
|
|
423
|
+
feedbackHeightMedium: string;
|
|
424
|
+
feedbackHeightLarge: string;
|
|
425
|
+
feedbackFontSizeSmall: string;
|
|
426
|
+
feedbackFontSizeMedium: string;
|
|
427
|
+
feedbackFontSizeLarge: string;
|
|
428
|
+
labelFontSizeLeftSmall: string;
|
|
429
|
+
labelFontSizeLeftMedium: string;
|
|
430
|
+
labelFontSizeLeftLarge: string;
|
|
431
|
+
labelFontSizeTopSmall: string;
|
|
432
|
+
labelFontSizeTopMedium: string;
|
|
433
|
+
labelFontSizeTopLarge: string;
|
|
434
|
+
labelHeightSmall: string;
|
|
435
|
+
labelHeightMedium: string;
|
|
436
|
+
labelHeightLarge: string;
|
|
437
|
+
labelPaddingVertical: string;
|
|
438
|
+
labelPaddingHorizontal: string;
|
|
439
|
+
labelTextAlignVertical: string;
|
|
440
|
+
labelTextAlignHorizontal: string;
|
|
441
|
+
}, any>>>;
|
|
442
|
+
}, import("naive-ui").FormInst & {
|
|
443
|
+
mergedClsPrefix: import("vue").ComputedRef<string>;
|
|
444
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
445
|
+
readonly inline: BooleanConstructor;
|
|
446
|
+
readonly labelWidth: import("vue").PropType<string | number>;
|
|
447
|
+
readonly labelAlign: import("vue").PropType<import("naive-ui/es/form/src/interface").LabelAlign>;
|
|
448
|
+
readonly labelPlacement: {
|
|
449
|
+
readonly type: import("vue").PropType<import("naive-ui/es/form/src/interface").LabelPlacement>;
|
|
450
|
+
readonly default: "top";
|
|
451
|
+
};
|
|
452
|
+
readonly model: {
|
|
453
|
+
readonly type: import("vue").PropType<Record<string, any>>;
|
|
454
|
+
readonly default: () => void;
|
|
455
|
+
};
|
|
456
|
+
readonly rules: import("vue").PropType<import("naive-ui").FormRules>;
|
|
457
|
+
readonly disabled: BooleanConstructor;
|
|
458
|
+
readonly size: import("vue").PropType<import("naive-ui/es/form/src/interface").Size>;
|
|
459
|
+
readonly showRequireMark: {
|
|
460
|
+
readonly type: import("vue").PropType<boolean | undefined>;
|
|
461
|
+
readonly default: undefined;
|
|
462
|
+
};
|
|
463
|
+
readonly requireMarkPlacement: import("vue").PropType<"left" | "right" | "right-hanging">;
|
|
464
|
+
readonly showFeedback: {
|
|
465
|
+
readonly type: BooleanConstructor;
|
|
466
|
+
readonly default: true;
|
|
467
|
+
};
|
|
468
|
+
readonly onSubmit: {
|
|
469
|
+
readonly type: import("vue").PropType<(e: Event) => void>;
|
|
470
|
+
readonly default: (e: Event) => void;
|
|
471
|
+
};
|
|
472
|
+
readonly showLabel: {
|
|
473
|
+
readonly type: import("vue").PropType<boolean | undefined>;
|
|
474
|
+
readonly default: undefined;
|
|
475
|
+
};
|
|
476
|
+
readonly validateMessages: import("vue").PropType<Partial<import("naive-ui/es/form/src/interface").FormValidateMessages>>;
|
|
477
|
+
readonly theme: import("vue").PropType<import("naive-ui/es/_mixins").Theme<"Form", {
|
|
478
|
+
blankHeightSmall: string;
|
|
479
|
+
blankHeightMedium: string;
|
|
480
|
+
blankHeightLarge: string;
|
|
481
|
+
lineHeight: string;
|
|
482
|
+
labelTextColor: string;
|
|
483
|
+
asteriskColor: string;
|
|
484
|
+
feedbackTextColorError: string;
|
|
485
|
+
feedbackTextColorWarning: string;
|
|
486
|
+
feedbackTextColor: string;
|
|
487
|
+
feedbackPadding: string;
|
|
488
|
+
feedbackHeightSmall: string;
|
|
489
|
+
feedbackHeightMedium: string;
|
|
490
|
+
feedbackHeightLarge: string;
|
|
491
|
+
feedbackFontSizeSmall: string;
|
|
492
|
+
feedbackFontSizeMedium: string;
|
|
493
|
+
feedbackFontSizeLarge: string;
|
|
494
|
+
labelFontSizeLeftSmall: string;
|
|
495
|
+
labelFontSizeLeftMedium: string;
|
|
496
|
+
labelFontSizeLeftLarge: string;
|
|
497
|
+
labelFontSizeTopSmall: string;
|
|
498
|
+
labelFontSizeTopMedium: string;
|
|
499
|
+
labelFontSizeTopLarge: string;
|
|
500
|
+
labelHeightSmall: string;
|
|
501
|
+
labelHeightMedium: string;
|
|
502
|
+
labelHeightLarge: string;
|
|
503
|
+
labelPaddingVertical: string;
|
|
504
|
+
labelPaddingHorizontal: string;
|
|
505
|
+
labelTextAlignVertical: string;
|
|
506
|
+
labelTextAlignHorizontal: string;
|
|
507
|
+
}, any>>;
|
|
508
|
+
readonly themeOverrides: import("vue").PropType<import("naive-ui/es/_mixins/use-theme").ExtractThemeOverrides<import("naive-ui/es/_mixins").Theme<"Form", {
|
|
509
|
+
blankHeightSmall: string;
|
|
510
|
+
blankHeightMedium: string;
|
|
511
|
+
blankHeightLarge: string;
|
|
512
|
+
lineHeight: string;
|
|
513
|
+
labelTextColor: string;
|
|
514
|
+
asteriskColor: string;
|
|
515
|
+
feedbackTextColorError: string;
|
|
516
|
+
feedbackTextColorWarning: string;
|
|
517
|
+
feedbackTextColor: string;
|
|
518
|
+
feedbackPadding: string;
|
|
519
|
+
feedbackHeightSmall: string;
|
|
520
|
+
feedbackHeightMedium: string;
|
|
521
|
+
feedbackHeightLarge: string;
|
|
522
|
+
feedbackFontSizeSmall: string;
|
|
523
|
+
feedbackFontSizeMedium: string;
|
|
524
|
+
feedbackFontSizeLarge: string;
|
|
525
|
+
labelFontSizeLeftSmall: string;
|
|
526
|
+
labelFontSizeLeftMedium: string;
|
|
527
|
+
labelFontSizeLeftLarge: string;
|
|
528
|
+
labelFontSizeTopSmall: string;
|
|
529
|
+
labelFontSizeTopMedium: string;
|
|
530
|
+
labelFontSizeTopLarge: string;
|
|
531
|
+
labelHeightSmall: string;
|
|
532
|
+
labelHeightMedium: string;
|
|
533
|
+
labelHeightLarge: string;
|
|
534
|
+
labelPaddingVertical: string;
|
|
535
|
+
labelPaddingHorizontal: string;
|
|
536
|
+
labelTextAlignVertical: string;
|
|
537
|
+
labelTextAlignHorizontal: string;
|
|
538
|
+
}, any>>>;
|
|
539
|
+
readonly builtinThemeOverrides: import("vue").PropType<import("naive-ui/es/_mixins/use-theme").ExtractThemeOverrides<import("naive-ui/es/_mixins").Theme<"Form", {
|
|
540
|
+
blankHeightSmall: string;
|
|
541
|
+
blankHeightMedium: string;
|
|
542
|
+
blankHeightLarge: string;
|
|
543
|
+
lineHeight: string;
|
|
544
|
+
labelTextColor: string;
|
|
545
|
+
asteriskColor: string;
|
|
546
|
+
feedbackTextColorError: string;
|
|
547
|
+
feedbackTextColorWarning: string;
|
|
548
|
+
feedbackTextColor: string;
|
|
549
|
+
feedbackPadding: string;
|
|
550
|
+
feedbackHeightSmall: string;
|
|
551
|
+
feedbackHeightMedium: string;
|
|
552
|
+
feedbackHeightLarge: string;
|
|
553
|
+
feedbackFontSizeSmall: string;
|
|
554
|
+
feedbackFontSizeMedium: string;
|
|
555
|
+
feedbackFontSizeLarge: string;
|
|
556
|
+
labelFontSizeLeftSmall: string;
|
|
557
|
+
labelFontSizeLeftMedium: string;
|
|
558
|
+
labelFontSizeLeftLarge: string;
|
|
559
|
+
labelFontSizeTopSmall: string;
|
|
560
|
+
labelFontSizeTopMedium: string;
|
|
561
|
+
labelFontSizeTopLarge: string;
|
|
562
|
+
labelHeightSmall: string;
|
|
563
|
+
labelHeightMedium: string;
|
|
564
|
+
labelHeightLarge: string;
|
|
565
|
+
labelPaddingVertical: string;
|
|
566
|
+
labelPaddingHorizontal: string;
|
|
567
|
+
labelTextAlignVertical: string;
|
|
568
|
+
labelTextAlignHorizontal: string;
|
|
569
|
+
}, any>>>;
|
|
570
|
+
}>>, {
|
|
571
|
+
readonly inline: boolean;
|
|
572
|
+
readonly disabled: boolean;
|
|
573
|
+
readonly onSubmit: (e: Event) => void;
|
|
574
|
+
readonly labelPlacement: import("naive-ui/es/form/src/interface").LabelPlacement;
|
|
575
|
+
readonly model: Record<string, any>;
|
|
576
|
+
readonly showRequireMark: boolean | undefined;
|
|
577
|
+
readonly showFeedback: boolean;
|
|
578
|
+
readonly showLabel: boolean | undefined;
|
|
579
|
+
}>;
|
|
316
580
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "formChange"[], "formChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
317
581
|
fieldList: {
|
|
318
582
|
type: import("vue").PropType<import("./src/types").FieldItem[]>;
|
|
@@ -11,6 +11,8 @@ export { useFieldVisitor } from './src/hooks/useFieldVisitor.mjs';
|
|
|
11
11
|
export { useTypeNormalize } from './src/hooks/useTypeNormalize.mjs';
|
|
12
12
|
export { useFormValidator } from './src/hooks/useFormValidator.mjs';
|
|
13
13
|
export { BusinessCollector, useBusinessBinding } from './src/hooks/useBusinessBinding.mjs';
|
|
14
|
+
export { ContextCollector, useChangeContext } from './src/hooks/useChangeContext.mjs';
|
|
15
|
+
export { FormItemDepsCollector, useFormItemDeps } from './src/hooks/useFormItemDeps.mjs';
|
|
14
16
|
|
|
15
17
|
const FormRender = script;
|
|
16
18
|
FormRender.install = function(app) {
|