现象如上图,代码如下:
<template>
<view class="content">
<uni-card is-full>
<text class="uni-h6">可以同时选择日期和时间的选择器</text>
</uni-card>
<uni-section :title="'日期用法:' " type="line"></uni-section>
<view class="example-body">
<uni-datetime-picker type="date" :clear-icon="false" v-model="date" @maskClick="maskClick" @change="" />
</view>
</view>
</template>
<script>
import sqlite from '../../components/sqlite.js';
export default {
data() {
return {
date: ''
}
},
onLoad() {
},
methods: {
maskClick(){
console.log(123);
},
change(event){
this.date = event;
console.log(123);X
}
}
}
</script>
请问怎么解决此问题?