no message

This commit is contained in:
kuaifan 2025-04-14 18:23:04 +08:00
parent 3db687ad40
commit f5d6702472
5 changed files with 71 additions and 38 deletions

View File

@ -59,7 +59,7 @@
"stylus": "^0.59.0", "stylus": "^0.59.0",
"stylus-loader": "^7.1.0", "stylus-loader": "^7.1.0",
"tinymce": "^5.10.3", "tinymce": "^5.10.3",
"tui-calendar-hi": "^2.1.3-5", "tui-calendar-hi": "^2.1.3-6",
"view-design-hi": "^4.7.0-76", "view-design-hi": "^4.7.0-76",
"vite": "^2.9.15", "vite": "^2.9.15",
"vite-plugin-file-copy": "^1.0.0", "vite-plugin-file-copy": "^1.0.0",

View File

@ -3,11 +3,11 @@
<PageTitle :title="$L('日历')"/> <PageTitle :title="$L('日历')"/>
<div class="calendar-head"> <div class="calendar-head">
<div class="calendar-titbox"> <div class="calendar-titbox">
<div class="calendar-nav">
<div class="calendar-title"> <div class="calendar-title">
<div class="common-nav-back portrait" @click="goForward({name: 'manage-application'}, true)"><i class="taskfont">&#xe676;</i></div> <div class="common-nav-back portrait" @click="goForward({name: 'manage-application'}, true)"><i class="taskfont">&#xe676;</i></div>
<h1>{{ rangeText }}</h1> <h1>{{ rangeText }}</h1>
</div> </div>
<div class="calendar-nav">
<ButtonGroup class="calendar-arrow" size="small"> <ButtonGroup class="calendar-arrow" size="small">
<Button @click="onMove(-1)"> <Button @click="onMove(-1)">
<Icon type="ios-arrow-back"></Icon> <Icon type="ios-arrow-back"></Icon>
@ -107,6 +107,9 @@ export default {
this.options.week.dayNames = dayNames; this.options.week.dayNames = dayNames;
this.options.month.dayNames = dayNames; this.options.month.dayNames = dayNames;
this.options.view = this.$store.state.cacheCalendarView || this.options.view; this.options.view = this.$store.state.cacheCalendarView || this.options.view;
if (this.windowWidth < 600) {
this.options.template.monthGridHeaderExceed = (hiddenEvents) => `<span>+${hiddenEvents}</span>`
}
}, },
activated() { activated() {

View File

@ -1,11 +1,11 @@
export const theme = { export const theme = {
common: { common: {
border: '1px solid #ddd', border: '1px solid #f4f5f5',
backgroundColor: 'white', backgroundColor: 'white',
holiday: {color: '#f54f3d'}, holiday: {color: '#f54f3d'},
saturday: {color: '#84c56a'}, saturday: {color: '#84c56a'},
dayName: {color: '#333'}, dayName: {color: '#606266'},
today: {color: '#ffffff'}, today: {color: '#fff'},
gridSelection: { gridSelection: {
backgroundColor: 'rgba(132, 197, 106, 0.1)', backgroundColor: 'rgba(132, 197, 106, 0.1)',
border: '1px solid #84c56a', border: '1px solid #84c56a',
@ -26,38 +26,38 @@ export const theme = {
dayName: { dayName: {
borderTop: 'none', borderTop: 'none',
borderBottom: 'none', borderBottom: 'none',
borderLeft: '1px solid #ddd', borderLeft: '1px solid #f4f5f5',
backgroundColor: 'inherit', backgroundColor: 'inherit',
}, },
today: { today: {
color: '#ffffff', color: '#303133',
backgroundColor: 'inherit', backgroundColor: 'inherit',
}, },
pastDay: {color: '#999'}, pastDay: {color: '#999'},
panelResizer: {border: '1px solid #ddd'}, panelResizer: {border: '1px solid #f4f5f5'},
dayGrid: {borderRight: '1px solid #ddd'}, dayGrid: {borderRight: '1px solid #f4f5f5'},
dayGridLeft: { dayGridLeft: {
width: '100px', width: '100px',
backgroundColor: '', backgroundColor: '',
borderRight: '1px solid #ddd', borderRight: '1px solid #f4f5f5',
}, },
weekend: {backgroundColor: 'inherit'}, weekend: {backgroundColor: 'inherit'},
timeGridLeft: { timeGridLeft: {
width: '100px', width: '100px',
backgroundColor: '#fafafa', backgroundColor: '#fafafa',
borderRight: '1px solid #ddd', borderRight: '1px solid #f4f5f5',
}, },
timeGridLeftAdditionalTimezone: {backgroundColor: '#fdfdfd'}, timeGridLeftAdditionalTimezone: {backgroundColor: '#fdfdfd'},
timeGridHourLine: {borderBottom: '1px solid #eee'}, timeGridHourLine: {borderBottom: '1px solid #eee'},
timeGridHalfHourLine: {borderBottom: '1px dotted #f9f9f9'}, timeGridHalfHourLine: {borderBottom: '1px dotted #f9f9f9'},
timeGrid: {borderRight: '1px solid #ddd'}, timeGrid: {borderRight: '1px solid #f4f5f5'},
nowIndicatorLabel: {color: '#84c56a'}, nowIndicatorLabel: {color: '#84c56a'},
nowIndicatorPast: {border: '1px solid rgba(132, 197, 106, 0.3)'}, nowIndicatorPast: {border: '1px solid rgba(132, 197, 106, 0.3)'},
nowIndicatorBullet: {backgroundColor: '#84c56a'}, nowIndicatorBullet: {backgroundColor: '#84c56a'},
nowIndicatorToday: {border: '1px solid #84c56a'}, nowIndicatorToday: {border: '1px solid #84c56a'},
nowIndicatorFuture: {border: '1px solid #84c56a'}, nowIndicatorFuture: {border: '1px solid #84c56a'},
pastTime: {color: '#999'}, pastTime: {color: '#999'},
futureTime: {color: '#333'}, futureTime: {color: '#606266'},
gridSelection: {color: '#84c56a'}, gridSelection: {color: '#84c56a'},
}, },
}; };

View File

@ -84,8 +84,12 @@ export default {
}, },
watch: { watch: {
dialogId(id) { dialogId() {
this.show = id > 0 && (this.windowPortrait || this.routeName !== 'manage-messenger') this.handleShow()
},
windowPortrait() {
this.handleShow()
}, },
show(v) { show(v) {
@ -105,6 +109,9 @@ export default {
this.closIng-- this.closIng--
}) })
}, },
handleShow() {
this.show = this.dialogId > 0 && (this.windowPortrait || this.routeName !== 'manage-messenger')
},
handleMoveTop(type) { handleMoveTop(type) {
type === 'dialogModal' && this.$refs.modal?.handleMoveTop(); type === 'dialogModal' && this.$refs.modal?.handleMoveTop();
} }

View File

@ -1,26 +1,26 @@
.page-calendar { .page-calendar {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
.calendar-head { .calendar-head {
flex-shrink: 0; flex-shrink: 0;
display: flex; display: flex;
align-items: flex-start; align-items: flex-start;
margin: 32px 20px 16px; margin: 32px 20px 16px;
border-bottom: 1px solid #F4F4F5; border-bottom: 1px solid #F4F4F5;
.calendar-titbox { .calendar-titbox {
flex: 1; flex: 1;
display: flex; display: flex;
align-items: center; align-items: center;
margin-bottom: 16px; margin-bottom: 16px;
gap: 2px; gap: 2px;
.calendar-nav {
flex-shrink: 0;
display: flex;
align-items: center;
.calendar-title { .calendar-title {
display: flex; display: flex;
align-items: center; align-items: center;
margin-right: 24px; margin-right: 24px;
> h1 { > h1 {
color: $primary-title-color; color: $primary-title-color;
font-size: 28px; font-size: 28px;
@ -31,23 +31,33 @@
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
} }
} }
.calendar-nav {
flex-shrink: 0;
display: flex;
align-items: center;
.calendar-arrow { .calendar-arrow {
flex-shrink: 0; flex-shrink: 0;
margin-left: 12px; margin-left: 12px;
> button { > button {
color: #888888; color: #888888;
font-size: 12px; font-size: 12px;
&:focus { &:focus {
box-shadow: none; box-shadow: none;
} }
} }
} }
} }
.calendar-view { .calendar-view {
flex: 1; flex: 1;
display: flex; display: flex;
justify-content: flex-end; justify-content: flex-end;
margin-left: 24px; margin-left: 24px;
> button { > button {
&:focus { &:focus {
box-shadow: none; box-shadow: none;
@ -56,6 +66,7 @@
} }
} }
} }
.calendar-box { .calendar-box {
flex: 1; flex: 1;
display: flex; display: flex;
@ -63,12 +74,14 @@
padding: 0 48px 6px; padding: 0 48px 6px;
overflow: hidden; overflow: hidden;
} }
.toastui-calendar-grid-cell-header { .toastui-calendar-grid-cell-header {
display: flex; display: flex;
align-items: flex-start; align-items: flex-start;
justify-content: space-between; justify-content: space-between;
padding: 0 5px; padding: 0 5px;
overflow: hidden; overflow: hidden;
.toastui-calendar-grid-cell-more-events { .toastui-calendar-grid-cell-more-events {
padding-right: 0; padding-right: 0;
overflow: hidden; overflow: hidden;
@ -76,6 +89,7 @@
text-overflow: ellipsis; text-overflow: ellipsis;
} }
} }
.toastui-calendar-grid-cell-date { .toastui-calendar-grid-cell-date {
.toastui-calendar-weekday-grid-date { .toastui-calendar-weekday-grid-date {
&.toastui-calendar-weekday-grid-date-decorator { &.toastui-calendar-weekday-grid-date-decorator {
@ -83,24 +97,33 @@
} }
} }
} }
.toastui-calendar-daygrid-cell {
+ .toastui-calendar-daygrid-cell {
border-left-color: #f4f5f5;
}
}
} }
body.window-portrait { body.window-portrait {
.page-calendar { .page-calendar {
.calendar-head { .calendar-head {
margin: 24px 16px 16px; margin: 24px 16px 16px;
.calendar-titbox { .calendar-titbox {
display: flex; display: flex;
flex-direction: column; justify-content: space-between;
align-items: stretch; position: relative;
padding-bottom: 32px;
.calendar-nav { .calendar-nav {
width: 100%; position: absolute;
.calendar-title { bottom: 0;
flex: 1; right: 0;
}
} }
} }
} }
.calendar-box { .calendar-box {
padding: 0; padding: 0;
} }