uview component u-form-item click event

 question

@click="showCalendar(false)" No response when clicked

reason:

The component does not define this event, you can use the native click event.native

@click.native="showCalendar()"

  <u-form-item label="开始时间" label-width="150" 
right-icon="arrow-right"
 @click.native="showCalendar(false)">
          <u-picker mode="time" @confirm="cofirmStartTime" v-model="showStart" class="form-field-select"/>
          <view class="time">{
   
   { startTime }}</view>
        </u-form-item>

This will bring up the time selector.

Guess you like

Origin blog.csdn.net/LlanyW/article/details/132758505