evui 2.0.8 → 2.0.10
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 +27 -27
- package/{src/webfonts/fa-regular-400.svg → dist/82f60bd0b94a1ed68b1e6e309ce2e8c3.svg} +366 -366
- package/{src/webfonts/EVUI.svg → dist/91c6092c0a9164541a69045d746b9e78.svg} +183 -183
- package/dist/{448f2aaa315fa9dce7b2cf6ce31caed6.svg → 962a1bf31c081691065fe333d9fa8105.svg} +1518 -1518
- package/dist/{65363c4d55617bbeb57d8ce6dcd46099.svg → a1a749e89f578a49306ec2b055c073da.svg} +1008 -1008
- package/dist/evui.min.js +178 -59366
- package/dist/evui.min.js.gz +0 -0
- package/dist/evui.min.js.map +1 -1
- package/dist/main.css +5161 -0
- package/dist/main.css.gz +0 -0
- package/dist/main.css.map +1 -0
- package/package.json +125 -136
- package/dist/8634884f932627fc43782e6963b64ccd.svg +0 -183
- package/dist/b551b554a67e86a840bc80cbb8066c30.svg +0 -366
- package/src/code/checkbox.js +0 -12
- package/src/common/utils.js +0 -95
- package/src/common/utils.table.js +0 -78
- package/src/components/button/button.vue +0 -318
- package/src/components/button/index.js +0 -3
- package/src/components/chart/chart.vue +0 -354
- package/src/components/chart/charts/chart.bar.js +0 -334
- package/src/components/chart/charts/chart.base.js +0 -1075
- package/src/components/chart/charts/chart.line.js +0 -262
- package/src/components/chart/charts/chart.pie.js +0 -383
- package/src/components/chart/charts/chart.scatter.js +0 -349
- package/src/components/chart/charts/chart.sunburst.js +0 -193
- package/src/components/chart/core/axis/axis.js +0 -217
- package/src/components/chart/core/axis/axis.scale.auto.js +0 -69
- package/src/components/chart/core/axis/axis.scale.fixed.js +0 -65
- package/src/components/chart/core/axis/axis.scale.steps.js +0 -149
- package/src/components/chart/core/core.constant.js +0 -91
- package/src/components/chart/core/core.legend.js +0 -473
- package/src/components/chart/core/core.util.js +0 -66
- package/src/components/chart/core/data/data.js +0 -412
- package/src/components/chart/core/data/data.pie.js +0 -70
- package/src/components/chart/core/data/data.stack.js +0 -222
- package/src/components/chart/core/data/data.sunburst.js +0 -172
- package/src/components/chart/index.js +0 -4
- package/src/components/checkbox/checkbox-group.vue +0 -57
- package/src/components/checkbox/checkbox.vue +0 -98
- package/src/components/checkbox/index.js +0 -3
- package/src/components/checkbox-group/index.js +0 -3
- package/src/components/codeview/code.vue +0 -242
- package/src/components/datepicker/calendar.core.js +0 -1829
- package/src/components/datepicker/calendar.vue +0 -86
- package/src/components/datepicker/datepicker.vue +0 -599
- package/src/components/datepicker/index.js +0 -3
- package/src/components/icon/icon.vue +0 -31
- package/src/components/icon/index.js +0 -3
- package/src/components/input/index.js +0 -3
- package/src/components/input/input.number.vue +0 -440
- package/src/components/label/index.js +0 -3
- package/src/components/label/label.vue +0 -86
- package/src/components/loadingmask/index.js +0 -3
- package/src/components/loadingmask/loadingmask.vue +0 -142
- package/src/components/menu/index.js +0 -5
- package/src/components/menu/menu.context.children.vue +0 -201
- package/src/components/menu/menu.context.vue +0 -144
- package/src/components/menu/menu.nav.vue +0 -123
- package/src/components/radio/index.js +0 -3
- package/src/components/radio/radio-group.vue +0 -48
- package/src/components/radio/radio.vue +0 -95
- package/src/components/radio-group/index.js +0 -3
- package/src/components/selectbox/dropdown.vue +0 -174
- package/src/components/selectbox/index.js +0 -3
- package/src/components/selectbox/listbox.vue +0 -106
- package/src/components/selectbox/option.vue +0 -11
- package/src/components/selectbox/selectbox.vue +0 -465
- package/src/components/slider/index.js +0 -3
- package/src/components/slider/slider-tooltip.vue +0 -119
- package/src/components/slider/slider.vue +0 -483
- package/src/components/summary/index.js +0 -3
- package/src/components/summary/summary.vue +0 -138
- package/src/components/table/data.json +0 -1000
- package/src/components/table/data2.json +0 -1000
- package/src/components/table/index.js +0 -3
- package/src/components/table/table.black.css +0 -547
- package/src/components/table/table.filter.lite.vue +0 -170
- package/src/components/table/table.filter.vue +0 -112
- package/src/components/table/table.grey.css +0 -539
- package/src/components/table/table.navy.css +0 -536
- package/src/components/table/table.vue +0 -1382
- package/src/components/tabs/index.js +0 -14
- package/src/components/tabs/jun/tab.vue +0 -123
- package/src/components/tabs/jun/tabs.vue +0 -484
- package/src/components/tabs/tab-panel.vue +0 -39
- package/src/components/tabs/tabs.vue +0 -446
- package/src/components/textfield/index.js +0 -3
- package/src/components/textfield/textfield.vue +0 -381
- package/src/components/timepicker/index.js +0 -3
- package/src/components/timepicker/spinner.vue +0 -205
- package/src/components/timepicker/timepicker.vue +0 -492
- package/src/components/toggle/index.js +0 -3
- package/src/components/toggle/toggle.vue +0 -355
- package/src/components/tree/index.js +0 -7
- package/src/components/tree/tree.table.black.css +0 -680
- package/src/components/tree/tree.table.grey.css +0 -675
- package/src/components/tree/tree.table.vue +0 -734
- package/src/components/tree/tree.util.js +0 -39
- package/src/components/window/index.js +0 -3
- package/src/components/window/window.vue +0 -606
- package/src/images/evui_icon.png +0 -0
- package/src/index.js +0 -78
- package/src/styles/all.css +0 -5
- package/src/styles/codemirror.css +0 -346
- package/src/styles/evui.css +0 -386
- package/src/styles/icon.css +0 -557
- package/src/webfonts/EVUI.eot +0 -0
- package/src/webfonts/EVUI.ttf +0 -0
- package/src/webfonts/EVUI.woff +0 -0
- package/src/webfonts/NanumGothic.ttf +0 -0
- package/src/webfonts/NanumGothicBold.ttf +0 -0
- package/src/webfonts/fa-brands-400.eot +0 -0
- package/src/webfonts/fa-brands-400.svg +0 -1008
- package/src/webfonts/fa-brands-400.ttf +0 -0
- package/src/webfonts/fa-brands-400.woff +0 -0
- package/src/webfonts/fa-brands-400.woff2 +0 -0
- package/src/webfonts/fa-regular-400.eot +0 -0
- package/src/webfonts/fa-regular-400.ttf +0 -0
- package/src/webfonts/fa-regular-400.woff +0 -0
- package/src/webfonts/fa-regular-400.woff2 +0 -0
- package/src/webfonts/fa-solid-900.eot +0 -0
- package/src/webfonts/fa-solid-900.svg +0 -1518
- package/src/webfonts/fa-solid-900.ttf +0 -0
- package/src/webfonts/fa-solid-900.woff +0 -0
- package/src/webfonts/fa-solid-900.woff2 +0 -0
|
@@ -1,483 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div
|
|
3
|
-
ref="slider"
|
|
4
|
-
:style="styles"
|
|
5
|
-
:class="classes"
|
|
6
|
-
@click="onClick"
|
|
7
|
-
>
|
|
8
|
-
<template v-if="showDots">
|
|
9
|
-
<div
|
|
10
|
-
v-for="(item, idx) in dotList"
|
|
11
|
-
:key="name+'Dot'+idx"
|
|
12
|
-
:style="{ left: `${item.valuePer}%` }"
|
|
13
|
-
:class="`${prefixCls}-dot`"
|
|
14
|
-
@click="onClick"/>
|
|
15
|
-
</template>
|
|
16
|
-
<div
|
|
17
|
-
:style="barStyle"
|
|
18
|
-
:class="`${prefixCls}-bar`"/>
|
|
19
|
-
<slider-tooltip
|
|
20
|
-
:pos-x="leftBtnValuePer"
|
|
21
|
-
:is-dragging="leftBtnDragging"
|
|
22
|
-
:content="leftBtnValue"
|
|
23
|
-
>
|
|
24
|
-
<div
|
|
25
|
-
v-if="isRange"
|
|
26
|
-
:style="`left: ${leftBtnValuePer}%`"
|
|
27
|
-
:class="[`${prefixCls}-btn`, leftBtnDragging ? `${prefixCls}-btn-dragging` : '']"
|
|
28
|
-
@mousedown="onMouseDown($event, 'left')"
|
|
29
|
-
@touchstart="onMouseDown($event, 'left')"
|
|
30
|
-
/>
|
|
31
|
-
</slider-tooltip>
|
|
32
|
-
<slider-tooltip
|
|
33
|
-
:pos-x="rightBtnValuePer"
|
|
34
|
-
:is-dragging="rightBtnDragging"
|
|
35
|
-
:content="rightBtnValue"
|
|
36
|
-
>
|
|
37
|
-
<div
|
|
38
|
-
:style="`left: ${rightBtnValuePer}%`"
|
|
39
|
-
:class="[`${prefixCls}-btn`, rightBtnDragging ? `${prefixCls}-btn-dragging` : '']"
|
|
40
|
-
@mousedown="onMouseDown($event, 'right')"
|
|
41
|
-
@touchstart="onMouseDown($event, 'right')"
|
|
42
|
-
/>
|
|
43
|
-
</slider-tooltip>
|
|
44
|
-
</div>
|
|
45
|
-
</template>
|
|
46
|
-
|
|
47
|
-
<script>
|
|
48
|
-
import '@/styles/evui.css';
|
|
49
|
-
import SliderTooltip from './slider-tooltip';
|
|
50
|
-
|
|
51
|
-
const prefixCls = 'evui-slider';
|
|
52
|
-
|
|
53
|
-
export default {
|
|
54
|
-
components: {
|
|
55
|
-
SliderTooltip,
|
|
56
|
-
},
|
|
57
|
-
props: {
|
|
58
|
-
name: {
|
|
59
|
-
type: String,
|
|
60
|
-
default: '',
|
|
61
|
-
},
|
|
62
|
-
sliderStyle: {
|
|
63
|
-
type: Object,
|
|
64
|
-
default() {
|
|
65
|
-
return {};
|
|
66
|
-
},
|
|
67
|
-
},
|
|
68
|
-
width: {
|
|
69
|
-
type: [String, Number],
|
|
70
|
-
default: 0,
|
|
71
|
-
},
|
|
72
|
-
height: {
|
|
73
|
-
type: [String, Number],
|
|
74
|
-
default: 0,
|
|
75
|
-
},
|
|
76
|
-
max: {
|
|
77
|
-
type: Number,
|
|
78
|
-
default: 100,
|
|
79
|
-
},
|
|
80
|
-
min: {
|
|
81
|
-
type: Number,
|
|
82
|
-
default: 0,
|
|
83
|
-
},
|
|
84
|
-
value: {
|
|
85
|
-
type: [Number, Array],
|
|
86
|
-
default: 0,
|
|
87
|
-
},
|
|
88
|
-
isRange: {
|
|
89
|
-
type: Boolean,
|
|
90
|
-
default: false,
|
|
91
|
-
},
|
|
92
|
-
showDots: {
|
|
93
|
-
type: Boolean,
|
|
94
|
-
default: false,
|
|
95
|
-
},
|
|
96
|
-
step: {
|
|
97
|
-
type: Number,
|
|
98
|
-
default: 1,
|
|
99
|
-
},
|
|
100
|
-
disabled: {
|
|
101
|
-
type: Boolean,
|
|
102
|
-
default: false,
|
|
103
|
-
},
|
|
104
|
-
},
|
|
105
|
-
data() {
|
|
106
|
-
return {
|
|
107
|
-
prefixCls,
|
|
108
|
-
styles: {},
|
|
109
|
-
dotList: [],
|
|
110
|
-
maxValue: 0,
|
|
111
|
-
minValue: 0,
|
|
112
|
-
leftBtnValue: 0,
|
|
113
|
-
leftBtnValuePer: 0,
|
|
114
|
-
leftBtnDragging: false,
|
|
115
|
-
rightBtnValue: 0,
|
|
116
|
-
rightBtnValuePer: 0,
|
|
117
|
-
rightBtnDragging: false,
|
|
118
|
-
};
|
|
119
|
-
},
|
|
120
|
-
computed: {
|
|
121
|
-
classes() {
|
|
122
|
-
return [
|
|
123
|
-
`${prefixCls}`,
|
|
124
|
-
this.disabled ? `${prefixCls}-disabled` : '',
|
|
125
|
-
(this.leftBtnDragging || this.rightBtnDragging) ? `${prefixCls}-dragging` : '',
|
|
126
|
-
];
|
|
127
|
-
},
|
|
128
|
-
barStyle() {
|
|
129
|
-
return `left: ${this.leftBtnValuePer}%; width: ${this.rightBtnValuePer - this.leftBtnValuePer}%`;
|
|
130
|
-
},
|
|
131
|
-
},
|
|
132
|
-
watch: {
|
|
133
|
-
leftBtnValue() {
|
|
134
|
-
const valueRange = this.maxValue - this.minValue;
|
|
135
|
-
|
|
136
|
-
if (valueRange > 0) {
|
|
137
|
-
this.leftBtnValuePer = ((this.leftBtnValue - this.minValue) / valueRange) * 100;
|
|
138
|
-
} else {
|
|
139
|
-
this.leftBtnValuePer = 0;
|
|
140
|
-
}
|
|
141
|
-
},
|
|
142
|
-
rightBtnValue() {
|
|
143
|
-
const valueRange = this.maxValue - this.minValue;
|
|
144
|
-
|
|
145
|
-
if (valueRange > 0) {
|
|
146
|
-
this.rightBtnValuePer = ((this.rightBtnValue - this.minValue) / valueRange) * 100;
|
|
147
|
-
} else {
|
|
148
|
-
this.rightBtnValuePer = 0;
|
|
149
|
-
}
|
|
150
|
-
},
|
|
151
|
-
},
|
|
152
|
-
created() {
|
|
153
|
-
this.initStyles();
|
|
154
|
-
},
|
|
155
|
-
mounted() {
|
|
156
|
-
// if (this.max % this.step) {
|
|
157
|
-
// // max 가 step 으로 나눴을 때 나머지가 생기면, max 범위 내에서 step 의 마지막 지점으로 max 값을 변경해준다.
|
|
158
|
-
// this.maxValue = this.step * Math.floor(this.max / this.step);
|
|
159
|
-
// } else {
|
|
160
|
-
// this.maxValue = this.max;
|
|
161
|
-
// }
|
|
162
|
-
|
|
163
|
-
this.maxValue = this.max;
|
|
164
|
-
this.minValue = this.min;
|
|
165
|
-
|
|
166
|
-
this.initDotList();
|
|
167
|
-
this.initBtnValue();
|
|
168
|
-
},
|
|
169
|
-
methods: {
|
|
170
|
-
initStyles() {
|
|
171
|
-
if (Object.keys(this.sliderStyle).length) {
|
|
172
|
-
Object.assign(this.styles, this.sliderStyle);
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
if (this.width && !this.styles.width) {
|
|
176
|
-
let width;
|
|
177
|
-
|
|
178
|
-
if (typeof this.width === 'number') {
|
|
179
|
-
width = `${this.width}px`;
|
|
180
|
-
} else {
|
|
181
|
-
width = this.width;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
this.styles.width = width;
|
|
185
|
-
}
|
|
186
|
-
},
|
|
187
|
-
initBtnValue() {
|
|
188
|
-
let leftVal = 0;
|
|
189
|
-
let rightVal = 0;
|
|
190
|
-
|
|
191
|
-
if (this.isRange) {
|
|
192
|
-
leftVal = this.value[0] || 0;
|
|
193
|
-
rightVal = this.value[1] || 0;
|
|
194
|
-
} else {
|
|
195
|
-
leftVal = 0;
|
|
196
|
-
rightVal = this.value;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
if (leftVal < this.minValue) {
|
|
200
|
-
leftVal = this.minValue;
|
|
201
|
-
} else if (leftVal > this.maxValue) {
|
|
202
|
-
leftVal = this.maxValue;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
if (rightVal < this.minValue) {
|
|
206
|
-
rightVal = this.minValue;
|
|
207
|
-
} else if (rightVal > this.maxValue) {
|
|
208
|
-
rightVal = this.maxValue;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
this.leftBtnValue = this.getValueCloseToDot(leftVal);
|
|
212
|
-
this.rightBtnValue = this.getValueCloseToDot(rightVal);
|
|
213
|
-
},
|
|
214
|
-
initDotList() {
|
|
215
|
-
let ix = 0;
|
|
216
|
-
let value = 0;
|
|
217
|
-
const valueRange = this.maxValue - this.minValue;
|
|
218
|
-
|
|
219
|
-
this.dotList = [];
|
|
220
|
-
|
|
221
|
-
while (value <= this.maxValue) {
|
|
222
|
-
if (this.minValue <= value) {
|
|
223
|
-
this.dotList.push({
|
|
224
|
-
value,
|
|
225
|
-
valuePer: (((value - this.minValue) / valueRange) * 100).toFixed(4),
|
|
226
|
-
});
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
ix++;
|
|
230
|
-
value = ix * this.step;
|
|
231
|
-
}
|
|
232
|
-
},
|
|
233
|
-
onClick(e) {
|
|
234
|
-
if (this.disabled) {
|
|
235
|
-
return;
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
const clickedValue = this.getClickedValue(e);
|
|
239
|
-
let btnType = 'right';
|
|
240
|
-
|
|
241
|
-
if (this.isRange) {
|
|
242
|
-
const barWidth = this.rightBtnValue - this.leftBtnValue;
|
|
243
|
-
|
|
244
|
-
if (clickedValue < this.leftBtnValue + (barWidth / 2)) {
|
|
245
|
-
btnType = 'left';
|
|
246
|
-
} else {
|
|
247
|
-
btnType = 'right';
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
this.moveButtonPosition(btnType, clickedValue);
|
|
252
|
-
},
|
|
253
|
-
onMouseDown(e, btnType) {
|
|
254
|
-
if (this.disabled) {
|
|
255
|
-
return;
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
e.preventDefault();
|
|
259
|
-
|
|
260
|
-
this.onDragStart(btnType);
|
|
261
|
-
},
|
|
262
|
-
onDragStart(btnType) {
|
|
263
|
-
if (btnType === 'left') {
|
|
264
|
-
this.leftBtnDragging = true;
|
|
265
|
-
} else {
|
|
266
|
-
this.rightBtnDragging = true;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
document.body.style.cursor = 'pointer';
|
|
270
|
-
|
|
271
|
-
this.addEvent('mousemove', this.onDrag);
|
|
272
|
-
this.addEvent('touchmove', this.onDrag);
|
|
273
|
-
this.addEvent('mouseup', this.onDragEnd);
|
|
274
|
-
this.addEvent('touchend', this.onDragEnd);
|
|
275
|
-
},
|
|
276
|
-
onDrag(e) {
|
|
277
|
-
const clickedValue = this.getClickedValue(e);
|
|
278
|
-
const btnType = this.leftBtnDragging ? 'left' : 'right';
|
|
279
|
-
|
|
280
|
-
this.moveButtonPosition(btnType, clickedValue);
|
|
281
|
-
},
|
|
282
|
-
onDragEnd() {
|
|
283
|
-
this.leftBtnDragging = false;
|
|
284
|
-
this.rightBtnDragging = false;
|
|
285
|
-
|
|
286
|
-
document.body.style.cursor = '';
|
|
287
|
-
|
|
288
|
-
this.removeEvent('mousemove', this.onDrag);
|
|
289
|
-
this.removeEvent('touchmove', this.onDrag);
|
|
290
|
-
this.removeEvent('mouseup', this.onDragEnd);
|
|
291
|
-
this.removeEvent('touchend', this.onDragEnd);
|
|
292
|
-
},
|
|
293
|
-
moveButtonPosition(btnType, value) {
|
|
294
|
-
const valueRange = this.maxValue - this.minValue;
|
|
295
|
-
|
|
296
|
-
if (!valueRange) {
|
|
297
|
-
return;
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
const resultVal = this.getValueCloseToDot(value);
|
|
301
|
-
|
|
302
|
-
if (this.isRange) {
|
|
303
|
-
if (btnType === 'left') {
|
|
304
|
-
this.leftBtnValue = resultVal < this.rightBtnValue ? resultVal : this.rightBtnValue;
|
|
305
|
-
} else {
|
|
306
|
-
this.rightBtnValue = resultVal > this.leftBtnValue ? resultVal : this.leftBtnValue;
|
|
307
|
-
}
|
|
308
|
-
} else {
|
|
309
|
-
this.rightBtnValue = resultVal > this.leftBtnValue ? resultVal : this.leftBtnValue;
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
this.$emit('move-button', btnType, btnType === 'left' ? this.leftBtnValue : this.rightBtnValue);
|
|
313
|
-
},
|
|
314
|
-
addEvent(eventName, fn) {
|
|
315
|
-
if (!eventName || !fn) {
|
|
316
|
-
return;
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
if (document.removeEventListener) {
|
|
320
|
-
window.addEventListener(eventName, fn, false);
|
|
321
|
-
} else {
|
|
322
|
-
window.attachEvent(eventName, fn, false);
|
|
323
|
-
}
|
|
324
|
-
},
|
|
325
|
-
removeEvent(eventName, fn) {
|
|
326
|
-
if (!eventName || !fn) {
|
|
327
|
-
return;
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
if (document.removeEventListener) {
|
|
331
|
-
window.removeEventListener(eventName, fn, false);
|
|
332
|
-
} else {
|
|
333
|
-
window.detachEvent(eventName, fn, false);
|
|
334
|
-
}
|
|
335
|
-
},
|
|
336
|
-
getSliderInfo() {
|
|
337
|
-
const sliderEl = this.$refs.slider;
|
|
338
|
-
const offsetInfo = sliderEl.getBoundingClientRect();
|
|
339
|
-
const sliderInfo = {
|
|
340
|
-
el: sliderEl,
|
|
341
|
-
valueRange: this.maxValue - this.minValue,
|
|
342
|
-
offset: {
|
|
343
|
-
left: offsetInfo.left,
|
|
344
|
-
right: offsetInfo.right,
|
|
345
|
-
width: offsetInfo.right - offsetInfo.left,
|
|
346
|
-
onePieceWidth: 0,
|
|
347
|
-
},
|
|
348
|
-
};
|
|
349
|
-
|
|
350
|
-
sliderInfo.offset.onePieceWidth = sliderInfo.offset.width / sliderInfo.valueRange;
|
|
351
|
-
|
|
352
|
-
return sliderInfo;
|
|
353
|
-
},
|
|
354
|
-
getClickedValue(e) {
|
|
355
|
-
const currentOffsetX = this.getClientX(e);
|
|
356
|
-
const sliderInfo = this.getSliderInfo();
|
|
357
|
-
const valueRange = sliderInfo.valueRange;
|
|
358
|
-
const offsetLeft = sliderInfo.offset.left;
|
|
359
|
-
const offsetWidth = sliderInfo.offset.width;
|
|
360
|
-
const clickedValueWidth = ((currentOffsetX - offsetLeft) * valueRange) / offsetWidth;
|
|
361
|
-
let clickedValue = this.minValue + clickedValueWidth;
|
|
362
|
-
|
|
363
|
-
if (clickedValue < this.minValue) {
|
|
364
|
-
clickedValue = this.minValue;
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
if (clickedValue > this.maxValue) {
|
|
368
|
-
clickedValue = this.maxValue;
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
return clickedValue;
|
|
372
|
-
},
|
|
373
|
-
getClientX(e) {
|
|
374
|
-
return e.type.indexOf('touch') !== -1 ? e.touches[0].clientX : e.clientX;
|
|
375
|
-
},
|
|
376
|
-
getValueCloseToDot(value) {
|
|
377
|
-
const quotient = Math.floor(value / this.step);
|
|
378
|
-
const remainder = value % this.step;
|
|
379
|
-
let resultVal = value;
|
|
380
|
-
|
|
381
|
-
if (remainder > (this.step / 2)) {
|
|
382
|
-
resultVal = this.step * (quotient + 1);
|
|
383
|
-
} else {
|
|
384
|
-
resultVal = this.step * quotient;
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
resultVal = resultVal < this.minValue ? (resultVal + this.step) : resultVal;
|
|
388
|
-
resultVal = resultVal > this.maxValue ? (resultVal - this.step) : resultVal;
|
|
389
|
-
|
|
390
|
-
return resultVal;
|
|
391
|
-
},
|
|
392
|
-
},
|
|
393
|
-
};
|
|
394
|
-
</script>
|
|
395
|
-
|
|
396
|
-
<style>
|
|
397
|
-
/************************************************************************************
|
|
398
|
-
Slider Component
|
|
399
|
-
************************************************************************************/
|
|
400
|
-
|
|
401
|
-
/** evui-slider **/
|
|
402
|
-
|
|
403
|
-
.evui-slider {
|
|
404
|
-
position: relative;
|
|
405
|
-
width: 100%;
|
|
406
|
-
height: 4px;
|
|
407
|
-
margin: 4px 0;
|
|
408
|
-
vertical-align: middle;
|
|
409
|
-
background-color: #e9eaec;
|
|
410
|
-
border-radius: 3px;
|
|
411
|
-
}
|
|
412
|
-
.evui-slider-dragging {
|
|
413
|
-
border-color: #2d8cf0;
|
|
414
|
-
cursor: -webkit-grabbing;
|
|
415
|
-
cursor: grabbing;
|
|
416
|
-
}
|
|
417
|
-
.evui-slider:hover:not(.evui-slider-dragging) {
|
|
418
|
-
cursor: -webkit-grab;
|
|
419
|
-
cursor: grab;
|
|
420
|
-
}
|
|
421
|
-
.evui-slider-bar {
|
|
422
|
-
position: absolute;
|
|
423
|
-
height: 4px;
|
|
424
|
-
background: #57a3f3;
|
|
425
|
-
border-radius: 3px;
|
|
426
|
-
}
|
|
427
|
-
.evui-slider-btn {
|
|
428
|
-
position: absolute;
|
|
429
|
-
top: -4px;
|
|
430
|
-
width: 12px;
|
|
431
|
-
height: 12px;
|
|
432
|
-
border: 2px solid #57a3f3;
|
|
433
|
-
border-radius: 50%;
|
|
434
|
-
text-align: center;
|
|
435
|
-
background-color: #fff;
|
|
436
|
-
outline: 0;
|
|
437
|
-
transform: translateX(-4px);
|
|
438
|
-
}
|
|
439
|
-
.evui-slider-btn-dragging:not(:hover) {
|
|
440
|
-
border-color: #2d8cf0;
|
|
441
|
-
transform: translateX(-4px) scale(1.5);
|
|
442
|
-
transition: transform .2s linear;
|
|
443
|
-
}
|
|
444
|
-
.evui-slider-btn:focus,
|
|
445
|
-
.evui-slider-btn:hover {
|
|
446
|
-
border-color: #2d8cf0;
|
|
447
|
-
transform: translateX(-4px) scale(1.5);
|
|
448
|
-
transition: transform .2s linear;
|
|
449
|
-
}
|
|
450
|
-
.evui-slider-dot {
|
|
451
|
-
position: absolute;
|
|
452
|
-
margin-left: -1px;
|
|
453
|
-
width: 4px;
|
|
454
|
-
height: 4px;
|
|
455
|
-
border-radius: 50%;
|
|
456
|
-
background-color: #ccc;
|
|
457
|
-
}
|
|
458
|
-
.evui-slider-disabled {
|
|
459
|
-
cursor: not-allowed
|
|
460
|
-
}
|
|
461
|
-
.evui-slider-disabled .evui-slider {
|
|
462
|
-
background-color: #ccc;
|
|
463
|
-
cursor: not-allowed
|
|
464
|
-
}
|
|
465
|
-
.evui-slider-disabled .evui-slider-bar {
|
|
466
|
-
background-color: #ccc
|
|
467
|
-
}
|
|
468
|
-
.evui-slider-disabled .evui-slider-btn {
|
|
469
|
-
border-color: #ccc
|
|
470
|
-
}
|
|
471
|
-
.evui-slider-disabled .evui-slider-btn:hover {
|
|
472
|
-
border-color: #ccc;
|
|
473
|
-
cursor: not-allowed;
|
|
474
|
-
}
|
|
475
|
-
.evui-slider-input .evui-slider {
|
|
476
|
-
width: auto;
|
|
477
|
-
margin-right: 100px;
|
|
478
|
-
}
|
|
479
|
-
.evui-slider-input .evui-input-number {
|
|
480
|
-
margin-top: -14px;
|
|
481
|
-
float: right;
|
|
482
|
-
}
|
|
483
|
-
</style>
|
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="evui-summary-content">
|
|
3
|
-
<div
|
|
4
|
-
v-for="(menu, index) in totalStore"
|
|
5
|
-
v-show="menu.routerLink !== '/'"
|
|
6
|
-
:key="menu+index"
|
|
7
|
-
class="evui-summary-thumbnail-content"
|
|
8
|
-
>
|
|
9
|
-
<div
|
|
10
|
-
class="evui-summary-thumbnail-title"
|
|
11
|
-
>
|
|
12
|
-
<i class="fas fa-angle-down"/> {{ menu.name }}
|
|
13
|
-
</div>
|
|
14
|
-
<ul class="evui-summary-thumbnail-ul">
|
|
15
|
-
<li
|
|
16
|
-
v-for="(submenu, index) in menu.children"
|
|
17
|
-
:key="submenu+index"
|
|
18
|
-
class="evui-summary-thumbnail-li"
|
|
19
|
-
@click.stop="$emit('clickSummary', menu.name, submenu.name, index)"
|
|
20
|
-
>
|
|
21
|
-
<router-link :to="submenu.routerLink">
|
|
22
|
-
<div class="evui-summary-thumbnail-box-image">
|
|
23
|
-
<img
|
|
24
|
-
:alt="submenu.name"
|
|
25
|
-
:src="submenu.imgUrl || '../static/images/noImage.png'"
|
|
26
|
-
class="evui-summary-thumbnail-img"
|
|
27
|
-
>
|
|
28
|
-
</div>
|
|
29
|
-
<div>
|
|
30
|
-
<h3> {{ submenu.name }} </h3>
|
|
31
|
-
<h4> {{ submenu.content }} </h4>
|
|
32
|
-
</div>
|
|
33
|
-
</router-link>
|
|
34
|
-
</li>
|
|
35
|
-
</ul>
|
|
36
|
-
</div>
|
|
37
|
-
</div>
|
|
38
|
-
</template>
|
|
39
|
-
|
|
40
|
-
<script>
|
|
41
|
-
export default {
|
|
42
|
-
components: {
|
|
43
|
-
},
|
|
44
|
-
props: {
|
|
45
|
-
totalStore: {
|
|
46
|
-
type: Array,
|
|
47
|
-
default: () => [],
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
data() {
|
|
51
|
-
return {
|
|
52
|
-
};
|
|
53
|
-
},
|
|
54
|
-
computed: {
|
|
55
|
-
},
|
|
56
|
-
methods: {
|
|
57
|
-
},
|
|
58
|
-
};
|
|
59
|
-
</script>
|
|
60
|
-
|
|
61
|
-
<style>
|
|
62
|
-
a, span {
|
|
63
|
-
text-decoration: none !important;
|
|
64
|
-
}
|
|
65
|
-
a:visited, a:any-link {
|
|
66
|
-
color: #000;
|
|
67
|
-
}
|
|
68
|
-
.evui-summary-content {
|
|
69
|
-
margin-top: 50px;
|
|
70
|
-
}
|
|
71
|
-
.evui-summary-thumbnail-content {
|
|
72
|
-
margin-bottom: 25px;
|
|
73
|
-
}
|
|
74
|
-
.evui-summary-thumbnail-title {
|
|
75
|
-
height: 25px;
|
|
76
|
-
width: calc(100% - 150px);
|
|
77
|
-
margin-bottom: 10px;
|
|
78
|
-
border-bottom: 2px solid #EBF4FE;
|
|
79
|
-
font-size: 16px;
|
|
80
|
-
font-weight: 800;
|
|
81
|
-
cursor: pointer;
|
|
82
|
-
}
|
|
83
|
-
.evui-summary-thumbnail-ul {
|
|
84
|
-
display: flex;
|
|
85
|
-
flex-wrap: wrap;
|
|
86
|
-
padding: 0 150px 0 10px;
|
|
87
|
-
margin: 0;
|
|
88
|
-
}
|
|
89
|
-
.evui-summary-thumbnail-ul:after {
|
|
90
|
-
flex: auto;
|
|
91
|
-
}
|
|
92
|
-
.evui-summary-thumbnail-li {
|
|
93
|
-
list-style: none;
|
|
94
|
-
float: left;
|
|
95
|
-
width: calc(16.6% - 23px);
|
|
96
|
-
margin: 10px;
|
|
97
|
-
box-shadow: 0 0 4px 4px rgba(0,0,0,0.1);
|
|
98
|
-
word-wrap: break-word;
|
|
99
|
-
}
|
|
100
|
-
.evui-summary-thumbnail-li:hover {
|
|
101
|
-
-webkit-transform: scale(1.05);
|
|
102
|
-
transform: scale(1.05);
|
|
103
|
-
cursor: pointer;
|
|
104
|
-
}
|
|
105
|
-
.evui-summary-thumbnail-li h3 {
|
|
106
|
-
padding: 5px 10px 5px 10px;
|
|
107
|
-
}
|
|
108
|
-
.evui-summary-thumbnail-li h4 {
|
|
109
|
-
padding: 5px 10px 5px 10px;
|
|
110
|
-
}
|
|
111
|
-
.evui-summary-thumbnail-box-image img {
|
|
112
|
-
width: 100%;
|
|
113
|
-
height: 150px;
|
|
114
|
-
border: 1px solid #eeeeee;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
@media all and (max-width: 1400px) {
|
|
118
|
-
.evui-summary-thumbnail-li{
|
|
119
|
-
list-style: none;
|
|
120
|
-
width: calc(25% - 23px);
|
|
121
|
-
margin: 10px;
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
@media all and (max-width: 900px) {
|
|
125
|
-
.evui-summary-thumbnail-li{
|
|
126
|
-
list-style: none;
|
|
127
|
-
width: calc(50% - 23px);
|
|
128
|
-
margin: 10px;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
@media all and (max-width: 600px) {
|
|
132
|
-
.evui-summary-thumbnail-li{
|
|
133
|
-
list-style: none;
|
|
134
|
-
width: calc(100% - 23px);
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
</style>
|
|
138
|
-
|