@webitel/ui-sdk 24.12.83 → 24.12.85
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/CHANGELOG.md +6 -0
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.js +3011 -3005
- package/dist/ui-sdk.umd.cjs +14 -14
- package/package.json +1 -1
- package/src/components/wt-datepicker/wt-datepicker.vue +11 -1
- package/src/components/wt-popup/wt-popup.vue +1 -1
package/package.json
CHANGED
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
v-if="clearable && value"
|
|
43
43
|
:color="disabled ? 'disabled' : 'default'"
|
|
44
44
|
icon="close"
|
|
45
|
-
@click="
|
|
45
|
+
@click.stop="clearValue"
|
|
46
46
|
/>
|
|
47
47
|
</template>
|
|
48
48
|
<template #arrow-left>
|
|
@@ -147,6 +147,16 @@ const isDateTime = props.mode === 'datetime';
|
|
|
147
147
|
const requiredLabel = computed(() => {
|
|
148
148
|
return props.required ? `${props.label}*` : props.label;
|
|
149
149
|
});
|
|
150
|
+
|
|
151
|
+
const clearValue = () => {
|
|
152
|
+
emit('input', null);
|
|
153
|
+
|
|
154
|
+
if (isOpened.value) {
|
|
155
|
+
datepicker?.value.closeMenu();
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
isOpened.value = false;
|
|
159
|
+
};
|
|
150
160
|
</script>
|
|
151
161
|
|
|
152
162
|
<style lang="scss">
|