<uni-forms-item required class="uni-forms-item--border" name="happenedTime" label="事发时间">
<view class="uni-inline-item">
<uni-datetime-picker type="datetime" :border="false" v-model="form.happenedTime"
style="text-align: right;">
</uni-datetime-picker>
<image class="arrow-right" src="../../../static/img/arrow-right.png" />
</view>
</uni-forms-item>
rules: {
happenedTime: {
rules: [{
required: true,
errorMessage: '请选择事发时间',
trigger: 'change'
}, {
minLength: 10,
errorMessage: '请选择事发时间',
}]
}
0 个回复