mint-ui的官方文档必须吐槽,写得太简陋了,有许多方法和配置都没有具体配置,要自己去摸索,实在是坑爹。 

template模块

        <div>
          <span>开始时间*</span>
          <span @click="this.startTime">请选择 ></span>
        </div>

 

    <div>
      <mt-datetime-picker ref="pickerStartTime" type="datetime" v-model="pickerValueStartTime" @confirm="this.handleConfirmStartTime"></mt-datetime-picker>
    </div>

script模块 

  data () {
    return {
      pickerValueStartTime: ''
    }
  }    
  methods: {
    startTime () {
      this.$refs.pickerStartTime.open()
    },
    handleConfirmStartTime () {
      console.log(this.pickerValueStartTime)
    }
  }

 

Logo

前往低代码交流专区

更多推荐