@fy-/fws-vue 1.3.2 → 1.3.3
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.
|
@@ -97,7 +97,8 @@ const modelCheckbox = computed({
|
|
|
97
97
|
defineExpose({ focus, blur, getInputRef });
|
|
98
98
|
const dpComponent = ref<any | null>(null);
|
|
99
99
|
onMounted(async () => {
|
|
100
|
-
if (
|
|
100
|
+
if (!import.meta.env.SSR) {
|
|
101
|
+
// Dynamically import VueDatePicker only on the client side
|
|
101
102
|
const { default: VueDatePicker } = await import("@vuepic/vue-datepicker");
|
|
102
103
|
dpComponent.value = VueDatePicker;
|
|
103
104
|
}
|
|
@@ -63,7 +63,6 @@ const removeTag = (index: number) => {
|
|
|
63
63
|
focusInput();
|
|
64
64
|
};
|
|
65
65
|
|
|
66
|
-
/*
|
|
67
66
|
const removeLastTag = () => {
|
|
68
67
|
if (!textInput.value) return;
|
|
69
68
|
if (textInput.value.innerText === "") {
|
|
@@ -85,7 +84,7 @@ const removeLastTag = () => {
|
|
|
85
84
|
}
|
|
86
85
|
}
|
|
87
86
|
};
|
|
88
|
-
|
|
87
|
+
|
|
89
88
|
const focusInput = () => {
|
|
90
89
|
if (!textInput.value) return;
|
|
91
90
|
|
|
@@ -110,6 +109,7 @@ const handlePaste = (e: any) => {
|
|
|
110
109
|
:class="`tags-input ${$props.error ? 'error' : ''}`"
|
|
111
110
|
@click="focusInput"
|
|
112
111
|
@keydown.enter.prevent="addTag"
|
|
112
|
+
@keydown.backspace.prevent="removeLastTag"
|
|
113
113
|
>
|
|
114
114
|
<span
|
|
115
115
|
v-for="(tag, index) in model"
|