由于开发过程中需要用到时间选择器,所以写了一个小插件。 先来看官方的文档: 官方文档 https://img-blog.csdnimg.cn/20200225113825314.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L21vbms5Ng==,size_16,color_FFFFFF,t_70 官方功能不完善,所以稍微改动一下; <template> <view> <picker :title="index" @change="bindTimeChange" @columnchange="columnchange" mode="multiSelector" :disabled="disabled" :class="{disabled:disabled}" :value="index" :range="array"> <view class="uni-input" v-if="showTime">{{showTime}} </view> <view v-else class="placeholder">{{placeholder}}</view> </picker> </view> <!– 只读 –> </template> <script> export default { name: 'dy-Date-Picker', props: { timeType: { type: String, default: () => 'day' }, disabled: { type: Boolean, default: () => false },…