@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const a=require("vue"),b=require("element-plus"),W=require("./debounce.cjs"),I=require("@vunk/shared/function");function le(e,t,n){return e===e&&(n!==void 0&&(e=e<=n?e:n),t!==void 0&&(e=e>=t?e:t)),e}function ue(e,t,n){return n===void 0&&(n=t,t=void 0),n!==void 0&&(n=W.toNumber(n),n=n===n?n:0),t!==void 0&&(t=W.toNumber(t),t=t===t?t:0),le(W.toNumber(e),t,n)}function oe(e){return a.getCurrentScope()?(a.onScopeDispose(e),!0):!1}function D(e){return typeof e=="function"?e():a.unref(e)}const ae=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const se=Object.prototype.toString,re=e=>se.call(e)==="[object Object]",ie=()=>{},ce=ae?window:void 0;function de(e){var t;const n=D(e);return(t=n==null?void 0:n.$el)!=null?t:n}function H(...e){let t,n,o,d;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,d]=e,t=ce):[t,n,o,d]=e,!t)return ie;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const u=[],s=()=>{u.forEach(i=>i()),u.length=0},g=(i,v,E,N)=>(i.addEventListener(v,E,N),()=>i.removeEventListener(v,E,N)),V=a.watch(()=>[de(t),D(d)],([i,v])=>{if(s(),!i)return;const E=re(v)?{...v}:v;u.push(...n.flatMap(N=>o.map(B=>g(i,N,B,E))))},{immediate:!0,flush:"post"}),l=()=>{V(),s()};return oe(l),l}const p=Symbol("sliderContextKey"),fe=(e,t,n)=>{const o=a.ref();return a.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),H(window,"resize",n),await a.nextTick(),n()}),{sliderWrapper:o}},me=e=>{const t=a.computed(()=>e.marks?Object.keys(e.marks).map(Number.parseFloat).sort((o,d)=>o-d).filter(o=>o<=e.max&&o>=e.min).map(o=>({point:o,position:(o-e.min)*100/(e.max-e.min),mark:e.marks[o]})):[]);return a.watchEffect(()=>{if(e.step==="mark"&&!e.marks&&console.warn("[ElSlider] marks prop must be provided when step is mark"),e.marks){const n=Object.keys(e.marks),o=t.value.map(u=>u.point),d=n.filter(u=>{const s=Number.parseFloat(u);return Number.isNaN(s)||!o.includes(s)});d.length>0&&console.warn(`[ElSlider] Some marks keys are invalid (not a number or out of [min, max]): [${d.map(u=>`'${u}'`).join(", ")}] and will be ignored.`)}}),t},ve=(e,t,n,o)=>{const{formItem:d}=b.useFormItem(),u=a.shallowRef(),s=a.ref(),g=a.ref(),V={firstButton:s,secondButton:g},l=b.useFormDisabled(),i=a.computed(()=>Math.min(t.firstValue,t.secondValue)),v=a.computed(()=>Math.max(t.firstValue,t.secondValue)),E=a.computed(()=>e.range?`${100*(v.value-i.value)/(e.max-e.min)}%`:`${100*(t.firstValue-e.min)/(e.max-e.min)}%`),N=a.computed(()=>e.range?`${100*(i.value-e.min)/(e.max-e.min)}%`:"0%"),B=a.computed(()=>e.vertical?{height:e.height}:{}),k=a.computed(()=>e.vertical?{height:E.value,bottom:N.value}:o.value?{width:E.value,left:"auto",right:N.value}:{width:E.value,left:N.value}),O=()=>{if(u.value){const c=u.value.getBoundingClientRect();t.sliderSize=c[e.vertical?"height":"width"]}},$=c=>{const f=e.min+c*(e.max-e.min)/100;if(!e.range)return s;let y;return Math.abs(i.value-f)<Math.abs(v.value-f)?y=t.firstValue<t.secondValue?"firstButton":"secondButton":y=t.firstValue>t.secondValue?"firstButton":"secondButton",V[y]},A=c=>{const f=$(c);return f.value.setPosition(c),f},G=c=>{t.firstValue=c??e.min;const f=e.range?[i.value,v.value]:c??e.min;K(f)},R=c=>{t.secondValue=c,e.range&&K([i.value,v.value])},K=c=>{n(b.UPDATE_MODEL_EVENT,c),n(b.INPUT_EVENT,c)},C=async()=>{await a.nextTick(),n(b.CHANGE_EVENT,e.range?[i.value,v.value]:e.modelValue)},T=c=>{var y,j,z,U;if(l.value||t.dragging)return;O();let f=0;if(e.vertical){const L=((j=(y=c.touches)==null?void 0:y.item(0))==null?void 0:j.clientY)??c.clientY;f=(u.value.getBoundingClientRect().bottom-L)/t.sliderSize*100}else{const L=((U=(z=c.touches)==null?void 0:z.item(0))==null?void 0:U.clientX)??c.clientX,Y=u.value.getBoundingClientRect();o.value?f=(Y.right-L)/t.sliderSize*100:f=(L-Y.left)/t.sliderSize*100}if(!(f<0||f>100))return A(f)};return{elFormItem:d,slider:u,firstButton:s,secondButton:g,sliderDisabled:l,minValue:i,maxValue:v,runwayStyle:B,barStyle:k,resetSize:O,setPosition:A,emitChange:C,onSliderWrapperPrevent:c=>{var f,y;((f=V.firstButton.value)!=null&&f.dragging||(y=V.secondButton.value)!=null&&y.dragging)&&c.preventDefault()},onSliderClick:c=>{T(c)&&C()},onSliderDown:async c=>{const f=T(c);f&&(await a.nextTick(),f.value.onButtonDown(c))},onSliderMarkerDown:c=>{if(l.value||t.dragging)return;A(c)&&C()},setFirstValue:G,setSecondValue:R}},ge=e=>e.code||e.key,he=(e,t,n)=>{const o=a.ref(),d=a.ref(!1),u=a.computed(()=>t.value instanceof Function),s=a.computed(()=>u.value&&t.value(e.modelValue)||e.modelValue),g=W.debounce(()=>{n.value&&(d.value=!0)},50),V=W.debounce(()=>{n.value&&(d.value=!1)},50);return{tooltip:o,tooltipVisible:d,formatValue:s,displayTooltip:g,hideTooltip:V}},Ve=(e,t,n)=>{const{disabled:o,min:d,max:u,step:s,showTooltip:g,persistent:V,precision:l,sliderSize:i,formatTooltip:v,emitChange:E,resetSize:N,updateDragging:B,markList:k,isRtl:O}=a.inject(p),{tooltip:$,tooltipVisible:A,formatValue:G,displayTooltip:R,hideTooltip:K}=he(e,v,g),C=a.ref(),T=a.computed(()=>`${(e.modelValue-d.value)/(u.value-d.value)*100}%`),J=a.computed(()=>e.vertical?{bottom:T.value}:O.value?{right:T.value}:{left:T.value}),X=a.computed(()=>s.value==="mark"&&k.value.length>0),Q=()=>{t.hovering=!0,R()},Z=()=>{t.hovering=!1,t.dragging||K()},c=r=>{o.value||(r.preventDefault(),ne(r),window.addEventListener("mousemove",q),window.addEventListener("touchmove",q),window.addEventListener("mouseup",_),window.addEventListener("touchend",_),window.addEventListener("contextmenu",_),C.value.focus())},f=r=>{o.value||(t.newPosition=Number.parseFloat(T.value)+r/(u.value-d.value)*100,P(t.newPosition),E())},y=r=>{if(o.value||!k.value.length)return;const m=e.modelValue,h=Number.EPSILON,S=Math.abs(r);let w;if(r>0){const M=k.value.findIndex(x=>x.point>m+h);if(M!==-1){const x=Math.min(M+S-1,k.value.length-1);w=k.value[x].point}}else{let M=-1;for(let x=k.value.length-1;x>=0;x--)if(k.value[x].point<m-h){M=x;break}if(M!==-1){const x=Math.max(M-(S-1),0);w=k.value[x].point}}if(w!==void 0&&w!==m){const M=(w-d.value)/(u.value-d.value)*100;P(M),E()}},j=()=>{X.value?y(-1):typeof s.value=="number"&&f(-s.value)},z=()=>{X.value?y(1):typeof s.value=="number"&&f(s.value)},U=()=>{X.value?y(-4):typeof s.value=="number"&&f(-s.value*4)},L=()=>{X.value?y(4):typeof s.value=="number"&&f(s.value*4)},Y=()=>{o.value||(P(0),E())},ee=()=>{o.value||(P(100),E())},te=r=>{const m=ge(r);let h=!0;switch(m){case b.EVENT_CODE.left:case b.EVENT_CODE.down:j();break;case b.EVENT_CODE.right:case b.EVENT_CODE.up:z();break;case b.EVENT_CODE.home:Y();break;case b.EVENT_CODE.end:ee();break;case b.EVENT_CODE.pageDown:U();break;case b.EVENT_CODE.pageUp:L();break;default:h=!1;break}h&&r.preventDefault()},F=r=>{let m,h;return r.type.startsWith("touch")?(h=r.touches[0].clientY,m=r.touches[0].clientX):(h=r.clientY,m=r.clientX),{clientX:m,clientY:h}},ne=r=>{t.dragging=!0,t.isClick=!0;const{clientX:m,clientY:h}=F(r);e.vertical?t.startY=h:t.startX=m,t.startPosition=Number.parseFloat(T.value),t.newPosition=t.startPosition},q=r=>{if(t.dragging){t.isClick=!1,R(),N();let m;const{clientX:h,clientY:S}=F(r);if(e.vertical)t.currentY=S,m=(t.startY-t.currentY)/i.value*100;else{t.currentX=h;const w=(t.currentX-t.startX)/i.value*100;m=O.value?-w:w}t.newPosition=t.startPosition+m,P(t.newPosition)}},_=()=>{t.dragging&&(setTimeout(()=>{t.dragging=!1,t.hovering||K(),t.isClick||P(t.newPosition),E()},0),window.removeEventListener("mousemove",q),window.removeEventListener("touchmove",q),window.removeEventListener("mouseup",_),window.removeEventListener("touchend",_),window.removeEventListener("contextmenu",_))},P=async r=>{if(r===null||Number.isNaN(+r))return;r=ue(r,0,100);let m;if(s.value==="mark")k.value.length===0?m=r<=50?d.value:u.value:m=k.value.reduce((S,w)=>Math.abs(w.position-r)<Math.abs(S.position-r)?w:S).point;else{const h=Math.floor((u.value-d.value)/s.value),S=h*s.value/(u.value-d.value)*100,w=S+(100-S)/2;if(r<S){const M=S/h,x=Math.round(r/M);m=d.value+x*s.value}else r<w?m=d.value+h*s.value:m=u.value;m=Number.parseFloat(m.toFixed(l.value))}m!==e.modelValue&&n(b.UPDATE_MODEL_EVENT,m),!t.dragging&&e.modelValue!==t.oldValue&&(t.oldValue=e.modelValue),await a.nextTick(),t.dragging&&R(),$.value.updatePopper()};return a.watch(()=>t.dragging,r=>{B(r)}),H(C,"touchstart",c,{passive:!1}),{disabled:o,button:C,tooltip:$,tooltipVisible:A,showTooltip:g,persistent:V,wrapperStyle:J,formatValue:G,handleMouseEnter:Q,handleMouseLeave:Z,onButtonDown:c,onKeyDown:te,setPosition:P}},Ee=(e,t,n,o,d)=>({stops:a.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 g=Math.ceil((e.max-e.min)/e.step),V=100*e.step/(e.max-e.min),l=Array.from({length:g-1}).map((i,v)=>(v+1)*V);return e.range?l.filter(i=>i<100*(n.value-e.min)/(e.max-e.min)||i>100*(o.value-e.min)/(e.max-e.min)):l.filter(i=>i>100*(t.firstValue-e.min)/(e.max-e.min))}),getStopStyle:g=>e.vertical?{bottom:`${g}%`}:d.value?{right:`${g}%`}:{left:`${g}%`}}),be=(e,t,n,o,d,u)=>{const s=l=>{d(b.UPDATE_MODEL_EVENT,l),d(b.INPUT_EVENT,l)},g=()=>e.range?![n.value,o.value].every((l,i)=>l===t.oldValue[i]):e.modelValue!==t.oldValue,V=()=>{var i,v;if(e.min>e.max)throw new Error("[Element Plus Slider] props.min should not be greater than props.max.");const l=e.modelValue;e.range&&Array.isArray(l)?l[1]<e.min?s([e.min,e.min]):l[0]>e.max?s([e.max,e.max]):l[0]<e.min?s([e.min,l[1]]):l[1]>e.max?s([l[0],e.max]):(t.firstValue=l[0],t.secondValue=l[1],g()&&(e.validateEvent&&((i=u==null?void 0:u.validate)==null||i.call(u,"change").catch(I.noop)),t.oldValue=l.slice())):!e.range&&typeof l=="number"&&!Number.isNaN(l)&&(l<e.min?s(e.min):l>e.max?s(e.max):(t.firstValue=l,g()&&(e.validateEvent&&((v=u==null?void 0:u.validate)==null||v.call(u,"change").catch(I.noop)),t.oldValue=l)))};V(),a.watch(()=>t.dragging,l=>{l||V()}),a.watch(()=>e.modelValue,(l,i)=>{t.dragging||Array.isArray(l)&&Array.isArray(i)&&l.every((v,E)=>v===i[E])&&t.firstValue===l[0]&&t.secondValue===l[1]||V()},{deep:!0}),a.watch(()=>[e.min,e.max],()=>{V()})};exports.sliderContextKey=p;exports.useEventListener=H;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 };
|