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

[BUG] Pikcer组件 #15

Open
MaerdDaed opened this issue May 15, 2020 · 1 comment
Open

[BUG] Pikcer组件 #15

MaerdDaed opened this issue May 15, 2020 · 1 comment

Comments

@MaerdDaed
Copy link

picker 组件中 params 传入参数 pickerParams: {year: true, month: false, day: false }时
1、同时配置startYear、endYear会导致选择列表为空

<u-picker startYear="1960" 
          endYear="2030" 
          v-model="historyShow" 
          :params="pickerParams" 
          mode="time">
</u-picker>

2、仅配置startYear时,defaultTime传入年份无效,若defaultTime手动拼接'-'号到年份末尾,则可正常显示
直接传入年份

<u-picker startYear="1960" 
          default-time="2002" 
          v-model="historyShow" 
          :params="pickerParams" 
          mode="time">
</u-picker>

手动拼接‘-’到年份末尾

<u-picker startYear="1960" 
          default-time="2002-" 
          v-model="historyShow" 
          :params="pickerParams" 
          mode="time">
</u-picker>

3、仅配置endYear时,选择列表为空

<u-picker endYear="1960" 
          v-model="historyShow" 
          :params="pickerParams" 
          mode="time">
</u-picker>
@ciscolxh
Copy link

ciscolxh commented Jul 9, 2020

这个组件文档好像不能限制 最大时间

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

2 participants