@vunk/form 2.18.2 → 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 -370
- package/components/card-input-collection/index.mjs +175 -277
- package/components/card-input-collection/src/core.vue.d.ts +54 -951
- 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 -310
- package/components/input-array/index.mjs +114 -244
- package/components/input-array/src/ctx.d.ts +19 -49
- package/components/input-array/src/form-template.vue.d.ts +1 -901
- package/components/input-array/src/index.vue.d.ts +43 -730
- package/components/input-collection/index.cjs +1 -452
- package/components/input-collection/index.mjs +195 -355
- 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 -102
- package/locale/index.mjs +34 -34
- package/locale/lang/index.cjs +1 -2
- package/locale/lang/index.d.ts +1 -0
- 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
|
@@ -2,4 +2,4 @@ import { CascaderOption } from 'element-plus';
|
|
|
2
2
|
export declare const useOptions: (props: {
|
|
3
3
|
options?: CascaderOption[];
|
|
4
4
|
optionsUrl?: string;
|
|
5
|
-
}, emit: (event:
|
|
5
|
+
}, emit: (event: 'update:modelValue', val: any) => void) => import("vue").ComputedRef<CascaderOption[] | undefined>;
|
|
@@ -1,152 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var formItem = require('@vunk/form/components/form-item');
|
|
6
|
-
var elementPlus = require('element-plus');
|
|
7
|
-
var utilsVue = require('@vunk/core/shared/utils-vue');
|
|
8
|
-
var vue = require('vue');
|
|
9
|
-
var elementPlus$1 = require('@vunk/form/shared/element-plus');
|
|
10
|
-
var utilsObject = require('@vunk/core/shared/utils-object');
|
|
11
|
-
var composables = require('@vunk/form/composables');
|
|
12
|
-
var _pluginVue_exportHelper = require('../_plugin-vue_export-helper.cjs');
|
|
13
|
-
|
|
14
|
-
const props = {
|
|
15
|
-
...formItem._VkfFormItemCtx.props,
|
|
16
|
-
...elementPlus.checkboxGroupProps,
|
|
17
|
-
options: {
|
|
18
|
-
type: Array,
|
|
19
|
-
default: () => []
|
|
20
|
-
},
|
|
21
|
-
type: {
|
|
22
|
-
type: String,
|
|
23
|
-
default: "default"
|
|
24
|
-
},
|
|
25
|
-
defaultModelValue: {
|
|
26
|
-
type: Array,
|
|
27
|
-
default: void 0
|
|
28
|
-
},
|
|
29
|
-
modelValue: {
|
|
30
|
-
type: Array,
|
|
31
|
-
default: void 0
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
const createBindProps = utilsVue.bindPropsFactory(props);
|
|
35
|
-
const emits = {
|
|
36
|
-
...elementPlus.checkboxGroupEmits
|
|
37
|
-
};
|
|
38
|
-
const createOnEmits = utilsVue.onEmitsFactory(emits);
|
|
39
|
-
|
|
40
|
-
var ctx = /*#__PURE__*/Object.freeze({
|
|
41
|
-
__proto__: null,
|
|
42
|
-
createBindProps: createBindProps,
|
|
43
|
-
createOnEmits: createOnEmits,
|
|
44
|
-
emits: emits,
|
|
45
|
-
props: props
|
|
46
|
-
});
|
|
47
|
-
|
|
48
|
-
var _sfc_main = vue.defineComponent({
|
|
49
|
-
name: "VkfCheckbox",
|
|
50
|
-
components: {
|
|
51
|
-
VkfFormItem: formItem.VkfFormItem,
|
|
52
|
-
ElCheckbox: elementPlus.ElCheckbox,
|
|
53
|
-
ElCheckboxGroup: elementPlus.ElCheckboxGroup,
|
|
54
|
-
ElCheckboxButton: elementPlus.ElCheckboxButton
|
|
55
|
-
},
|
|
56
|
-
props,
|
|
57
|
-
emits,
|
|
58
|
-
setup(props2, { emit }) {
|
|
59
|
-
const formItemBindProps = formItem._VkfFormItemCtx.createBindProps(props2);
|
|
60
|
-
const coreBindProps = elementPlus$1.createCheckboxGroupBindProps(props2, ["disabled"]);
|
|
61
|
-
const coreOnEmits = elementPlus$1.createCheckboxGroupOnEmits(emit);
|
|
62
|
-
const options = vue.computed(() => {
|
|
63
|
-
return props2.options.filter((item) => item.value !== void 0 && item.value !== null);
|
|
64
|
-
});
|
|
65
|
-
!props2.modelValue && props2.defaultModelValue && emit("update:modelValue", props2.defaultModelValue);
|
|
66
|
-
const readonly = composables.useComputedReadonly(props2);
|
|
67
|
-
const pickRadioProps = (item) => {
|
|
68
|
-
const obj = utilsObject.pickObject(item, {
|
|
69
|
-
excludes: ["label", "value"]
|
|
70
|
-
});
|
|
71
|
-
if (elementPlus$1.isGte2_6_0) {
|
|
72
|
-
obj.value = item.value;
|
|
73
|
-
} else {
|
|
74
|
-
obj.label = item.value;
|
|
75
|
-
}
|
|
76
|
-
return obj;
|
|
77
|
-
};
|
|
78
|
-
return {
|
|
79
|
-
formItemBindProps,
|
|
80
|
-
coreBindProps,
|
|
81
|
-
coreOnEmits,
|
|
82
|
-
options,
|
|
83
|
-
readonly,
|
|
84
|
-
pickRadioProps
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
});
|
|
88
|
-
|
|
89
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
90
|
-
const _component_ElCheckboxGroup = vue.resolveComponent("ElCheckboxGroup");
|
|
91
|
-
const _component_VkfFormItem = vue.resolveComponent("VkfFormItem");
|
|
92
|
-
return vue.openBlock(), vue.createBlock(
|
|
93
|
-
_component_VkfFormItem,
|
|
94
|
-
vue.normalizeProps(vue.guardReactiveProps(_ctx.formItemBindProps)),
|
|
95
|
-
{
|
|
96
|
-
default: vue.withCtx(() => [
|
|
97
|
-
vue.createVNode(_component_ElCheckboxGroup, vue.mergeProps({
|
|
98
|
-
class: {
|
|
99
|
-
"is-readonly": _ctx.readonly
|
|
100
|
-
}
|
|
101
|
-
}, _ctx.coreBindProps, {
|
|
102
|
-
disabled: _ctx.readonly || _ctx.disabled
|
|
103
|
-
}, vue.toHandlers(_ctx.coreOnEmits)), {
|
|
104
|
-
default: vue.withCtx(() => [
|
|
105
|
-
(vue.openBlock(true), vue.createElementBlock(
|
|
106
|
-
vue.Fragment,
|
|
107
|
-
null,
|
|
108
|
-
vue.renderList(_ctx.options, (item) => {
|
|
109
|
-
return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.type === "button" ? "ElCheckboxButton" : "ElCheckbox"), vue.mergeProps({
|
|
110
|
-
key: item.value,
|
|
111
|
-
label: item.value
|
|
112
|
-
}, { ref_for: true }, _ctx.pickRadioProps(item)), {
|
|
113
|
-
default: vue.withCtx(() => [
|
|
114
|
-
vue.createTextVNode(
|
|
115
|
-
vue.toDisplayString(item.label ?? item.value),
|
|
116
|
-
1
|
|
117
|
-
/* TEXT */
|
|
118
|
-
)
|
|
119
|
-
]),
|
|
120
|
-
_: 2
|
|
121
|
-
/* DYNAMIC */
|
|
122
|
-
}, 1040, ["label"]);
|
|
123
|
-
}),
|
|
124
|
-
128
|
|
125
|
-
/* KEYED_FRAGMENT */
|
|
126
|
-
))
|
|
127
|
-
]),
|
|
128
|
-
_: 1
|
|
129
|
-
/* STABLE */
|
|
130
|
-
}, 16, ["class", "disabled"])
|
|
131
|
-
]),
|
|
132
|
-
_: 1
|
|
133
|
-
/* STABLE */
|
|
134
|
-
},
|
|
135
|
-
16
|
|
136
|
-
/* FULL_PROPS */
|
|
137
|
-
);
|
|
138
|
-
}
|
|
139
|
-
var VkfCheckbox = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/checkbox/src/index.vue"]]);
|
|
140
|
-
|
|
141
|
-
var types = /*#__PURE__*/Object.freeze({
|
|
142
|
-
__proto__: null
|
|
143
|
-
});
|
|
144
|
-
|
|
145
|
-
VkfCheckbox.install = (app) => {
|
|
146
|
-
app.component(VkfCheckbox.name, VkfCheckbox);
|
|
147
|
-
};
|
|
148
|
-
|
|
149
|
-
exports.VkfCheckbox = VkfCheckbox;
|
|
150
|
-
exports._VkfCheckboxCtx = ctx;
|
|
151
|
-
exports.__VkfCheckbox = types;
|
|
152
|
-
exports.default = VkfCheckbox;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("@vunk/form/components/form-item"),r=require("element-plus"),f=require("@vunk/core/shared/utils-vue"),e=require("vue"),s=require("@vunk/form/shared/element-plus"),_=require("@vunk/core/shared/utils-object"),y=require("@vunk/form/composables"),h=require("../_plugin-vue_export-helper.cjs"),a={...u._VkfFormItemCtx.props,...r.checkboxGroupProps,options:{type:Array,default:()=>[]},type:{type:String,default:"checkbox"},defaultModelValue:{type:Array,default:void 0},modelValue:{type:Array,default:void 0}},x=f.bindPropsFactory(a),d={...r.checkboxGroupEmits},v=f.onEmitsFactory(d),P=Object.freeze(Object.defineProperty({__proto__:null,createBindProps:x,createOnEmits:v,emits:d,props:a},Symbol.toStringTag,{value:"Module"})),V=e.defineComponent({name:"VkfCheckbox",components:{VkfFormItem:u.VkfFormItem,ElCheckbox:r.ElCheckbox,ElCheckboxGroup:r.ElCheckboxGroup,ElCheckboxButton:r.ElCheckboxButton},props:a,emits:d,setup(o,{emit:l}){const i=u._VkfFormItemCtx.createBindProps(o),p=s.createCheckboxGroupBindProps(o,["disabled"]),b=s.createCheckboxGroupOnEmits(l),m=e.computed(()=>o.options.filter(t=>t.value!==void 0&&t.value!==null));!o.modelValue&&o.defaultModelValue&&l("update:modelValue",o.defaultModelValue);const n=y.useComputedReadonly(o);return{formItemBindProps:i,coreBindProps:p,coreOnEmits:b,options:m,readonly:n,pickRadioProps:t=>{const c=_.pickObject(t,{excludes:["label","value"]});return s.isGte2_6_0?c.value=t.value:c.label=t.value,c}}}});function E(o,l,i,p,b,m){const n=e.resolveComponent("ElCheckboxGroup"),k=e.resolveComponent("VkfFormItem");return e.openBlock(),e.createBlock(k,e.normalizeProps(e.guardReactiveProps(o.formItemBindProps)),{default:e.withCtx(()=>[e.createVNode(n,e.mergeProps({class:{"is-readonly":o.readonly}},o.coreBindProps,{disabled:o.readonly||o.disabled},e.toHandlers(o.coreOnEmits)),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.options,t=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.type==="button"?"ElCheckboxButton":"ElCheckbox"),e.mergeProps({key:t.value,label:t.value},{ref_for:!0},o.pickRadioProps(t)),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.label??t.value),1)]),_:2},1040,["label"]))),128))]),_:1},16,["class","disabled"])]),_:1},16)}const C=h._export_sfc(V,[["render",E]]),B=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));exports.VkfCheckbox=C;exports._VkfCheckboxCtx=P;exports.__VkfCheckbox=B;exports.default=C;
|
|
@@ -1,22 +1,21 @@
|
|
|
1
|
-
import { _VkfFormItemCtx, VkfFormItem } from
|
|
2
|
-
import { checkboxGroupProps, checkboxGroupEmits, ElCheckbox, ElCheckboxGroup, ElCheckboxButton } from
|
|
3
|
-
import { bindPropsFactory, onEmitsFactory } from
|
|
4
|
-
import { defineComponent, computed, resolveComponent, openBlock, createBlock, normalizeProps, guardReactiveProps, withCtx, createVNode, mergeProps, toHandlers, createElementBlock, Fragment, renderList, resolveDynamicComponent, createTextVNode
|
|
5
|
-
import { createCheckboxGroupBindProps, createCheckboxGroupOnEmits, isGte2_6_0 } from
|
|
6
|
-
import { pickObject } from
|
|
7
|
-
import { useComputedReadonly } from
|
|
8
|
-
import { _ as
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
...
|
|
12
|
-
...checkboxGroupProps,
|
|
1
|
+
import { _VkfFormItemCtx as y, VkfFormItem as _ } from "@vunk/form/components/form-item";
|
|
2
|
+
import { checkboxGroupProps as C, checkboxGroupEmits as h, ElCheckbox as v, ElCheckboxGroup as P, ElCheckboxButton as x } from "element-plus";
|
|
3
|
+
import { bindPropsFactory as V, onEmitsFactory as E } from "@vunk/core/shared/utils-vue";
|
|
4
|
+
import { defineComponent as B, computed as g, resolveComponent as f, openBlock as n, createBlock as b, normalizeProps as O, guardReactiveProps as G, withCtx as a, createVNode as F, mergeProps as k, toHandlers as j, createElementBlock as I, Fragment as S, renderList as M, resolveDynamicComponent as R, createTextVNode as $, toDisplayString as z } from "vue";
|
|
5
|
+
import { createCheckboxGroupBindProps as A, createCheckboxGroupOnEmits as T, isGte2_6_0 as D } from "@vunk/form/shared/element-plus";
|
|
6
|
+
import { pickObject as N } from "@vunk/core/shared/utils-object";
|
|
7
|
+
import { useComputedReadonly as w } from "@vunk/form/composables";
|
|
8
|
+
import { _ as H } from "../_plugin-vue_export-helper.cjs";
|
|
9
|
+
const c = {
|
|
10
|
+
...y.props,
|
|
11
|
+
...C,
|
|
13
12
|
options: {
|
|
14
13
|
type: Array,
|
|
15
14
|
default: () => []
|
|
16
15
|
},
|
|
17
16
|
type: {
|
|
18
17
|
type: String,
|
|
19
|
-
default: "
|
|
18
|
+
default: "checkbox"
|
|
20
19
|
},
|
|
21
20
|
defaultModelValue: {
|
|
22
21
|
type: Array,
|
|
@@ -26,120 +25,77 @@ const props = {
|
|
|
26
25
|
type: Array,
|
|
27
26
|
default: void 0
|
|
28
27
|
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
...checkboxGroupEmits
|
|
33
|
-
};
|
|
34
|
-
const createOnEmits = onEmitsFactory(emits);
|
|
35
|
-
|
|
36
|
-
var ctx = /*#__PURE__*/Object.freeze({
|
|
28
|
+
}, L = V(c), s = {
|
|
29
|
+
...h
|
|
30
|
+
}, q = E(s), te = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
37
31
|
__proto__: null,
|
|
38
|
-
createBindProps:
|
|
39
|
-
createOnEmits:
|
|
40
|
-
emits:
|
|
41
|
-
props:
|
|
42
|
-
})
|
|
43
|
-
|
|
44
|
-
var _sfc_main = defineComponent({
|
|
32
|
+
createBindProps: L,
|
|
33
|
+
createOnEmits: q,
|
|
34
|
+
emits: s,
|
|
35
|
+
props: c
|
|
36
|
+
}, Symbol.toStringTag, { value: "Module" })), J = B({
|
|
45
37
|
name: "VkfCheckbox",
|
|
46
38
|
components: {
|
|
47
|
-
VkfFormItem,
|
|
48
|
-
ElCheckbox,
|
|
49
|
-
ElCheckboxGroup,
|
|
50
|
-
ElCheckboxButton
|
|
39
|
+
VkfFormItem: _,
|
|
40
|
+
ElCheckbox: v,
|
|
41
|
+
ElCheckboxGroup: P,
|
|
42
|
+
ElCheckboxButton: x
|
|
51
43
|
},
|
|
52
|
-
props,
|
|
53
|
-
emits,
|
|
54
|
-
setup(
|
|
55
|
-
const
|
|
56
|
-
|
|
57
|
-
const
|
|
58
|
-
const options = computed(() => {
|
|
59
|
-
return props2.options.filter((item) => item.value !== void 0 && item.value !== null);
|
|
60
|
-
});
|
|
61
|
-
!props2.modelValue && props2.defaultModelValue && emit("update:modelValue", props2.defaultModelValue);
|
|
62
|
-
const readonly = useComputedReadonly(props2);
|
|
63
|
-
const pickRadioProps = (item) => {
|
|
64
|
-
const obj = pickObject(item, {
|
|
65
|
-
excludes: ["label", "value"]
|
|
66
|
-
});
|
|
67
|
-
if (isGte2_6_0) {
|
|
68
|
-
obj.value = item.value;
|
|
69
|
-
} else {
|
|
70
|
-
obj.label = item.value;
|
|
71
|
-
}
|
|
72
|
-
return obj;
|
|
73
|
-
};
|
|
44
|
+
props: c,
|
|
45
|
+
emits: s,
|
|
46
|
+
setup(e, { emit: t }) {
|
|
47
|
+
const d = y.createBindProps(e), u = A(e, ["disabled"]), p = T(t), i = g(() => e.options.filter((o) => o.value !== void 0 && o.value !== null));
|
|
48
|
+
!e.modelValue && e.defaultModelValue && t("update:modelValue", e.defaultModelValue);
|
|
49
|
+
const r = w(e);
|
|
74
50
|
return {
|
|
75
|
-
formItemBindProps,
|
|
76
|
-
coreBindProps,
|
|
77
|
-
coreOnEmits,
|
|
78
|
-
options,
|
|
79
|
-
readonly,
|
|
80
|
-
pickRadioProps
|
|
51
|
+
formItemBindProps: d,
|
|
52
|
+
coreBindProps: u,
|
|
53
|
+
coreOnEmits: p,
|
|
54
|
+
options: i,
|
|
55
|
+
readonly: r,
|
|
56
|
+
pickRadioProps: (o) => {
|
|
57
|
+
const l = N(o, {
|
|
58
|
+
excludes: ["label", "value"]
|
|
59
|
+
});
|
|
60
|
+
return D ? l.value = o.value : l.label = o.value, l;
|
|
61
|
+
}
|
|
81
62
|
};
|
|
82
63
|
}
|
|
83
64
|
});
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
toDisplayString(item.label ?? item.value),
|
|
112
|
-
1
|
|
113
|
-
/* TEXT */
|
|
114
|
-
)
|
|
115
|
-
]),
|
|
116
|
-
_: 2
|
|
117
|
-
/* DYNAMIC */
|
|
118
|
-
}, 1040, ["label"]);
|
|
119
|
-
}),
|
|
120
|
-
128
|
|
121
|
-
/* KEYED_FRAGMENT */
|
|
122
|
-
))
|
|
123
|
-
]),
|
|
124
|
-
_: 1
|
|
125
|
-
/* STABLE */
|
|
126
|
-
}, 16, ["class", "disabled"])
|
|
127
|
-
]),
|
|
128
|
-
_: 1
|
|
129
|
-
/* STABLE */
|
|
130
|
-
},
|
|
131
|
-
16
|
|
132
|
-
/* FULL_PROPS */
|
|
133
|
-
);
|
|
65
|
+
function K(e, t, d, u, p, i) {
|
|
66
|
+
const r = f("ElCheckboxGroup"), m = f("VkfFormItem");
|
|
67
|
+
return n(), b(m, O(G(e.formItemBindProps)), {
|
|
68
|
+
default: a(() => [
|
|
69
|
+
F(r, k({
|
|
70
|
+
class: {
|
|
71
|
+
"is-readonly": e.readonly
|
|
72
|
+
}
|
|
73
|
+
}, e.coreBindProps, {
|
|
74
|
+
disabled: e.readonly || e.disabled
|
|
75
|
+
}, j(e.coreOnEmits)), {
|
|
76
|
+
default: a(() => [
|
|
77
|
+
(n(!0), I(S, null, M(e.options, (o) => (n(), b(R(e.type === "button" ? "ElCheckboxButton" : "ElCheckbox"), k({
|
|
78
|
+
key: o.value,
|
|
79
|
+
label: o.value
|
|
80
|
+
}, { ref_for: !0 }, e.pickRadioProps(o)), {
|
|
81
|
+
default: a(() => [
|
|
82
|
+
$(z(o.label ?? o.value), 1)
|
|
83
|
+
]),
|
|
84
|
+
_: 2
|
|
85
|
+
}, 1040, ["label"]))), 128))
|
|
86
|
+
]),
|
|
87
|
+
_: 1
|
|
88
|
+
}, 16, ["class", "disabled"])
|
|
89
|
+
]),
|
|
90
|
+
_: 1
|
|
91
|
+
}, 16);
|
|
134
92
|
}
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
var types = /*#__PURE__*/Object.freeze({
|
|
93
|
+
const re = /* @__PURE__ */ H(J, [["render", K]]), le = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
138
94
|
__proto__: null
|
|
139
|
-
});
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
95
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
96
|
+
export {
|
|
97
|
+
re as VkfCheckbox,
|
|
98
|
+
te as _VkfCheckboxCtx,
|
|
99
|
+
le as __VkfCheckbox,
|
|
100
|
+
re as default
|
|
143
101
|
};
|
|
144
|
-
|
|
145
|
-
export { VkfCheckbox, ctx as _VkfCheckboxCtx, types as __VkfCheckbox, VkfCheckbox as default };
|
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
import { PropType } from 'vue';
|
|
1
|
+
import type { PropType } from 'vue';
|
|
2
2
|
import { CheckboxProps } from '@vunk/form/shared/types/form';
|
|
3
3
|
export declare const props: {
|
|
4
4
|
options: {
|
|
5
5
|
type: PropType<CheckboxProps[]>;
|
|
6
|
-
default: () =>
|
|
6
|
+
default: () => never[];
|
|
7
7
|
};
|
|
8
8
|
type: {
|
|
9
|
-
type: PropType<"button" | "
|
|
9
|
+
type: PropType<"button" | "checkbox">;
|
|
10
10
|
default: string;
|
|
11
11
|
};
|
|
12
12
|
defaultModelValue: {
|
|
13
13
|
type: PropType<any[]>;
|
|
14
|
-
default:
|
|
14
|
+
default: undefined;
|
|
15
15
|
};
|
|
16
16
|
modelValue: {
|
|
17
17
|
type: PropType<(string | number)[]>;
|
|
18
|
-
default:
|
|
18
|
+
default: undefined;
|
|
19
19
|
};
|
|
20
20
|
ariaLabel: StringConstructor;
|
|
21
|
-
disabled: BooleanConstructor
|
|
21
|
+
disabled: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
22
22
|
min: NumberConstructor;
|
|
23
23
|
max: NumberConstructor;
|
|
24
24
|
size: {
|
|
25
|
-
readonly type: PropType<"" | "default" | "small" | "large"
|
|
25
|
+
readonly type: PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
26
26
|
readonly required: false;
|
|
27
27
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
28
28
|
__epPropKey: true;
|
|
29
29
|
};
|
|
30
30
|
fill: StringConstructor;
|
|
31
31
|
textColor: StringConstructor;
|
|
32
|
-
tag:
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
32
|
+
tag: import("element-plus/es/utils/index.mjs").EpPropFinalized<StringConstructor, unknown, unknown, "div", boolean>;
|
|
33
|
+
validateEvent: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
34
|
+
props: import("element-plus/es/utils/index.mjs").EpPropFinalized<(new (...args: any[]) => {
|
|
35
|
+
value?: string | undefined;
|
|
36
|
+
label?: string | undefined;
|
|
37
|
+
disabled?: string | undefined;
|
|
38
|
+
}) | (() => {
|
|
39
|
+
value?: string | undefined;
|
|
40
|
+
label?: string | undefined;
|
|
41
|
+
disabled?: string | undefined;
|
|
42
|
+
}) | ((new (...args: any[]) => {
|
|
43
|
+
value?: string | undefined;
|
|
44
|
+
label?: string | undefined;
|
|
45
|
+
disabled?: string | undefined;
|
|
46
|
+
}) | (() => {
|
|
47
|
+
value?: string | undefined;
|
|
48
|
+
label?: string | undefined;
|
|
49
|
+
disabled?: string | undefined;
|
|
50
|
+
}) | null)[], unknown, unknown, () => Required<{
|
|
51
|
+
value?: string | undefined;
|
|
52
|
+
label?: string | undefined;
|
|
53
|
+
disabled?: string | undefined;
|
|
54
|
+
}>, boolean>;
|
|
55
|
+
required: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
56
56
|
formItemSize: {
|
|
57
57
|
type: PropType<"default" | "small" | "large">;
|
|
58
58
|
default: "default" | "small" | "large";
|
|
59
59
|
};
|
|
60
60
|
formItemSlots: {
|
|
61
|
-
type: PropType<import("
|
|
62
|
-
default:
|
|
61
|
+
type: PropType<import("../../form-item/src/types").FormItemSlots>;
|
|
62
|
+
default: undefined;
|
|
63
63
|
};
|
|
64
64
|
elRef: {
|
|
65
65
|
type: PropType<any>;
|
|
@@ -71,76 +71,53 @@ export declare const props: {
|
|
|
71
71
|
};
|
|
72
72
|
readonly: {
|
|
73
73
|
type: BooleanConstructor;
|
|
74
|
-
default:
|
|
74
|
+
default: undefined;
|
|
75
75
|
};
|
|
76
76
|
formItemTip: {
|
|
77
77
|
type: StringConstructor;
|
|
78
|
-
default:
|
|
78
|
+
default: undefined;
|
|
79
79
|
};
|
|
80
|
-
formItemTipClass:
|
|
80
|
+
formItemTipClass: null;
|
|
81
81
|
labelTip: {
|
|
82
82
|
type: StringConstructor;
|
|
83
|
-
default:
|
|
83
|
+
default: undefined;
|
|
84
84
|
};
|
|
85
85
|
information: {
|
|
86
86
|
type: BooleanConstructor;
|
|
87
87
|
default: boolean;
|
|
88
88
|
};
|
|
89
|
-
prop:
|
|
89
|
+
prop: null;
|
|
90
90
|
label: StringConstructor;
|
|
91
91
|
labelWidth: {
|
|
92
|
-
readonly type: PropType<
|
|
92
|
+
readonly type: PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
|
|
93
93
|
readonly required: false;
|
|
94
94
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
95
95
|
__epPropKey: true;
|
|
96
|
-
} & {
|
|
97
|
-
readonly default: "";
|
|
98
|
-
};
|
|
99
|
-
labelPosition: {
|
|
100
|
-
readonly type: PropType<"" | "top" | "left" | "right">;
|
|
101
|
-
readonly required: false;
|
|
102
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
103
|
-
__epPropKey: true;
|
|
104
|
-
} & {
|
|
105
|
-
readonly default: "";
|
|
106
96
|
};
|
|
97
|
+
labelPosition: import("element-plus/es/utils/index.mjs").EpPropFinalized<StringConstructor, "" | "left" | "right" | "top", unknown, "", boolean>;
|
|
107
98
|
rules: {
|
|
108
|
-
readonly type: PropType<unknown
|
|
99
|
+
readonly type: 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>>;
|
|
109
100
|
readonly required: false;
|
|
110
101
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
111
102
|
__epPropKey: true;
|
|
112
103
|
};
|
|
113
104
|
error: StringConstructor;
|
|
114
105
|
validateStatus: {
|
|
115
|
-
readonly type: PropType<"" | "error" | "success" | "validating"
|
|
106
|
+
readonly type: PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<StringConstructor, "" | "error" | "success" | "validating", unknown>>;
|
|
116
107
|
readonly required: false;
|
|
117
108
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
118
109
|
__epPropKey: true;
|
|
119
110
|
};
|
|
120
111
|
for: StringConstructor;
|
|
121
|
-
inlineMessage:
|
|
122
|
-
|
|
123
|
-
readonly required: false;
|
|
124
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
125
|
-
__epPropKey: true;
|
|
126
|
-
} & {
|
|
127
|
-
readonly default: "";
|
|
128
|
-
};
|
|
129
|
-
showMessage: {
|
|
130
|
-
readonly type: PropType<boolean>;
|
|
131
|
-
readonly required: false;
|
|
132
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
133
|
-
__epPropKey: true;
|
|
134
|
-
} & {
|
|
135
|
-
readonly default: true;
|
|
136
|
-
};
|
|
112
|
+
inlineMessage: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
113
|
+
showMessage: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
137
114
|
};
|
|
138
|
-
export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"type", keyof T2> | Extract<"required", keyof T2> | Extract<"
|
|
115
|
+
export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"type", keyof T2> | Extract<"required", keyof T2> | Extract<"size", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"formItemTip", keyof T2> | Extract<"formItemTipClass", keyof T2> | Extract<"labelTip", keyof T2> | Extract<"information", keyof T2> | Extract<"prop", keyof T2> | Extract<"defaultModelValue", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"rules", keyof T2> | Extract<"error", keyof T2> | Extract<"validateStatus", keyof T2> | Extract<"for", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"fill", keyof T2> | Extract<"disabled", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"ariaLabel", keyof T2> | Extract<"props", keyof T2> | Extract<"tag", keyof T2> | Extract<"options", keyof T2> | Extract<"max", keyof T2> | Extract<"min", keyof T2> | Extract<"textColor", keyof T2>)[]>(propsArg: T2, excludes?: EX | undefined) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"type", keyof T2>, KE> | Exclude<Extract<"required", keyof T2>, KE> | Exclude<Extract<"size", keyof T2>, KE> | Exclude<Extract<"formItemSize", keyof T2>, KE> | Exclude<Extract<"formItemSlots", keyof T2>, KE> | Exclude<Extract<"elRef", keyof T2>, KE> | Exclude<Extract<"inline", keyof T2>, KE> | Exclude<Extract<"readonly", keyof T2>, KE> | Exclude<Extract<"formItemTip", keyof T2>, KE> | Exclude<Extract<"formItemTipClass", keyof T2>, KE> | Exclude<Extract<"labelTip", keyof T2>, KE> | Exclude<Extract<"information", keyof T2>, KE> | Exclude<Extract<"prop", keyof T2>, KE> | Exclude<Extract<"defaultModelValue", keyof T2>, KE> | Exclude<Extract<"label", keyof T2>, KE> | Exclude<Extract<"labelWidth", keyof T2>, KE> | Exclude<Extract<"labelPosition", keyof T2>, KE> | Exclude<Extract<"rules", keyof T2>, KE> | Exclude<Extract<"error", keyof T2>, KE> | Exclude<Extract<"validateStatus", keyof T2>, KE> | Exclude<Extract<"for", keyof T2>, KE> | Exclude<Extract<"inlineMessage", keyof T2>, KE> | Exclude<Extract<"showMessage", keyof T2>, KE> | Exclude<Extract<"fill", keyof T2>, KE> | Exclude<Extract<"disabled", keyof T2>, KE> | Exclude<Extract<"modelValue", keyof T2>, KE> | Exclude<Extract<"validateEvent", keyof T2>, KE> | Exclude<Extract<"ariaLabel", keyof T2>, KE> | Exclude<Extract<"props", keyof T2>, KE> | Exclude<Extract<"tag", keyof T2>, KE> | Exclude<Extract<"options", keyof T2>, KE> | Exclude<Extract<"max", keyof T2>, KE> | Exclude<Extract<"min", keyof T2>, KE> | Exclude<Extract<"textColor", keyof T2>, KE> : Extract<"type", keyof T2> | Extract<"required", keyof T2> | Extract<"size", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"formItemTip", keyof T2> | Extract<"formItemTipClass", keyof T2> | Extract<"labelTip", keyof T2> | Extract<"information", keyof T2> | Extract<"prop", keyof T2> | Extract<"defaultModelValue", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"rules", keyof T2> | Extract<"error", keyof T2> | Extract<"validateStatus", keyof T2> | Extract<"for", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"fill", keyof T2> | Extract<"disabled", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"ariaLabel", keyof T2> | Extract<"props", keyof T2> | Extract<"tag", keyof T2> | Extract<"options", keyof T2> | Extract<"max", keyof T2> | Extract<"min", keyof T2> | Extract<"textColor", keyof T2>]: { [k in Extract<"type", keyof T2> | Extract<"required", keyof T2> | Extract<"size", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"formItemTip", keyof T2> | Extract<"formItemTipClass", keyof T2> | Extract<"labelTip", keyof T2> | Extract<"information", keyof T2> | Extract<"prop", keyof T2> | Extract<"defaultModelValue", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"rules", keyof T2> | Extract<"error", keyof T2> | Extract<"validateStatus", keyof T2> | Extract<"for", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"fill", keyof T2> | Extract<"disabled", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"ariaLabel", keyof T2> | Extract<"props", keyof T2> | Extract<"tag", keyof T2> | Extract<"options", keyof T2> | Extract<"max", keyof T2> | Extract<"min", keyof T2> | Extract<"textColor", keyof T2>]: T2[k]; }[P]; }>;
|
|
139
116
|
export declare const emits: {
|
|
140
117
|
"update:modelValue": (val: import("element-plus").CheckboxGroupValueType) => boolean;
|
|
141
118
|
change: (val: import("element-plus").CheckboxValueType[]) => boolean;
|
|
142
119
|
};
|
|
143
|
-
export declare const createOnEmits: <T2 extends import("@vunk/core").AnyFunc, EX extends ("update:modelValue" | "change")[]>(emit: T2, excludes?: EX) => { [P in EX extends (infer KE)[] ? Exclude<"update:modelValue", KE> | Exclude<"change", KE> : "update:modelValue" | "change"]: {
|
|
120
|
+
export declare const createOnEmits: <T2 extends import("@vunk/core").AnyFunc, EX extends ("update:modelValue" | "change")[]>(emit: T2, excludes?: EX | undefined) => { [P in EX extends (infer KE)[] ? Exclude<"update:modelValue", KE> | Exclude<"change", KE> : "update:modelValue" | "change"]: {
|
|
144
121
|
"update:modelValue": (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
145
122
|
change: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
146
123
|
}[P]; };
|