@vunk/form 2.18.1 → 2.19.0
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/_plugin-vue_export-helper.cjs +1 -11
- package/components/api-tables-select/index.cjs +1 -467
- package/components/api-tables-select/index.mjs +56 -413
- package/components/api-tables-select/src/ctx.d.ts +152 -172
- package/components/api-tables-select/src/index.vue.d.ts +394 -983
- package/components/button/index.cjs +1 -112
- package/components/button/index.mjs +57 -85
- package/components/button/src/ctx.d.ts +28 -113
- package/components/button/src/index.vue.d.ts +317 -625
- package/components/card-input-collection/index.cjs +1 -352
- package/components/card-input-collection/index.mjs +177 -261
- package/components/card-input-collection/src/core.vue.d.ts +54 -950
- package/components/card-input-collection/src/ctx.d.ts +19 -49
- package/components/card-input-collection/src/index.vue.d.ts +46 -110
- package/components/cascader/index.cjs +1 -150
- package/components/cascader/index.mjs +88 -116
- package/components/cascader/src/ctx.d.ts +140 -207
- package/components/cascader/src/index.vue.d.ts +315 -522
- package/components/cascader/src/use.d.ts +1 -1
- package/components/checkbox/index.cjs +1 -152
- package/components/checkbox/index.mjs +75 -119
- package/components/checkbox/src/ctx.d.ts +46 -69
- package/components/checkbox/src/index.vue.d.ts +448 -1016
- package/components/cloneDeep.cjs +1 -2106
- package/components/color-picker/index.cjs +1 -80
- package/components/color-picker/index.mjs +46 -69
- package/components/color-picker/src/ctx.d.ts +130 -107
- package/components/color-picker/src/index.vue.d.ts +285 -255
- package/components/date-picker/index.cjs +1 -119
- package/components/date-picker/index.mjs +63 -97
- package/components/date-picker/src/ctx.d.ts +123 -206
- package/components/date-picker/src/index.vue.d.ts +269 -1358
- package/components/date-picker/src/types.d.ts +7 -7
- package/components/date-picker-range/index.cjs +1 -177
- package/components/date-picker-range/index.mjs +62 -113
- package/components/date-picker-range/src/ctx.d.ts +130 -206
- package/components/date-picker-range/src/index.vue.d.ts +861 -448
- package/components/debounce.cjs +1 -0
- package/components/dialog/index.cjs +1 -126
- package/components/dialog/index.mjs +65 -99
- package/components/dialog/src/ctx.d.ts +17 -108
- package/components/dialog/src/index.vue.d.ts +77 -1072
- package/components/dialog-input-collection/index.cjs +1 -624
- package/components/dialog-input-collection/index.mjs +276 -498
- package/components/dialog-input-collection/src/ctx.d.ts +21 -52
- package/components/dialog-input-collection/src/dialog-form.vue.d.ts +29 -6371
- package/components/dialog-input-collection/src/index.vue.d.ts +65 -7630
- package/components/dialog-input-collection/src/layout.vue.d.ts +13 -73
- package/components/download-plus/index.cjs +1 -456
- package/components/download-plus/index.mjs +215 -358
- package/components/download-plus/src/api.d.ts +1 -1
- package/components/download-plus/src/ctx.d.ts +21 -52
- package/components/download-plus/src/index.vue.d.ts +437 -1177
- package/components/editable-text/index.cjs +1 -295
- package/components/editable-text/index.mjs +113 -239
- package/components/editable-text/src/ctx.d.ts +24 -50
- package/components/editable-text/src/index.vue.d.ts +59 -3258
- package/components/el-slider/index.cjs +1 -0
- package/components/el-slider/index.d.ts +5 -0
- package/components/el-slider/index.mjs +475 -0
- package/components/el-slider/src/button.d.ts +36 -0
- package/components/el-slider/src/button.vue.d.ts +41 -0
- package/components/el-slider/src/composables/index.cjs +1 -0
- package/components/el-slider/src/composables/index.d.ts +6 -0
- package/components/el-slider/src/composables/index.mjs +9 -0
- package/components/el-slider/src/composables/use-lifecycle.d.ts +4 -0
- package/components/el-slider/src/composables/use-marks.d.ts +7 -0
- package/components/el-slider/src/composables/use-slide.d.ts +23 -0
- package/components/el-slider/src/composables/use-slider-button.d.ts +18 -0
- package/components/el-slider/src/composables/use-stops.d.ts +8 -0
- package/components/el-slider/src/composables/use-watch.d.ts +4 -0
- package/components/el-slider/src/constants.d.ts +14 -0
- package/components/el-slider/src/marker.d.ts +37 -0
- package/components/el-slider/src/slider-core.vue.d.ts +218 -0
- package/components/el-slider/src/slider.d.ts +174 -0
- package/components/esri-input-geojson/index.cjs +2 -1604
- package/components/esri-input-geojson/index.mjs +682 -1290
- package/components/esri-input-geojson/src/append.vue.d.ts +239 -1099
- package/components/esri-input-geojson/src/const.d.ts +1 -1
- package/components/esri-input-geojson/src/ctx.d.ts +66 -161
- package/components/esri-input-geojson/src/default-view.vue.d.ts +8 -132
- package/components/esri-input-geojson/src/index.vue.d.ts +982 -708
- package/components/esri-input-geojson/src/types.d.ts +1 -0
- package/components/esri-input-geojson/src/viewer.vue.d.ts +53 -282
- package/components/fieldset/index.cjs +1 -110
- package/components/fieldset/index.mjs +63 -76
- package/components/fieldset/src/ctx.d.ts +4 -4
- package/components/fieldset/src/index.vue.d.ts +7 -7
- package/components/form/index.cjs +1 -248
- package/components/form/index.mjs +107 -161
- package/components/form/src/ctx.d.ts +15 -64
- package/components/form/src/index.vue.d.ts +374 -2431
- package/components/form-item/index.cjs +1 -294
- package/components/form-item/index.mjs +140 -229
- package/components/form-item/src/core.vue.d.ts +32 -1854
- package/components/form-item/src/ctx.d.ts +19 -51
- package/components/form-item/src/index.vue.d.ts +38 -101
- package/components/form-item-renderer/index.cjs +1 -193
- package/components/form-item-renderer/index.mjs +103 -162
- package/components/form-item-renderer/src/core.vue.d.ts +9 -9
- package/components/form-item-renderer/src/ctx.d.ts +3 -3
- package/components/form-item-renderer/src/index.vue.d.ts +24 -74
- package/components/form-item-renderer-template/index.cjs +1 -47
- package/components/form-item-renderer-template/index.mjs +20 -33
- package/components/form-item-renderer-template/src/index.vue.d.ts +1 -1
- package/components/forms-provider/index.cjs +1 -99
- package/components/forms-provider/index.mjs +44 -73
- package/components/forms-provider/src/core.d.ts +3 -2
- package/components/forms-provider/src/segment.vue.d.ts +8 -8
- package/components/forms-provider/src/view.vue.d.ts +14 -4
- package/components/index.cjs +1 -399
- package/components/index2.cjs +1 -17
- package/components/information/index.cjs +1 -65
- package/components/information/index.mjs +28 -38
- package/components/information/src/ctx.d.ts +2 -2
- package/components/information/src/index.vue.d.ts +4 -4
- package/components/information-collection/index.cjs +1 -81
- package/components/information-collection/index.mjs +44 -48
- package/components/information-collection/src/ctx.d.ts +29 -65
- package/components/information-collection/src/index.vue.d.ts +64 -136
- package/components/information-renderer/index.cjs +1 -16
- package/components/information-renderer/index.d.ts +9 -9
- package/components/information-renderer/index.mjs +9 -10
- package/components/information-tag/index.cjs +1 -101
- package/components/information-tag/index.mjs +44 -54
- package/components/information-tag/src/ctx.d.ts +6 -21
- package/components/information-tag/src/index.vue.d.ts +23 -51
- package/components/information-templates-default/index.cjs +1 -101
- package/components/information-templates-default/index.mjs +63 -73
- package/components/information-templates-default/src/index.vue.d.ts +1 -1
- package/components/input/index.cjs +1 -115
- package/components/input/index.mjs +60 -83
- package/components/input/src/ctx.d.ts +51 -152
- package/components/input/src/index.vue.d.ts +392 -951
- package/components/input-array/index.cjs +1 -297
- package/components/input-array/index.mjs +115 -232
- package/components/input-array/src/ctx.d.ts +19 -49
- package/components/input-array/src/form-template.vue.d.ts +1 -900
- package/components/input-array/src/index.vue.d.ts +43 -729
- package/components/input-collection/index.cjs +1 -444
- package/components/input-collection/index.mjs +195 -347
- package/components/input-collection/src/core.vue.d.ts +64 -1026
- package/components/input-collection/src/ctx.d.ts +21 -51
- package/components/input-collection/src/index.vue.d.ts +50 -114
- package/components/input-file/index.cjs +1 -142
- package/components/input-file/index.mjs +68 -100
- package/components/input-file/src/ctx.d.ts +8 -29
- package/components/input-file/src/index.vue.d.ts +444 -74
- package/components/input-file/src/template.vue.d.ts +1 -124
- package/components/input-link/index.cjs +1 -167
- package/components/input-link/index.mjs +60 -83
- package/components/input-link/src/ctx.d.ts +52 -137
- package/components/input-link/src/index.vue.d.ts +833 -311
- package/components/input-number/index.cjs +1 -119
- package/components/input-number/index.mjs +73 -87
- package/components/input-number/src/ctx.d.ts +38 -131
- package/components/input-number/src/index.vue.d.ts +321 -683
- package/components/input-tag/index.cjs +1 -100
- package/components/input-tag/index.mjs +51 -78
- package/components/input-tag/src/ctx.d.ts +43 -145
- package/components/input-tag/src/index.vue.d.ts +324 -778
- package/components/isObject.cjs +1 -165
- package/components/monaco-editor/index.cjs +1 -83
- package/components/monaco-editor/index.mjs +40 -59
- package/components/monaco-editor/src/ctx.d.ts +19 -44
- package/components/monaco-editor/src/index.vue.d.ts +209 -109
- package/components/radio/index.cjs +1 -267
- package/components/radio/index.mjs +110 -209
- package/components/radio/src/ctx.d.ts +27 -91
- package/components/radio/src/index.vue.d.ts +298 -1279
- package/components/radio/src/option.vue.d.ts +29 -881
- package/components/radio/src/wraper.vue.d.ts +64 -196
- package/components/renderer-data/index.cjs +1 -41
- package/components/renderer-data/index.mjs +19 -26
- package/components/renderer-data/src/ctx.d.ts +1 -1
- package/components/renderer-data/src/index.vue.d.ts +2 -2
- package/components/select/index.cjs +1 -311
- package/components/select/index.mjs +156 -214
- package/components/select/src/core.vue.d.ts +638 -1080
- package/components/select/src/ctx.d.ts +140 -223
- package/components/select/src/index.vue.d.ts +334 -610
- package/components/select/src/options.vue.d.ts +1 -1
- package/components/slider/index.cjs +1 -88
- package/components/slider/index.mjs +41 -70
- package/components/slider/src/ctx.d.ts +63 -174
- package/components/slider/src/index.vue.d.ts +151 -420
- package/components/style.css +1 -0
- package/components/switch/index.cjs +1 -88
- package/components/switch/index.mjs +37 -69
- package/components/switch/src/ctx.d.ts +34 -113
- package/components/switch/src/index.vue.d.ts +88 -699
- package/components/switch/src/types.d.ts +2 -2
- package/components/tables-select/index.cjs +1 -263
- package/components/tables-select/index.mjs +102 -172
- package/components/tables-select/src/ctx.d.ts +76 -91
- package/components/tables-select/src/index.vue.d.ts +228 -4969
- package/components/template-instances-provider/index.cjs +1 -31
- package/components/template-instances-provider/index.mjs +18 -22
- package/components/template-instances-provider/src/index.vue.d.ts +2 -2
- package/components/templates-default/index.cjs +1 -235
- package/components/templates-default/index.mjs +152 -211
- package/components/templates-default/src/ctx.d.ts +5 -3
- package/components/templates-default/src/index.vue.d.ts +7298 -157
- package/components/templates-element-plus/index.cjs +1 -112
- package/components/templates-element-plus/index.mjs +49 -91
- package/components/templates-element-plus/src/ctx.d.ts +1 -1
- package/components/templates-element-plus/src/index.vue.d.ts +65 -258
- package/components/templates-esri/index.cjs +1 -65
- package/components/templates-esri/index.mjs +29 -39
- package/components/templates-esri/src/ctx.d.ts +1 -1
- package/components/templates-esri/src/index.vue.d.ts +1776 -24
- package/components/templates-layout/index.cjs +1 -137
- package/components/templates-layout/index.mjs +78 -116
- package/components/templates-layout/src/ctx.d.ts +1 -1
- package/components/templates-layout/src/index.vue.d.ts +79 -411
- package/components/templates-variant/index.cjs +1 -70
- package/components/templates-variant/index.mjs +33 -43
- package/components/templates-variant/src/ctx.d.ts +1 -1
- package/components/templates-variant/src/index.vue.d.ts +1238 -24
- package/components/time-picker/index.cjs +1 -104
- package/components/time-picker/index.mjs +57 -87
- package/components/time-picker/src/ctx.d.ts +121 -211
- package/components/time-picker/src/index.vue.d.ts +263 -1368
- package/components/upload/index.cjs +1 -663
- package/components/upload/index.mjs +343 -537
- package/components/upload/src/ctx.d.ts +108 -195
- package/components/upload/src/file.vue.d.ts +197 -776
- package/components/upload/src/index.vue.d.ts +689 -1931
- package/components/upload/src/types.d.ts +1 -1
- package/components/upload/src/wraper.vue.d.ts +232 -407
- package/components/upload-plus/index.cjs +21 -18673
- package/components/upload-plus/index.mjs +4598 -18372
- package/components/upload-plus/src/api.d.ts +2 -2
- package/components/upload-plus/src/ctx.d.ts +24 -51
- package/components/upload-plus/src/index.vue.d.ts +51 -1656
- package/components/use-watch.cjs +1 -0
- package/components/van-cascader/index.cjs +1 -125
- package/components/van-cascader/index.mjs +51 -96
- package/components/van-cascader/src/ctx.d.ts +135 -203
- package/components/van-cascader/src/index.vue.d.ts +312 -985
- package/components/var-datetime-picker/index.cjs +1 -333
- package/components/var-datetime-picker/index.mjs +175 -254
- package/components/var-datetime-picker/src/ctx.d.ts +19 -50
- package/components/var-datetime-picker/src/index.vue.d.ts +688 -1115
- package/components/vditor/index.cjs +1 -86
- package/components/vditor/index.mjs +40 -66
- package/components/vditor/src/ctx.d.ts +16 -45
- package/components/vditor/src/index.vue.d.ts +195 -120
- package/composables/element-plus/index.cjs +1 -23
- package/composables/element-plus/index.mjs +14 -18
- package/composables/index.cjs +1 -161
- package/composables/index.d.ts +1 -0
- package/composables/index.mjs +102 -135
- package/composables/useForm.d.ts +2 -2
- package/composables/useRtl.d.ts +18 -0
- package/composables/useSourceManager.d.ts +2 -2
- package/composables/useTemplateInstances.d.ts +3 -3
- package/index.css +1 -562
- package/index.d.ts +0 -3
- package/index.esm.js +23 -48
- package/locale/index.cjs +1 -110
- package/locale/index.mjs +37 -45
- package/locale/lang/en.d.ts +2 -6
- package/locale/lang/index.cjs +1 -2
- package/locale/lang/index.d.ts +1 -0
- package/locale/lang/zh-cn.d.ts +2 -6
- package/package.json +14 -85
- package/shared/const/index.cjs +1 -59
- package/shared/const/index.d.ts +1 -1
- package/shared/const/index.mjs +18 -20
- package/shared/element-plus/ctx.d.ts +40 -37
- package/shared/element-plus/index.cjs +1 -211
- package/shared/element-plus/index.mjs +93 -161
- package/shared/element-plus/instances.d.ts +207 -321
- package/shared/form/index.cjs +1 -33
- package/shared/form/index.mjs +23 -25
- package/shared/helper/index.cjs +1 -11
- package/shared/helper/index.mjs +7 -8
- package/shared/index.cjs +1 -8
- package/shared/index.mjs +5 -1
- package/shared/infer-prop/index.cjs +1 -36
- package/shared/infer-prop/index.mjs +22 -28
- package/shared/progress-it/index.cjs +1 -42
- package/shared/progress-it/index.mjs +15 -31
- package/shared/rules/index.cjs +1 -56
- package/shared/rules/index.mjs +19 -18
- package/shared/types/form/index.cjs +1 -2
- package/shared/types/index.cjs +1 -2
- package/shared/types/source/index.cjs +1 -2
- package/shared/types/source-manager/index.cjs +1 -2
- package/shared/upload/index.cjs +1 -774
- package/shared/upload/index.mjs +180 -764
- package/component.d.ts +0 -3
- package/components/_plugin-vue_export-helper.mjs +0 -9
- package/components/card-input-collection/index.css +0 -21
- package/components/cascader/index.css +0 -9
- package/components/checkbox/index.css +0 -30
- package/components/cloneDeep.mjs +0 -2104
- package/components/date-picker-range/index.css +0 -18
- package/components/dialog-input-collection/index.css +0 -21
- package/components/download-plus/index.css +0 -68
- package/components/editable-text/index.css +0 -9
- package/components/esri-input-geojson/index.css +0 -32
- package/components/fieldset/index.css +0 -5
- package/components/form-item/index.css +0 -35
- package/components/index.mjs +0 -378
- package/components/index2.mjs +0 -14
- package/components/information-tag/index.css +0 -6
- package/components/information-templates-default/index.css +0 -16
- package/components/input-array/index.css +0 -14
- package/components/input-collection/index.css +0 -20
- package/components/input-link/index.css +0 -4
- package/components/input-number/index.css +0 -13
- package/components/isObject.mjs +0 -158
- package/components/monaco-editor/index.css +0 -4
- package/components/radio/index.css +0 -40
- package/components/select/index.css +0 -15
- package/components/switch/index.css +0 -10
- package/components/tables-select/index.css +0 -3
- package/components/templates-layout/index.css +0 -3
- package/components/upload/index.css +0 -34
- package/components/upload-plus/index.css +0 -84
- package/components/van-cascader/index.css +0 -6
- package/components/var-datetime-picker/index.css +0 -17
- package/defaults.d.ts +0 -5
|
@@ -12,15 +12,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
12
12
|
isArray(arg: any): arg is any[];
|
|
13
13
|
readonly prototype: any[];
|
|
14
14
|
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
15
|
-
from<
|
|
16
|
-
from<
|
|
17
|
-
from<
|
|
18
|
-
of<
|
|
19
|
-
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
20
|
-
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
15
|
+
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
16
|
+
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
17
|
+
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
18
|
+
of<T_4>(...items: T_4[]): T_4[];
|
|
21
19
|
readonly [Symbol.species]: ArrayConstructor;
|
|
22
20
|
};
|
|
23
|
-
default: () =>
|
|
21
|
+
default: () => never[];
|
|
24
22
|
};
|
|
25
23
|
columns: {
|
|
26
24
|
type: {
|
|
@@ -31,39 +29,30 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
31
29
|
isArray(arg: any): arg is any[];
|
|
32
30
|
readonly prototype: any[];
|
|
33
31
|
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
34
|
-
from<
|
|
35
|
-
from<
|
|
36
|
-
from<
|
|
37
|
-
of<
|
|
38
|
-
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
39
|
-
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
32
|
+
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
33
|
+
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
34
|
+
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
35
|
+
of<T_4>(...items: T_4[]): T_4[];
|
|
40
36
|
readonly [Symbol.species]: ArrayConstructor;
|
|
41
37
|
};
|
|
42
|
-
default: () =>
|
|
38
|
+
default: () => never[];
|
|
43
39
|
};
|
|
44
40
|
labelRender: {
|
|
45
41
|
type: import("vue").PropType<import("@vunk/shared").AnyFunc>;
|
|
46
|
-
default:
|
|
42
|
+
default: undefined;
|
|
47
43
|
};
|
|
48
44
|
typeRender: {
|
|
49
|
-
type: import("vue").PropType<
|
|
50
|
-
default:
|
|
51
|
-
};
|
|
52
|
-
required: {
|
|
53
|
-
readonly type: import("vue").PropType<boolean>;
|
|
54
|
-
readonly required: false;
|
|
55
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
56
|
-
__epPropKey: true;
|
|
57
|
-
} & {
|
|
58
|
-
readonly default: undefined;
|
|
45
|
+
type: import("vue").PropType<((...args: any) => "primary" | "success" | "warning" | "info" | "danger" | undefined) | ((arg: any) => "primary" | "success" | "warning" | "info" | "danger" | undefined)>;
|
|
46
|
+
default: undefined;
|
|
59
47
|
};
|
|
48
|
+
required: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
60
49
|
formItemSize: {
|
|
61
50
|
type: import("vue").PropType<"default" | "small" | "large">;
|
|
62
51
|
default: "default" | "small" | "large";
|
|
63
52
|
};
|
|
64
53
|
formItemSlots: {
|
|
65
|
-
type: import("vue").PropType<import("
|
|
66
|
-
default:
|
|
54
|
+
type: import("vue").PropType<import("../../form-item/src/types.ts").FormItemSlots>;
|
|
55
|
+
default: undefined;
|
|
67
56
|
};
|
|
68
57
|
elRef: {
|
|
69
58
|
type: import("vue").PropType<any>;
|
|
@@ -75,67 +64,44 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
75
64
|
};
|
|
76
65
|
readonly: {
|
|
77
66
|
type: BooleanConstructor;
|
|
78
|
-
default:
|
|
67
|
+
default: undefined;
|
|
79
68
|
};
|
|
80
69
|
formItemTip: {
|
|
81
70
|
type: StringConstructor;
|
|
82
|
-
default:
|
|
71
|
+
default: undefined;
|
|
83
72
|
};
|
|
84
|
-
formItemTipClass:
|
|
73
|
+
formItemTipClass: null;
|
|
85
74
|
labelTip: {
|
|
86
75
|
type: StringConstructor;
|
|
87
|
-
default:
|
|
76
|
+
default: undefined;
|
|
88
77
|
};
|
|
89
|
-
prop:
|
|
90
|
-
defaultModelValue:
|
|
78
|
+
prop: null;
|
|
79
|
+
defaultModelValue: null;
|
|
91
80
|
label: StringConstructor;
|
|
92
81
|
labelWidth: {
|
|
93
|
-
readonly type: import("vue").PropType<
|
|
82
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
|
|
94
83
|
readonly required: false;
|
|
95
84
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
96
85
|
__epPropKey: true;
|
|
97
|
-
} & {
|
|
98
|
-
readonly default: "";
|
|
99
|
-
};
|
|
100
|
-
labelPosition: {
|
|
101
|
-
readonly type: import("vue").PropType<"" | "top" | "left" | "right">;
|
|
102
|
-
readonly required: false;
|
|
103
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
104
|
-
__epPropKey: true;
|
|
105
|
-
} & {
|
|
106
|
-
readonly default: "";
|
|
107
86
|
};
|
|
87
|
+
labelPosition: import("element-plus/es/utils/index.mjs").EpPropFinalized<StringConstructor, "" | "left" | "right" | "top", unknown, "", boolean>;
|
|
108
88
|
rules: {
|
|
109
|
-
readonly type: import("vue").PropType<unknown
|
|
89
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<(new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils/typescript.mjs").Arrayable<import("element-plus").FormItemRule>) | ((new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils/typescript.mjs").Arrayable<import("element-plus").FormItemRule>) | null)[], unknown, unknown>>;
|
|
110
90
|
readonly required: false;
|
|
111
91
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
112
92
|
__epPropKey: true;
|
|
113
93
|
};
|
|
114
94
|
error: StringConstructor;
|
|
115
95
|
validateStatus: {
|
|
116
|
-
readonly type: import("vue").PropType<"" | "error" | "success" | "validating"
|
|
96
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<StringConstructor, "" | "error" | "success" | "validating", unknown>>;
|
|
117
97
|
readonly required: false;
|
|
118
98
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
119
99
|
__epPropKey: true;
|
|
120
100
|
};
|
|
121
101
|
for: StringConstructor;
|
|
122
|
-
inlineMessage:
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
126
|
-
__epPropKey: true;
|
|
127
|
-
} & {
|
|
128
|
-
readonly default: "";
|
|
129
|
-
};
|
|
130
|
-
showMessage: {
|
|
131
|
-
readonly type: import("vue").PropType<boolean>;
|
|
132
|
-
readonly required: false;
|
|
133
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
134
|
-
__epPropKey: true;
|
|
135
|
-
} & {
|
|
136
|
-
readonly default: true;
|
|
137
|
-
};
|
|
138
|
-
}>, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
102
|
+
inlineMessage: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
103
|
+
showMessage: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
104
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
139
105
|
information: {
|
|
140
106
|
type: BooleanConstructor;
|
|
141
107
|
default: boolean;
|
|
@@ -149,15 +115,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
149
115
|
isArray(arg: any): arg is any[];
|
|
150
116
|
readonly prototype: any[];
|
|
151
117
|
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
152
|
-
from<
|
|
153
|
-
from<
|
|
154
|
-
from<
|
|
155
|
-
of<
|
|
156
|
-
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
157
|
-
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
118
|
+
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
119
|
+
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
120
|
+
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
121
|
+
of<T_4>(...items: T_4[]): T_4[];
|
|
158
122
|
readonly [Symbol.species]: ArrayConstructor;
|
|
159
123
|
};
|
|
160
|
-
default: () =>
|
|
124
|
+
default: () => never[];
|
|
161
125
|
};
|
|
162
126
|
columns: {
|
|
163
127
|
type: {
|
|
@@ -168,39 +132,30 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
168
132
|
isArray(arg: any): arg is any[];
|
|
169
133
|
readonly prototype: any[];
|
|
170
134
|
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
171
|
-
from<
|
|
172
|
-
from<
|
|
173
|
-
from<
|
|
174
|
-
of<
|
|
175
|
-
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
176
|
-
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
135
|
+
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
136
|
+
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
137
|
+
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
138
|
+
of<T_4>(...items: T_4[]): T_4[];
|
|
177
139
|
readonly [Symbol.species]: ArrayConstructor;
|
|
178
140
|
};
|
|
179
|
-
default: () =>
|
|
141
|
+
default: () => never[];
|
|
180
142
|
};
|
|
181
143
|
labelRender: {
|
|
182
144
|
type: import("vue").PropType<import("@vunk/shared").AnyFunc>;
|
|
183
|
-
default:
|
|
145
|
+
default: undefined;
|
|
184
146
|
};
|
|
185
147
|
typeRender: {
|
|
186
|
-
type: import("vue").PropType<
|
|
187
|
-
default:
|
|
188
|
-
};
|
|
189
|
-
required: {
|
|
190
|
-
readonly type: import("vue").PropType<boolean>;
|
|
191
|
-
readonly required: false;
|
|
192
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
193
|
-
__epPropKey: true;
|
|
194
|
-
} & {
|
|
195
|
-
readonly default: undefined;
|
|
148
|
+
type: import("vue").PropType<((...args: any) => "primary" | "success" | "warning" | "info" | "danger" | undefined) | ((arg: any) => "primary" | "success" | "warning" | "info" | "danger" | undefined)>;
|
|
149
|
+
default: undefined;
|
|
196
150
|
};
|
|
151
|
+
required: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
197
152
|
formItemSize: {
|
|
198
153
|
type: import("vue").PropType<"default" | "small" | "large">;
|
|
199
154
|
default: "default" | "small" | "large";
|
|
200
155
|
};
|
|
201
156
|
formItemSlots: {
|
|
202
|
-
type: import("vue").PropType<import("
|
|
203
|
-
default:
|
|
157
|
+
type: import("vue").PropType<import("../../form-item/src/types.ts").FormItemSlots>;
|
|
158
|
+
default: undefined;
|
|
204
159
|
};
|
|
205
160
|
elRef: {
|
|
206
161
|
type: import("vue").PropType<any>;
|
|
@@ -212,85 +167,58 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
212
167
|
};
|
|
213
168
|
readonly: {
|
|
214
169
|
type: BooleanConstructor;
|
|
215
|
-
default:
|
|
170
|
+
default: undefined;
|
|
216
171
|
};
|
|
217
172
|
formItemTip: {
|
|
218
173
|
type: StringConstructor;
|
|
219
|
-
default:
|
|
174
|
+
default: undefined;
|
|
220
175
|
};
|
|
221
|
-
formItemTipClass:
|
|
176
|
+
formItemTipClass: null;
|
|
222
177
|
labelTip: {
|
|
223
178
|
type: StringConstructor;
|
|
224
|
-
default:
|
|
179
|
+
default: undefined;
|
|
225
180
|
};
|
|
226
|
-
prop:
|
|
227
|
-
defaultModelValue:
|
|
181
|
+
prop: null;
|
|
182
|
+
defaultModelValue: null;
|
|
228
183
|
label: StringConstructor;
|
|
229
184
|
labelWidth: {
|
|
230
|
-
readonly type: import("vue").PropType<
|
|
185
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
|
|
231
186
|
readonly required: false;
|
|
232
187
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
233
188
|
__epPropKey: true;
|
|
234
|
-
} & {
|
|
235
|
-
readonly default: "";
|
|
236
|
-
};
|
|
237
|
-
labelPosition: {
|
|
238
|
-
readonly type: import("vue").PropType<"" | "top" | "left" | "right">;
|
|
239
|
-
readonly required: false;
|
|
240
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
241
|
-
__epPropKey: true;
|
|
242
|
-
} & {
|
|
243
|
-
readonly default: "";
|
|
244
189
|
};
|
|
190
|
+
labelPosition: import("element-plus/es/utils/index.mjs").EpPropFinalized<StringConstructor, "" | "left" | "right" | "top", unknown, "", boolean>;
|
|
245
191
|
rules: {
|
|
246
|
-
readonly type: import("vue").PropType<unknown
|
|
192
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<(new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils/typescript.mjs").Arrayable<import("element-plus").FormItemRule>) | ((new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils/typescript.mjs").Arrayable<import("element-plus").FormItemRule>) | null)[], unknown, unknown>>;
|
|
247
193
|
readonly required: false;
|
|
248
194
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
249
195
|
__epPropKey: true;
|
|
250
196
|
};
|
|
251
197
|
error: StringConstructor;
|
|
252
198
|
validateStatus: {
|
|
253
|
-
readonly type: import("vue").PropType<"" | "error" | "success" | "validating"
|
|
199
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<StringConstructor, "" | "error" | "success" | "validating", unknown>>;
|
|
254
200
|
readonly required: false;
|
|
255
201
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
256
202
|
__epPropKey: true;
|
|
257
203
|
};
|
|
258
204
|
for: StringConstructor;
|
|
259
|
-
inlineMessage:
|
|
260
|
-
|
|
261
|
-
readonly required: false;
|
|
262
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
263
|
-
__epPropKey: true;
|
|
264
|
-
} & {
|
|
265
|
-
readonly default: "";
|
|
266
|
-
};
|
|
267
|
-
showMessage: {
|
|
268
|
-
readonly type: import("vue").PropType<boolean>;
|
|
269
|
-
readonly required: false;
|
|
270
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
271
|
-
__epPropKey: true;
|
|
272
|
-
} & {
|
|
273
|
-
readonly default: true;
|
|
274
|
-
};
|
|
205
|
+
inlineMessage: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
206
|
+
showMessage: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
275
207
|
}>> & Readonly<{}>, {
|
|
276
|
-
required:
|
|
208
|
+
required: import("element-plus/es/utils/index.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
277
209
|
formItemSize: "default" | "small" | "large";
|
|
278
|
-
formItemSlots: import("
|
|
210
|
+
formItemSlots: import("../../form-item/src/types.ts").FormItemSlots;
|
|
279
211
|
inline: boolean;
|
|
280
212
|
readonly: boolean;
|
|
281
213
|
formItemTip: string;
|
|
282
|
-
formItemTipClass: any;
|
|
283
214
|
labelTip: string;
|
|
284
215
|
information: boolean;
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
labelPosition: "" | "top" | "left" | "right";
|
|
289
|
-
inlineMessage: string | boolean;
|
|
290
|
-
showMessage: boolean;
|
|
216
|
+
labelPosition: import("element-plus/es/utils/index.mjs").EpPropMergeType<StringConstructor, "" | "left" | "right" | "top", unknown>;
|
|
217
|
+
inlineMessage: import("element-plus/es/utils/index.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
218
|
+
showMessage: import("element-plus/es/utils/index.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
291
219
|
modelValue: import("@vunk/shared").NormalObject[];
|
|
292
|
-
columns: any[];
|
|
293
220
|
labelRender: import("@vunk/shared").AnyFunc;
|
|
294
|
-
|
|
221
|
+
columns: any[];
|
|
222
|
+
typeRender: ((...args: any) => "primary" | "success" | "warning" | "info" | "danger" | undefined) | ((arg: any) => "primary" | "success" | "warning" | "info" | "danger" | undefined);
|
|
295
223
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
296
224
|
export default _default;
|
|
@@ -1,16 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var strategyRenderer = require('@vunk/core/components/strategy-renderer');
|
|
4
|
-
|
|
5
|
-
const StrategyRenderer = strategyRenderer.createStrategyRenderer("@vunk/form:information");
|
|
6
|
-
const VkfInformationRenderer = StrategyRenderer.Renderer;
|
|
7
|
-
const VkfInformationTemplates = StrategyRenderer.Templates;
|
|
8
|
-
const VkfInformationData = StrategyRenderer.Data;
|
|
9
|
-
const VkfInformationTemplate = StrategyRenderer.Template;
|
|
10
|
-
const useInformationData = StrategyRenderer.useData;
|
|
11
|
-
|
|
12
|
-
exports.VkfInformationData = VkfInformationData;
|
|
13
|
-
exports.VkfInformationRenderer = VkfInformationRenderer;
|
|
14
|
-
exports.VkfInformationTemplate = VkfInformationTemplate;
|
|
15
|
-
exports.VkfInformationTemplates = VkfInformationTemplates;
|
|
16
|
-
exports.useInformationData = useInformationData;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@vunk/core/components/strategy-renderer"),e=t.createStrategyRenderer("@vunk/form:information"),n=e.Renderer,a=e.Templates,o=e.Data,r=e.Template,f=e.useData;exports.VkfInformationData=o;exports.VkfInformationRenderer=n;exports.VkfInformationTemplate=r;exports.VkfInformationTemplates=a;exports.useInformationData=f;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const VkfInformationRenderer: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
2
|
source: {
|
|
3
|
-
type: import("vue").PropType<
|
|
3
|
+
type: import("vue").PropType<any[]>;
|
|
4
4
|
default: () => any[];
|
|
5
5
|
};
|
|
6
6
|
templateInstances: {
|
|
@@ -15,7 +15,7 @@ export declare const VkfInformationRenderer: import("vue").DefineComponent<impor
|
|
|
15
15
|
[key: string]: any;
|
|
16
16
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
17
17
|
source: {
|
|
18
|
-
type: import("vue").PropType<
|
|
18
|
+
type: import("vue").PropType<any[]>;
|
|
19
19
|
default: () => any[];
|
|
20
20
|
};
|
|
21
21
|
templateInstances: {
|
|
@@ -27,7 +27,7 @@ export declare const VkfInformationRenderer: import("vue").DefineComponent<impor
|
|
|
27
27
|
default: () => any[];
|
|
28
28
|
};
|
|
29
29
|
}>> & Readonly<{}>, {
|
|
30
|
-
source:
|
|
30
|
+
source: any[];
|
|
31
31
|
templateInstances: Record<string, import("vue").ComponentInternalInstance>;
|
|
32
32
|
k: (string | number)[];
|
|
33
33
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -38,22 +38,22 @@ export declare const VkfInformationTemplates: import("vue").DefineComponent<{},
|
|
|
38
38
|
}>[][]), {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
39
39
|
export declare const VkfInformationData: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
40
40
|
data: {
|
|
41
|
-
type: import("vue").PropType<
|
|
41
|
+
type: import("vue").PropType<any>;
|
|
42
42
|
default: () => {};
|
|
43
43
|
};
|
|
44
44
|
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
45
45
|
[key: string]: any;
|
|
46
46
|
}>[], {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
47
|
-
setData: (e:
|
|
47
|
+
setData: (e: any) => any;
|
|
48
48
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
49
49
|
data: {
|
|
50
|
-
type: import("vue").PropType<
|
|
50
|
+
type: import("vue").PropType<any>;
|
|
51
51
|
default: () => {};
|
|
52
52
|
};
|
|
53
53
|
}>> & Readonly<{
|
|
54
|
-
onSetData?: (e:
|
|
54
|
+
onSetData?: ((e: any) => any) | undefined;
|
|
55
55
|
}>, {
|
|
56
|
-
data:
|
|
56
|
+
data: any;
|
|
57
57
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
58
58
|
export declare const VkfInformationTemplate: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
59
59
|
type: {
|
|
@@ -70,4 +70,4 @@ export declare const VkfInformationTemplate: import("vue").DefineComponent<impor
|
|
|
70
70
|
}>> & Readonly<{}>, {
|
|
71
71
|
type: string;
|
|
72
72
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
73
|
-
export declare const useInformationData: () =>
|
|
73
|
+
export declare const useInformationData: () => any;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { createStrategyRenderer } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export { VkfInformationData, VkfInformationRenderer, VkfInformationTemplate, VkfInformationTemplates, useInformationData };
|
|
1
|
+
import { createStrategyRenderer as t } from "@vunk/core/components/strategy-renderer";
|
|
2
|
+
const e = t("@vunk/form:information"), o = e.Renderer, a = e.Templates, r = e.Data, m = e.Template, f = e.useData;
|
|
3
|
+
export {
|
|
4
|
+
r as VkfInformationData,
|
|
5
|
+
o as VkfInformationRenderer,
|
|
6
|
+
m as VkfInformationTemplate,
|
|
7
|
+
a as VkfInformationTemplates,
|
|
8
|
+
f as useInformationData
|
|
9
|
+
};
|
|
@@ -1,101 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var vue = require('vue');
|
|
6
|
-
var elementPlus = require('element-plus');
|
|
7
|
-
var form = require('@vunk/form');
|
|
8
|
-
var _function = require('@vunk/shared/function');
|
|
9
|
-
var elementPlus$1 = require('@vunk/form/shared/element-plus');
|
|
10
|
-
var utilsVue = require('@vunk/core/shared/utils-vue');
|
|
11
|
-
var _pluginVue_exportHelper = require('../_plugin-vue_export-helper.cjs');
|
|
12
|
-
|
|
13
|
-
const props = {
|
|
14
|
-
...elementPlus.tagProps,
|
|
15
|
-
data: {
|
|
16
|
-
type: Object,
|
|
17
|
-
default: () => ({})
|
|
18
|
-
},
|
|
19
|
-
labelRender: {
|
|
20
|
-
type: Function,
|
|
21
|
-
default: (data) => data.label
|
|
22
|
-
},
|
|
23
|
-
title: {
|
|
24
|
-
type: [String, Function],
|
|
25
|
-
default: ""
|
|
26
|
-
},
|
|
27
|
-
placement: {
|
|
28
|
-
type: String,
|
|
29
|
-
default: "top"
|
|
30
|
-
},
|
|
31
|
-
formItems: {
|
|
32
|
-
type: Array,
|
|
33
|
-
default: () => []
|
|
34
|
-
},
|
|
35
|
-
trigger: {
|
|
36
|
-
type: String,
|
|
37
|
-
default: "hover"
|
|
38
|
-
},
|
|
39
|
-
showAfter: {
|
|
40
|
-
type: Number,
|
|
41
|
-
default: 500
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
const emits = {
|
|
45
|
-
...elementPlus.tagEmits
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
function _isSlot(s) {
|
|
49
|
-
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !vue.isVNode(s);
|
|
50
|
-
}
|
|
51
|
-
var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
52
|
-
name: "VkfInformationTag",
|
|
53
|
-
props,
|
|
54
|
-
emits,
|
|
55
|
-
setup(props2, {
|
|
56
|
-
emit,
|
|
57
|
-
slots
|
|
58
|
-
}) {
|
|
59
|
-
const theTitle = vue.computed(() => {
|
|
60
|
-
return _function.isCallable(props2.title) ? props2.title(props2.data) : props2.title;
|
|
61
|
-
});
|
|
62
|
-
const tagProps = elementPlus$1.createTagBindProps(props2);
|
|
63
|
-
const tagEmits = elementPlus$1.createTagOnEmits(emit);
|
|
64
|
-
return () => vue.createVNode(elementPlus.ElPopover, {
|
|
65
|
-
"placement": props2.placement,
|
|
66
|
-
"title": theTitle.value,
|
|
67
|
-
"width": 250,
|
|
68
|
-
"trigger": props2.trigger,
|
|
69
|
-
"show-after": props2.showAfter
|
|
70
|
-
}, {
|
|
71
|
-
reference: () => {
|
|
72
|
-
let _slot;
|
|
73
|
-
return vue.createVNode(elementPlus.ElTag, vue.mergeProps({
|
|
74
|
-
"class": "vkf-information-tag__tag"
|
|
75
|
-
}, tagProps.value, utilsVue.vOn(tagEmits)), _isSlot(_slot = props2.labelRender(props2.data)) ? _slot : {
|
|
76
|
-
default: () => [_slot]
|
|
77
|
-
});
|
|
78
|
-
},
|
|
79
|
-
default: () => vue.createVNode(form.VkfInformation, {
|
|
80
|
-
"data": props2.data,
|
|
81
|
-
"form-items": props2.formItems
|
|
82
|
-
}, {
|
|
83
|
-
default: () => [slots.default?.()]
|
|
84
|
-
})
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
});
|
|
88
|
-
|
|
89
|
-
var VkfInformationTag = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__file", "D:\\labCode\\vunk-form2\\packages\\components\\information-tag\\src\\index.vue"]]);
|
|
90
|
-
|
|
91
|
-
var types = /*#__PURE__*/Object.freeze({
|
|
92
|
-
__proto__: null
|
|
93
|
-
});
|
|
94
|
-
|
|
95
|
-
VkfInformationTag.install = (app) => {
|
|
96
|
-
app.component(VkfInformationTag.name || "VkfInformationTag", VkfInformationTag);
|
|
97
|
-
};
|
|
98
|
-
|
|
99
|
-
exports.VkfInformationTag = VkfInformationTag;
|
|
100
|
-
exports.__VkfInformationTag = types;
|
|
101
|
-
exports.default = VkfInformationTag;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),n=require("element-plus"),d=require("@vunk/form"),m=require("@vunk/shared/function"),o=require("@vunk/form/shared/element-plus"),g=require("@vunk/core/shared/utils-vue"),s={...n.tagProps,data:{type:Object,default:()=>({})},labelRender:{type:Function,default:e=>e.label},title:{type:[String,Function],default:""},placement:{type:String,default:"top"},formItems:{type:Array,default:()=>[]},trigger:{type:String,default:"hover"},showAfter:{type:Number,default:500}},_={...n.tagEmits};function b(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}const l=t.defineComponent({name:"VkfInformationTag",props:s,emits:_,setup(e,{emit:i,slots:r}){const u=t.computed(()=>m.isCallable(e.title)?e.title(e.data):e.title),c=o.createTagBindProps(e),f=o.createTagOnEmits(i);return()=>t.createVNode(n.ElPopover,{placement:e.placement,title:u.value,width:250,trigger:e.trigger,"show-after":e.showAfter},{reference:()=>{let a;return t.createVNode(n.ElTag,t.mergeProps({class:"vkf-information-tag__tag"},c.value,g.vOn(f)),b(a=e.labelRender(e.data))?a:{default:()=>[a]})},default:()=>t.createVNode(d.VkfInformation,{data:e.data,"form-items":e.formItems},{default:()=>{var a;return[(a=r.default)==null?void 0:a.call(r)]}})})}}),y=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));exports.VkfInformationTag=l;exports.__VkfInformationTag=y;exports.default=l;
|