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.
- package/README.md +18 -33
- package/dist/404.html +44 -0
- package/dist/favicon.ico +0 -0
- package/dist/index.js +22645 -0
- package/dist/index.umd.cjs +28 -0
- package/dist/style.css +1 -0
- package/package.json +46 -43
- package/dist/evui.common.js +0 -63678
- package/dist/evui.common.js.map +0 -1
- package/dist/evui.umd.js +0 -63688
- package/dist/evui.umd.js.map +0 -1
- package/dist/evui.umd.min.js +0 -2
- package/dist/evui.umd.min.js.map +0 -1
- package/dist/img/EVUI.b82ee81a.svg +0 -293
- package/src/assets/logo.png +0 -0
- package/src/common/emitter.js +0 -20
- package/src/common/utils.bignumber.js +0 -67
- package/src/common/utils.debounce.js +0 -223
- package/src/common/utils.js +0 -151
- package/src/common/utils.table.js +0 -78
- package/src/common/utils.throttle.js +0 -83
- package/src/common/utils.tree.js +0 -18
- package/src/components/button/Button.vue +0 -195
- package/src/components/button/index.js +0 -7
- package/src/components/buttonGroup/ButtonGroup.vue +0 -11
- package/src/components/buttonGroup/index.js +0 -7
- package/src/components/calendar/Calendar.vue +0 -725
- package/src/components/calendar/index.js +0 -7
- package/src/components/calendar/uses.js +0 -1410
- package/src/components/chart/Chart.vue +0 -363
- package/src/components/chart/ChartToolbar.vue +0 -52
- package/src/components/chart/chart.core.js +0 -1170
- package/src/components/chart/chartZoom.core.js +0 -540
- package/src/components/chart/element/element.bar.js +0 -672
- package/src/components/chart/element/element.bar.time.js +0 -166
- package/src/components/chart/element/element.heatmap.js +0 -743
- package/src/components/chart/element/element.line.js +0 -611
- package/src/components/chart/element/element.pie.js +0 -197
- package/src/components/chart/element/element.scatter.js +0 -320
- package/src/components/chart/element/element.tip.js +0 -717
- package/src/components/chart/helpers/helpers.canvas.js +0 -265
- package/src/components/chart/helpers/helpers.constant.js +0 -235
- package/src/components/chart/helpers/helpers.util.js +0 -400
- package/src/components/chart/index.js +0 -9
- package/src/components/chart/model/index.js +0 -50
- package/src/components/chart/model/model.series.js +0 -125
- package/src/components/chart/model/model.store.js +0 -1427
- package/src/components/chart/plugins/plugins.interaction.js +0 -1655
- package/src/components/chart/plugins/plugins.legend.gradient.js +0 -606
- package/src/components/chart/plugins/plugins.legend.js +0 -1543
- package/src/components/chart/plugins/plugins.pie.js +0 -254
- package/src/components/chart/plugins/plugins.scrollbar.js +0 -732
- package/src/components/chart/plugins/plugins.title.js +0 -61
- package/src/components/chart/plugins/plugins.tooltip.js +0 -1041
- package/src/components/chart/scale/scale.js +0 -951
- package/src/components/chart/scale/scale.linear.js +0 -268
- package/src/components/chart/scale/scale.logarithmic.js +0 -135
- package/src/components/chart/scale/scale.step.js +0 -430
- package/src/components/chart/scale/scale.time.category.js +0 -338
- package/src/components/chart/scale/scale.time.js +0 -49
- package/src/components/chart/style/chart.scss +0 -405
- package/src/components/chart/uses.js +0 -721
- package/src/components/chartBrush/ChartBrush.vue +0 -323
- package/src/components/chartBrush/chartBrush.core.js +0 -691
- package/src/components/chartBrush/index.js +0 -9
- package/src/components/chartBrush/uses.js +0 -23
- package/src/components/chartGroup/ChartGroup.vue +0 -144
- package/src/components/chartGroup/index.js +0 -9
- package/src/components/chartGroup/style/chartGroup.scss +0 -5
- package/src/components/chartGroup/uses.js +0 -53
- package/src/components/checkbox/Checkbox.vue +0 -229
- package/src/components/checkbox/index.js +0 -7
- package/src/components/checkboxGroup/CheckboxGroup.vue +0 -44
- package/src/components/checkboxGroup/index.js +0 -7
- package/src/components/contextMenu/ContextMenu.vue +0 -95
- package/src/components/contextMenu/MenuList.vue +0 -182
- package/src/components/contextMenu/index.js +0 -7
- package/src/components/contextMenu/uses.js +0 -223
- package/src/components/datePicker/DatePicker.vue +0 -504
- package/src/components/datePicker/index.js +0 -7
- package/src/components/datePicker/uses.js +0 -460
- package/src/components/grid/Grid.vue +0 -1535
- package/src/components/grid/GridColumnSetting.vue +0 -358
- package/src/components/grid/GridFilterSetting.vue +0 -323
- package/src/components/grid/GridPagination.vue +0 -75
- package/src/components/grid/GridSummary.vue +0 -314
- package/src/components/grid/GridToolbar.vue +0 -35
- package/src/components/grid/icon/icon-option-button.vue +0 -17
- package/src/components/grid/icon/icon-sort-button.vue +0 -67
- package/src/components/grid/index.js +0 -11
- package/src/components/grid/style/grid.scss +0 -417
- package/src/components/grid/uses.js +0 -1629
- package/src/components/icon/Icon.vue +0 -53
- package/src/components/icon/index.js +0 -8
- package/src/components/inputNumber/InputNumber.vue +0 -212
- package/src/components/inputNumber/index.js +0 -7
- package/src/components/inputNumber/uses.js +0 -217
- package/src/components/loading/Loading.vue +0 -125
- package/src/components/loading/index.js +0 -7
- package/src/components/menu/Menu.vue +0 -79
- package/src/components/menu/MenuItem.vue +0 -201
- package/src/components/menu/index.js +0 -7
- package/src/components/message/Message.vue +0 -229
- package/src/components/message/index.js +0 -34
- package/src/components/messageBox/MessageBox.vue +0 -358
- package/src/components/messageBox/index.js +0 -22
- package/src/components/notification/Notification.vue +0 -316
- package/src/components/notification/index.js +0 -49
- package/src/components/pagination/Pagination.vue +0 -317
- package/src/components/pagination/index.js +0 -7
- package/src/components/pagination/pageButton.vue +0 -31
- package/src/components/progress/Progress.vue +0 -139
- package/src/components/progress/index.js +0 -7
- package/src/components/radio/Radio.vue +0 -159
- package/src/components/radio/index.js +0 -7
- package/src/components/radioGroup/RadioGroup.vue +0 -41
- package/src/components/radioGroup/index.js +0 -7
- package/src/components/scheduler/Scheduler.vue +0 -149
- package/src/components/scheduler/index.js +0 -7
- package/src/components/scheduler/uses.js +0 -183
- package/src/components/select/Select.vue +0 -556
- package/src/components/select/index.js +0 -7
- package/src/components/select/uses.js +0 -379
- package/src/components/slider/Slider.vue +0 -505
- package/src/components/slider/index.js +0 -7
- package/src/components/slider/uses.js +0 -391
- package/src/components/tabPanel/TabPanel.vue +0 -74
- package/src/components/tabPanel/index.js +0 -7
- package/src/components/tabs/Tabs.vue +0 -517
- package/src/components/tabs/index.js +0 -7
- package/src/components/textField/TextField.vue +0 -399
- package/src/components/textField/index.js +0 -7
- package/src/components/timePicker/TimePicker.vue +0 -364
- package/src/components/timePicker/index.js +0 -7
- package/src/components/toggle/Toggle.vue +0 -115
- package/src/components/toggle/index.js +0 -7
- package/src/components/tree/Tree.vue +0 -338
- package/src/components/tree/TreeNode.vue +0 -293
- package/src/components/tree/index.js +0 -7
- package/src/components/treeGrid/TreeGrid.vue +0 -1074
- package/src/components/treeGrid/TreeGridNode.vue +0 -349
- package/src/components/treeGrid/TreeGridToolbar.vue +0 -35
- package/src/components/treeGrid/icon/icon-tree.png +0 -0
- package/src/components/treeGrid/index.js +0 -9
- package/src/components/treeGrid/style/treeGrid.scss +0 -277
- package/src/components/treeGrid/uses.js +0 -1178
- package/src/components/window/Window.vue +0 -329
- package/src/components/window/index.js +0 -7
- package/src/components/window/uses.js +0 -908
- package/src/directives/clickoutside.js +0 -90
- package/src/main.js +0 -120
- package/src/style/components/input.scss +0 -108
- package/src/style/functions.scss +0 -3
- package/src/style/index.scss +0 -6
- package/src/style/lib/fonts/EVUI.eot +0 -0
- package/src/style/lib/fonts/EVUI.svg +0 -293
- package/src/style/lib/fonts/EVUI.ttf +0 -0
- package/src/style/lib/fonts/EVUI.woff +0 -0
- package/src/style/lib/icon.css +0 -888
- package/src/style/mixins.scss +0 -94
- package/src/style/themes.scss +0 -69
- package/src/style/variables.scss +0 -22
|
@@ -1,504 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div
|
|
3
|
-
ref="datePicker"
|
|
4
|
-
v-clickoutside="clickOutsideDropbox"
|
|
5
|
-
class="ev-date-picker"
|
|
6
|
-
:class="{
|
|
7
|
-
disabled : $props.disabled,
|
|
8
|
-
}"
|
|
9
|
-
>
|
|
10
|
-
<div
|
|
11
|
-
ref="datePickerWrapper"
|
|
12
|
-
class="ev-date-picker__wrapper"
|
|
13
|
-
>
|
|
14
|
-
<template v-if="$props.mode === 'date' || $props.mode === 'dateTime'">
|
|
15
|
-
<span class="ev-date-picker-prefix-icon">
|
|
16
|
-
<i class="ev-icon-calendar" />
|
|
17
|
-
</span>
|
|
18
|
-
<input
|
|
19
|
-
v-model.trim="currentValue"
|
|
20
|
-
type="text"
|
|
21
|
-
:class="['ev-input', {readonly : !$props.enableTextInput}]"
|
|
22
|
-
:placeholder="$props.placeholder"
|
|
23
|
-
:readonly="!$props.enableTextInput"
|
|
24
|
-
:disabled="$props.disabled"
|
|
25
|
-
@click="clickSelectInput"
|
|
26
|
-
@keydown.enter.prevent="validateValue(currentValue)"
|
|
27
|
-
@change="validateValue(currentValue)"
|
|
28
|
-
/>
|
|
29
|
-
</template>
|
|
30
|
-
<template v-else-if="$props.mode === 'dateMulti' || !$props.enableTextInput">
|
|
31
|
-
<div
|
|
32
|
-
class="ev-date-picker-tag-wrapper"
|
|
33
|
-
@click="clickSelectInput"
|
|
34
|
-
>
|
|
35
|
-
<span class="ev-date-picker-prefix-icon">
|
|
36
|
-
<i class="ev-icon-calendar" />
|
|
37
|
-
</span>
|
|
38
|
-
<input
|
|
39
|
-
type="text"
|
|
40
|
-
class="ev-input readonly"
|
|
41
|
-
readonly
|
|
42
|
-
:placeholder="$props.placeholder"
|
|
43
|
-
:disabled="$props.disabled"
|
|
44
|
-
/>
|
|
45
|
-
<template
|
|
46
|
-
v-if="$props.mode === 'dateMulti'
|
|
47
|
-
&& ($props.options.multiType === 'date' || !$props.options.tagShorten)"
|
|
48
|
-
>
|
|
49
|
-
<div
|
|
50
|
-
v-for="(item, idx) in mv"
|
|
51
|
-
:key="`${item}_${idx}`"
|
|
52
|
-
class="ev-select-tag"
|
|
53
|
-
:class="{ num: $props.options.multiType !== 'date' }"
|
|
54
|
-
>
|
|
55
|
-
<span class="ev-tag-name"> {{ item }} </span>
|
|
56
|
-
<span
|
|
57
|
-
v-if="$props.options.multiType === 'date'"
|
|
58
|
-
class="ev-tag-suffix"
|
|
59
|
-
@click.stop="[removeMv(item), changeDropboxPosition()]"
|
|
60
|
-
>
|
|
61
|
-
<i class="ev-tag-suffix-close ev-icon-error" />
|
|
62
|
-
</span>
|
|
63
|
-
</div>
|
|
64
|
-
</template>
|
|
65
|
-
<template v-else>
|
|
66
|
-
<div
|
|
67
|
-
v-if="mv[0]"
|
|
68
|
-
class="ev-select-tag num"
|
|
69
|
-
>
|
|
70
|
-
<span class="ev-tag-name"> {{ mv[0] }} </span>
|
|
71
|
-
</div>
|
|
72
|
-
<template v-if="mv[mv.length - 1]">
|
|
73
|
-
<div class="ev-select-tag num">
|
|
74
|
-
<span class="ev-tag-name"> ~ </span>
|
|
75
|
-
</div>
|
|
76
|
-
<div class="ev-select-tag num">
|
|
77
|
-
<span class="ev-tag-name"> {{ mv[mv.length - 1] }} </span>
|
|
78
|
-
</div>
|
|
79
|
-
</template>
|
|
80
|
-
</template>
|
|
81
|
-
</div>
|
|
82
|
-
</template>
|
|
83
|
-
<template v-else>
|
|
84
|
-
<div
|
|
85
|
-
class="ev-date-picker-input-wrapper"
|
|
86
|
-
@click="clickSelectInput"
|
|
87
|
-
>
|
|
88
|
-
<span class="ev-date-picker-prefix-icon">
|
|
89
|
-
<i class="ev-icon-calendar" />
|
|
90
|
-
</span>
|
|
91
|
-
<input
|
|
92
|
-
v-model.trim="currentValue[0]"
|
|
93
|
-
type="text"
|
|
94
|
-
class="ev-date-picker-range-input"
|
|
95
|
-
@keydown.enter.prevent="validateValue(currentValue)"
|
|
96
|
-
@change="validateValue(currentValue)"
|
|
97
|
-
/>
|
|
98
|
-
<template v-if="currentValue[currentValue.length - 1]">
|
|
99
|
-
<div class="ev-date-picker-range-separator">
|
|
100
|
-
<span class="ev-tag-name"> ~ </span>
|
|
101
|
-
</div>
|
|
102
|
-
<input
|
|
103
|
-
v-model.trim="currentValue[currentValue.length - 1]"
|
|
104
|
-
type="text"
|
|
105
|
-
class="ev-date-picker-range-input"
|
|
106
|
-
@keydown.enter.prevent="validateValue(currentValue)"
|
|
107
|
-
@change="validateValue(currentValue)"
|
|
108
|
-
/>
|
|
109
|
-
</template>
|
|
110
|
-
</div>
|
|
111
|
-
</template>
|
|
112
|
-
<template v-if="$props.clearable">
|
|
113
|
-
<span
|
|
114
|
-
v-show="isClearableIcon"
|
|
115
|
-
class="ev-input-suffix"
|
|
116
|
-
@click.stop="[removeAllMv(), clickOutsideDropbox()]"
|
|
117
|
-
>
|
|
118
|
-
<i class="ev-icon-error" />
|
|
119
|
-
</span>
|
|
120
|
-
</template>
|
|
121
|
-
<div class="ev-date-picker-dropbox-wrapper">
|
|
122
|
-
<div
|
|
123
|
-
v-if="isDropbox"
|
|
124
|
-
ref="dropbox"
|
|
125
|
-
class="ev-date-picker-dropdown"
|
|
126
|
-
:class="$props.mode"
|
|
127
|
-
:style="dropboxPosition"
|
|
128
|
-
>
|
|
129
|
-
<div
|
|
130
|
-
v-if="usedShortcuts.length"
|
|
131
|
-
class="ev-date-picker-dropbox__button-layout"
|
|
132
|
-
>
|
|
133
|
-
<ev-button
|
|
134
|
-
v-if="usedShortcuts.length === 1"
|
|
135
|
-
:type="usedShortcuts[0].isActive ? 'primary' : 'default'"
|
|
136
|
-
@click="clickShortcut(usedShortcuts[0].key)"
|
|
137
|
-
>
|
|
138
|
-
{{ usedShortcuts[0].label }}
|
|
139
|
-
</ev-button>
|
|
140
|
-
<ev-button-group v-else>
|
|
141
|
-
<ev-button
|
|
142
|
-
v-for="button in usedShortcuts"
|
|
143
|
-
:key="button.key"
|
|
144
|
-
:type="button.isActive ? 'primary' : 'default'"
|
|
145
|
-
@click="clickShortcut(button.key)"
|
|
146
|
-
>
|
|
147
|
-
{{ button.label }}
|
|
148
|
-
</ev-button>
|
|
149
|
-
</ev-button-group>
|
|
150
|
-
</div>
|
|
151
|
-
<div
|
|
152
|
-
v-if="usedShortcuts.length"
|
|
153
|
-
class="ev-date-picker-dropbox__divider"
|
|
154
|
-
/>
|
|
155
|
-
<div
|
|
156
|
-
:class="{ 'ev-date-picker-dropbox__calendar':usedShortcuts.length }"
|
|
157
|
-
>
|
|
158
|
-
<ev-calendar
|
|
159
|
-
key="fromCalendar"
|
|
160
|
-
v-model="mv"
|
|
161
|
-
:mode="$props.mode"
|
|
162
|
-
:month-notation="$props.monthNotation"
|
|
163
|
-
:day-of-the-week-notation="$props.dayOfTheWeekNotation"
|
|
164
|
-
:options="$props.options"
|
|
165
|
-
/>
|
|
166
|
-
</div>
|
|
167
|
-
</div>
|
|
168
|
-
</div>
|
|
169
|
-
</div>
|
|
170
|
-
</div>
|
|
171
|
-
</template>
|
|
172
|
-
|
|
173
|
-
<script>
|
|
174
|
-
import { datePickerClickoutside as clickoutside } from '@/directives/clickoutside';
|
|
175
|
-
import { useModel, useDropdown, useShortcuts } from './uses';
|
|
176
|
-
|
|
177
|
-
export default {
|
|
178
|
-
name: 'EvDatePicker',
|
|
179
|
-
directives: {
|
|
180
|
-
clickoutside,
|
|
181
|
-
},
|
|
182
|
-
props: {
|
|
183
|
-
modelValue: {
|
|
184
|
-
type: [String, Array],
|
|
185
|
-
default: '',
|
|
186
|
-
validator: (value) => {
|
|
187
|
-
const dateReg = new RegExp(/[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])/);
|
|
188
|
-
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]/);
|
|
189
|
-
if (Array.isArray(value)) {
|
|
190
|
-
return value.every(v => !!(!v
|
|
191
|
-
|| (v.length === 10 && dateReg.exec(v)))
|
|
192
|
-
|| (v.length === 19 && dateTimeReg.exec(v)));
|
|
193
|
-
}
|
|
194
|
-
return !!(!value
|
|
195
|
-
|| (value.length === 10 && dateReg.exec(value))
|
|
196
|
-
|| (value.length === 19 && dateTimeReg.exec(value)));
|
|
197
|
-
},
|
|
198
|
-
},
|
|
199
|
-
placeholder: {
|
|
200
|
-
type: String,
|
|
201
|
-
default: '',
|
|
202
|
-
},
|
|
203
|
-
disabled: {
|
|
204
|
-
type: Boolean,
|
|
205
|
-
default: false,
|
|
206
|
-
},
|
|
207
|
-
clearable: {
|
|
208
|
-
type: Boolean,
|
|
209
|
-
default: false,
|
|
210
|
-
},
|
|
211
|
-
enableTextInput: {
|
|
212
|
-
type: Boolean,
|
|
213
|
-
default: false,
|
|
214
|
-
},
|
|
215
|
-
mode: {
|
|
216
|
-
type: String,
|
|
217
|
-
default: 'date',
|
|
218
|
-
validator: value => ['date', 'dateTime', 'dateMulti', 'dateRange', 'dateTimeRange']
|
|
219
|
-
.indexOf(value) !== -1,
|
|
220
|
-
},
|
|
221
|
-
monthNotation: {
|
|
222
|
-
type: String,
|
|
223
|
-
default: 'fullName',
|
|
224
|
-
validator: value => ['fullName', 'abbrName', 'numberName', 'korName']
|
|
225
|
-
.indexOf(value) !== -1,
|
|
226
|
-
},
|
|
227
|
-
dayOfTheWeekNotation: {
|
|
228
|
-
type: String,
|
|
229
|
-
default: 'abbrUpperName',
|
|
230
|
-
validator: value => ['abbrUpperName', 'abbrLowerName', 'abbrPascalName', 'abbrKorName']
|
|
231
|
-
.indexOf(value) !== -1,
|
|
232
|
-
},
|
|
233
|
-
options: {
|
|
234
|
-
type: Object,
|
|
235
|
-
default: () => ({
|
|
236
|
-
type: 'date',
|
|
237
|
-
limit: 1,
|
|
238
|
-
tagShorten: false,
|
|
239
|
-
}),
|
|
240
|
-
validator: ({ multiType, multiDayLimit, disabledDate, tagShorten, timeFormat }) => {
|
|
241
|
-
const timeReg = new RegExp(/(HH|2[0-3]|[01][0-9]):(mm|[0-5][0-9]):(ss|[0-5][0-9])/);
|
|
242
|
-
return (multiType ? ['weekday', 'week', 'date'].indexOf(multiType) !== -1 : true)
|
|
243
|
-
&& (multiDayLimit ? typeof multiDayLimit === 'number' && multiDayLimit > 0 : true)
|
|
244
|
-
&& (disabledDate ? (typeof disabledDate === 'function' || Array.isArray(disabledDate)) : true)
|
|
245
|
-
&& (tagShorten !== undefined ? typeof tagShorten === 'boolean' : true)
|
|
246
|
-
&& Array.isArray(timeFormat)
|
|
247
|
-
? timeFormat.every(v => !!(!v || timeReg.exec(v)))
|
|
248
|
-
: !!(!timeFormat || (timeReg.exec(timeFormat)));
|
|
249
|
-
},
|
|
250
|
-
},
|
|
251
|
-
shortcuts: {
|
|
252
|
-
type: Array,
|
|
253
|
-
default: () => [],
|
|
254
|
-
validator: (value) => {
|
|
255
|
-
if (!value.length) {
|
|
256
|
-
return true;
|
|
257
|
-
}
|
|
258
|
-
return value.every(({ shortcutDate }) => {
|
|
259
|
-
if (typeof shortcutDate !== 'function') {
|
|
260
|
-
return false;
|
|
261
|
-
}
|
|
262
|
-
const date = shortcutDate();
|
|
263
|
-
return (Array.isArray(date) && date.every(d => d instanceof Date) && date[0] <= date[1])
|
|
264
|
-
|| (typeof date === 'object' && date instanceof Date);
|
|
265
|
-
});
|
|
266
|
-
},
|
|
267
|
-
},
|
|
268
|
-
},
|
|
269
|
-
emits: {
|
|
270
|
-
'update:modelValue': [Array, String],
|
|
271
|
-
},
|
|
272
|
-
setup() {
|
|
273
|
-
const {
|
|
274
|
-
mv,
|
|
275
|
-
currentValue,
|
|
276
|
-
isClearableIcon,
|
|
277
|
-
validateValue,
|
|
278
|
-
removeAllMv,
|
|
279
|
-
changeMv,
|
|
280
|
-
removeMv,
|
|
281
|
-
} = useModel();
|
|
282
|
-
|
|
283
|
-
const {
|
|
284
|
-
isDropbox,
|
|
285
|
-
datePicker,
|
|
286
|
-
datePickerWrapper,
|
|
287
|
-
dropbox,
|
|
288
|
-
itemWrapper,
|
|
289
|
-
dropboxPosition,
|
|
290
|
-
clickSelectInput,
|
|
291
|
-
clickOutsideDropbox,
|
|
292
|
-
changeDropboxPosition,
|
|
293
|
-
} = useDropdown();
|
|
294
|
-
|
|
295
|
-
const {
|
|
296
|
-
usedShortcuts,
|
|
297
|
-
clickShortcut,
|
|
298
|
-
setActiveShortcut,
|
|
299
|
-
} = useShortcuts({
|
|
300
|
-
mv,
|
|
301
|
-
currentValue,
|
|
302
|
-
clickOutsideDropbox,
|
|
303
|
-
});
|
|
304
|
-
|
|
305
|
-
setActiveShortcut();
|
|
306
|
-
|
|
307
|
-
return {
|
|
308
|
-
mv,
|
|
309
|
-
currentValue,
|
|
310
|
-
isClearableIcon,
|
|
311
|
-
validateValue,
|
|
312
|
-
removeAllMv,
|
|
313
|
-
changeMv,
|
|
314
|
-
removeMv,
|
|
315
|
-
|
|
316
|
-
isDropbox,
|
|
317
|
-
datePicker,
|
|
318
|
-
datePickerWrapper,
|
|
319
|
-
dropbox,
|
|
320
|
-
itemWrapper,
|
|
321
|
-
dropboxPosition,
|
|
322
|
-
clickSelectInput,
|
|
323
|
-
clickOutsideDropbox,
|
|
324
|
-
changeDropboxPosition,
|
|
325
|
-
|
|
326
|
-
usedShortcuts,
|
|
327
|
-
clickShortcut,
|
|
328
|
-
};
|
|
329
|
-
},
|
|
330
|
-
};
|
|
331
|
-
</script>
|
|
332
|
-
|
|
333
|
-
<style lang="scss">
|
|
334
|
-
@import '../../style/index.scss';
|
|
335
|
-
|
|
336
|
-
.ev-date-picker {
|
|
337
|
-
$select-height: $input-default-height;
|
|
338
|
-
display: block;
|
|
339
|
-
position: relative;
|
|
340
|
-
width: 100%;
|
|
341
|
-
|
|
342
|
-
@import '../../style/components/input.scss';
|
|
343
|
-
|
|
344
|
-
&__wrapper {
|
|
345
|
-
position: relative;
|
|
346
|
-
min-height: $select-height;
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
.ev-input {
|
|
350
|
-
$calendar-icon-width: 30px;
|
|
351
|
-
position: absolute;
|
|
352
|
-
left: 0;
|
|
353
|
-
height: 100%;
|
|
354
|
-
padding: 0 $input-default-padding 0 $calendar-icon-width;
|
|
355
|
-
|
|
356
|
-
&.readonly {
|
|
357
|
-
cursor: pointer;
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
@include state('disabled') {
|
|
362
|
-
.ev-input {
|
|
363
|
-
cursor: not-allowed;
|
|
364
|
-
}
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
&-range-input {
|
|
368
|
-
position: relative;
|
|
369
|
-
width: 100%;
|
|
370
|
-
outline: 0;
|
|
371
|
-
padding: 0 $input-default-padding 0 $input-default-padding;
|
|
372
|
-
border: none;
|
|
373
|
-
flex: 1;
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
&-range-separator {
|
|
377
|
-
border: none;
|
|
378
|
-
}
|
|
379
|
-
|
|
380
|
-
.ev-input-suffix {
|
|
381
|
-
display: flex;
|
|
382
|
-
position: absolute;
|
|
383
|
-
top: 0;
|
|
384
|
-
right: 5px;
|
|
385
|
-
height: 100%;
|
|
386
|
-
align-items: center;
|
|
387
|
-
cursor: pointer;
|
|
388
|
-
&:hover {
|
|
389
|
-
color: #409EFF;
|
|
390
|
-
}
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
.ev-date-picker-tag-wrapper,
|
|
394
|
-
.ev-date-picker-input-wrapper {
|
|
395
|
-
display: flex;
|
|
396
|
-
width: 100%;
|
|
397
|
-
height: 100%;
|
|
398
|
-
min-height: $select-height;
|
|
399
|
-
padding: 3px 30px 3px 30px;
|
|
400
|
-
flex-wrap: wrap;
|
|
401
|
-
align-items: center;
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
.ev-date-picker-input-wrapper {
|
|
405
|
-
transition: border $animate-base;
|
|
406
|
-
outline: 0;
|
|
407
|
-
background-color: transparent;
|
|
408
|
-
border-radius: $default-radius;
|
|
409
|
-
|
|
410
|
-
@include evThemify() {
|
|
411
|
-
border: 1px solid evThemed('border-base');
|
|
412
|
-
color: evThemed('font-base');
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
&:focus,
|
|
416
|
-
&:hover {
|
|
417
|
-
@include evThemify() {
|
|
418
|
-
border: 1px solid evThemed('primary');
|
|
419
|
-
}
|
|
420
|
-
}
|
|
421
|
-
}
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
.ev-date-picker-prefix-icon {
|
|
425
|
-
display: flex;
|
|
426
|
-
position: absolute;
|
|
427
|
-
top: 0;
|
|
428
|
-
left: 8px;
|
|
429
|
-
height: 100%;
|
|
430
|
-
align-items: center;
|
|
431
|
-
color: #C2C5CD;
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
.ev-date-picker-dropdown {
|
|
435
|
-
position: absolute;
|
|
436
|
-
top: 0;
|
|
437
|
-
left: 0;
|
|
438
|
-
background-color: white;
|
|
439
|
-
border: 1px solid #E4E7ED;
|
|
440
|
-
color: #606266;
|
|
441
|
-
box-shadow: 0 2px 12px 0 rgba(0,0,0,.1);
|
|
442
|
-
border-radius: 4px;
|
|
443
|
-
box-sizing: content-box;
|
|
444
|
-
z-index: 100;
|
|
445
|
-
}
|
|
446
|
-
|
|
447
|
-
.ev-select-tag {
|
|
448
|
-
display: flex;
|
|
449
|
-
position: relative;
|
|
450
|
-
height: 24px;
|
|
451
|
-
padding: 0 19px 0 8px;
|
|
452
|
-
margin: 2px 0 2px 6px;
|
|
453
|
-
background-color: #F4F4F5;
|
|
454
|
-
align-items: center;
|
|
455
|
-
border: 1px solid #E9E9EB;
|
|
456
|
-
border-radius: 4px;
|
|
457
|
-
color: #909399;
|
|
458
|
-
font-size: $font-size-base;
|
|
459
|
-
cursor: auto;
|
|
460
|
-
|
|
461
|
-
&.num {
|
|
462
|
-
padding-right: 8px;
|
|
463
|
-
cursor: pointer;
|
|
464
|
-
}
|
|
465
|
-
|
|
466
|
-
.ev-tag-suffix {
|
|
467
|
-
display: flex;
|
|
468
|
-
position: absolute;
|
|
469
|
-
top: 0;
|
|
470
|
-
right: 3px;
|
|
471
|
-
height: 100%;
|
|
472
|
-
align-items: center;
|
|
473
|
-
color: #0D0D0D;
|
|
474
|
-
cursor: pointer;
|
|
475
|
-
|
|
476
|
-
&:hover {
|
|
477
|
-
color: #409EFF;
|
|
478
|
-
}
|
|
479
|
-
}
|
|
480
|
-
}
|
|
481
|
-
|
|
482
|
-
.ev-date-picker-dropbox {
|
|
483
|
-
&-wrapper {
|
|
484
|
-
height: 0;
|
|
485
|
-
z-index: 100;
|
|
486
|
-
}
|
|
487
|
-
|
|
488
|
-
&__button-layout {
|
|
489
|
-
margin: 5px;
|
|
490
|
-
}
|
|
491
|
-
|
|
492
|
-
&__divider {
|
|
493
|
-
width: 100%;
|
|
494
|
-
height: 2px;
|
|
495
|
-
margin: 8px 0;
|
|
496
|
-
background-color: #E5E5E5;
|
|
497
|
-
}
|
|
498
|
-
|
|
499
|
-
&__calendar {
|
|
500
|
-
height: 100%;
|
|
501
|
-
margin: 5px;
|
|
502
|
-
}
|
|
503
|
-
}
|
|
504
|
-
</style>
|