uniApp打卡日历
生活随笔
收集整理的這篇文章主要介紹了
uniApp打卡日历
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
功能
滑動切換時間,打點功能,支持月周切換日歷組件
這是一款支持滑動切換以及周模式和月模式切換功能的日歷組件,可以設置打卡信息,自定義樣式。
組件樣式使用了sass所有需要項目中先安裝node-sass和sass-loader。
日歷組件,組件名:zzx-calendar,代碼塊: zzxCalendar。
地址:https://ext.dcloud.net.cn/plugin?id=1732
代碼
<template>
<view class="content">
<zzx-calendar @selected-change="datechange" @days-change="days" showBack />
</view>
</template>
<script>
import zzxCalendar from "@/components/zzx-calendar/zzx-calendar.vue";
export default {
components: {
zzxCalendar,
},
data() {
return {
};
},
methods: {
datechange(e) {
console.log('選擇日期', e);
},
days(e) {
console.log('本月開始時間和結束時間', e)
}
},
}
</script>
<style lang="scss" scoped>
.content {
100%;
min-height: 100vh;
}
/*表格通用樣式*/
.zzx-form {
box-sizing: border-box;
100%;
padding: 0 30upx;
font-size: 24upx;
}
.zzx-form-btn {
560upx;
height:90upx;
background:linear-gradient(180deg,rgba(28,173,251,1) 0%,rgba(61,190,253,1) 100%);
box-shadow:0upx 3upx 6upx rgba(0,0,0,0.16);
border-radius:45upx;
color: #ffffff;
&[disabled]:not([type]) {
color: #ffffff;
560upx;
height:90upx;
background:rgba(221,221,221,1);
box-shadow:0upx 3upx 6upx rgba(0,0,0,0.16);
border-radius:45upx;
}
}
.zzx-form-item {
calc(100% - 60upx);
margin: 0 auto;
display: flex;
height: 90upx;
line-height: 90upx;
flex-flow: row nowrap;
justify-content: flex-start;
align-items: center;
border-bottom: 1upx solid #DDDDDD;
&:last-child {
border: none;
margin: 30upx auto;
}
.zzx-form-label {
150upx;
}
.zzx-form-label-required {
&:before {
display: inline;
content: '*';
color: #ff5500;
}
}
.zzx-form-arrow {
18upx;
height: 36upx;
}
}
.zzx-form-value{
flex: 1;
.zzx-radio-label {
margin-right: 15upx;
}
.zzx-checkbox-label {
margin-right: 15upx;
}
}
.zzx-form-input {
height: 90upx;
line-height: 90upx;
}
.zzx-picker-null {
color: #dddddd;
}
</style>
有問題聯系QQ1291481728或在下方評論,會在第一時刻處理。
總結
以上是生活随笔為你收集整理的uniApp打卡日历的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 苹果调整 Mac 电脑 Apple Ca
- 下一篇: CAD高版本界面怎么设置成经典界面?CA