Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] 微信小程序端,希望van-picker可以提供修改选择框的背景颜色方式 #13110

Open
gin-18 opened this issue Sep 10, 2024 · 0 comments

Comments

@gin-18
Copy link

gin-18 commented Sep 10, 2024

这个功能解决了什么问题?

自定义主题时,可以修改选择框的的背景颜色

你期望的 API 是什么样子的?

在微信小程序中,选择项的颜色可以修改,但是选择框的颜色无法修改。

<van-picker
    class="my-picker"
    show-toolbar
    columns="{{ openTime }}"
/>
.my-picker {
    --picker-background-color: #1e1e2e;
    --picker-confirm-action-color: #89b4fa;
    --picker-cancel-action-color: #bac2de;
    --picker-option-text-color: #cdd6f4;
    --picker-option-selected-text-color: #89b4fa;
}
Page({
    data: {
      openTime: ['18:00', '18:30']
    }
})

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant