mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-27 18:30:35 +01:00
chore(Select): add prop for trailingIcon
This commit is contained in:
@@ -323,11 +323,20 @@ const inputGroup = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const textarea = {
|
const textarea = {
|
||||||
...input
|
...input,
|
||||||
|
default: {
|
||||||
|
size: 'sm',
|
||||||
|
appearance: 'white'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const select = {
|
const select = {
|
||||||
...input
|
...input,
|
||||||
|
default: {
|
||||||
|
size: 'sm',
|
||||||
|
appearance: 'white',
|
||||||
|
trailingIcon: 'i-heroicons-chevron-down-20-solid'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const selectMenu = {
|
const selectMenu = {
|
||||||
|
|||||||
@@ -40,8 +40,8 @@
|
|||||||
<UIcon :name="icon" :class="iconClass" />
|
<UIcon :name="icon" :class="iconClass" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<span :class="trailingIconClass">
|
<span v-if="trailingIcon" :class="trailingIconClass">
|
||||||
<UIcon name="i-heroicons-chevron-down-20-solid" :class="iconClass" aria-hidden="true" />
|
<UIcon :name="trailingIcon" :class="iconClass" aria-hidden="true" />
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -89,6 +89,10 @@ export default defineComponent({
|
|||||||
type: String,
|
type: String,
|
||||||
default: null
|
default: null
|
||||||
},
|
},
|
||||||
|
trailingIcon: {
|
||||||
|
type: String,
|
||||||
|
default: () => appConfig.ui.select.default.trailingIcon
|
||||||
|
},
|
||||||
options: {
|
options: {
|
||||||
type: Array,
|
type: Array,
|
||||||
default: () => []
|
default: () => []
|
||||||
|
|||||||
Reference in New Issue
Block a user