evui 3.4.207 → 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 -63681
- package/dist/evui.common.js.map +0 -1
- package/dist/evui.umd.js +0 -63691
- 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 -1659
- 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,195 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<button
|
|
3
|
-
ref="buttonRef"
|
|
4
|
-
class="ev-button"
|
|
5
|
-
:class="{
|
|
6
|
-
disabled,
|
|
7
|
-
[`type-${type}`]: !!type,
|
|
8
|
-
[`shape-${shape}`]: shape !== 'square',
|
|
9
|
-
[`size-${size}`]: size !== 'medium',
|
|
10
|
-
}"
|
|
11
|
-
:type="htmlType"
|
|
12
|
-
:disabled="disabled"
|
|
13
|
-
:autofocus="autoFocus"
|
|
14
|
-
@click="(e) => $emit('click', e)"
|
|
15
|
-
>
|
|
16
|
-
<slot />
|
|
17
|
-
</button>
|
|
18
|
-
</template>
|
|
19
|
-
|
|
20
|
-
<script>
|
|
21
|
-
import { onMounted, ref } from 'vue';
|
|
22
|
-
|
|
23
|
-
export default {
|
|
24
|
-
name: 'EvButton',
|
|
25
|
-
props: {
|
|
26
|
-
disabled: {
|
|
27
|
-
type: Boolean,
|
|
28
|
-
default: false,
|
|
29
|
-
},
|
|
30
|
-
autoFocus: {
|
|
31
|
-
type: Boolean,
|
|
32
|
-
default: false,
|
|
33
|
-
},
|
|
34
|
-
type: {
|
|
35
|
-
type: String,
|
|
36
|
-
default: 'default',
|
|
37
|
-
},
|
|
38
|
-
htmlType: {
|
|
39
|
-
type: String,
|
|
40
|
-
default: 'button',
|
|
41
|
-
validator: val => ['button', 'submit', 'reset'].includes(val),
|
|
42
|
-
},
|
|
43
|
-
shape: {
|
|
44
|
-
type: String,
|
|
45
|
-
default: 'square',
|
|
46
|
-
},
|
|
47
|
-
size: {
|
|
48
|
-
type: String,
|
|
49
|
-
default: 'medium',
|
|
50
|
-
},
|
|
51
|
-
},
|
|
52
|
-
emits: {
|
|
53
|
-
click: null,
|
|
54
|
-
},
|
|
55
|
-
setup(props) {
|
|
56
|
-
const buttonRef = ref(null);
|
|
57
|
-
|
|
58
|
-
onMounted(() => {
|
|
59
|
-
if (props.autoFocus) {
|
|
60
|
-
buttonRef.value.focus();
|
|
61
|
-
}
|
|
62
|
-
});
|
|
63
|
-
|
|
64
|
-
return {
|
|
65
|
-
buttonRef,
|
|
66
|
-
};
|
|
67
|
-
},
|
|
68
|
-
};
|
|
69
|
-
</script>
|
|
70
|
-
|
|
71
|
-
<style lang="scss">
|
|
72
|
-
@import '../../style/index.scss';
|
|
73
|
-
|
|
74
|
-
.ev-button {
|
|
75
|
-
$default-padding: 12px;
|
|
76
|
-
$default-height: $input-default-height;
|
|
77
|
-
|
|
78
|
-
height: $default-height;
|
|
79
|
-
padding: 0 $default-padding;
|
|
80
|
-
line-height: $default-height;
|
|
81
|
-
font-size: $font-size-medium;
|
|
82
|
-
border-radius: $default-radius;
|
|
83
|
-
cursor: pointer;
|
|
84
|
-
outline: none;
|
|
85
|
-
color: $color-white;
|
|
86
|
-
transition: opacity $animate-base;
|
|
87
|
-
|
|
88
|
-
@each $type in (
|
|
89
|
-
'default',
|
|
90
|
-
'primary',
|
|
91
|
-
'info',
|
|
92
|
-
'warning',
|
|
93
|
-
'error',
|
|
94
|
-
'ghost',
|
|
95
|
-
'dashed',
|
|
96
|
-
'text',
|
|
97
|
-
) {
|
|
98
|
-
&.type-#{$type} {
|
|
99
|
-
@if $type != 'ghost' and $type != 'dashed' and $type != 'text' {
|
|
100
|
-
@include evThemify() {
|
|
101
|
-
border: 1px solid evThemed($type);
|
|
102
|
-
background-color: evThemed($type);
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
@else if $type == 'ghost' {
|
|
107
|
-
background-color: transparent;
|
|
108
|
-
|
|
109
|
-
@include evThemify() {
|
|
110
|
-
border: 1px solid evThemed('border-base');
|
|
111
|
-
color: evThemed('font-base');
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
@else if $type == 'dashed' {
|
|
115
|
-
background-color: transparent;
|
|
116
|
-
|
|
117
|
-
@include evThemify() {
|
|
118
|
-
border: 1px dashed evThemed('border-base');
|
|
119
|
-
color: evThemed('font-base');
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
@else if $type == 'text' {
|
|
123
|
-
border: 1px solid transparent;
|
|
124
|
-
background-color: transparent;
|
|
125
|
-
|
|
126
|
-
@include evThemify() {
|
|
127
|
-
color: evThemed('font-base');
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
@each $shape, $radius in (
|
|
133
|
-
'radius': 40px,
|
|
134
|
-
'circle': 50%,
|
|
135
|
-
) {
|
|
136
|
-
&.shape-#{$shape} {
|
|
137
|
-
border-radius: $radius;
|
|
138
|
-
|
|
139
|
-
@if $shape == 'circle' {
|
|
140
|
-
min-width: $default-height;
|
|
141
|
-
padding: 0 10px;
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
@each $size, $size-gap in (
|
|
146
|
-
'large': 5px,
|
|
147
|
-
'small': -5px,
|
|
148
|
-
) {
|
|
149
|
-
&.size-#{$size} {
|
|
150
|
-
height: $default-height + $size-gap;
|
|
151
|
-
padding: 0 #{$default-padding + $size-gap};
|
|
152
|
-
line-height: $default-height + $size-gap;
|
|
153
|
-
|
|
154
|
-
@if $size == 'small' {
|
|
155
|
-
font-size: $font-size-base;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
@else if $size == 'large' {
|
|
159
|
-
font-size: $font-size-large;
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
&:hover,
|
|
165
|
-
&:focus {
|
|
166
|
-
opacity: 0.7;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
@include state('disabled') {
|
|
170
|
-
opacity: 0.5;
|
|
171
|
-
cursor: not-allowed;
|
|
172
|
-
|
|
173
|
-
&:hover,
|
|
174
|
-
&:focus {
|
|
175
|
-
opacity: 0.5;
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
@include state('ev-button-group') {
|
|
181
|
-
.ev-button {
|
|
182
|
-
margin: 0;
|
|
183
|
-
border-radius: 0 !important;
|
|
184
|
-
border-left: 1px solid $color-white !important;
|
|
185
|
-
|
|
186
|
-
&:first-child {
|
|
187
|
-
border-radius: $default-radius 0 0 $default-radius !important;
|
|
188
|
-
border-left: 1px solid transparent !important;
|
|
189
|
-
}
|
|
190
|
-
&:last-child {
|
|
191
|
-
border-radius: 0 $default-radius $default-radius 0 !important;
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
</style>
|