@fy-/fws-vue 1.2.6 → 1.2.7
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.
|
@@ -96,6 +96,13 @@ const modelCheckbox = computed({
|
|
|
96
96
|
},
|
|
97
97
|
});
|
|
98
98
|
defineExpose({ focus, blur, getInputRef });
|
|
99
|
+
const dpComponent = ref<any | null>(null);
|
|
100
|
+
onMounted(async () => {
|
|
101
|
+
if (props.type === "datepicker") {
|
|
102
|
+
const { default: VueDatePicker } = await import("@vuepic/vue-datepicker");
|
|
103
|
+
dpComponent.value = VueDatePicker;
|
|
104
|
+
}
|
|
105
|
+
});
|
|
99
106
|
</script>
|
|
100
107
|
<template>
|
|
101
108
|
<div>
|
|
@@ -184,14 +191,16 @@ defineExpose({ focus, blur, getInputRef });
|
|
|
184
191
|
/>
|
|
185
192
|
</svg>
|
|
186
193
|
</div>
|
|
187
|
-
<
|
|
194
|
+
<component
|
|
195
|
+
:is="dpComponent"
|
|
196
|
+
v-if="dpComponent"
|
|
188
197
|
v-model="model"
|
|
189
198
|
auto-apply
|
|
190
199
|
:placeholder="placeholder"
|
|
191
200
|
year-first
|
|
192
201
|
dark
|
|
193
202
|
:enable-time-picker="false"
|
|
194
|
-
></
|
|
203
|
+
></component>
|
|
195
204
|
</div>
|
|
196
205
|
</div>
|
|
197
206
|
<div v-if="type == 'chips' || type == 'tags'">
|