<view class="cu-form-group">
<view class="title">巡查日期</view>
<picker mode="date" :value="date" start="2015-09-01" end="2060-09-01" @change="DateChange" fields="day">
<view class="picker">
{{date}}
</view>
</picker>
</view>
- 发布:2023-11-03 10:15
- 更新:2023-11-03 10:15
- 阅读:172
产品分类: uniapp/小程序
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: win10
HBuilderX类型: 正式
HBuilderX版本号: 3.95
第三方开发者工具版本号: 3.7.13
基础库版本号: 位置
项目创建方式: HBuilderX
示例代码:
操作步骤:
<view class="cu-form-group">
<view class="title">巡查日期</view>
<picker mode="date" :value="date" start="2015-09-01" end="2060-09-01" @change="DateChange" fields="day">
<view class="picker">
{{date}}
</view>
</picker>
</view>
<view class="cu-form-group">
<view class="title">巡查日期</view>
<picker mode="date" :value="date" start="2015-09-01" end="2060-09-01" @change="DateChange" fields="day">
<view class="picker">
{{date}}
</view>
</picker>
</view>
预期结果:
<view class="cu-form-group">
<view class="title">巡查日期</view>
<picker mode="date" :value="date" start="2015-09-01" end="2060-09-01" @change="DateChange" fields="day">
<view class="picker">
{{date}}
</view>
</picker>
</view>
<view class="cu-form-group">
<view class="title">巡查日期</view>
<picker mode="date" :value="date" start="2015-09-01" end="2060-09-01" @change="DateChange" fields="day">
<view class="picker">
{{date}}
</view>
</picker>
</view>
实际结果:
<view class="cu-form-group">
<view class="title">巡查日期</view>
<picker mode="date" :value="date" start="2015-09-01" end="2060-09-01" @change="DateChange" fields="day">
<view class="picker">
{{date}}
</view>
</picker>
</view>
<view class="cu-form-group">
<view class="title">巡查日期</view>
<picker mode="date" :value="date" start="2015-09-01" end="2060-09-01" @change="DateChange" fields="day">
<view class="picker">
{{date}}
</view>
</picker>
</view>
bug描述:
择器的粒度无法控制到日
0 个回复