|
|
|
@ -15,7 +15,13 @@ const emits = defineEmits(['update:value', 'change'])
|
|
|
|
|
|
|
|
|
|
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) |
|
|
|
|
|
|
|
|
@ -37,7 +43,7 @@ const onChange = (value: string) => {
|
|
|
|
|
v-model:value="vModel" |
|
|
|
|
:placeholder="placeholder" |
|
|
|
|
class="nc-select" |
|
|
|
|
:dropdown-class-name="dropdownClassName ? `nc-select-dropdown ${dropdownClassName}` : 'nc-select-dropdown'" |
|
|
|
|
:dropdown-class-name="dropdownClassName" |
|
|
|
|
:show-search="showSearch" |
|
|
|
|
:filter-option="filterOption" |
|
|
|
|
:dropdown-match-select-width="dropdownMatchSelectWidth" |
|
|
|
|