1:将时间插件-timePicker导入到 开发工具HBuilderX
2:导入之后可以看到在我的项目底下多出了一个组件components文件夹
3:根据文档示例: https://ext.dcloud.net.cn/plugin?id=700 来写页面代码
代码如下:
<template>
<view class="content">
<hTimePicker sTime="15" cTime="15" interval="1" @changeTime="changeTime">
<view slot="pCon" class="changeTime">
点击选择时间
</view>
</hTimePicker>
</view>
</template>
<script>
import hTimePicker from "@/components/h-timePicker/h-timePicker.vue";
export default {
components: {
hTimePicker
},
data() {
return {
title: 'Hello'
};
},
onLoad() {},
methods: {}
};
</script>
<style>
.content {
text-align: center;
height: 400upx;
margin-top: 200upx;
}
</style>
效果如下,点击按钮,底部弹出时间选择框
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有