@vunk/form 2.18.2 → 2.19.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/_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 +147 -173
- package/components/api-tables-select/src/index.vue.d.ts +390 -983
- package/components/button/index.cjs +1 -112
- package/components/button/index.mjs +56 -85
- package/components/button/src/ctx.d.ts +28 -113
- package/components/button/src/index.vue.d.ts +314 -621
- 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 +57 -950
- package/components/card-input-collection/src/ctx.d.ts +19 -49
- package/components/card-input-collection/src/index.vue.d.ts +49 -112
- package/components/cascader/index.cjs +1 -150
- package/components/cascader/index.mjs +88 -116
- package/components/cascader/src/ctx.d.ts +148 -207
- package/components/cascader/src/index.vue.d.ts +335 -525
- 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 +445 -1012
- 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 +138 -107
- package/components/color-picker/src/index.vue.d.ts +305 -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 +131 -206
- package/components/date-picker/src/index.vue.d.ts +287 -1359
- 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 +139 -207
- package/components/date-picker-range/src/index.vue.d.ts +896 -450
- 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 -1070
- 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 +20 -50
- package/components/dialog-input-collection/src/dialog-form.vue.d.ts +28 -6366
- package/components/dialog-input-collection/src/index.vue.d.ts +66 -7629
- package/components/dialog-input-collection/src/layout.vue.d.ts +16 -72
- package/components/download-plus/index.cjs +1 -456
- package/components/download-plus/index.mjs +214 -358
- package/components/download-plus/src/ctx.d.ts +20 -50
- package/components/download-plus/src/index.vue.d.ts +434 -1171
- package/components/editable-text/index.cjs +1 -295
- package/components/editable-text/index.mjs +113 -239
- package/components/editable-text/src/ctx.d.ts +20 -50
- package/components/editable-text/src/index.vue.d.ts +62 -3257
- 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 +42 -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 +219 -0
- package/components/el-slider/src/slider.d.ts +175 -0
- package/components/esri-input-geojson/index.cjs +2 -1604
- package/components/esri-input-geojson/index.mjs +666 -1289
- package/components/esri-input-geojson/src/append.vue.d.ts +225 -1084
- package/components/esri-input-geojson/src/const.d.ts +1 -1
- package/components/esri-input-geojson/src/ctx.d.ts +62 -158
- package/components/esri-input-geojson/src/default-view.vue.d.ts +12 -132
- package/components/esri-input-geojson/src/index.vue.d.ts +1470 -789
- package/components/esri-input-geojson/src/viewer.vue.d.ts +424 -287
- package/components/fieldset/index.cjs +1 -110
- package/components/fieldset/index.mjs +62 -77
- package/components/fieldset/src/ctx.d.ts +4 -4
- package/components/fieldset/src/index.vue.d.ts +10 -9
- 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 +360 -2416
- package/components/form-item/index.cjs +1 -294
- package/components/form-item/index.mjs +139 -229
- package/components/form-item/src/core.vue.d.ts +33 -1853
- package/components/form-item/src/ctx.d.ts +17 -47
- package/components/form-item/src/index.vue.d.ts +41 -103
- package/components/form-item-renderer/index.cjs +1 -193
- package/components/form-item-renderer/index.mjs +102 -162
- package/components/form-item-renderer/src/core.vue.d.ts +12 -11
- package/components/form-item-renderer/src/ctx.d.ts +3 -3
- package/components/form-item-renderer/src/index.vue.d.ts +25 -73
- package/components/form-item-renderer-template/index.cjs +1 -47
- package/components/form-item-renderer-template/index.mjs +19 -33
- package/components/form-item-renderer-template/src/index.vue.d.ts +4 -3
- 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/index.vue.d.ts +5 -2
- package/components/forms-provider/src/segment.vue.d.ts +12 -8
- package/components/forms-provider/src/view.vue.d.ts +17 -3
- 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 +7 -6
- package/components/information-collection/index.cjs +1 -81
- package/components/information-collection/index.mjs +44 -48
- package/components/information-collection/src/ctx.d.ts +20 -50
- package/components/information-collection/src/index.vue.d.ts +49 -112
- package/components/information-renderer/index.cjs +1 -16
- 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 +5 -19
- package/components/information-tag/src/index.vue.d.ts +24 -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 +2 -1
- package/components/input/index.cjs +1 -115
- package/components/input/index.mjs +60 -83
- package/components/input/src/ctx.d.ts +50 -151
- package/components/input/src/index.vue.d.ts +389 -947
- 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 +2 -901
- package/components/input-array/src/index.vue.d.ts +45 -731
- 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 +59 -1019
- package/components/input-collection/src/ctx.d.ts +19 -49
- package/components/input-collection/src/index.vue.d.ts +47 -110
- 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 +447 -76
- package/components/input-file/src/template.vue.d.ts +2 -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 +48 -135
- package/components/input-link/src/index.vue.d.ts +835 -312
- 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 -682
- package/components/input-tag/index.cjs +1 -100
- package/components/input-tag/index.mjs +51 -78
- package/components/input-tag/src/ctx.d.ts +41 -143
- package/components/input-tag/src/index.vue.d.ts +322 -775
- 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 +212 -111
- 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 +299 -1279
- package/components/radio/src/option.vue.d.ts +28 -878
- package/components/radio/src/wraper.vue.d.ts +67 -198
- 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 +5 -4
- package/components/select/index.cjs +1 -311
- package/components/select/index.mjs +156 -214
- package/components/select/src/core.vue.d.ts +446 -1028
- package/components/select/src/ctx.d.ts +60 -215
- package/components/select/src/index.vue.d.ts +318 -593
- package/components/select/src/options.vue.d.ts +4 -3
- 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 +154 -419
- 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 +30 -109
- package/components/switch/src/index.vue.d.ts +90 -697
- package/components/switch/src/types.d.ts +2 -2
- package/components/tables-select/index.cjs +1 -263
- package/components/tables-select/index.mjs +101 -172
- package/components/tables-select/src/ctx.d.ts +68 -99
- package/components/tables-select/src/index.vue.d.ts +233 -4988
- 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 +5 -4
- package/components/templates-default/index.cjs +1 -235
- package/components/templates-default/index.mjs +152 -211
- package/components/templates-default/src/ctx.d.ts +2 -2
- package/components/templates-default/src/index.vue.d.ts +7337 -145
- 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 +59 -251
- 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 +2184 -25
- 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 +73 -404
- 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 +1272 -25
- package/components/time-picker/index.cjs +1 -104
- package/components/time-picker/index.mjs +57 -87
- package/components/time-picker/src/ctx.d.ts +130 -212
- package/components/time-picker/src/index.vue.d.ts +283 -1371
- package/components/upload/index.cjs +1 -663
- package/components/upload/index.mjs +343 -537
- package/components/upload/src/ctx.d.ts +106 -191
- package/components/upload/src/file.vue.d.ts +168 -745
- package/components/upload/src/index.vue.d.ts +647 -1888
- package/components/upload/src/types.d.ts +1 -1
- package/components/upload/src/wraper.vue.d.ts +233 -407
- package/components/upload-plus/index.cjs +21 -18673
- package/components/upload-plus/index.mjs +4566 -18366
- package/components/upload-plus/src/api.d.ts +1 -1
- package/components/upload-plus/src/ctx.d.ts +21 -51
- package/components/upload-plus/src/index.vue.d.ts +53 -1657
- 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 +143 -203
- package/components/van-cascader/src/index.vue.d.ts +332 -988
- package/components/var-datetime-picker/index.cjs +1 -333
- package/components/var-datetime-picker/index.mjs +173 -254
- package/components/var-datetime-picker/src/ctx.d.ts +18 -48
- package/components/var-datetime-picker/src/index.vue.d.ts +628 -1090
- package/components/vditor/index.cjs +1 -86
- package/components/vditor/index.mjs +40 -66
- package/components/vditor/src/ctx.d.ts +15 -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 +100 -135
- package/composables/useForm.d.ts +2 -2
- package/composables/useRtl.d.ts +18 -0
- 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 +224 -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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const u=require("vue"),E=require("element-plus"),W=require("./debounce.cjs"),D=require("@vunk/shared/function");function le(e,t,l){return e===e&&(l!==void 0&&(e=e<=l?e:l),t!==void 0&&(e=e>=t?e:t)),e}function ue(e,t,l){return l===void 0&&(l=t,t=void 0),l!==void 0&&(l=W.toNumber(l),l=l===l?l:0),t!==void 0&&(t=W.toNumber(t),t=t===t?t:0),le(W.toNumber(e),t,l)}function oe(e){return u.getCurrentScope()?(u.onScopeDispose(e),!0):!1}const ae=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const se=Object.prototype.toString,ie=e=>se.call(e)==="[object Object]";function H(e){return Array.isArray(e)?e:[e]}function re(e,t,l){return u.watch(e,t,{...l,immediate:!0})}const ce=ae?window:void 0;function de(e){var t;const l=u.toValue(e);return(t=l==null?void 0:l.$el)!=null?t:l}function J(...e){const t=[],l=()=>{t.forEach(c=>c()),t.length=0},f=(c,m,n,d)=>(c.addEventListener(m,n,d),()=>c.removeEventListener(m,n,d)),r=u.computed(()=>{const c=H(u.toValue(e[0])).filter(m=>m!=null);return c.every(m=>typeof m!="string")?c:void 0}),o=re(()=>{var c,m;return[(m=(c=r.value)==null?void 0:c.map(n=>de(n)))!=null?m:[ce].filter(n=>n!=null),H(u.toValue(r.value?e[1]:e[0])),H(u.unref(r.value?e[2]:e[1])),u.toValue(r.value?e[3]:e[2])]},([c,m,n,d])=>{if(l(),!(c!=null&&c.length)||!(m!=null&&m.length)||!(n!=null&&n.length))return;const V=ie(d)?{...d}:d;t.push(...c.flatMap(y=>m.flatMap(T=>n.map(O=>f(y,T,O,V)))))},{flush:"post"}),a=()=>{o(),l()};return oe(l),a}const p=Symbol("sliderContextKey"),fe=(e,t,l)=>{const f=u.ref();return u.onMounted(async()=>{e.range?(Array.isArray(e.modelValue)?(t.firstValue=Math.max(e.min,e.modelValue[0]),t.secondValue=Math.min(e.max,e.modelValue[1])):(t.firstValue=e.min,t.secondValue=e.max),t.oldValue=[t.firstValue,t.secondValue]):(typeof e.modelValue!="number"||Number.isNaN(e.modelValue)?t.firstValue=e.min:t.firstValue=Math.min(e.max,Math.max(e.min,e.modelValue)),t.oldValue=t.firstValue),J(window,"resize",l),await u.nextTick(),l()}),{sliderWrapper:f}},me=e=>{const t=u.computed(()=>e.marks?Object.keys(e.marks).map(Number.parseFloat).sort((f,r)=>f-r).filter(f=>f<=e.max&&f>=e.min).map(f=>({point:f,position:(f-e.min)*100/(e.max-e.min),mark:e.marks[f]})):[]);return u.watchEffect(()=>{if(e.step==="mark"&&!e.marks&&console.warn("[ElSlider] marks prop must be provided when step is mark"),e.marks){const l=Object.keys(e.marks),f=t.value.map(o=>o.point),r=l.filter(o=>{const a=Number.parseFloat(o);return Number.isNaN(a)||!f.includes(a)});r.length>0&&console.warn(`[ElSlider] Some marks keys are invalid (not a number or out of [min, max]): [${r.map(o=>`'${o}'`).join(", ")}] and will be ignored.`)}}),t},ve=(e,t,l,f)=>{const{formItem:r}=E.useFormItem(),o=u.shallowRef(),a=u.ref(),c=u.ref(),m={firstButton:a,secondButton:c},n=E.useFormDisabled(),d=u.computed(()=>Math.min(t.firstValue,t.secondValue)),V=u.computed(()=>Math.max(t.firstValue,t.secondValue)),y=u.computed(()=>e.range?`${100*(V.value-d.value)/(e.max-e.min)}%`:`${100*(t.firstValue-e.min)/(e.max-e.min)}%`),T=u.computed(()=>e.range?`${100*(d.value-e.min)/(e.max-e.min)}%`:"0%"),O=u.computed(()=>e.vertical?{height:e.height}:{}),k=u.computed(()=>e.vertical?{height:y.value,bottom:T.value}:f.value?{width:y.value,left:"auto",right:T.value}:{width:y.value,left:T.value}),A=()=>{if(o.value){const i=o.value.getBoundingClientRect();t.sliderSize=i[e.vertical?"height":"width"]}},$=i=>{const v=e.min+i*(e.max-e.min)/100;if(!e.range)return a;let b;return Math.abs(d.value-v)<Math.abs(V.value-v)?b=t.firstValue<t.secondValue?"firstButton":"secondButton":b=t.firstValue>t.secondValue?"firstButton":"secondButton",m[b]},R=i=>{const v=$(i);return v.value.setPosition(i),v},G=i=>{t.firstValue=i??e.min;const v=e.range?[d.value,V.value]:i??e.min;K(v)},_=i=>{t.secondValue=i,e.range&&K([d.value,V.value])},K=i=>{l(E.UPDATE_MODEL_EVENT,i),l(E.INPUT_EVENT,i)},C=async()=>{await u.nextTick(),l(E.CHANGE_EVENT,e.range?[d.value,V.value]:e.modelValue)},M=i=>{var b,j,z,U;if(n.value||t.dragging)return;A();let v=0;if(e.vertical){const L=((j=(b=i.touches)==null?void 0:b.item(0))==null?void 0:j.clientY)??i.clientY;v=(o.value.getBoundingClientRect().bottom-L)/t.sliderSize*100}else{const L=((U=(z=i.touches)==null?void 0:z.item(0))==null?void 0:U.clientX)??i.clientX,Y=o.value.getBoundingClientRect();f.value?v=(Y.right-L)/t.sliderSize*100:v=(L-Y.left)/t.sliderSize*100}if(!(v<0||v>100))return R(v)};return{elFormItem:r,slider:o,firstButton:a,secondButton:c,sliderDisabled:n,minValue:d,maxValue:V,runwayStyle:O,barStyle:k,resetSize:A,setPosition:R,emitChange:C,onSliderWrapperPrevent:i=>{var v,b;((v=m.firstButton.value)!=null&&v.dragging||(b=m.secondButton.value)!=null&&b.dragging)&&i.preventDefault()},onSliderClick:i=>{M(i)&&C()},onSliderDown:async i=>{const v=M(i);v&&(await u.nextTick(),v.value.onButtonDown(i))},onSliderMarkerDown:i=>{if(n.value||t.dragging)return;R(i)&&C()},setFirstValue:G,setSecondValue:_}},ge=e=>e.code||e.key,he=(e,t,l)=>{const f=u.ref(),r=u.ref(!1),o=u.computed(()=>t.value instanceof Function),a=u.computed(()=>o.value&&t.value(e.modelValue)||e.modelValue),c=W.debounce(()=>{l.value&&(r.value=!0)},50),m=W.debounce(()=>{l.value&&(r.value=!1)},50);return{tooltip:f,tooltipVisible:r,formatValue:a,displayTooltip:c,hideTooltip:m}},Ve=(e,t,l)=>{const{disabled:f,min:r,max:o,step:a,showTooltip:c,persistent:m,precision:n,sliderSize:d,formatTooltip:V,emitChange:y,resetSize:T,updateDragging:O,markList:k,isRtl:A}=u.inject(p),{tooltip:$,tooltipVisible:R,formatValue:G,displayTooltip:_,hideTooltip:K}=he(e,V,c),C=u.ref(),M=u.computed(()=>`${(e.modelValue-r.value)/(o.value-r.value)*100}%`),Q=u.computed(()=>e.vertical?{bottom:M.value}:A.value?{right:M.value}:{left:M.value}),X=u.computed(()=>a.value==="mark"&&k.value.length>0),Z=()=>{t.hovering=!0,_()},F=()=>{t.hovering=!1,t.dragging||K()},i=s=>{f.value||(s.preventDefault(),ne(s),window.addEventListener("mousemove",q),window.addEventListener("touchmove",q),window.addEventListener("mouseup",B),window.addEventListener("touchend",B),window.addEventListener("contextmenu",B),C.value.focus())},v=s=>{f.value||(t.newPosition=Number.parseFloat(M.value)+s/(o.value-r.value)*100,P(t.newPosition),y())},b=s=>{if(f.value||!k.value.length)return;const g=e.modelValue,h=Number.EPSILON,S=Math.abs(s);let w;if(s>0){const N=k.value.findIndex(x=>x.point>g+h);if(N!==-1){const x=Math.min(N+S-1,k.value.length-1);w=k.value[x].point}}else{let N=-1;for(let x=k.value.length-1;x>=0;x--)if(k.value[x].point<g-h){N=x;break}if(N!==-1){const x=Math.max(N-(S-1),0);w=k.value[x].point}}if(w!==void 0&&w!==g){const N=(w-r.value)/(o.value-r.value)*100;P(N),y()}},j=()=>{X.value?b(-1):typeof a.value=="number"&&v(-a.value)},z=()=>{X.value?b(1):typeof a.value=="number"&&v(a.value)},U=()=>{X.value?b(-4):typeof a.value=="number"&&v(-a.value*4)},L=()=>{X.value?b(4):typeof a.value=="number"&&v(a.value*4)},Y=()=>{f.value||(P(0),y())},ee=()=>{f.value||(P(100),y())},te=s=>{const g=ge(s);let h=!0;switch(g){case E.EVENT_CODE.left:case E.EVENT_CODE.down:j();break;case E.EVENT_CODE.right:case E.EVENT_CODE.up:z();break;case E.EVENT_CODE.home:Y();break;case E.EVENT_CODE.end:ee();break;case E.EVENT_CODE.pageDown:U();break;case E.EVENT_CODE.pageUp:L();break;default:h=!1;break}h&&s.preventDefault()},I=s=>{let g,h;return s.type.startsWith("touch")?(h=s.touches[0].clientY,g=s.touches[0].clientX):(h=s.clientY,g=s.clientX),{clientX:g,clientY:h}},ne=s=>{t.dragging=!0,t.isClick=!0;const{clientX:g,clientY:h}=I(s);e.vertical?t.startY=h:t.startX=g,t.startPosition=Number.parseFloat(M.value),t.newPosition=t.startPosition},q=s=>{if(t.dragging){t.isClick=!1,_(),T();let g;const{clientX:h,clientY:S}=I(s);if(e.vertical)t.currentY=S,g=(t.startY-t.currentY)/d.value*100;else{t.currentX=h;const w=(t.currentX-t.startX)/d.value*100;g=A.value?-w:w}t.newPosition=t.startPosition+g,P(t.newPosition)}},B=()=>{t.dragging&&(setTimeout(()=>{t.dragging=!1,t.hovering||K(),t.isClick||P(t.newPosition),y()},0),window.removeEventListener("mousemove",q),window.removeEventListener("touchmove",q),window.removeEventListener("mouseup",B),window.removeEventListener("touchend",B),window.removeEventListener("contextmenu",B))},P=async s=>{if(s===null||Number.isNaN(+s))return;s=ue(s,0,100);let g;if(a.value==="mark")k.value.length===0?g=s<=50?r.value:o.value:g=k.value.reduce((S,w)=>Math.abs(w.position-s)<Math.abs(S.position-s)?w:S).point;else{const h=Math.floor((o.value-r.value)/a.value),S=h*a.value/(o.value-r.value)*100,w=S+(100-S)/2;if(s<S){const N=S/h,x=Math.round(s/N);g=r.value+x*a.value}else s<w?g=r.value+h*a.value:g=o.value;g=Number.parseFloat(g.toFixed(n.value))}g!==e.modelValue&&l(E.UPDATE_MODEL_EVENT,g),!t.dragging&&e.modelValue!==t.oldValue&&(t.oldValue=e.modelValue),await u.nextTick(),t.dragging&&_(),$.value.updatePopper()};return u.watch(()=>t.dragging,s=>{O(s)}),J(C,"touchstart",i,{passive:!1}),{disabled:f,button:C,tooltip:$,tooltipVisible:R,showTooltip:c,persistent:m,wrapperStyle:Q,formatValue:G,handleMouseEnter:Z,handleMouseLeave:F,onButtonDown:i,onKeyDown:te,setPosition:P}},Ee=(e,t,l,f,r)=>({stops:u.computed(()=>{if(!e.showStops||e.min>e.max)return[];if(e.step==="mark"||e.step===0)return e.step===0&&console.warn("[ElSlider] step should not be 0."),[];const c=Math.ceil((e.max-e.min)/e.step),m=100*e.step/(e.max-e.min),n=Array.from({length:c-1}).map((d,V)=>(V+1)*m);return e.range?n.filter(d=>d<100*(l.value-e.min)/(e.max-e.min)||d>100*(f.value-e.min)/(e.max-e.min)):n.filter(d=>d>100*(t.firstValue-e.min)/(e.max-e.min))}),getStopStyle:c=>e.vertical?{bottom:`${c}%`}:r.value?{right:`${c}%`}:{left:`${c}%`}}),be=(e,t,l,f,r,o)=>{const a=n=>{r(E.UPDATE_MODEL_EVENT,n),r(E.INPUT_EVENT,n)},c=()=>e.range?![l.value,f.value].every((n,d)=>n===t.oldValue[d]):e.modelValue!==t.oldValue,m=()=>{var d,V;if(e.min>e.max)throw new Error("[Element Plus Slider] props.min should not be greater than props.max.");const n=e.modelValue;e.range&&Array.isArray(n)?n[1]<e.min?a([e.min,e.min]):n[0]>e.max?a([e.max,e.max]):n[0]<e.min?a([e.min,n[1]]):n[1]>e.max?a([n[0],e.max]):(t.firstValue=n[0],t.secondValue=n[1],c()&&(e.validateEvent&&((d=o==null?void 0:o.validate)==null||d.call(o,"change").catch(D.noop)),t.oldValue=n.slice())):!e.range&&typeof n=="number"&&!Number.isNaN(n)&&(n<e.min?a(e.min):n>e.max?a(e.max):(t.firstValue=n,c()&&(e.validateEvent&&((V=o==null?void 0:o.validate)==null||V.call(o,"change").catch(D.noop)),t.oldValue=n)))};m(),u.watch(()=>t.dragging,n=>{n||m()}),u.watch(()=>e.modelValue,(n,d)=>{t.dragging||Array.isArray(n)&&Array.isArray(d)&&n.every((V,y)=>V===d[y])&&t.firstValue===n[0]&&t.secondValue===n[1]||m()},{deep:!0}),u.watch(()=>[e.min,e.max],()=>{m()})};exports.sliderContextKey=p;exports.useEventListener=J;exports.useLifecycle=fe;exports.useMarks=me;exports.useSlide=ve;exports.useSliderButton=Ve;exports.useStops=Ee;exports.useWatch=be;
|
|
@@ -1,125 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var vue = require('vue');
|
|
6
|
-
var cascader = require('@vunk/form/components/cascader');
|
|
7
|
-
var formItem = require('@vunk/form/components/form-item');
|
|
8
|
-
var vant = require('vant');
|
|
9
|
-
var elementPlus = require('element-plus');
|
|
10
|
-
require('vant/es/cascader/style');
|
|
11
|
-
require('vant/es/popup/style');
|
|
12
|
-
var composables = require('@vunk/form/composables');
|
|
13
|
-
var _pluginVue_exportHelper = require('../_plugin-vue_export-helper.cjs');
|
|
14
|
-
|
|
15
|
-
const props = {
|
|
16
|
-
...cascader._VkfCascaderCtx.props
|
|
17
|
-
};
|
|
18
|
-
const emits = {
|
|
19
|
-
...cascader._VkfCascaderCtx.emits
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
23
|
-
...{
|
|
24
|
-
name: "VkfVanCascader"
|
|
25
|
-
},
|
|
26
|
-
__name: "index",
|
|
27
|
-
props: props,
|
|
28
|
-
emits,
|
|
29
|
-
setup(__props, { expose: __expose, emit: __emit }) {
|
|
30
|
-
__expose();
|
|
31
|
-
const ElSelect = elementPlus.ElSelect;
|
|
32
|
-
const props = __props;
|
|
33
|
-
const emit = __emit;
|
|
34
|
-
const formItemBindProps = formItem._VkfFormItemCtx.createBindProps(props);
|
|
35
|
-
const popupShow = vue.ref(false);
|
|
36
|
-
const fieldValue = vue.ref("");
|
|
37
|
-
const cascaderValue = vue.ref("");
|
|
38
|
-
const options = cascader._VkfCascaderUse.useOptions(props, emit);
|
|
39
|
-
const readonly = composables.useComputedReadonly(props);
|
|
40
|
-
vue.watch(() => props.modelValue, (val) => {
|
|
41
|
-
if (Array.isArray(val) && val.length) {
|
|
42
|
-
fieldValue.value = val.join("/");
|
|
43
|
-
const last = val.at(-1);
|
|
44
|
-
if (typeof last === "string" || typeof last === "number") {
|
|
45
|
-
cascaderValue.value = last + "";
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}, {
|
|
49
|
-
deep: true
|
|
50
|
-
});
|
|
51
|
-
const handleFinish = ({ selectedOptions }) => {
|
|
52
|
-
popupShow.value = false;
|
|
53
|
-
emit("update:modelValue", selectedOptions.map((item) => item.value));
|
|
54
|
-
};
|
|
55
|
-
const preInput = () => {
|
|
56
|
-
if (readonly.value) return;
|
|
57
|
-
popupShow.value = true;
|
|
58
|
-
};
|
|
59
|
-
const __returned__ = { ElSelect, props, emit, formItemBindProps, popupShow, fieldValue, cascaderValue, options, readonly, handleFinish, preInput, get VkfFormItem() {
|
|
60
|
-
return formItem.VkfFormItem;
|
|
61
|
-
}, get Cascader() {
|
|
62
|
-
return vant.Cascader;
|
|
63
|
-
}, get Popup() {
|
|
64
|
-
return vant.Popup;
|
|
65
|
-
} };
|
|
66
|
-
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
67
|
-
return __returned__;
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
|
|
71
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
72
|
-
return vue.openBlock(), vue.createBlock(
|
|
73
|
-
$setup["VkfFormItem"],
|
|
74
|
-
vue.mergeProps({ class: "vkf-van-cascader" }, $setup.formItemBindProps),
|
|
75
|
-
{
|
|
76
|
-
default: vue.withCtx(() => [
|
|
77
|
-
vue.createVNode($setup["ElSelect"], {
|
|
78
|
-
"popper-class": "vkf-van-cascader-input",
|
|
79
|
-
"model-value": $setup.fieldValue,
|
|
80
|
-
onClick: $setup.preInput
|
|
81
|
-
}, null, 8, ["model-value"]),
|
|
82
|
-
vue.createVNode($setup["Popup"], {
|
|
83
|
-
show: $setup.popupShow,
|
|
84
|
-
"onUpdate:show": _cache[2] || (_cache[2] = ($event) => $setup.popupShow = $event),
|
|
85
|
-
round: "",
|
|
86
|
-
position: "bottom"
|
|
87
|
-
}, {
|
|
88
|
-
default: vue.withCtx(() => [
|
|
89
|
-
vue.createVNode($setup["Cascader"], {
|
|
90
|
-
modelValue: $setup.cascaderValue,
|
|
91
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $setup.cascaderValue = $event),
|
|
92
|
-
options: $setup.options,
|
|
93
|
-
"field-names": {
|
|
94
|
-
text: "label",
|
|
95
|
-
value: "value",
|
|
96
|
-
children: "children"
|
|
97
|
-
},
|
|
98
|
-
onClose: _cache[1] || (_cache[1] = ($event) => $setup.popupShow = false),
|
|
99
|
-
onFinish: $setup.handleFinish
|
|
100
|
-
}, null, 8, ["modelValue", "options"])
|
|
101
|
-
]),
|
|
102
|
-
_: 1
|
|
103
|
-
/* STABLE */
|
|
104
|
-
}, 8, ["show"])
|
|
105
|
-
]),
|
|
106
|
-
_: 1
|
|
107
|
-
/* STABLE */
|
|
108
|
-
},
|
|
109
|
-
16
|
|
110
|
-
/* FULL_PROPS */
|
|
111
|
-
);
|
|
112
|
-
}
|
|
113
|
-
var VkfVanCascader = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/van-cascader/src/index.vue"]]);
|
|
114
|
-
|
|
115
|
-
var types = /*#__PURE__*/Object.freeze({
|
|
116
|
-
__proto__: null
|
|
117
|
-
});
|
|
118
|
-
|
|
119
|
-
VkfVanCascader.install = (app) => {
|
|
120
|
-
app.component(VkfVanCascader.name, VkfVanCascader);
|
|
121
|
-
};
|
|
122
|
-
|
|
123
|
-
exports.VkfVanCascader = VkfVanCascader;
|
|
124
|
-
exports.__VkfVanCascader = types;
|
|
125
|
-
exports.default = VkfVanCascader;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("@vunk/form/components/cascader"),i=require("@vunk/form/components/form-item"),d=require("vant"),b=require("element-plus");require("vant/es/cascader/style");require("vant/es/popup/style");const h=require("@vunk/form/composables"),q={...l._VkfCascaderCtx.props},x={...l._VkfCascaderCtx.emits},p=e.defineComponent({name:"VkfVanCascader",__name:"index",props:q,emits:x,setup(f,{emit:m}){const v=b.ElSelect,n=f,u=m,V=i._VkfFormItemCtx.createBindProps(n),r=e.ref(!1),c=e.ref(""),s=e.ref(""),C=l._VkfCascaderUse.useOptions(n,u),_=h.useComputedReadonly(n);e.watch(()=>n.modelValue,o=>{if(Array.isArray(o)&&o.length){c.value=o.join("/");const t=o.at(-1);(typeof t=="string"||typeof t=="number")&&(s.value=t+"")}},{deep:!0});const k=({selectedOptions:o})=>{r.value=!1,u("update:modelValue",o.map(t=>t.value))},y=()=>{_.value||(r.value=!0)};return(o,t)=>(e.openBlock(),e.createBlock(e.unref(i.VkfFormItem),e.mergeProps({class:"vkf-van-cascader"},e.unref(V)),{default:e.withCtx(()=>[e.createVNode(e.unref(v),{"popper-class":"vkf-van-cascader-input","model-value":c.value,onClick:y},null,8,["model-value"]),e.createVNode(e.unref(d.Popup),{show:r.value,"onUpdate:show":t[2]||(t[2]=a=>r.value=a),round:"",position:"bottom"},{default:e.withCtx(()=>[e.createVNode(e.unref(d.Cascader),{modelValue:s.value,"onUpdate:modelValue":t[0]||(t[0]=a=>s.value=a),options:e.unref(C),"field-names":{text:"label",value:"value",children:"children"},onClose:t[1]||(t[1]=a=>r.value=!1),onFinish:k},null,8,["modelValue","options"])]),_:1},8,["show"])]),_:1},16))}}),g=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));exports.VkfVanCascader=p;exports.__VkfVanCascader=g;exports.default=p;
|
|
@@ -1,119 +1,74 @@
|
|
|
1
|
-
import { defineComponent, ref, watch, openBlock, createBlock, mergeProps, withCtx, createVNode } from
|
|
2
|
-
import { _VkfCascaderCtx, _VkfCascaderUse } from
|
|
3
|
-
import { _VkfFormItemCtx, VkfFormItem } from
|
|
4
|
-
import {
|
|
5
|
-
import { ElSelect } from
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { useComputedReadonly } from
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
...
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
..._VkfCascaderCtx.emits
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
19
|
-
...{
|
|
20
|
-
name: "VkfVanCascader"
|
|
21
|
-
},
|
|
1
|
+
import { defineComponent as h, ref as l, watch as x, openBlock as b, createBlock as w, unref as t, mergeProps as g, withCtx as m, createVNode as p } from "vue";
|
|
2
|
+
import { _VkfCascaderCtx as d, _VkfCascaderUse as P } from "@vunk/form/components/cascader";
|
|
3
|
+
import { _VkfFormItemCtx as S, VkfFormItem as B } from "@vunk/form/components/form-item";
|
|
4
|
+
import { Popup as F, Cascader as I } from "vant";
|
|
5
|
+
import { ElSelect as j } from "element-plus";
|
|
6
|
+
import "vant/es/cascader/style";
|
|
7
|
+
import "vant/es/popup/style";
|
|
8
|
+
import { useComputedReadonly as O } from "@vunk/form/composables";
|
|
9
|
+
const U = {
|
|
10
|
+
...d.props
|
|
11
|
+
}, A = {
|
|
12
|
+
...d.emits
|
|
13
|
+
}, D = /* @__PURE__ */ h({
|
|
14
|
+
name: "VkfVanCascader",
|
|
22
15
|
__name: "index",
|
|
23
|
-
props:
|
|
24
|
-
emits,
|
|
25
|
-
setup(
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
const fieldValue = ref("");
|
|
33
|
-
const cascaderValue = ref("");
|
|
34
|
-
const options = _VkfCascaderUse.useOptions(props, emit);
|
|
35
|
-
const readonly = useComputedReadonly(props);
|
|
36
|
-
watch(() => props.modelValue, (val) => {
|
|
37
|
-
if (Array.isArray(val) && val.length) {
|
|
38
|
-
fieldValue.value = val.join("/");
|
|
39
|
-
const last = val.at(-1);
|
|
40
|
-
if (typeof last === "string" || typeof last === "number") {
|
|
41
|
-
cascaderValue.value = last + "";
|
|
42
|
-
}
|
|
16
|
+
props: U,
|
|
17
|
+
emits: A,
|
|
18
|
+
setup(c, { emit: f }) {
|
|
19
|
+
const v = j, n = c, u = f, V = S.createBindProps(n), a = l(!1), i = l(""), s = l(""), C = P.useOptions(n, u), k = O(n);
|
|
20
|
+
x(() => n.modelValue, (o) => {
|
|
21
|
+
if (Array.isArray(o) && o.length) {
|
|
22
|
+
i.value = o.join("/");
|
|
23
|
+
const e = o.at(-1);
|
|
24
|
+
(typeof e == "string" || typeof e == "number") && (s.value = e + "");
|
|
43
25
|
}
|
|
44
26
|
}, {
|
|
45
|
-
deep:
|
|
27
|
+
deep: !0
|
|
46
28
|
});
|
|
47
|
-
const
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
const preInput = () => {
|
|
52
|
-
if (readonly.value) return;
|
|
53
|
-
popupShow.value = true;
|
|
29
|
+
const _ = ({ selectedOptions: o }) => {
|
|
30
|
+
a.value = !1, u("update:modelValue", o.map((e) => e.value));
|
|
31
|
+
}, y = () => {
|
|
32
|
+
k.value || (a.value = !0);
|
|
54
33
|
};
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
return Cascader;
|
|
59
|
-
}, get Popup() {
|
|
60
|
-
return Popup;
|
|
61
|
-
} };
|
|
62
|
-
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
63
|
-
return __returned__;
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
|
|
67
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
68
|
-
return openBlock(), createBlock(
|
|
69
|
-
$setup["VkfFormItem"],
|
|
70
|
-
mergeProps({ class: "vkf-van-cascader" }, $setup.formItemBindProps),
|
|
71
|
-
{
|
|
72
|
-
default: withCtx(() => [
|
|
73
|
-
createVNode($setup["ElSelect"], {
|
|
34
|
+
return (o, e) => (b(), w(t(B), g({ class: "vkf-van-cascader" }, t(V)), {
|
|
35
|
+
default: m(() => [
|
|
36
|
+
p(t(v), {
|
|
74
37
|
"popper-class": "vkf-van-cascader-input",
|
|
75
|
-
"model-value":
|
|
76
|
-
onClick:
|
|
38
|
+
"model-value": i.value,
|
|
39
|
+
onClick: y
|
|
77
40
|
}, null, 8, ["model-value"]),
|
|
78
|
-
|
|
79
|
-
show:
|
|
80
|
-
"onUpdate:show":
|
|
41
|
+
p(t(F), {
|
|
42
|
+
show: a.value,
|
|
43
|
+
"onUpdate:show": e[2] || (e[2] = (r) => a.value = r),
|
|
81
44
|
round: "",
|
|
82
45
|
position: "bottom"
|
|
83
46
|
}, {
|
|
84
|
-
default:
|
|
85
|
-
|
|
86
|
-
modelValue:
|
|
87
|
-
"onUpdate:modelValue":
|
|
88
|
-
options:
|
|
47
|
+
default: m(() => [
|
|
48
|
+
p(t(I), {
|
|
49
|
+
modelValue: s.value,
|
|
50
|
+
"onUpdate:modelValue": e[0] || (e[0] = (r) => s.value = r),
|
|
51
|
+
options: t(C),
|
|
89
52
|
"field-names": {
|
|
90
53
|
text: "label",
|
|
91
54
|
value: "value",
|
|
92
55
|
children: "children"
|
|
93
56
|
},
|
|
94
|
-
onClose:
|
|
95
|
-
onFinish:
|
|
57
|
+
onClose: e[1] || (e[1] = (r) => a.value = !1),
|
|
58
|
+
onFinish: _
|
|
96
59
|
}, null, 8, ["modelValue", "options"])
|
|
97
60
|
]),
|
|
98
61
|
_: 1
|
|
99
|
-
/* STABLE */
|
|
100
62
|
}, 8, ["show"])
|
|
101
63
|
]),
|
|
102
64
|
_: 1
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
/* FULL_PROPS */
|
|
107
|
-
);
|
|
108
|
-
}
|
|
109
|
-
var VkfVanCascader = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/van-cascader/src/index.vue"]]);
|
|
110
|
-
|
|
111
|
-
var types = /*#__PURE__*/Object.freeze({
|
|
65
|
+
}, 16));
|
|
66
|
+
}
|
|
67
|
+
}), G = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
112
68
|
__proto__: null
|
|
113
|
-
});
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
69
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
70
|
+
export {
|
|
71
|
+
D as VkfVanCascader,
|
|
72
|
+
G as __VkfVanCascader,
|
|
73
|
+
D as default
|
|
117
74
|
};
|
|
118
|
-
|
|
119
|
-
export { VkfVanCascader, types as __VkfVanCascader, VkfVanCascader as default };
|