@vunk/form 2.12.2 → 2.13.1
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/components/api-tables-select/src/ctx.d.ts +1 -1
- package/components/api-tables-select/src/index.vue.d.ts +5 -5
- package/components/api-tables-select/src/types.d.ts +2 -2
- package/components/button/index.cjs +1 -1
- package/components/button/index.mjs +1 -1
- package/components/button/src/ctx.d.ts +1 -6
- package/components/button/src/index.vue.d.ts +3 -12
- package/components/button/src/types.d.ts +2 -2
- package/components/card-input-collection/src/ctx.d.ts +1 -6
- package/components/card-input-collection/src/index.vue.d.ts +4 -18
- package/components/card-input-collection/src/types.d.ts +2 -2
- package/components/cascader/src/ctx.d.ts +2 -7
- package/components/cascader/src/index.vue.d.ts +3 -12
- package/components/cascader/src/types.d.ts +1 -1
- package/components/checkbox/src/ctx.d.ts +2 -7
- package/components/checkbox/src/index.vue.d.ts +3 -12
- package/components/checkbox/src/types.d.ts +1 -1
- package/components/color-picker/src/ctx.d.ts +1 -6
- package/components/color-picker/src/index.vue.d.ts +3 -12
- package/components/color-picker/src/types.d.ts +1 -1
- package/components/date-picker/src/ctx.d.ts +2 -7
- package/components/date-picker/src/index.vue.d.ts +3 -12
- package/components/date-picker/src/types.d.ts +2 -2
- package/components/date-picker-range/src/types.d.ts +3 -3
- package/components/dialog-input-collection/index.cjs +6 -2
- package/components/dialog-input-collection/index.mjs +6 -2
- package/components/dialog-input-collection/src/ctx.d.ts +1 -6
- package/components/dialog-input-collection/src/index.vue.d.ts +4 -18
- package/components/dialog-input-collection/src/types.d.ts +2 -2
- package/components/download-plus/src/ctx.d.ts +1 -6
- package/components/download-plus/src/index.vue.d.ts +3 -12
- package/components/editable-text/src/ctx.d.ts +1 -6
- package/components/editable-text/src/index.vue.d.ts +5 -19
- package/components/esri-input-geojson/src/ctx.d.ts +2 -7
- package/components/esri-input-geojson/src/index.vue.d.ts +4 -13
- package/components/esri-input-geojson/src/types.d.ts +2 -2
- package/components/form/src/types.d.ts +1 -1
- package/components/form-item/index.cjs +140 -144
- package/components/form-item/index.css +13 -16
- package/components/form-item/index.mjs +142 -146
- package/components/form-item/src/core.vue.d.ts +1847 -0
- package/components/form-item/src/ctx.d.ts +2 -7
- package/components/form-item/src/index.vue.d.ts +7 -757
- package/components/form-item/src/types.d.ts +1 -0
- package/components/information/src/types.d.ts +1 -1
- package/components/information-collection/src/ctx.d.ts +1 -6
- package/components/information-collection/src/index.vue.d.ts +3 -12
- package/components/input/src/ctx.d.ts +2 -7
- package/components/input/src/index.vue.d.ts +3 -12
- package/components/input/src/types.d.ts +2 -2
- package/components/input-collection/src/ctx.d.ts +1 -6
- package/components/input-collection/src/index.vue.d.ts +4 -18
- package/components/input-collection/src/types.d.ts +2 -2
- package/components/input-link/src/ctx.d.ts +1 -6
- package/components/input-link/src/index.vue.d.ts +3 -12
- package/components/input-link/src/types.d.ts +1 -1
- package/components/input-number/src/ctx.d.ts +2 -7
- package/components/input-number/src/index.vue.d.ts +3 -12
- package/components/input-number/src/types.d.ts +1 -1
- package/components/input-tag/src/ctx.d.ts +2 -7
- package/components/input-tag/src/index.vue.d.ts +3 -12
- package/components/input-tag/src/types.d.ts +2 -2
- package/components/monaco-editor/src/ctx.d.ts +1 -6
- package/components/monaco-editor/src/index.vue.d.ts +3 -12
- package/components/monaco-editor/src/types.d.ts +2 -2
- package/components/radio/src/ctx.d.ts +1 -6
- package/components/radio/src/index.vue.d.ts +3 -12
- package/components/radio/src/types.d.ts +1 -1
- package/components/select/src/ctx.d.ts +2 -7
- package/components/select/src/index.vue.d.ts +3 -12
- package/components/select/src/types.d.ts +1 -1
- package/components/slider/src/ctx.d.ts +1 -6
- package/components/slider/src/index.vue.d.ts +3 -12
- package/components/slider/src/types.d.ts +1 -1
- package/components/switch/src/ctx.d.ts +1 -6
- package/components/switch/src/index.vue.d.ts +3 -12
- package/components/switch/src/types.d.ts +1 -1
- package/components/tables-select/src/ctx.d.ts +1 -1
- package/components/tables-select/src/index.vue.d.ts +2 -2
- package/components/tables-select/src/types.d.ts +2 -2
- package/components/templates-default/src/types.d.ts +16 -16
- package/components/templates-esri/src/types.d.ts +1 -1
- package/components/templates-variant/src/types.d.ts +1 -1
- package/components/upload/src/ctx.d.ts +2 -7
- package/components/upload/src/index.vue.d.ts +3 -12
- package/components/upload/src/types.d.ts +1 -1
- package/components/upload-plus/src/ctx.d.ts +1 -6
- package/components/upload-plus/src/index.vue.d.ts +4 -18
- package/components/van-cascader/src/ctx.d.ts +1 -6
- package/components/van-cascader/src/index.vue.d.ts +3 -12
- package/components/var-datetime-picker/src/ctx.d.ts +1 -6
- package/components/var-datetime-picker/src/index.vue.d.ts +3 -12
- package/components/var-datetime-picker/src/types.d.ts +2 -2
- package/components/vditor/src/ctx.d.ts +1 -6
- package/components/vditor/src/index.vue.d.ts +3 -12
- package/components/vditor/src/types.d.ts +2 -2
- package/index.css +13 -16
- package/package.json +1 -1
- package/shared/types/source/index.d.ts +2 -2
|
@@ -60,6 +60,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
60
60
|
type: BooleanConstructor;
|
|
61
61
|
default: boolean;
|
|
62
62
|
};
|
|
63
|
+
prop: any;
|
|
63
64
|
label: StringConstructor;
|
|
64
65
|
labelWidth: {
|
|
65
66
|
readonly type: import("vue").PropType<string | number>;
|
|
@@ -77,12 +78,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
77
78
|
} & {
|
|
78
79
|
readonly default: "";
|
|
79
80
|
};
|
|
80
|
-
prop: {
|
|
81
|
-
readonly type: import("vue").PropType<import("element-plus").FormItemProp>;
|
|
82
|
-
readonly required: false;
|
|
83
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
84
|
-
__epPropKey: true;
|
|
85
|
-
};
|
|
86
81
|
rules: {
|
|
87
82
|
readonly type: import("vue").PropType<unknown>;
|
|
88
83
|
readonly required: false;
|
|
@@ -185,6 +180,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
185
180
|
type: BooleanConstructor;
|
|
186
181
|
default: boolean;
|
|
187
182
|
};
|
|
183
|
+
prop: any;
|
|
188
184
|
label: StringConstructor;
|
|
189
185
|
labelWidth: {
|
|
190
186
|
readonly type: import("vue").PropType<string | number>;
|
|
@@ -202,12 +198,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
202
198
|
} & {
|
|
203
199
|
readonly default: "";
|
|
204
200
|
};
|
|
205
|
-
prop: {
|
|
206
|
-
readonly type: import("vue").PropType<import("element-plus").FormItemProp>;
|
|
207
|
-
readonly required: false;
|
|
208
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
209
|
-
__epPropKey: true;
|
|
210
|
-
};
|
|
211
201
|
rules: {
|
|
212
202
|
readonly type: import("vue").PropType<unknown>;
|
|
213
203
|
readonly required: false;
|
|
@@ -253,6 +243,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
253
243
|
formItemTipClass: any;
|
|
254
244
|
labelTip: string;
|
|
255
245
|
information: boolean;
|
|
246
|
+
prop: any;
|
|
256
247
|
labelWidth: string | number;
|
|
257
248
|
labelPosition: "" | "top" | "left" | "right";
|
|
258
249
|
inlineMessage: string | boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VueComponentPropsType } from '@vunk/shared';
|
|
2
2
|
import Core from './index.vue';
|
|
3
3
|
import { BasicSource } from '@vunk/form/shared';
|
|
4
|
-
export interface Source<P
|
|
5
|
-
prop?: P
|
|
4
|
+
export interface Source<P = string> extends VueComponentPropsType<typeof Core>, BasicSource {
|
|
5
|
+
prop?: P;
|
|
6
6
|
templateType: 'VkfVditor';
|
|
7
7
|
}
|
package/index.css
CHANGED
|
@@ -220,15 +220,6 @@
|
|
|
220
220
|
margin: 0;
|
|
221
221
|
}
|
|
222
222
|
|
|
223
|
-
.vkf-form-item.is-information{
|
|
224
|
-
margin-bottom: 0;
|
|
225
|
-
}
|
|
226
|
-
.vkf-form-item--inline{
|
|
227
|
-
display: inline-flex;
|
|
228
|
-
}
|
|
229
|
-
.vkf-form-item__tip {
|
|
230
|
-
color: var(--el-text-color-secondary);
|
|
231
|
-
}
|
|
232
223
|
.vkf-form-item-label-tip-button:hover .el-icon {
|
|
233
224
|
color: var(--el-color-primary);
|
|
234
225
|
}
|
|
@@ -239,22 +230,28 @@
|
|
|
239
230
|
margin-left: 4px;
|
|
240
231
|
padding: 4px;
|
|
241
232
|
}
|
|
242
|
-
.vkf-form-item.
|
|
243
|
-
display: none;
|
|
244
|
-
}
|
|
245
|
-
.vkf-form-item.has-label-actions > .el-form-item__label {
|
|
233
|
+
.el-form-item--label-top.vkf-form-item.has-label-actions > .el-form-item__label {
|
|
246
234
|
width: 100%;
|
|
247
235
|
padding-right: 0;
|
|
248
236
|
}
|
|
249
|
-
.
|
|
237
|
+
.vkf-form-item__tip {
|
|
238
|
+
color: var(--el-text-color-secondary);
|
|
239
|
+
}
|
|
240
|
+
.vkf-form-item-label__actions {
|
|
250
241
|
float: right;
|
|
251
242
|
align-items: center;
|
|
252
|
-
display:
|
|
243
|
+
display: inline-flex;
|
|
253
244
|
height: 1.8em;
|
|
254
245
|
}
|
|
255
|
-
.
|
|
246
|
+
.vkf-form-item.is-information{
|
|
247
|
+
margin-bottom: 0;
|
|
248
|
+
}
|
|
249
|
+
.vkf-form-item--inline{
|
|
256
250
|
display: inline-flex;
|
|
257
251
|
}
|
|
252
|
+
.vkf-form-item.is-empty-label .el-form-item__label:before{
|
|
253
|
+
display: none;
|
|
254
|
+
}
|
|
258
255
|
|
|
259
256
|
.vkf-information-tag__tag{
|
|
260
257
|
cursor: pointer;
|
package/package.json
CHANGED
|
@@ -44,5 +44,5 @@ export interface BasicSource {
|
|
|
44
44
|
* import { __VkfTemplatesDefault } from '@vunk/form/components/templates-default'
|
|
45
45
|
* ```
|
|
46
46
|
*/
|
|
47
|
-
export type FormItemRendererSource<P
|
|
48
|
-
export type AllTemplatesSource<P
|
|
47
|
+
export type FormItemRendererSource<P = string> = __VkfTemplatesDefault.Source<P>;
|
|
48
|
+
export type AllTemplatesSource<P = string> = __VkfTemplatesDefault.Source<P> | __VkfTemplatesEsri.Source<P> | __VkfTemplatesLayout.ElRowSource<AllTemplatesSource<P>> | __VkfTemplatesLayout.ElColSource<AllTemplatesSource<P>> | __VkfTemplatesLayout.VkfFlexSource<AllTemplatesSource<P>> | __VkfTemplatesElementPlus.Source | __VkfTemplatesVariant.Source<P>;
|