1.0.0 • Published 1 year ago

vue-star-weekmonth v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

vue-star-weekmonth

A Vue.js project

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

For detailed explanation on how things work, consult the docs for vue-loader.

src/index.js 可以引入多个组件对外暴露 MonthWeeek H5日历周月切换 使用选中日期的返回父组件的方法 this.$emit('calendarBack', { timer: str, bool: this.isWeek }) props: { calendarObj: { type: Object, //labelArray[]在日期做标记 day传的日期 '2022-11-28'格式 default: {labelArray: [],day:'',}, }, week: { type: Boolean, default: true,//默认按周显示 }, fsize:{ //字体大小 type: String, default: '0.29rem' }, lalbelColor:{//labelArray标记的颜色 高亮颜色,一般颜色 type: Array, default: ()=> '#FFB318','#cccccc', }, selectColor:{ //选中的背景颜色 type: String, default:'rgba(255, 179, 24, 0.23)' }, },