不需要依赖第三方组件的vue日期移动端组件 小轮子 轻量可复用: https://github.com/BeckReed/datepicker-for-vue
如果对您有用,give me a start to remember and give me some issue to improve it .
<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>
# 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 the guide and docs for vue-loader.
如果有问题欢迎拍砖提问题,进行优化
原文:https://www.cnblogs.com/beckreed/p/10779325.html