fusions-ui 1.2.4 → 1.2.7

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.
Files changed (176) hide show
  1. package/components/fu-avatar/fu-avatar.vue +4 -2
  2. package/components/fu-avatar/props.js +52 -15
  3. package/components/fu-avatar-group/fu-avatar-group.vue +3 -2
  4. package/components/fu-avatar-group/props.js +31 -9
  5. package/components/fu-badge/fu-badge.vue +8 -14
  6. package/components/fu-badge/props.js +56 -16
  7. package/components/fu-banner-arc/fu-banner-arc.vue +4 -5
  8. package/components/fu-banner-arc/props.js +15 -4
  9. package/components/fu-button/fu-button.vue +18 -20
  10. package/components/fu-button/props.js +108 -35
  11. package/components/fu-cell/fu-cell.vue +9 -8
  12. package/components/fu-cell-group/fu-cell-group.vue +2 -1
  13. package/components/fu-cell-group/props.js +7 -2
  14. package/components/fu-checkbox/fu-checkbox.vue +5 -4
  15. package/components/fu-checkbox/props.js +51 -14
  16. package/components/fu-code-input/fu-code-input.vue +10 -6
  17. package/components/fu-code-input/props.js +66 -17
  18. package/components/fu-code-verify/fu-code-verify.vue +9 -5
  19. package/components/fu-code-verify/props.js +64 -17
  20. package/components/fu-collapse/fu-collapse.vue +10 -3
  21. package/components/fu-collapse/props.js +9 -3
  22. package/components/fu-collapse-item/fu-collapse-item.vue +45 -31
  23. package/components/fu-collapse-item/props.js +49 -16
  24. package/components/fu-countdown/fu-countdown.vue +2 -1
  25. package/components/fu-countdown/props.js +15 -4
  26. package/components/fu-datetime-picker/fu-datetime-picker.vue +6 -5
  27. package/components/fu-datetime-picker/props.js +91 -25
  28. package/components/fu-form/fu-form.vue +2 -1
  29. package/components/fu-form/props.js +34 -6
  30. package/components/fu-form-item/fu-form-item.vue +26 -33
  31. package/components/fu-form-item/props.js +30 -8
  32. package/components/fu-grid/fu-grid.vue +16 -17
  33. package/components/fu-grid/props.js +20 -5
  34. package/components/fu-grid-item/fu-grid-item.vue +31 -35
  35. package/components/fu-grid-item/props.js +11 -3
  36. package/components/fu-icon/fu-icon.vue +110 -0
  37. package/components/fu-icon/fuicon.css +584 -0
  38. package/components/{fu-icons/icons.js → fu-icon/fuicon.js} +1031 -1031
  39. package/components/{fu-icons/fuicons.ttf → fu-icon/fuicon.ttf} +0 -0
  40. package/components/fu-icon/props.js +55 -0
  41. package/components/fu-image/fu-image.vue +15 -10
  42. package/components/fu-image/props.js +69 -18
  43. package/components/fu-index-anchor/fu-index-anchor.vue +6 -5
  44. package/components/fu-index-anchor/props.js +20 -6
  45. package/components/fu-index-item/fu-index-item.vue +4 -4
  46. package/components/fu-index-list/fu-index-list.vue +9 -9
  47. package/components/fu-index-list/props.js +19 -6
  48. package/components/fu-input/fu-input.vue +54 -68
  49. package/components/fu-input/props.js +145 -53
  50. package/components/fu-keyboard/fu-keyboard.vue +19 -9
  51. package/components/fu-keyboard/keyboard-car.vue +33 -22
  52. package/components/fu-keyboard/keyboard-number.vue +17 -9
  53. package/components/fu-keyboard/props.js +66 -17
  54. package/components/fu-line/fu-line.vue +17 -13
  55. package/components/fu-line/props.js +30 -5
  56. package/components/fu-link/fu-link.vue +14 -8
  57. package/components/fu-link/props.js +22 -7
  58. package/components/fu-loading/fu-loading.vue +32 -27
  59. package/components/fu-loading/props.js +28 -8
  60. package/components/fu-loading-more/fu-loading-more.vue +19 -23
  61. package/components/fu-loading-more/props.js +27 -13
  62. package/components/fu-modal/fu-modal.vue +11 -6
  63. package/components/fu-modal/props.js +61 -17
  64. package/components/{fu-nav-bar/fu-nav-bar.vue → fu-navbar/fu-navbar.vue} +37 -44
  65. package/components/fu-notice-bar/fu-notice-bar.vue +10 -8
  66. package/components/fu-notice-bar/notice-column.vue +187 -122
  67. package/components/fu-notice-bar/notice-row.vue +85 -28
  68. package/components/fu-notice-bar/props.js +83 -22
  69. package/components/fu-number-box/fu-number-box.vue +26 -28
  70. package/components/fu-number-box/props.js +37 -11
  71. package/components/fu-parse/fu-parse.vue +0 -1
  72. package/components/fu-picker/fu-picker.vue +22 -17
  73. package/components/fu-picker/props.js +70 -19
  74. package/components/fu-popup/fu-popup.vue +38 -43
  75. package/components/fu-popup/props.js +34 -9
  76. package/components/fu-progress/fu-progress.vue +3 -2
  77. package/components/fu-progress/props.js +36 -9
  78. package/components/fu-rate/fu-rate.vue +40 -32
  79. package/components/fu-rate/props.js +47 -13
  80. package/components/fu-read-more/fu-read-more.vue +19 -14
  81. package/components/fu-read-more/props.js +68 -46
  82. package/components/fu-ribbon/fu-ribbon.vue +8 -7
  83. package/components/fu-ribbon/props.js +15 -4
  84. package/components/fu-scroll-list/fu-scroll-list.vue +18 -34
  85. package/components/fu-scroll-list/props.js +19 -10
  86. package/components/fu-search/fu-search.vue +13 -18
  87. package/components/fu-search/props.js +69 -17
  88. package/components/fu-section/fu-section.vue +19 -22
  89. package/components/fu-section/props.js +30 -4
  90. package/components/fu-sign-board/fu-sign-board.vue +34 -17
  91. package/components/fu-sign-board/props.js +15 -5
  92. package/components/fu-skeleton/fu-skeleton.vue +8 -12
  93. package/components/fu-skeleton/props.js +15 -4
  94. package/components/fu-steps/fu-steps.vue +3 -2
  95. package/components/fu-steps/props.js +23 -7
  96. package/components/fu-steps-item/fu-steps-item.vue +3 -3
  97. package/components/fu-steps-item/props.js +15 -5
  98. package/components/fu-sticky/fu-sticky.vue +3 -3
  99. package/components/fu-sticky/props.js +21 -7
  100. package/components/fu-subsection/fu-subsection.vue +29 -22
  101. package/components/fu-subsection/props.js +40 -10
  102. package/components/fu-swipe-action-item/bindingx.js +1 -1
  103. package/components/fu-swipe-action-item/fu-swipe-action-item.vue +134 -123
  104. package/components/fu-swipe-action-item/mpwxs.js +1 -1
  105. package/components/fu-swipe-action-item/props.js +22 -6
  106. package/components/fu-swiper/fu-swiper.vue +29 -27
  107. package/components/fu-swiper/props.js +81 -25
  108. package/components/fu-switch/fu-switch.vue +20 -12
  109. package/components/fu-switch/props.js +48 -13
  110. package/components/fu-tabs/fu-tabs.vue +36 -33
  111. package/components/fu-tabs/props.js +46 -13
  112. package/components/fu-tag/fu-tag.vue +24 -21
  113. package/components/fu-tag/props.js +63 -17
  114. package/components/fu-text/fu-text.vue +72 -33
  115. package/components/fu-text/props.js +85 -27
  116. package/components/fu-text/value.js +6 -6
  117. package/components/fu-textarea/fu-textarea.vue +13 -17
  118. package/components/fu-textarea/props.js +103 -30
  119. package/components/fu-timeaxis/fu-timeaxis.vue +1 -1
  120. package/components/fu-timeaxis-item/fu-timeaxis-item.vue +8 -4
  121. package/components/fu-transition/fu-transition.vue +48 -49
  122. package/components/fu-transition/props.js +21 -0
  123. package/components/fu-upload/fu-upload.vue +3 -1
  124. package/components/fu-upload/props.js +67 -19
  125. package/components/fu-upload/upload-file.vue +31 -18
  126. package/components/fu-upload/upload-image.vue +37 -19
  127. package/components/fu-vtabs/fu-vtabs.vue +6 -4
  128. package/components/fu-vtabs/props.js +50 -15
  129. package/components/fu-waterfall/fu-waterfall.vue +11 -9
  130. package/components/fu-waterfall/props.js +37 -15
  131. package/index.js +17 -24
  132. package/index.scss +9 -7
  133. package/libs/config/config.js +16 -9
  134. package/libs/function/applyEven.js +9 -9
  135. package/libs/function/check.js +81 -89
  136. package/libs/function/{index.js → common.js} +5 -5
  137. package/libs/function/message.js +0 -27
  138. package/libs/mixin/mixin.js +26 -21
  139. package/libs/{utils/min.router.config.js → route/min.route.config.js} +7 -7
  140. package/libs/{utils/router.config.js → route/route.config.js} +10 -11
  141. package/libs/{css/main.scss → style/common.scss} +50 -87
  142. package/libs/style/style.h5.scss +8 -0
  143. package/libs/style/style.mp.scss +15 -0
  144. package/package.json +1 -1
  145. package/components/fu-calendar/calendar-item.vue +0 -214
  146. package/components/fu-calendar/calendar.js +0 -546
  147. package/components/fu-calendar/fu-calendar.vue +0 -536
  148. package/components/fu-calendar/i18n/en.json +0 -12
  149. package/components/fu-calendar/i18n/index.js +0 -8
  150. package/components/fu-calendar/i18n/zh-Hans.json +0 -12
  151. package/components/fu-calendar/i18n/zh-Hant.json +0 -12
  152. package/components/fu-calendar/util.js +0 -360
  153. package/components/fu-date-picker/calendar-item.vue +0 -177
  154. package/components/fu-date-picker/calendar.vue +0 -917
  155. package/components/fu-date-picker/fu-date-picker.vue +0 -1069
  156. package/components/fu-date-picker/i18n/en.json +0 -22
  157. package/components/fu-date-picker/i18n/index.js +0 -8
  158. package/components/fu-date-picker/i18n/zh-Hans.json +0 -22
  159. package/components/fu-date-picker/i18n/zh-Hant.json +0 -22
  160. package/components/fu-date-picker/props.js +0 -68
  161. package/components/fu-date-picker/time-picker.vue +0 -924
  162. package/components/fu-date-picker/util.js +0 -419
  163. package/components/fu-icons/fu-icons.vue +0 -102
  164. package/components/fu-icons/fuicons.css +0 -585
  165. package/components/fu-landscape/fu-landscape.vue +0 -167
  166. package/components/fu-landscape/props.js +0 -64
  167. package/components/fu-tabbar/fu-tabbar.vue +0 -333
  168. package/components/fu-tabbar/props.js +0 -78
  169. package/libs/css/style.h5.scss +0 -35
  170. package/libs/css/style.mp.scss +0 -50
  171. package/libs/utils/util.js +0 -58
  172. /package/components/{fu-nav-bar → fu-navbar}/props.js +0 -0
  173. /package/components/{fu-nav-bar → fu-navbar}/status-bar.vue +0 -0
  174. /package/{components/fu-datetime-picker → libs/function}/dayjs.js +0 -0
  175. /package/libs/{css → style}/color.scss +0 -0
  176. /package/libs/{css/component.scss → style/components.scss} +0 -0
@@ -1,536 +0,0 @@
1
- <template>
2
- <view class="fu-calendar">
3
- <view class="fu-calendar__mask" :class="{'fu-calendar--mask-show':aniMaskShow}" @click="clean" v-if="!insert && show"></view>
4
- <view class="fu-calendar__content" :class="{'fu-calendar--fixed': !insert, 'fu-calendar--ani-show': aniMaskShow}" v-if="insert || show">
5
- <view class="fu-calendar__header fu-calendar--fixed-top" v-if="!insert">
6
- <view class="fu-calendar__header-btn-box" @click="close">
7
- <text class="fu-calendar__header-text fu-calendar--fixed-width">{{ cancelText }}</text>
8
- </view>
9
- <view class="fu-calendar__header-btn-box" @click="confirm">
10
- <text class="fu-calendar__header-text fu-calendar--fixed-width">{{ okText }}</text>
11
- </view>
12
- </view>
13
- <view class="fu-calendar__header">
14
- <view class="fu-calendar__header-btn-box" @click.stop="pre">
15
- <view class="fu-calendar__header-btn fu-calendar--left"></view>
16
- </view>
17
- <picker mode="date" :value="date" fields="month" @change="bindDateChange">
18
- <text class="fu-calendar__header-text">{{ (nowDate.year||'') +' / '+( nowDate.month||'') }}</text>
19
- </picker>
20
- <view class="fu-calendar__header-btn-box" @click.stop="next">
21
- <view class="fu-calendar__header-btn fu-calendar--right"></view>
22
- </view>
23
- <text class="fu-calendar__backtoday" @click="backToday">{{ todayText }}</text>
24
- </view>
25
- <view class="fu-calendar__box">
26
- <view class="fu-calendar__box-bg" v-if="showMonth">
27
- <text class="fu-calendar__box-bg-text">{{ nowDate.month }}</text>
28
- </view>
29
- <view class="fu-calendar__weeks">
30
- <view class="fu-calendar__weeks-day">
31
- <text class="fu-calendar__weeks-day-text">{{ SUNText }}</text>
32
- </view>
33
- <view class="fu-calendar__weeks-day">
34
- <text class="fu-calendar__weeks-day-text">{{ monText }}</text>
35
- </view>
36
- <view class="fu-calendar__weeks-day">
37
- <text class="fu-calendar__weeks-day-text">{{ TUEText }}</text>
38
- </view>
39
- <view class="fu-calendar__weeks-day">
40
- <text class="fu-calendar__weeks-day-text">{{ WEDText }}</text>
41
- </view>
42
- <view class="fu-calendar__weeks-day">
43
- <text class="fu-calendar__weeks-day-text">{{ THUText }}</text>
44
- </view>
45
- <view class="fu-calendar__weeks-day">
46
- <text class="fu-calendar__weeks-day-text">{{ FRIText }}</text>
47
- </view>
48
- <view class="fu-calendar__weeks-day">
49
- <text class="fu-calendar__weeks-day-text">{{ SATText }}</text>
50
- </view>
51
- </view>
52
- <view class="fu-calendar__weeks" v-for="(item,weekIndex) in weeks" :key="weekIndex">
53
- <view class="fu-calendar__weeks-item" v-for="(weeks,weeksIndex) in item" :key="weeksIndex">
54
- <calendar-item class="fu-calendar-item--hook" :weeks="weeks" :calendar="calendar" :selected="selected" :lunar="lunar" @change="choiceDate"></calendar-item>
55
- </view>
56
- </view>
57
- </view>
58
- </view>
59
- </view>
60
- </template>
61
-
62
- <script>
63
- import Calendar from './util.js';
64
- import CalendarItem from './calendar-item.vue'
65
- import { initVueI18n } from '@dcloudio/uni-i18n'
66
- import i18nMessages from './i18n/index.js'
67
- const { t } = initVueI18n(i18nMessages)
68
- /**
69
- * Calendar 日历
70
- * @description 日历组件可以查看日期,选择任意范围内的日期,打点操作。常用场景如:酒店日期预订、火车机票选择购买日期、上下班打卡等
71
- * @property {String} date 自定义当前时间,默认为今天
72
- * @property {Boolean} lunar 显示农历
73
- * @property {String} startDate 日期选择范围-开始日期
74
- * @property {String} endDate 日期选择范围-结束日期
75
- * @property {Boolean} range 范围选择
76
- * @property {Boolean} insert = [true|false] 插入模式,默认为false
77
- * @value true 弹窗模式
78
- * @value false 插入模式
79
- * @property {Boolean} clearDate = [true|false] 弹窗模式是否清空上次选择内容
80
- * @property {Array} selected 打点,期待格式[{date: '2019-06-27', info: '签到'}]
81
- * @property {Boolean} showMonth 是否选择月份为背景
82
- * @event {Function} change 日期改变,`insert :ture` 时生效
83
- * @event {Function} confirm 确认选择`insert :false` 时生效
84
- * @event {Function} monthSwitch 切换月份时触发
85
- * @example <fu-calendar :insert="true":lunar="true" :start-date="'2019-3-2'":end-date="'2019-5-20'"@change="change" />
86
- */
87
- export default {
88
- components: {
89
- CalendarItem
90
- },
91
- emits:['close','confirm','change','monthSwitch'],
92
- props: {
93
- date: {
94
- type: String,
95
- default: ''
96
- },
97
- selected: {
98
- type: Array,
99
- default () {
100
- return []
101
- }
102
- },
103
- lunar: {
104
- type: Boolean,
105
- default: false
106
- },
107
- startDate: {
108
- type: String,
109
- default: ''
110
- },
111
- endDate: {
112
- type: String,
113
- default: ''
114
- },
115
- range: {
116
- type: Boolean,
117
- default: false
118
- },
119
- insert: {
120
- type: Boolean,
121
- default: true
122
- },
123
- showMonth: {
124
- type: Boolean,
125
- default: true
126
- },
127
- clearDate: {
128
- type: Boolean,
129
- default: true
130
- }
131
- },
132
- data() {
133
- return {
134
- show: false,
135
- weeks: [],
136
- calendar: {},
137
- nowDate: '',
138
- aniMaskShow: false
139
- }
140
- },
141
- computed:{
142
- okText() {
143
- return t("fu-calender.ok")
144
- },
145
- cancelText() {
146
- return t("fu-calender.cancel")
147
- },
148
- todayText() {
149
- return t("fu-calender.today")
150
- },
151
- monText() {
152
- return t("fu-calender.MON")
153
- },
154
- TUEText() {
155
- return t("fu-calender.TUE")
156
- },
157
- WEDText() {
158
- return t("fu-calender.WED")
159
- },
160
- THUText() {
161
- return t("fu-calender.THU")
162
- },
163
- FRIText() {
164
- return t("fu-calender.FRI")
165
- },
166
- SATText() {
167
- return t("fu-calender.SAT")
168
- },
169
- SUNText() {
170
- return t("fu-calender.SUN")
171
- },
172
- },
173
- watch: {
174
- date(newVal) {
175
- this.init(newVal)
176
- },
177
- startDate(val){
178
- this.cale.resetSatrtDate(val)
179
- this.cale.setDate(this.nowDate.fullDate)
180
- this.weeks = this.cale.weeks
181
- },
182
- endDate(val){
183
- this.cale.resetEndDate(val)
184
- this.cale.setDate(this.nowDate.fullDate)
185
- this.weeks = this.cale.weeks
186
- },
187
- selected(newVal) {
188
- this.cale.setSelectInfo(this.nowDate.fullDate, newVal)
189
- this.weeks = this.cale.weeks
190
- }
191
- },
192
- created() {
193
- this.cale = new Calendar({
194
- selected: this.selected,
195
- startDate: this.startDate,
196
- endDate: this.endDate,
197
- range: this.range,
198
- })
199
- this.init(this.date)
200
- },
201
- methods: {
202
- // 取消穿透
203
- clean() {},
204
- bindDateChange(e) {
205
- const value = e.detail.value + '-1';
206
- this.setDate(value)
207
- const { year,month } = this.cale.getDate(value)
208
- this.$emit('monthSwitch', {
209
- year,
210
- month
211
- })
212
- },
213
-
214
- /**
215
- * 初始化日期显示
216
- * @param {Object} date
217
- */
218
- init(date) {
219
- this.cale.setDate(date)
220
- this.weeks = this.cale.weeks;
221
- this.nowDate = this.calendar = this.cale.getInfo(date)
222
- },
223
-
224
- /**
225
- * 打开日历弹窗
226
- */
227
- open() {
228
- // 弹窗模式并且清理数据
229
- if (this.clearDate && !this.insert) {
230
- this.cale.cleanMultipleStatus()
231
- this.init(this.date)
232
- }
233
- this.show = true;
234
- this.$nextTick(() => {
235
- setTimeout(() => {
236
- this.aniMaskShow = true;
237
- }, 50)
238
- })
239
- },
240
-
241
- /**
242
- * 关闭日历弹窗
243
- */
244
- close() {
245
- this.aniMaskShow = false;
246
- this.$nextTick(() => {
247
- setTimeout(() => {
248
- this.show = false
249
- this.$emit('close')
250
- }, 300)
251
- })
252
- },
253
-
254
- /**
255
- * 确认按钮
256
- */
257
- confirm() {
258
- this.setEmit('confirm')
259
- this.close()
260
- },
261
-
262
- /**
263
- * 变化触发
264
- */
265
- change() {
266
- if (!this.insert) return
267
- this.setEmit('change')
268
- },
269
-
270
- /**
271
- * 选择月份触发
272
- */
273
- monthSwitch() {
274
- let { year, month } = this.nowDate;
275
- this.$emit('monthSwitch', {
276
- year,
277
- month: Number(month)
278
- })
279
- },
280
-
281
- /**
282
- * 派发事件
283
- * @param {Object} name
284
- */
285
- setEmit(name) {
286
- let { year, month, date, fullDate, lunar, extraInfo } = this.calendar;
287
- this.$emit(name, {
288
- range: this.cale.multipleStatus,
289
- year,
290
- month,
291
- date,
292
- fulldate: fullDate,
293
- lunar,
294
- extraInfo: extraInfo || {}
295
- })
296
- },
297
-
298
- /**
299
- * 选择天触发
300
- * @param {Object} weeks
301
- */
302
- choiceDate(weeks) {
303
- if (weeks.disable) return
304
- this.calendar = weeks;
305
- // 设置多选
306
- this.cale.setMultiple(this.calendar.fullDate)
307
- this.weeks = this.cale.weeks;
308
- this.change()
309
- },
310
-
311
- /**
312
- * 回到今天
313
- */
314
- backToday() {
315
- const nowYearMonth = `${this.nowDate.year}-${this.nowDate.month}`;
316
- const date = this.cale.getDate(new Date())
317
- const todayYearMonth = `${date.year}-${date.month}`;
318
- if(nowYearMonth !== todayYearMonth) {
319
- this.monthSwitch()
320
- }
321
- this.init(date.fullDate)
322
- this.change()
323
- },
324
-
325
- /**
326
- * 上个月
327
- */
328
- pre() {
329
- const preDate = this.cale.getDate(this.nowDate.fullDate, -1, 'month').fullDate;
330
- this.setDate(preDate)
331
- this.monthSwitch()
332
- },
333
-
334
- /**
335
- * 下个月
336
- */
337
- next() {
338
- const nextDate = this.cale.getDate(this.nowDate.fullDate, +1, 'month').fullDate;
339
- this.setDate(nextDate)
340
- this.monthSwitch()
341
- },
342
-
343
- /**
344
- * 设置日期
345
- * @param {Object} date
346
- */
347
- setDate(date) {
348
- this.cale.setDate(date)
349
- this.weeks = this.cale.weeks;
350
- this.nowDate = this.cale.getInfo(date)
351
- }
352
- }
353
- }
354
- </script>
355
-
356
- <style lang="scss" scoped>
357
- @import '../../libs/css/component.scss';
358
- $fu-bg-color-mask: rgba($color: #000000, $alpha: 0.4);
359
- $fu-border-color: #EDEDED;
360
- $fu-text-color: #333;
361
- $fu-bg-color-hover:#f1f1f1;
362
- $fu-font-size-base:14px;
363
- $fu-text-color-placeholder: #808080;
364
- $fu-color-subtitle: #555555;
365
- $fu-text-color-grey:#999;
366
-
367
- .fu-calendar {
368
- @include flex(column);
369
- }
370
-
371
- .fu-calendar__mask {
372
- position: fixed;
373
- bottom: 0;
374
- top: 0;
375
- left: 0;
376
- right: 0;
377
- background-color: $fu-bg-color-mask;
378
- transition-property: opacity;
379
- transition-duration: 0.3s;
380
- opacity: 0;
381
- /* #ifndef APP-NVUE */
382
- z-index: 99;
383
- /* #endif */
384
- }
385
-
386
- .fu-calendar--mask-show {
387
- opacity: 1
388
- }
389
-
390
- .fu-calendar--fixed {
391
- position: fixed;
392
- /* #ifdef APP-NVUE */
393
- bottom: 0;
394
- /* #endif */
395
- left: 0;
396
- right: 0;
397
- transition-property: transform;
398
- transition-duration: 0.3s;
399
- transform: translateY(460px);
400
- /* #ifndef APP-NVUE */
401
- bottom: calc(var(--window-bottom));
402
- z-index: 99;
403
- /* #endif */
404
- }
405
-
406
- .fu-calendar--ani-show {
407
- transform: translateY(0);
408
- }
409
-
410
- .fu-calendar__content {
411
- background-color: #fff;
412
- }
413
-
414
- .fu-calendar__header {
415
- position: relative;
416
- @include flex(row);
417
- justify-content: center;
418
- align-items: center;
419
- height: 50px;
420
- border-bottom-color: $fu-border-color;
421
- border-bottom-style: solid;
422
- border-bottom-width: 1px;
423
- }
424
-
425
- .fu-calendar--fixed-top {
426
- @include flex(row);
427
- justify-content: space-between;
428
- border-top-color: $fu-border-color;
429
- border-top-style: solid;
430
- border-top-width: 1px;
431
- }
432
-
433
- .fu-calendar--fixed-width {
434
- width: 50px;
435
- }
436
-
437
- .fu-calendar__backtoday {
438
- position: absolute;
439
- right: 0;
440
- top: 25rpx;
441
- padding: 0 5px;
442
- padding-left: 10px;
443
- height: 25px;
444
- line-height: 25px;
445
- font-size: 12px;
446
- border-top-left-radius: 25px;
447
- border-bottom-left-radius: 25px;
448
- color: $fu-text-color;
449
- background-color: $fu-bg-color-hover;
450
- }
451
-
452
- .fu-calendar__header-text {
453
- text-align: center;
454
- width: 100px;
455
- font-size: $fu-font-size-base;
456
- color: $fu-text-color;
457
- }
458
-
459
- .fu-calendar__header-btn-box {
460
- @include flex(row);
461
- align-items: center;
462
- justify-content: center;
463
- width: 50px;
464
- height: 50px;
465
- }
466
-
467
- .fu-calendar__header-btn {
468
- width: 10px;
469
- height: 10px;
470
- border-left-color: $fu-text-color-placeholder;
471
- border-left-style: solid;
472
- border-left-width: 2px;
473
- border-top-color: $fu-color-subtitle;
474
- border-top-style: solid;
475
- border-top-width: 2px;
476
- }
477
-
478
- .fu-calendar--left {
479
- transform: rotate(-45deg);
480
- }
481
-
482
- .fu-calendar--right {
483
- transform: rotate(135deg);
484
- }
485
-
486
-
487
- .fu-calendar__weeks {
488
- position: relative;
489
- @include flex(row);
490
- }
491
-
492
- .fu-calendar__weeks-item {
493
- flex: 1;
494
- }
495
-
496
- .fu-calendar__weeks-day {
497
- flex: 1;
498
- @include flex(column);
499
- justify-content: center;
500
- align-items: center;
501
- height: 45px;
502
- border-bottom-color: #F5F5F5;
503
- border-bottom-style: solid;
504
- border-bottom-width: 1px;
505
- }
506
-
507
- .fu-calendar__weeks-day-text {
508
- font-size: 14px;
509
- }
510
-
511
- .fu-calendar__box {
512
- position: relative;
513
- }
514
-
515
- .fu-calendar__box-bg {
516
- @include flex;
517
- justify-content: center;
518
- align-items: center;
519
- position: absolute;
520
- top: 0;
521
- left: 0;
522
- right: 0;
523
- bottom: 0;
524
- }
525
-
526
- .fu-calendar__box-bg-text {
527
- font-size: 200px;
528
- font-weight: bold;
529
- color: $fu-text-color-grey;
530
- opacity: 0.1;
531
- text-align: center;
532
- /* #ifndef APP-NVUE */
533
- line-height: 1;
534
- /* #endif */
535
- }
536
- </style>
@@ -1,12 +0,0 @@
1
- {
2
- "fu-calender.ok": "ok",
3
- "fu-calender.cancel": "cancel",
4
- "fu-calender.today": "today",
5
- "fu-calender.MON": "MON",
6
- "fu-calender.TUE": "TUE",
7
- "fu-calender.WED": "WED",
8
- "fu-calender.THU": "THU",
9
- "fu-calender.FRI": "FRI",
10
- "fu-calender.SAT": "SAT",
11
- "fu-calender.SUN": "SUN"
12
- }
@@ -1,8 +0,0 @@
1
- import en from './en.json'
2
- import zhHans from './zh-Hans.json'
3
- import zhHant from './zh-Hant.json'
4
- export default {
5
- en,
6
- 'zh-Hans': zhHans,
7
- 'zh-Hant': zhHant
8
- }
@@ -1,12 +0,0 @@
1
- {
2
- "fu-calender.ok": "确定",
3
- "fu-calender.cancel": "取消",
4
- "fu-calender.today": "今日",
5
- "fu-calender.SUN": "日",
6
- "fu-calender.MON": "一",
7
- "fu-calender.TUE": "二",
8
- "fu-calender.WED": "三",
9
- "fu-calender.THU": "四",
10
- "fu-calender.FRI": "五",
11
- "fu-calender.SAT": "六"
12
- }
@@ -1,12 +0,0 @@
1
- {
2
- "fu-calender.ok": "確定",
3
- "fu-calender.cancel": "取消",
4
- "fu-calender.today": "今日",
5
- "fu-calender.SUN": "日",
6
- "fu-calender.MON": "一",
7
- "fu-calender.TUE": "二",
8
- "fu-calender.WED": "三",
9
- "fu-calender.THU": "四",
10
- "fu-calender.FRI": "五",
11
- "fu-calender.SAT": "六"
12
- }