|
|
@ -192,6 +192,7 @@ const toggleMenu = (e: Event) => { |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
<template> |
|
|
|
<template> |
|
|
|
|
|
|
|
<div class="h-full w-full flex items-center" @click="toggleMenu"> |
|
|
|
<a-select |
|
|
|
<a-select |
|
|
|
ref="aselect" |
|
|
|
ref="aselect" |
|
|
|
v-model:value="vModel" |
|
|
|
v-model:value="vModel" |
|
|
@ -199,15 +200,14 @@ const toggleMenu = (e: Event) => { |
|
|
|
:class="{ 'caret-transparent': !hasEditRoles }" |
|
|
|
:class="{ 'caret-transparent': !hasEditRoles }" |
|
|
|
:allow-clear="!column.rqd && editAllowed" |
|
|
|
:allow-clear="!column.rqd && editAllowed" |
|
|
|
:bordered="false" |
|
|
|
:bordered="false" |
|
|
|
:open="isOpen" |
|
|
|
:open="isOpen && (active || editable)" |
|
|
|
:disabled="readOnly" |
|
|
|
:disabled="readOnly" |
|
|
|
:show-arrow="hasEditRoles && !readOnly && (editable || (active && vModel === null))" |
|
|
|
:show-arrow="hasEditRoles && !readOnly && (editable || (active && vModel === null))" |
|
|
|
:dropdown-class-name="`nc-dropdown-single-select-cell ${isOpen ? 'active' : ''}`" |
|
|
|
:dropdown-class-name="`nc-dropdown-single-select-cell ${isOpen ? 'active' : ''}`" |
|
|
|
show-search |
|
|
|
:show-search="isOpen && (active || editable)" |
|
|
|
@select="isOpen = false" |
|
|
|
@select="isOpen = false" |
|
|
|
@keydown.stop |
|
|
|
@keydown.stop |
|
|
|
@search="search" |
|
|
|
@search="search" |
|
|
|
@click="toggleMenu" |
|
|
|
|
|
|
|
> |
|
|
|
> |
|
|
|
<a-select-option |
|
|
|
<a-select-option |
|
|
|
v-for="op of options" |
|
|
|
v-for="op of options" |
|
|
@ -243,6 +243,7 @@ const toggleMenu = (e: Event) => { |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</a-select-option> |
|
|
|
</a-select-option> |
|
|
|
</a-select> |
|
|
|
</a-select> |
|
|
|
|
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<style scoped lang="scss"> |
|
|
|
<style scoped lang="scss"> |
|
|
|