Skip to content

Commit 6875843

Browse files
committed
feat(picker): add picker-column selected class support
1 parent 48a4887 commit 6875843

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/packages/__VUE/picker/index.taro.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@
3737
:key="item[columnFieldNames.value] ?? index"
3838
class="nut-picker-roller-item-tarotile"
3939
:class="{
40-
[item[columnFieldNames.className]]: item[columnFieldNames.className]
40+
[item[columnFieldNames.className]]: item[columnFieldNames.className],
41+
'nut-picker-roller-item-tarotile--selected': index === defaultIndexes[columnIndex]
4142
}"
4243
:style="{
4344
lineHeight: pxCheck(optionHeight)

0 commit comments

Comments
 (0)