diff --git a/src/components/Icon/src/IconSelect.vue b/src/components/Icon/src/IconSelect.vue index d4a5b074235851a2d002d5a16cd2a27848995272..b19c5e3bf3361a5ff71fb90d8891a64d59f54a41 100644 --- a/src/components/Icon/src/IconSelect.vue +++ b/src/components/Icon/src/IconSelect.vue @@ -11,6 +11,10 @@ const props = defineProps({ modelValue: { require: false, type: String + }, + clearable: { + require: false, + type: Boolean } }) const emit = defineEmits<{ (e: 'update:modelValue', v: string) }>() @@ -92,6 +96,12 @@ function onCurrentChange(page) { currentPage.value = page } +function clearIcon() { + icon.value = '' + emit('update:modelValue', '') + visible.value = false +} + watch( () => { return props.modelValue @@ -115,7 +125,7 @@ watch(