Skip to content

Commit 2452c4b

Browse files
committed
refactor: add 'attrs' and 'class' keys to options item object
1 parent f61a575 commit 2452c4b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/Form/CFormSelect.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
<option
2929
v-if="typeof option === 'object'"
3030
:value="option.value"
31+
:class="option.class"
32+
v-bind="option.attrs"
3133
:disabled="option.disabled"
3234
:data-key="key"
3335
:key="key"

0 commit comments

Comments
 (0)