dolphin-weex-ui 2.2.18 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/index.native.js +796 -647
- package/dist/index.native.js.map +1 -1
- package/dist/index.web.js +622 -436
- package/dist/index.web.js.map +1 -1
- package/package.json +1 -1
- package/packages/dof-accordion/index.vue +1 -1
- package/packages/dof-actionsheet/dist/index.dev.js +15 -0
- package/packages/dof-actionsheet/index-bak.vue +5 -5
- package/packages/dof-actionsheet/index.vue +5 -5
- package/packages/dof-badge/index.vue +4 -4
- package/packages/dof-board/index.vue +3 -3
- package/packages/dof-bottom-bar/index.vue +6 -6
- package/packages/dof-button/index.vue +14 -8
- package/packages/dof-button/type.js +20 -20
- package/packages/dof-button-group/index.vue +2 -2
- package/packages/dof-card/imgs/arrow_up.js +1 -1
- package/packages/dof-card/imgs/confirm.js +1 -1
- package/packages/dof-card/index.vue +9 -9
- package/packages/dof-card-item/index.vue +3 -3
- package/packages/dof-catalog/colmo.css +1 -1
- package/packages/dof-catalog/index.vue +3 -3
- package/packages/dof-catalog/style.js +2 -2
- package/packages/dof-cell/colmo.css +6 -0
- package/packages/dof-cell/index.vue +36 -36
- package/packages/dof-cell2/index.vue +10 -10
- package/packages/dof-checkbox/index.vue +10 -10
- package/packages/dof-checkbox-list/index.vue +7 -0
- package/packages/dof-city/tab.vue +1 -1
- package/packages/dof-collapse-item/colmo.css +14 -0
- package/packages/dof-collapse-item/imgs/arrow_up.js +1 -1
- package/packages/dof-collapse-item/index.vue +12 -10
- package/packages/dof-confirm/index.vue +2 -2
- package/packages/dof-confirm-box/index.vue +4 -4
- package/packages/dof-countdown/index.vue +2 -2
- package/packages/dof-date-cycle-picker/index.vue +2 -2
- package/packages/dof-date-cycle-picker/option-list-circle.vue +1 -1
- package/packages/dof-digital-panel/index.vue +5 -5
- package/packages/dof-gear/index.vue +1 -1
- package/packages/dof-gradient/index.vue +1 -1
- package/packages/dof-grid-select/option.vue +1 -1
- package/packages/dof-icon/index.vue +1 -1
- package/packages/dof-icon-button/index.vue +3 -3
- package/packages/dof-indexlist/index.vue +4 -4
- package/packages/dof-input/index.vue +3 -3
- package/packages/dof-item/index.vue +4 -4
- package/packages/dof-loading/index.vue +1 -1
- package/packages/dof-mask/index.vue +1 -1
- package/packages/dof-minibar/index.vue +1 -1
- package/packages/dof-minibar/style.js +2 -2
- package/packages/dof-modal/index.vue +10 -10
- package/packages/dof-music-player/index.vue +1 -1
- package/packages/dof-noticebar/index.vue +12 -12
- package/packages/dof-noticebar/type.js +2 -2
- package/packages/dof-operation-modal/index.vue +1 -1
- package/packages/dof-overlay/index.vue +1 -1
- package/packages/dof-page-calendar/index.vue +315 -301
- package/packages/dof-panel/index.vue +5 -5
- package/packages/dof-panel/type.js +4 -4
- package/packages/dof-picker/picker.vue +3 -3
- package/packages/dof-popover2/index.vue +3 -3
- package/packages/dof-popup/index.vue +12 -7
- package/packages/dof-progress/index.vue +1 -1
- package/packages/dof-promt/index.vue +6 -6
- package/packages/dof-radio-list/index.vue +6 -0
- package/packages/dof-radio-list/radio-item.vue +7 -2
- package/packages/dof-refresher/index.vue +3 -3
- package/packages/dof-result/imgs.js +3 -3
- package/packages/dof-result/index.vue +9 -8
- package/packages/dof-rich-text/dof-rich-text-text.vue +1 -1
- package/packages/dof-scroll-picker/index.vue +3 -3
- package/packages/dof-searchbar/index.vue +47 -22
- package/packages/dof-searchbar/type.js +7 -4
- package/packages/dof-select/index.vue +3 -3
- package/packages/dof-select-picker/index.vue +2 -2
- package/packages/dof-side-nav/style.js +4 -4
- package/packages/dof-simple-flow/colmo.css +1 -0
- package/packages/dof-simple-flow/index.vue +75 -18
- package/packages/dof-slider/index.vue +5 -5
- package/packages/dof-slider-bar/index.vue +1 -1
- package/packages/dof-slider-scale/index.vue +2 -2
- package/packages/dof-special-rich-text/index.vue +1 -1
- package/packages/dof-status/index.vue +2 -2
- package/packages/dof-status/style.js +3 -3
- package/packages/dof-step-action/img.js +2 -2
- package/packages/dof-step-flow-h/index.vue +2 -2
- package/packages/dof-stepper/index.vue +3 -3
- package/packages/dof-swipe-action/index.vue +5 -1
- package/packages/dof-swipe-cell/index.vue +1 -1
- package/packages/dof-switch/index.vue +7 -7
- package/packages/dof-switch/style.js +10 -10
- package/packages/dof-switch-bar/index.vue +1 -1
- package/packages/dof-tab-bar/index.vue +1 -1
- package/packages/dof-tab-page/full-page.vue +1 -1
- package/packages/dof-tab-page/index.vue +19 -19
- package/packages/dof-tag/index.vue +2 -2
- package/packages/dof-taged/index.vue +1 -1
- package/packages/setting/icon.base64.js +5 -5
- package/theme/config.js +6 -7
|
@@ -1,37 +1,43 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="dof-page-calendar" ref="pageCalendar" :style="calendarExtendStyle">
|
|
3
|
-
<dof-minibar
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
<dof-minibar
|
|
4
|
+
:show="showTitle"
|
|
5
|
+
v-bind="minibarCfg"
|
|
6
|
+
:use-default-return="false"
|
|
7
|
+
@dofMinibarLeftButtonClicked="minibarLeftButtonClick"
|
|
8
|
+
></dof-minibar>
|
|
7
9
|
<div class="calendar-weekday" v-if="isShow">
|
|
8
|
-
<text
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
<text
|
|
11
|
+
class="flex-item weekday-text"
|
|
12
|
+
:key="k"
|
|
13
|
+
:aria-label="`周${week}`"
|
|
14
|
+
v-for="(week, k) in ['日', '一', '二', '三', '四', '五', '六']"
|
|
15
|
+
>{{ week }}</text
|
|
16
|
+
>
|
|
12
17
|
</div>
|
|
13
|
-
<list class="calendar-list"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
<text :class="['calendar-ext', cell.cls]"
|
|
34
|
-
|
|
18
|
+
<list class="calendar-list" v-if="isShow">
|
|
19
|
+
<cell v-for="(month, index) in monthsArray" :key="index" :class="[!month.title && 'calendar-row']">
|
|
20
|
+
<text class="month-text" v-if="month.title">{{ month.title }}</text>
|
|
21
|
+
<div
|
|
22
|
+
v-else
|
|
23
|
+
v-for="(cell, rowIndex) in month"
|
|
24
|
+
:key="`${index}-${rowIndex}`"
|
|
25
|
+
:ref="cell.ref"
|
|
26
|
+
:class="['row-item', cell.cellClass]"
|
|
27
|
+
:style="cell.isSelected ? selectedCellStyle : {}"
|
|
28
|
+
:accessible="true"
|
|
29
|
+
:aria-label="`${cell.text ? cell.text : ''},${cell.note ? cell.note : ''},${cell.ext ? cell.ext : ''}`"
|
|
30
|
+
@click="onClickDate(cell)"
|
|
31
|
+
>
|
|
32
|
+
<text :class="['calendar-note', cell.cls]" :style="cell.isSelected ? selectedTextStyle : {}">{{
|
|
33
|
+
cell.note
|
|
34
|
+
}}</text>
|
|
35
|
+
<text :class="['calendar-day', cell.cls]" :style="cell.isSelected ? selectedTextStyle : {}">{{
|
|
36
|
+
cell.text
|
|
37
|
+
}}</text>
|
|
38
|
+
<text :class="['calendar-ext', cell.cls]" :style="cell.isSelected ? selectedTextStyle : {}">{{
|
|
39
|
+
cell.ext
|
|
40
|
+
}}</text>
|
|
35
41
|
</div>
|
|
36
42
|
</cell>
|
|
37
43
|
<cell class="iphone-x" v-if="isIPhoneX"></cell>
|
|
@@ -40,317 +46,325 @@
|
|
|
40
46
|
</template>
|
|
41
47
|
|
|
42
48
|
<script>
|
|
43
|
-
|
|
44
|
-
|
|
49
|
+
import * as Format from './format'
|
|
50
|
+
import Utils from '../utils'
|
|
45
51
|
|
|
46
|
-
|
|
52
|
+
const isWeb = Utils.env.isWeb()
|
|
47
53
|
|
|
48
|
-
|
|
54
|
+
const dom = weex.requireModule('dom')
|
|
49
55
|
|
|
50
|
-
|
|
56
|
+
import DofMinibar from '../dof-minibar'
|
|
51
57
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
},
|
|
60
|
-
dateRange: {
|
|
61
|
-
type: Array,
|
|
62
|
-
required: true,
|
|
63
|
-
default: () => ([])
|
|
64
|
-
},
|
|
65
|
-
minibarCfg: {
|
|
66
|
-
type: Object,
|
|
67
|
-
default: () => ({
|
|
68
|
-
'title': '选择日期',
|
|
69
|
-
'background-color': '#FFC900',
|
|
70
|
-
'text-color': '#3D3D3D'
|
|
71
|
-
})
|
|
72
|
-
},
|
|
73
|
-
showHeader: {
|
|
74
|
-
type: Boolean,
|
|
75
|
-
default: false
|
|
76
|
-
},
|
|
77
|
-
selectedNote: {
|
|
78
|
-
type: Array,
|
|
79
|
-
default: () => (['开始', '到达', '往返'])
|
|
80
|
-
},
|
|
81
|
-
isRange: {
|
|
82
|
-
type: Boolean,
|
|
83
|
-
default: false
|
|
84
|
-
},
|
|
85
|
-
needDestroy: {
|
|
86
|
-
type: Boolean,
|
|
87
|
-
default: false
|
|
88
|
-
},
|
|
89
|
-
descList: {
|
|
90
|
-
type: Array,
|
|
91
|
-
default: () => ([])
|
|
92
|
-
},
|
|
93
|
-
selectedCellStyle: {
|
|
94
|
-
type: Object,
|
|
95
|
-
default: () => ({})
|
|
96
|
-
},
|
|
97
|
-
selectedTextStyle: {
|
|
98
|
-
type: Object,
|
|
99
|
-
default: () => ({})
|
|
100
|
-
}
|
|
58
|
+
export default {
|
|
59
|
+
components: { DofMinibar },
|
|
60
|
+
props: {
|
|
61
|
+
selectedDate: Array,
|
|
62
|
+
animationType: {
|
|
63
|
+
type: String,
|
|
64
|
+
default: 'push'
|
|
101
65
|
},
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
departDate: '',
|
|
107
|
-
arriveDate: ''
|
|
108
|
-
}),
|
|
109
|
-
computed: {
|
|
110
|
-
calendarExtendStyle () {
|
|
111
|
-
return Utils.uiStyle.pageTransitionAnimationStyle(this.animationType);
|
|
112
|
-
},
|
|
113
|
-
monthsArray () {
|
|
114
|
-
const { dateRange: range, today, departDate, arriveDate, selectedNote, descList } = this;
|
|
115
|
-
const param = { range, today, departDate, arriveDate, selectedNote, descList };
|
|
116
|
-
return Format.generateDateCell(param);
|
|
117
|
-
}
|
|
66
|
+
dateRange: {
|
|
67
|
+
type: Array,
|
|
68
|
+
required: true,
|
|
69
|
+
default: () => []
|
|
118
70
|
},
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
71
|
+
minibarCfg: {
|
|
72
|
+
type: Object,
|
|
73
|
+
default: () => ({
|
|
74
|
+
title: '选择日期',
|
|
75
|
+
'background-color': '#FFC900',
|
|
76
|
+
'text-color': '#3D3D3D'
|
|
77
|
+
})
|
|
123
78
|
},
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
!needDestroy && setTimeout(() => {
|
|
128
|
-
this.isShow = true;
|
|
129
|
-
this.scrollToDate();
|
|
130
|
-
}, hold);
|
|
79
|
+
showHeader: {
|
|
80
|
+
type: Boolean,
|
|
81
|
+
default: false
|
|
131
82
|
},
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
83
|
+
selectedNote: {
|
|
84
|
+
type: Array,
|
|
85
|
+
default: () => ['开始', '到达', '往返']
|
|
86
|
+
},
|
|
87
|
+
isRange: {
|
|
88
|
+
type: Boolean,
|
|
89
|
+
default: false
|
|
90
|
+
},
|
|
91
|
+
needDestroy: {
|
|
92
|
+
type: Boolean,
|
|
93
|
+
default: false
|
|
140
94
|
},
|
|
141
|
-
|
|
142
|
-
|
|
95
|
+
descList: {
|
|
96
|
+
type: Array,
|
|
97
|
+
default: () => []
|
|
98
|
+
},
|
|
99
|
+
selectedCellStyle: {
|
|
100
|
+
type: Object,
|
|
101
|
+
default: () => ({})
|
|
102
|
+
},
|
|
103
|
+
selectedTextStyle: {
|
|
104
|
+
type: Object,
|
|
105
|
+
default: () => ({})
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
data: () => ({
|
|
109
|
+
isShow: false,
|
|
110
|
+
reSelect: true,
|
|
111
|
+
today: Format.getToDay(),
|
|
112
|
+
departDate: '',
|
|
113
|
+
arriveDate: ''
|
|
114
|
+
}),
|
|
115
|
+
computed: {
|
|
116
|
+
calendarExtendStyle() {
|
|
117
|
+
return Utils.uiStyle.pageTransitionAnimationStyle(this.animationType)
|
|
118
|
+
},
|
|
119
|
+
monthsArray() {
|
|
120
|
+
const { dateRange: range, today, departDate, arriveDate, selectedNote, descList } = this
|
|
121
|
+
const param = { range, today, departDate, arriveDate, selectedNote, descList }
|
|
122
|
+
return Format.generateDateCell(param)
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
created() {
|
|
126
|
+
this.isIPhoneX = Utils.env.isIPhoneX()
|
|
127
|
+
this.showTitle = isWeb || this.showHeader
|
|
128
|
+
this.detectShow()
|
|
129
|
+
},
|
|
130
|
+
mounted() {
|
|
131
|
+
const { needDestroy } = this
|
|
132
|
+
const hold = isWeb ? 700 : 100
|
|
133
|
+
!needDestroy &&
|
|
134
|
+
setTimeout(() => {
|
|
135
|
+
this.isShow = true
|
|
136
|
+
this.scrollToDate()
|
|
137
|
+
}, hold)
|
|
138
|
+
},
|
|
139
|
+
watch: {
|
|
140
|
+
needDestroy(newVal, preVal) {
|
|
141
|
+
if (!newVal && newVal !== preVal) {
|
|
143
142
|
setTimeout(() => {
|
|
144
|
-
this.
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
143
|
+
this.isShow = true
|
|
144
|
+
}, 200)
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
methods: {
|
|
149
|
+
minibarLeftButtonClick() {
|
|
150
|
+
setTimeout(() => {
|
|
151
|
+
this.hide()
|
|
152
|
+
this.$emit('dofPageCalendarBackClicked', {})
|
|
153
|
+
}, 100)
|
|
154
|
+
},
|
|
155
|
+
onClickDate(datConfig) {
|
|
156
|
+
const self = this
|
|
157
|
+
if (datConfig.disabled || datConfig.isEmpty) return
|
|
151
158
|
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
159
|
+
if (self.reSelect) {
|
|
160
|
+
self.departDate = ''
|
|
161
|
+
self.arriveDate = ''
|
|
162
|
+
self.reSelect = false
|
|
163
|
+
}
|
|
157
164
|
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
} else {
|
|
162
|
-
self.departDate = datConfig.date;
|
|
163
|
-
}
|
|
164
|
-
if (self.departDate && self.arriveDate) {
|
|
165
|
-
self.dispatchDateChange([self.departDate, self.arriveDate]);
|
|
166
|
-
}
|
|
165
|
+
if (self.isRange) {
|
|
166
|
+
if (self.departDate && Date.parse(self.departDate) <= Date.parse(datConfig.date)) {
|
|
167
|
+
self.arriveDate = datConfig.date
|
|
167
168
|
} else {
|
|
168
|
-
self.departDate = datConfig.date
|
|
169
|
-
self.dispatchDateChange([self.departDate]);
|
|
169
|
+
self.departDate = datConfig.date
|
|
170
170
|
}
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
171
|
+
if (self.departDate && self.arriveDate) {
|
|
172
|
+
self.dispatchDateChange([self.departDate, self.arriveDate])
|
|
173
|
+
}
|
|
174
|
+
} else {
|
|
175
|
+
self.departDate = datConfig.date
|
|
176
|
+
self.dispatchDateChange([self.departDate])
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
scrollToDate() {
|
|
180
|
+
setTimeout(() => {
|
|
181
|
+
if (this.departDate) {
|
|
182
|
+
const el = this.$refs.departDate[0]
|
|
183
|
+
el &&
|
|
184
|
+
dom.getComponentRect &&
|
|
185
|
+
dom.getComponentRect(el, e => {
|
|
177
186
|
if (e && e.result) {
|
|
178
|
-
const { bottom } = e.size
|
|
179
|
-
const { env } = weex.config
|
|
187
|
+
const { bottom } = e.size
|
|
188
|
+
const { env } = weex.config
|
|
180
189
|
// 误差
|
|
181
|
-
const height = env.deviceHeight / env.deviceWidth * 750 - 50
|
|
190
|
+
const height = (env.deviceHeight / env.deviceWidth) * 750 - 50
|
|
182
191
|
if (bottom > height || bottom === 0) {
|
|
183
|
-
dom.scrollToElement(el, { offset: -146, animated: false })
|
|
192
|
+
dom.scrollToElement(el, { offset: -146, animated: false })
|
|
184
193
|
}
|
|
185
194
|
}
|
|
186
|
-
})
|
|
187
|
-
}
|
|
188
|
-
}, 10);
|
|
189
|
-
},
|
|
190
|
-
dispatchDateChange (dateArr) {
|
|
191
|
-
const duration = isWeb ? 400 : 600;
|
|
192
|
-
setTimeout(() => {
|
|
193
|
-
this.hide();
|
|
194
|
-
}, duration);
|
|
195
|
-
this.$emit('dofPageCalendarDateSelected', {
|
|
196
|
-
date: dateArr
|
|
197
|
-
});
|
|
198
|
-
},
|
|
199
|
-
detectShow () {
|
|
200
|
-
if (this.isRange && this.selectedDate.length >= 2) {
|
|
201
|
-
this.departDate = this.selectedDate[0];
|
|
202
|
-
this.arriveDate = this.selectedDate[1];
|
|
203
|
-
} else if (this.selectedDate.length >= 1) {
|
|
204
|
-
this.departDate = this.selectedDate[0];
|
|
205
|
-
this.arriveDate = '';
|
|
195
|
+
})
|
|
206
196
|
}
|
|
207
|
-
},
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
this.
|
|
221
|
-
this.
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
this.needDestroy && (this.isShow = false);
|
|
226
|
-
this.reSelect = false;
|
|
227
|
-
this._animate(false);
|
|
228
|
-
this.$emit('dofPageCalendarHide', {});
|
|
197
|
+
}, 10)
|
|
198
|
+
},
|
|
199
|
+
dispatchDateChange(dateArr) {
|
|
200
|
+
const duration = isWeb ? 400 : 600
|
|
201
|
+
setTimeout(() => {
|
|
202
|
+
this.hide()
|
|
203
|
+
}, duration)
|
|
204
|
+
this.$emit('dofPageCalendarDateSelected', {
|
|
205
|
+
date: dateArr
|
|
206
|
+
})
|
|
207
|
+
},
|
|
208
|
+
detectShow() {
|
|
209
|
+
if (this.isRange && this.selectedDate.length >= 2) {
|
|
210
|
+
this.departDate = this.selectedDate[0]
|
|
211
|
+
this.arriveDate = this.selectedDate[1]
|
|
212
|
+
} else if (this.selectedDate.length >= 1) {
|
|
213
|
+
this.departDate = this.selectedDate[0]
|
|
214
|
+
this.arriveDate = ''
|
|
229
215
|
}
|
|
216
|
+
},
|
|
217
|
+
_animate(status, callback = null) {
|
|
218
|
+
var ref = this.$refs.pageCalendar
|
|
219
|
+
if (this.animationType === 'push') {
|
|
220
|
+
Utils.animation.pageTransitionAnimation(ref, `translateX(${status ? -750 : 750}px)`, status, callback)
|
|
221
|
+
} else if (this.animationType === 'model') {
|
|
222
|
+
Utils.animation.pageTransitionAnimation(
|
|
223
|
+
ref,
|
|
224
|
+
`translateY(${status ? -Utils.env.getScreenHeight() : Utils.env.getScreenHeight()}px)`,
|
|
225
|
+
status,
|
|
226
|
+
callback
|
|
227
|
+
)
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
show() {
|
|
231
|
+
const { needDestroy } = this
|
|
232
|
+
needDestroy && (this.isShow = true)
|
|
233
|
+
this.reSelect = true
|
|
234
|
+
this.detectShow()
|
|
235
|
+
this._animate(true)
|
|
236
|
+
needDestroy && this.scrollToDate()
|
|
237
|
+
},
|
|
238
|
+
hide() {
|
|
239
|
+
this.needDestroy && (this.isShow = false)
|
|
240
|
+
this.reSelect = false
|
|
241
|
+
this._animate(false)
|
|
242
|
+
this.$emit('dofPageCalendarHide', {})
|
|
230
243
|
}
|
|
231
|
-
}
|
|
244
|
+
}
|
|
245
|
+
}
|
|
232
246
|
</script>
|
|
233
247
|
<style scoped>
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
248
|
+
.dof-page-calendar {
|
|
249
|
+
position: fixed;
|
|
250
|
+
width: 750px;
|
|
251
|
+
color: #1E2E37;
|
|
252
|
+
background-color: #ffffff;
|
|
253
|
+
}
|
|
240
254
|
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
255
|
+
.flex-item {
|
|
256
|
+
flex: 1;
|
|
257
|
+
text-align: center;
|
|
258
|
+
}
|
|
245
259
|
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
260
|
+
.calendar-weekday {
|
|
261
|
+
height: 60px;
|
|
262
|
+
background-color: #ffffff;
|
|
263
|
+
border-bottom-width: 1px;
|
|
264
|
+
border-top-width: 1px;
|
|
265
|
+
border-color: #e2e2e2;
|
|
266
|
+
flex-direction: row;
|
|
267
|
+
justify-content: space-around;
|
|
268
|
+
align-items: center;
|
|
269
|
+
}
|
|
256
270
|
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
271
|
+
.weekday-text {
|
|
272
|
+
color: #1E2E37;
|
|
273
|
+
flex: 1;
|
|
274
|
+
font-size: 24px;
|
|
275
|
+
text-align: center;
|
|
276
|
+
}
|
|
263
277
|
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
278
|
+
.calendar-list {
|
|
279
|
+
flex: 1;
|
|
280
|
+
}
|
|
267
281
|
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
282
|
+
.month-text {
|
|
283
|
+
font-size: 32px;
|
|
284
|
+
height: 60px;
|
|
285
|
+
line-height: 60px;
|
|
286
|
+
width: 750px;
|
|
287
|
+
text-align: center;
|
|
288
|
+
align-items: center;
|
|
289
|
+
background-color: #f2f3f4;
|
|
290
|
+
}
|
|
277
291
|
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
292
|
+
.calendar-row {
|
|
293
|
+
height: 140px;
|
|
294
|
+
flex-direction: row;
|
|
295
|
+
background-color: #ffffff;
|
|
296
|
+
border-bottom-width: 1px;
|
|
297
|
+
border-color: #f2f3f4;
|
|
298
|
+
align-items: center;
|
|
299
|
+
justify-content: space-between;
|
|
300
|
+
}
|
|
287
301
|
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
302
|
+
.row-item {
|
|
303
|
+
flex: 1;
|
|
304
|
+
height: 140px;
|
|
305
|
+
padding-top: 10px;
|
|
306
|
+
padding-bottom: 10px;
|
|
307
|
+
justify-content: center;
|
|
308
|
+
align-items: center;
|
|
309
|
+
}
|
|
296
310
|
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
311
|
+
.iphone-x {
|
|
312
|
+
height: 68px;
|
|
313
|
+
}
|
|
300
314
|
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
315
|
+
.calendar-note {
|
|
316
|
+
height: 36px;
|
|
317
|
+
line-height: 36px;
|
|
318
|
+
font-size: 24px;
|
|
319
|
+
color: #1E2E37;
|
|
320
|
+
text-align: center;
|
|
321
|
+
}
|
|
308
322
|
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
323
|
+
.calendar-day {
|
|
324
|
+
height: 48px;
|
|
325
|
+
line-height: 48px;
|
|
326
|
+
font-size: 36px;
|
|
327
|
+
color: #1E2E37;
|
|
328
|
+
text-align: center;
|
|
329
|
+
}
|
|
316
330
|
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
331
|
+
.calendar-ext {
|
|
332
|
+
height: 36px;
|
|
333
|
+
line-height: 36px;
|
|
334
|
+
color: #8E969B;
|
|
335
|
+
text-align: center;
|
|
336
|
+
font-size: 24px;
|
|
337
|
+
text-overflow: ellipsis;
|
|
338
|
+
}
|
|
325
339
|
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
340
|
+
.calendar-holiday {
|
|
341
|
+
color: #ff5000;
|
|
342
|
+
}
|
|
329
343
|
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
344
|
+
.calendar-rest {
|
|
345
|
+
color: #ff5000;
|
|
346
|
+
}
|
|
333
347
|
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
348
|
+
.item-row-selected {
|
|
349
|
+
color: #ffffff;
|
|
350
|
+
background-color: #ffc900;
|
|
351
|
+
text-align: center;
|
|
352
|
+
}
|
|
339
353
|
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
354
|
+
.item-text-selected {
|
|
355
|
+
color: #3d3d3d;
|
|
356
|
+
text-align: center;
|
|
357
|
+
}
|
|
344
358
|
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
359
|
+
.calendar-disabled {
|
|
360
|
+
color: #cccccc;
|
|
361
|
+
}
|
|
348
362
|
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
363
|
+
.cell-disabled {
|
|
364
|
+
background-color: #fbfbfb;
|
|
365
|
+
}
|
|
352
366
|
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
367
|
+
.calendar-day-include {
|
|
368
|
+
background-color: #fff7d6;
|
|
369
|
+
}
|
|
356
370
|
</style>
|