vue实现移动端轻量日期组件不依赖第三方库的方法

软件发布|下载排行|最新软件

当前位置:首页IT学院IT技术

vue实现移动端轻量日期组件不依赖第三方库的方法

Beck Reed   2020-05-16 我要评论

不需要依赖第三方组件的vue日期移动端组件  小轮子 轻量可复用:   https://github.com/BeckReedhttps://img.qb5200.com/download-x/datepicker-for-vue

2.用法:参见 src/viewhttps://img.qb5200.com/download-x/demo.vue 文件的用法,简单易懂

<div>
 <h3>三列(年月日)日期弹窗示例--带标题)</h3>
 <button class="blue-btn" @click="togglePicker2">显示三列带标题日期弹框Demo2</button>
 <v-date-picker :type="1" :isShow="isShow2" @confirm="confirmDemo2" @cancel="cancelDemo2" v-model="selectedValue2">请选择日期</v-date-picker>
 </div>

3.该例子基于vue进行示例: 运行命令如下: npm run dev 请先npm install

# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
# build for production and view the bundle analyzer report
npm run build --report
# run unit tests
npm run unit
# run all tests
npm test

For a detailed explanation on how things work, check out theguide and docs for vue-loader

总结

以上所述是小编给大家介绍的vue实现移动端轻量日期组件不依赖第三方库的方法,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对网站的支持!
如果你觉得本文对你有帮助,欢迎转载,烦请注明出处,谢谢!

Copyright 2022 版权所有 软件发布 访问手机版

声明:所有软件和文章来自软件开发商或者作者 如有异议 请与本站联系 联系我们