From 68758433ea871dcf5ca575c62cfef9a6492d2d54 Mon Sep 17 00:00:00 2001 From: penjj Date: Thu, 24 Oct 2024 17:35:41 +0800 Subject: [PATCH] feat(picker): add picker-column selected class support --- src/packages/__VUE/picker/index.taro.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/packages/__VUE/picker/index.taro.vue b/src/packages/__VUE/picker/index.taro.vue index d7de1ffc9e..f11e70457d 100644 --- a/src/packages/__VUE/picker/index.taro.vue +++ b/src/packages/__VUE/picker/index.taro.vue @@ -37,7 +37,8 @@ :key="item[columnFieldNames.value] ?? index" class="nut-picker-roller-item-tarotile" :class="{ - [item[columnFieldNames.className]]: item[columnFieldNames.className] + [item[columnFieldNames.className]]: item[columnFieldNames.className], + 'nut-picker-roller-item-tarotile--selected': index === defaultIndexes[columnIndex] }" :style="{ lineHeight: pxCheck(optionHeight)