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

Picker日期选择器支持修改日期格式 #16070

Open
ilk-1 opened this issue Jul 8, 2024 · 1 comment
Open

Picker日期选择器支持修改日期格式 #16070

ilk-1 opened this issue Jul 8, 2024 · 1 comment

Comments

@ilk-1
Copy link

ilk-1 commented Jul 8, 2024

这个特性解决了什么问题?

个性化定制弹窗中的日期格式

这个 API 长什么样?

dataFormat={YYYY-MM-DD}

      <Picker
        mode='date'
        fields='month'
        value={state}
        dataFormat='YYYY阿来MM日期DD'
        onChange={onDateChange}
      >
        <View className='picker'>
          当前选择:{state}
        </View>
      </Picker>

在taro-ui中被提出的issue#1800,排查后发现需要taro-component的支持。希望支持展示的时候按照YYYY,MM,DD的模板替换

@ilk-1
Copy link
Author

ilk-1 commented Jul 8, 2024

#16072

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

No branches or pull requests

1 participant