Merge pull request #2 from panwenhua/dependabot/npm_and_yarn/lodash-4.17.15 Bump lodash from 4.17.11 to 4.17.15
Merge pull request #2 from panwenhua/dependabot/npm_and_yarn/lodash-4.17.15
Bump lodash from 4.17.11 to 4.17.15
一个日历列表组件。
npm install npm serve
http://localhost:8000/
online example: https://panwenhua.github.io/vue-calendar-list-view/
import 'vue-calendar-list-view' import 'vue-calendar-list-view/lib/calendarListView.css' <template> <CalendarList :aroud="calendar.aroud" :on-select="onSelect" :options="calendar.options" :value="currentDate"></CalendarList> </template> <script> export default { data() { return { calendar: { aroud: 12, //12个月 options: [ { //对应日期的 人数 date: "2018-11-11", label: "剩12人", value: 12 }, { date: "2018-11-12", label: "剩13人", value: 13 }, { date: "2018-11-13", label: "剩14人", value: 14 }, { date: "2018-11-14", label: "剩15人", value: 15 }, { date: "2018-11-20", label: "剩16人", value: 16 } ] }, currentDate: null //当前选择的日期 }; }, methods: { onSelect(date, value, recode) { //date:当前选择的日期 //value:当前选择的数量 //recode:当前选择的的对象 console.log(date, value, recode); this.currentDate = date; } } }; </script> <style lang="scss" scoped> </style>
vue-calendar-list-view is released under the MIT license.
©Copyright 2023 CCF 开源发展委员会 Powered by Trustie& IntelliDE 京ICP备13000930号
vue-calendar-list-view
一个日历列表组件。
install
Development
Example
http://localhost:8000/
online example: https://panwenhua.github.io/vue-calendar-list-view/
Usage
API
Props
License
vue-calendar-list-view is released under the MIT license.