evui 3.4.206 → 3.4.208

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 (162) hide show
  1. package/README.md +18 -33
  2. package/dist/404.html +44 -0
  3. package/dist/favicon.ico +0 -0
  4. package/dist/index.js +22645 -0
  5. package/dist/index.umd.cjs +28 -0
  6. package/dist/style.css +1 -0
  7. package/package.json +46 -43
  8. package/dist/evui.common.js +0 -63678
  9. package/dist/evui.common.js.map +0 -1
  10. package/dist/evui.umd.js +0 -63688
  11. package/dist/evui.umd.js.map +0 -1
  12. package/dist/evui.umd.min.js +0 -2
  13. package/dist/evui.umd.min.js.map +0 -1
  14. package/dist/img/EVUI.b82ee81a.svg +0 -293
  15. package/src/assets/logo.png +0 -0
  16. package/src/common/emitter.js +0 -20
  17. package/src/common/utils.bignumber.js +0 -67
  18. package/src/common/utils.debounce.js +0 -223
  19. package/src/common/utils.js +0 -151
  20. package/src/common/utils.table.js +0 -78
  21. package/src/common/utils.throttle.js +0 -83
  22. package/src/common/utils.tree.js +0 -18
  23. package/src/components/button/Button.vue +0 -195
  24. package/src/components/button/index.js +0 -7
  25. package/src/components/buttonGroup/ButtonGroup.vue +0 -11
  26. package/src/components/buttonGroup/index.js +0 -7
  27. package/src/components/calendar/Calendar.vue +0 -725
  28. package/src/components/calendar/index.js +0 -7
  29. package/src/components/calendar/uses.js +0 -1410
  30. package/src/components/chart/Chart.vue +0 -363
  31. package/src/components/chart/ChartToolbar.vue +0 -52
  32. package/src/components/chart/chart.core.js +0 -1170
  33. package/src/components/chart/chartZoom.core.js +0 -540
  34. package/src/components/chart/element/element.bar.js +0 -672
  35. package/src/components/chart/element/element.bar.time.js +0 -166
  36. package/src/components/chart/element/element.heatmap.js +0 -743
  37. package/src/components/chart/element/element.line.js +0 -611
  38. package/src/components/chart/element/element.pie.js +0 -197
  39. package/src/components/chart/element/element.scatter.js +0 -320
  40. package/src/components/chart/element/element.tip.js +0 -717
  41. package/src/components/chart/helpers/helpers.canvas.js +0 -265
  42. package/src/components/chart/helpers/helpers.constant.js +0 -235
  43. package/src/components/chart/helpers/helpers.util.js +0 -400
  44. package/src/components/chart/index.js +0 -9
  45. package/src/components/chart/model/index.js +0 -50
  46. package/src/components/chart/model/model.series.js +0 -125
  47. package/src/components/chart/model/model.store.js +0 -1427
  48. package/src/components/chart/plugins/plugins.interaction.js +0 -1655
  49. package/src/components/chart/plugins/plugins.legend.gradient.js +0 -606
  50. package/src/components/chart/plugins/plugins.legend.js +0 -1543
  51. package/src/components/chart/plugins/plugins.pie.js +0 -254
  52. package/src/components/chart/plugins/plugins.scrollbar.js +0 -732
  53. package/src/components/chart/plugins/plugins.title.js +0 -61
  54. package/src/components/chart/plugins/plugins.tooltip.js +0 -1041
  55. package/src/components/chart/scale/scale.js +0 -951
  56. package/src/components/chart/scale/scale.linear.js +0 -268
  57. package/src/components/chart/scale/scale.logarithmic.js +0 -135
  58. package/src/components/chart/scale/scale.step.js +0 -430
  59. package/src/components/chart/scale/scale.time.category.js +0 -338
  60. package/src/components/chart/scale/scale.time.js +0 -49
  61. package/src/components/chart/style/chart.scss +0 -405
  62. package/src/components/chart/uses.js +0 -721
  63. package/src/components/chartBrush/ChartBrush.vue +0 -323
  64. package/src/components/chartBrush/chartBrush.core.js +0 -691
  65. package/src/components/chartBrush/index.js +0 -9
  66. package/src/components/chartBrush/uses.js +0 -23
  67. package/src/components/chartGroup/ChartGroup.vue +0 -144
  68. package/src/components/chartGroup/index.js +0 -9
  69. package/src/components/chartGroup/style/chartGroup.scss +0 -5
  70. package/src/components/chartGroup/uses.js +0 -53
  71. package/src/components/checkbox/Checkbox.vue +0 -229
  72. package/src/components/checkbox/index.js +0 -7
  73. package/src/components/checkboxGroup/CheckboxGroup.vue +0 -44
  74. package/src/components/checkboxGroup/index.js +0 -7
  75. package/src/components/contextMenu/ContextMenu.vue +0 -95
  76. package/src/components/contextMenu/MenuList.vue +0 -182
  77. package/src/components/contextMenu/index.js +0 -7
  78. package/src/components/contextMenu/uses.js +0 -223
  79. package/src/components/datePicker/DatePicker.vue +0 -504
  80. package/src/components/datePicker/index.js +0 -7
  81. package/src/components/datePicker/uses.js +0 -460
  82. package/src/components/grid/Grid.vue +0 -1535
  83. package/src/components/grid/GridColumnSetting.vue +0 -358
  84. package/src/components/grid/GridFilterSetting.vue +0 -323
  85. package/src/components/grid/GridPagination.vue +0 -75
  86. package/src/components/grid/GridSummary.vue +0 -314
  87. package/src/components/grid/GridToolbar.vue +0 -35
  88. package/src/components/grid/icon/icon-option-button.vue +0 -17
  89. package/src/components/grid/icon/icon-sort-button.vue +0 -67
  90. package/src/components/grid/index.js +0 -11
  91. package/src/components/grid/style/grid.scss +0 -417
  92. package/src/components/grid/uses.js +0 -1629
  93. package/src/components/icon/Icon.vue +0 -53
  94. package/src/components/icon/index.js +0 -8
  95. package/src/components/inputNumber/InputNumber.vue +0 -212
  96. package/src/components/inputNumber/index.js +0 -7
  97. package/src/components/inputNumber/uses.js +0 -217
  98. package/src/components/loading/Loading.vue +0 -125
  99. package/src/components/loading/index.js +0 -7
  100. package/src/components/menu/Menu.vue +0 -79
  101. package/src/components/menu/MenuItem.vue +0 -201
  102. package/src/components/menu/index.js +0 -7
  103. package/src/components/message/Message.vue +0 -229
  104. package/src/components/message/index.js +0 -34
  105. package/src/components/messageBox/MessageBox.vue +0 -358
  106. package/src/components/messageBox/index.js +0 -22
  107. package/src/components/notification/Notification.vue +0 -316
  108. package/src/components/notification/index.js +0 -49
  109. package/src/components/pagination/Pagination.vue +0 -317
  110. package/src/components/pagination/index.js +0 -7
  111. package/src/components/pagination/pageButton.vue +0 -31
  112. package/src/components/progress/Progress.vue +0 -139
  113. package/src/components/progress/index.js +0 -7
  114. package/src/components/radio/Radio.vue +0 -159
  115. package/src/components/radio/index.js +0 -7
  116. package/src/components/radioGroup/RadioGroup.vue +0 -41
  117. package/src/components/radioGroup/index.js +0 -7
  118. package/src/components/scheduler/Scheduler.vue +0 -149
  119. package/src/components/scheduler/index.js +0 -7
  120. package/src/components/scheduler/uses.js +0 -183
  121. package/src/components/select/Select.vue +0 -556
  122. package/src/components/select/index.js +0 -7
  123. package/src/components/select/uses.js +0 -379
  124. package/src/components/slider/Slider.vue +0 -505
  125. package/src/components/slider/index.js +0 -7
  126. package/src/components/slider/uses.js +0 -391
  127. package/src/components/tabPanel/TabPanel.vue +0 -74
  128. package/src/components/tabPanel/index.js +0 -7
  129. package/src/components/tabs/Tabs.vue +0 -517
  130. package/src/components/tabs/index.js +0 -7
  131. package/src/components/textField/TextField.vue +0 -399
  132. package/src/components/textField/index.js +0 -7
  133. package/src/components/timePicker/TimePicker.vue +0 -364
  134. package/src/components/timePicker/index.js +0 -7
  135. package/src/components/toggle/Toggle.vue +0 -115
  136. package/src/components/toggle/index.js +0 -7
  137. package/src/components/tree/Tree.vue +0 -338
  138. package/src/components/tree/TreeNode.vue +0 -293
  139. package/src/components/tree/index.js +0 -7
  140. package/src/components/treeGrid/TreeGrid.vue +0 -1074
  141. package/src/components/treeGrid/TreeGridNode.vue +0 -349
  142. package/src/components/treeGrid/TreeGridToolbar.vue +0 -35
  143. package/src/components/treeGrid/icon/icon-tree.png +0 -0
  144. package/src/components/treeGrid/index.js +0 -9
  145. package/src/components/treeGrid/style/treeGrid.scss +0 -277
  146. package/src/components/treeGrid/uses.js +0 -1178
  147. package/src/components/window/Window.vue +0 -329
  148. package/src/components/window/index.js +0 -7
  149. package/src/components/window/uses.js +0 -908
  150. package/src/directives/clickoutside.js +0 -90
  151. package/src/main.js +0 -120
  152. package/src/style/components/input.scss +0 -108
  153. package/src/style/functions.scss +0 -3
  154. package/src/style/index.scss +0 -6
  155. package/src/style/lib/fonts/EVUI.eot +0 -0
  156. package/src/style/lib/fonts/EVUI.svg +0 -293
  157. package/src/style/lib/fonts/EVUI.ttf +0 -0
  158. package/src/style/lib/fonts/EVUI.woff +0 -0
  159. package/src/style/lib/icon.css +0 -888
  160. package/src/style/mixins.scss +0 -94
  161. package/src/style/themes.scss +0 -69
  162. package/src/style/variables.scss +0 -22
@@ -1,725 +0,0 @@
1
- <template>
2
- <div class="ev-calendar-wrapper">
3
- <template
4
- v-for="calendarType in calendarList"
5
- :key="calendarType"
6
- >
7
- <div class="ev-calendar-date-area">
8
- <div class="ev-calendar-header">
9
- <div
10
- class="move-month-arrow"
11
- @click="clickPrevNextBtn(calendarType, 'prev')"
12
- >
13
- <i class="ev-icon-s-arrow-left move-month-arrow-icon" />
14
- </div>
15
- <div class="ev-calendar-year-month-wrapper">
16
- <span
17
- v-if="selectedListType[calendarType] === 'year'"
18
- class="ev-calendar-year-range"
19
- >
20
- {{ calendarYearRangeInfo[calendarType].start + ' - '
21
- + calendarYearRangeInfo[calendarType].end }}
22
- </span>
23
- <template v-else>
24
- <span
25
- class="ev-calendar-year"
26
- @click="clickYearMonthBtn(calendarType, 'year')"
27
- >
28
- {{ calendarPageInfo[calendarType].year }}
29
- </span>
30
- <span
31
- v-if="selectedListType[calendarType] === 'date'"
32
- class="ev-calendar-month"
33
- @click="clickYearMonthBtn(calendarType, 'month')"
34
- >
35
- {{ calendarMonth[calendarType] }}
36
- </span>
37
- </template>
38
- </div>
39
- <div
40
- class="move-month-arrow"
41
- @click="clickPrevNextBtn(calendarType, 'next')"
42
- >
43
- <i class="ev-icon-s-arrow-right move-month-arrow-icon" />
44
- </div>
45
- </div>
46
- <div class="ev-calendar-body">
47
- <table
48
- v-if="selectedListType[calendarType] === 'date'"
49
- :key="`${calendarType}_calendar_table`"
50
- class="ev-calendar-table"
51
- >
52
- <thead>
53
- <tr>
54
- <th
55
- v-for="dayOfTheWeek in dayOfTheWeekList"
56
- :key="dayOfTheWeek"
57
- >
58
- {{ dayOfTheWeek }}
59
- </th>
60
- </tr>
61
- </thead>
62
- <tbody
63
- @wheel.prevent="wheelMonth(calendarType, $event)"
64
- >
65
- <tr
66
- v-for="weekInfo in calendarTableInfo[calendarType]"
67
- :key="weekInfo"
68
- >
69
- <td
70
- v-for="dateInfo in weekInfo"
71
- :key="dateInfo"
72
- :class="[
73
- 'ev-calendar-date-td',
74
- { [dateInfo.monthType]: !!dateInfo.monthType },
75
- { today: dateInfo.isToday },
76
- { selected: dateInfo.isSelected },
77
- ]"
78
- @click="clickDate(calendarType, dateInfo)"
79
- @[`${calendarEventName}`]="onMousemoveDate(calendarType, $event)"
80
- >
81
- <div>
82
- <span>
83
- {{ dateInfo.date }}
84
- </span>
85
- </div>
86
- </td>
87
- </tr>
88
- </tbody>
89
- </table>
90
- <table
91
- v-else
92
- :class="[
93
- 'ev-calendar-selector-table',
94
- `ev-calendar-selector-table--${selectedListType[calendarType]}`,
95
- ]"
96
- >
97
- <tbody
98
- @wheel.prevent="wheelMonth(calendarType, $event)"
99
- >
100
- <tr
101
- v-for="rowInfo in (
102
- selectedListType[calendarType] === 'month'
103
- ? calendarMonthTableInfo[calendarType]
104
- : calendarYearTableInfo[calendarType]
105
- )"
106
- :key="rowInfo"
107
- >
108
- <td
109
- v-for="colInfo in rowInfo"
110
- :key="colInfo.value"
111
- @click="clickYearMonth(calendarType, colInfo)"
112
- >
113
- <div
114
- :class="[
115
- 'ev-calendar-selector',
116
- { selected: colInfo.isSelected },
117
- { today: colInfo.today },
118
- { disabled: colInfo.disabled }
119
- ]"
120
- >
121
- {{ colInfo.label }}
122
- </div>
123
- </td>
124
- </tr>
125
- </tbody>
126
- </table>
127
- <div
128
- v-if="selectedListType[calendarType] !== 'date'"
129
- class="ev-calendar-selector-btn-wrapper"
130
- >
131
- <ev-button
132
- @click="clickYearMonthBtn(calendarType, 'date')"
133
- >
134
- Done
135
- </ev-button>
136
- </div>
137
- </div>
138
- </div>
139
-
140
- <div
141
- v-if="['dateTime', 'dateTimeRange'].includes(mode)"
142
- class="ev-calendar-time-area"
143
- >
144
- <div
145
- v-if="selectedListType[calendarType] !== 'date'"
146
- class="ev-calendar-time-area-disabled"
147
- />
148
- <div class="ev-calendar-time-side">
149
- <div
150
- v-for="hmsType in ['HOUR', 'MIN', 'SEC']"
151
- :key="`${hmsType}_label`"
152
- class="ev-calendar-time-side--label"
153
- >
154
- {{ hmsType }}
155
- </div>
156
- </div>
157
- <div class="ev-calendar-time-center">
158
- <template
159
- v-for="timeType in ['hour', 'min', 'sec']"
160
- :key="`${timeType}_table`"
161
- >
162
- <table class="ev-calendar-time-table">
163
- <tbody
164
- @wheel.prevent="wheelTime(calendarType, timeType, $event)"
165
- >
166
- <tr
167
- v-for="i in 3"
168
- :key="`${timeType}_${i}_tr`"
169
- >
170
- <td
171
- v-for="j in 4"
172
- :key="`${timeType}_${i}_${j}_td`"
173
- :class="[
174
- 'ev-calendar-time-td',
175
- { selected: getTimeInfo(timeType, i, j, calendarType).isSelected },
176
- { disabled: preventTimeEventType[calendarType][timeType]
177
- || getTimeInfo(timeType, i, j, calendarType).isDisabled }
178
- ]"
179
- @click="clickTime(calendarType, timeType, i, j)"
180
- >
181
- <div> {{ getTimeInfo(timeType, i, j, calendarType).num }} </div>
182
- </td>
183
- </tr>
184
- </tbody>
185
- </table>
186
- </template>
187
- </div>
188
- <div class="ev-calendar-time-side">
189
- <template
190
- v-for="hmsType in ['hour', 'min', 'sec']"
191
- :key="`${hmsType}_btn_area`"
192
- >
193
- <div
194
- v-for="arrowType in ['up', 'down']"
195
- :key="`${hmsType}_${arrowType}_btn`"
196
- :class="[
197
- 'ev-calendar-time-side--btn',
198
- `arrow-${hmsType}`,
199
- { disabled: preventTimeEventType[calendarType][hmsType] }
200
- ]"
201
- @click="clickHmsBtn(calendarType, hmsType, arrowType)"
202
- >
203
- <i :class="`ev-icon-arrow-${arrowType}`" />
204
- </div>
205
- </template>
206
- </div>
207
- </div>
208
- </template>
209
- </div>
210
- </template>
211
-
212
- <script>
213
- import { useModel, useCalendarDate, useEvent } from './uses';
214
-
215
- export default {
216
- name: 'EvCalendar',
217
- props: {
218
- modelValue: {
219
- type: [String, Array],
220
- default: '',
221
- validator: (value) => {
222
- const dateReg = new RegExp(/[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])/);
223
- const dateTimeReg = new RegExp(/[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1]) (2[0-3]|[01][0-9]):[0-5][0-9]:[0-5][0-9]/);
224
- if (Array.isArray(value)) {
225
- return value.every(v => !!(!v
226
- || (v.length === 10 && dateReg.exec(v)))
227
- || (v.length === 19 && dateTimeReg.exec(v)));
228
- }
229
- return !!(!value
230
- || (value.length === 10 && dateReg.exec(value))
231
- || (value.length === 19 && dateTimeReg.exec(value)));
232
- },
233
- },
234
- mode: {
235
- type: String,
236
- default: 'date',
237
- validator: value => ['date', 'dateTime', 'dateMulti', 'dateRange', 'dateTimeRange']
238
- .indexOf(value) !== -1,
239
- },
240
- monthNotation: {
241
- type: String,
242
- default: 'fullName',
243
- validator: value => ['fullName', 'abbrName', 'numberName', 'korName']
244
- .indexOf(value) !== -1,
245
- },
246
- dayOfTheWeekNotation: {
247
- type: String,
248
- default: 'abbrUpperName',
249
- validator: value => ['abbrUpperName', 'abbrLowerName', 'abbrPascalName', 'abbrKorName']
250
- .indexOf(value) !== -1,
251
- },
252
- options: {
253
- type: Object,
254
- default: () => ({
255
- multiType: 'date',
256
- limit: 1,
257
- }),
258
- validator: ({ multiType, multiDayLimit, disabledDate, timeFormat }) => {
259
- const timeReg = new RegExp(/(HH|2[0-3]|[01][0-9]):(mm|[0-5][0-9]):(ss|[0-5][0-9])/);
260
- return (multiType ? ['weekday', 'week', 'date'].indexOf(multiType) !== -1 : true)
261
- && (multiDayLimit ? typeof multiDayLimit === 'number' && multiDayLimit > 0 : true)
262
- && (disabledDate ? (typeof disabledDate === 'function' || Array.isArray(disabledDate)) : true)
263
- && Array.isArray(timeFormat)
264
- ? timeFormat.every(v => !!(!v || timeReg.exec(v)))
265
- : !!(!timeFormat || (timeReg.exec(timeFormat)));
266
- },
267
- },
268
- },
269
- emits: {
270
- 'update:modelValue': [Array, String],
271
- },
272
- setup(props) {
273
- const {
274
- calendarList,
275
- selectedValue,
276
- calendarPageInfo,
277
- calendarMonth,
278
- dayOfTheWeekList,
279
- calendarYearRangeInfo,
280
- selectedListType,
281
- } = useModel();
282
-
283
- const {
284
- calendarTableInfo,
285
- calendarMonthTableInfo,
286
- calendarYearTableInfo,
287
- calendarTimeTableInfo,
288
- setCalendarDate,
289
- setCalendarMonth,
290
- setCalendarYear,
291
- setHmsTime,
292
- getTimeInfo,
293
- } = useCalendarDate({
294
- selectedValue,
295
- calendarPageInfo,
296
- calendarYearRangeInfo,
297
- });
298
-
299
- const {
300
- clickPrevNextBtn,
301
- clickYearMonthBtn,
302
- clickDate,
303
- clickYearMonth,
304
- clickHmsBtn,
305
- clickTime,
306
- wheelMonth,
307
- wheelTime,
308
- calendarEventName,
309
- onMousemoveDate,
310
- preventTimeEventType,
311
- } = useEvent({
312
- selectedValue,
313
- calendarPageInfo,
314
- calendarTimeTableInfo,
315
- selectedListType,
316
- setCalendarDate,
317
- setCalendarMonth,
318
- setCalendarYear,
319
- setHmsTime,
320
- });
321
-
322
- setCalendarDate('main');
323
- if (['dateRange', 'dateTimeRange'].includes(props.mode)) {
324
- setCalendarDate('expanded');
325
- }
326
-
327
- if (['dateTime', 'dateTimeRange'].includes(props.mode)) {
328
- setHmsTime();
329
- }
330
-
331
- return {
332
- calendarList,
333
- selectedValue,
334
- calendarPageInfo,
335
- calendarMonth,
336
- dayOfTheWeekList,
337
- calendarYearRangeInfo,
338
- selectedListType,
339
-
340
- calendarTableInfo,
341
- calendarMonthTableInfo,
342
- calendarYearTableInfo,
343
- calendarTimeTableInfo,
344
- getTimeInfo,
345
-
346
- clickPrevNextBtn,
347
- clickYearMonthBtn,
348
- clickDate,
349
- clickYearMonth,
350
- clickHmsBtn,
351
- clickTime,
352
- wheelMonth,
353
- wheelTime,
354
- calendarEventName,
355
- onMousemoveDate,
356
- preventTimeEventType,
357
- };
358
- },
359
- };
360
- </script>
361
-
362
- <style lang="scss">
363
- $ev-calendar-selector-btn-height: 40px;
364
- $ev-calendar-selector-btn-margin: 10px;
365
- $calendar-active-color: #409EFF;
366
-
367
- @import '../../style/index.scss';
368
-
369
- .ev-calendar-wrapper {
370
- display: inline-flex;
371
- height: 100%;
372
- box-sizing: border-box;
373
- flex-direction: row;
374
- }
375
-
376
- .ev-calendar-date-area {
377
- &:not(:first-child) {
378
- border-left: 1px solid;
379
- }
380
- }
381
-
382
- .ev-calendar-header {
383
- display: flex;
384
- height: 43px;
385
- padding: 12px 15px 10px;
386
-
387
- .move-month-arrow {
388
- width: 20px;
389
- height: 24px;
390
- text-align: center;
391
- cursor: pointer;
392
- line-height: 24px;
393
- border-radius: 5px;
394
-
395
- &-icon {
396
- color: #606266;
397
- text-align: center;
398
- }
399
-
400
- &:not(.disabled):hover {
401
- i {
402
- color: $calendar-active-color;
403
- }
404
- }
405
-
406
- &.disabled {
407
- cursor: not-allowed;
408
-
409
- i {
410
- color: #C0C4CC;
411
- }
412
- }
413
- }
414
-
415
- .ev-calendar-year-month-wrapper {
416
- flex: 3;
417
- text-align: center;
418
-
419
- span {
420
- display: inline-block;
421
- text-align: center;
422
- line-height: 24px;
423
- }
424
- }
425
- }
426
-
427
- .ev-calendar-year-range {
428
- width: auto;
429
- }
430
-
431
- .ev-calendar-year,
432
- .ev-calendar-month {
433
- width: 70px;
434
- cursor: pointer;
435
-
436
- &:hover {
437
- color: $calendar-active-color;
438
- }
439
- }
440
-
441
- .ev-calendar-body {
442
- padding: 8px 8px;
443
- flex: 1;
444
- }
445
-
446
- .ev-calendar-table {
447
- width: 280px;
448
- table-layout: fixed;
449
- font-size: 12px;
450
- border-collapse: collapse;
451
- border-spacing: 0;
452
- text-align: center;
453
- user-select: none;
454
-
455
- th {
456
- height: 30px;
457
- color: #606266;
458
- font-weight: 400;
459
- border-bottom: 1px solid #EBEEF5;
460
- }
461
- td {
462
- height: 40px;
463
- color: #606266;
464
- }
465
- }
466
-
467
- .ev-calendar-selector-table {
468
- width: 280px;
469
- height: calc(270px - #{$ev-calendar-selector-btn-height} - #{$ev-calendar-selector-btn-margin});
470
-
471
- &--year {
472
- tr {
473
- height: 40px;
474
- line-height: 40px;
475
- }
476
- }
477
-
478
- &--month {
479
- tr {
480
- height: 50px;
481
- line-height: 50px;
482
- }
483
- }
484
- }
485
-
486
- .ev-calendar-selector {
487
- width: 60px;
488
- height: 30px;
489
- line-height: 30px;
490
- margin: 0 auto;
491
- font-size: 14px;
492
- color: #7F7F7F;
493
- text-align: center;
494
- opacity: 1;
495
- cursor: pointer;
496
-
497
- &:not(.selected):not(.today):not(.disabled):hover {
498
- transition: color $animate-base;
499
- color: $calendar-active-color;
500
- opacity: 0.7;
501
- }
502
-
503
- &.today {
504
- color: $calendar-active-color;
505
- }
506
-
507
- &.selected {
508
- border-radius: 5px;
509
- background-color: $calendar-active-color;
510
- color: #FFFFFF;
511
- }
512
-
513
- &.disabled {
514
- color: #C0C4CC;
515
- cursor: not-allowed;
516
- }
517
- }
518
-
519
- .ev-calendar-selector-btn-wrapper {
520
- height: $ev-calendar-selector-btn-height;
521
- margin-top: $ev-calendar-selector-btn-margin;
522
-
523
- .ev-button {
524
- width: 100%;
525
- height: 35px;
526
- line-height: 35px;
527
- border: none;
528
- background-color: #EBEBEB;
529
- color: $calendar-active-color;
530
- }
531
- }
532
-
533
- .ev-calendar-date-td {
534
- color: #606266;
535
-
536
- & div {
537
- height: 30px;
538
- line-height: 30px;
539
- padding: 3px 0;
540
- margin: 5px auto;
541
- }
542
-
543
- &.prev,
544
- &.next {
545
- color: #C0C4CC;
546
- }
547
-
548
- &.today {
549
- font-weight: bold;
550
- color: $calendar-active-color;
551
- }
552
-
553
- & span {
554
- display: block;
555
- width: 24px;
556
- height: 24px;
557
- line-height: 24px;
558
- margin: auto;
559
- border-radius: 50%;
560
- text-align: center;
561
- }
562
-
563
- &:not(.selected):not(.disabled):hover {
564
- cursor: pointer;
565
- color: $calendar-active-color;
566
- }
567
-
568
- &.selected span {
569
- color: #FFFFFF;
570
- background-color: $calendar-active-color;
571
- }
572
-
573
- &.selected.start-date > div {
574
- width: 35px;
575
- margin: 5px 0 5px auto;
576
- padding-right: 5px;
577
- border-top-left-radius: 30px;
578
- border-bottom-left-radius: 30px;
579
- }
580
- &.selected.end-date > div {
581
- width: 35px;
582
- margin: 5px auto 5px 0;
583
- padding-left: 5px;
584
- border-top-right-radius: 30px;
585
- border-bottom-right-radius: 30px;
586
- }
587
- &.selected.start-end-date > div {
588
- width: 30px;
589
- margin: 5px auto;
590
- border-radius: 30px;
591
- }
592
-
593
- &.disabled {
594
- background-color: #EEF0F3;
595
- opacity: 1;
596
- color: #C0C4CC;
597
-
598
- &:hover {
599
- cursor: not-allowed;
600
- }
601
- &.selected:hover {
602
- cursor: pointer !important;
603
- }
604
- }
605
-
606
- &.in-range:not(.next):not(.prev) div {
607
- background-color: #F2F6FC;
608
- }
609
- }
610
-
611
- .ev-calendar-time {
612
- &-area {
613
- display: flex;
614
- position: relative;
615
- width: 195px;
616
- flex-direction: row;
617
- border-left: 1px solid #EBEEF5;
618
- color: #606266;
619
- box-sizing: content-box;
620
-
621
- &-disabled {
622
- position: absolute;
623
- top: 0;
624
- left: 0;
625
- width: 100%;
626
- height: 100%;
627
- background-color: #FFFFFF;
628
- opacity: 0.6;
629
- }
630
- }
631
- }
632
-
633
- .ev-calendar-time-td {
634
- & div {
635
- width: 24px;
636
- height: 24px;
637
- margin: 0 auto;
638
- line-height: 24px;
639
- border-radius: 50%;
640
- text-align: center;
641
- }
642
- &:not(.selected):not(.disabled) {
643
- &:hover {
644
- cursor: pointer;
645
- div {
646
- color: $calendar-active-color;
647
- }
648
- }
649
- }
650
- &.selected div {
651
- color: #FFFFFF;
652
- background-color: $calendar-active-color;
653
- }
654
- &.disabled {
655
- background-color: #EEF0F3;
656
- opacity: 1;
657
- color: #C0C4CC;
658
-
659
- &:hover {
660
- cursor: not-allowed;
661
- }
662
- &.selected:hover {
663
- cursor: pointer !important;
664
- }
665
- }
666
- }
667
-
668
- .ev-calendar-time-side {
669
- font-size: 10px;
670
- text-align: center;
671
- background-color: #E5E5E5;
672
-
673
- &--label {
674
- width: 33px;
675
- height: 110px;
676
- line-height: 110px;
677
- }
678
-
679
- &--btn {
680
- width: 30px;
681
- height: 55px;
682
- line-height: 55px;
683
-
684
- &.disabled {
685
- color: #C0C4CC;
686
- cursor: not-allowed;
687
-
688
- &:hover {
689
- color: #C0C4CC;
690
- }
691
- }
692
-
693
- &:not(.disabled):hover {
694
- color: $calendar-active-color;
695
- cursor: pointer;
696
- }
697
- }
698
-
699
- & div:not(:last-child) {
700
- border-bottom: 1px solid #EBEEF5;
701
- }
702
- }
703
- .ev-calendar-time-center {
704
- width: 132px;
705
- height: 100%;
706
- text-align: center;
707
- font-size: 12px;
708
-
709
- & table:not(:last-child) {
710
- border-bottom: 1px solid #EBEEF5;
711
- }
712
- }
713
- .ev-calendar-time-table {
714
- width: 132px;
715
- height: 110px;
716
- table-layout: fixed;
717
- border-collapse: collapse;
718
- border-spacing: 0;
719
- user-select: none;
720
-
721
- tr {
722
- height: 33px;
723
- }
724
- }
725
- </style>
@@ -1,7 +0,0 @@
1
- import EvCalendar from './Calendar';
2
-
3
- EvCalendar.install = (app) => {
4
- app.component(EvCalendar.name, EvCalendar);
5
- };
6
-
7
- export default EvCalendar;