|
|
@ -15,7 +15,13 @@ const emits = defineEmits(['update:value', 'change']) |
|
|
|
|
|
|
|
|
|
|
|
const placeholder = computed(() => props.placeholder) |
|
|
|
const placeholder = computed(() => props.placeholder) |
|
|
|
|
|
|
|
|
|
|
|
const dropdownClassName = computed(() => props.dropdownClassName) |
|
|
|
const dropdownClassName = computed(() => { |
|
|
|
|
|
|
|
let className = 'nc-select-dropdown border-1 border-gray-200' |
|
|
|
|
|
|
|
if (props.dropdownClassName) { |
|
|
|
|
|
|
|
className += ` ${props.dropdownClassName}` |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return className |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
const showSearch = computed(() => props.showSearch) |
|
|
|
const showSearch = computed(() => props.showSearch) |
|
|
|
|
|
|
|
|
|
|
@ -37,7 +43,7 @@ const onChange = (value: string) => { |
|
|
|
v-model:value="vModel" |
|
|
|
v-model:value="vModel" |
|
|
|
:placeholder="placeholder" |
|
|
|
:placeholder="placeholder" |
|
|
|
class="nc-select" |
|
|
|
class="nc-select" |
|
|
|
:dropdown-class-name="dropdownClassName ? `nc-select-dropdown ${dropdownClassName}` : 'nc-select-dropdown'" |
|
|
|
:dropdown-class-name="dropdownClassName" |
|
|
|
:show-search="showSearch" |
|
|
|
:show-search="showSearch" |
|
|
|
:filter-option="filterOption" |
|
|
|
:filter-option="filterOption" |
|
|
|
:dropdown-match-select-width="dropdownMatchSelectWidth" |
|
|
|
:dropdown-match-select-width="dropdownMatchSelectWidth" |
|
|
|