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,201 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div
|
|
3
|
-
:style="contextChildrenStyle"
|
|
4
|
-
:class="prefixEvui"
|
|
5
|
-
>
|
|
6
|
-
<div
|
|
7
|
-
:class="bodyCls"
|
|
8
|
-
@mouseout="onMouseOut"
|
|
9
|
-
>
|
|
10
|
-
<div :class="`${prefixEvui}-separator`"/>
|
|
11
|
-
<div
|
|
12
|
-
v-for="(item, rowIdx) in items"
|
|
13
|
-
:key="`${item.text}_${depth}_${rowIdx}`"
|
|
14
|
-
:class="`${prefixEvui}-row`"
|
|
15
|
-
@click="onRowClick(item, depth, rowIdx)"
|
|
16
|
-
@mouseover="onMouseOver(item.text, depth, rowIdx)"
|
|
17
|
-
>
|
|
18
|
-
{{ item.text }}
|
|
19
|
-
<i
|
|
20
|
-
v-if="item.items"
|
|
21
|
-
:class="`${prefixEvui}-right-arrow`"
|
|
22
|
-
/>
|
|
23
|
-
</div>
|
|
24
|
-
</div>
|
|
25
|
-
<ev-context-menu-children
|
|
26
|
-
v-for="(item, rowIdx) in items"
|
|
27
|
-
v-if="item.items"
|
|
28
|
-
v-show="getSubMenuKey(item.text, depth, rowIdx) === subMenuKey"
|
|
29
|
-
:key="getSubMenuKey(item.text, depth, rowIdx)"
|
|
30
|
-
:parent-row-idx="rowIdx"
|
|
31
|
-
:depth="depth + 1"
|
|
32
|
-
:items="item.items"
|
|
33
|
-
@click="onClick"
|
|
34
|
-
/>
|
|
35
|
-
</div>
|
|
36
|
-
</template>
|
|
37
|
-
|
|
38
|
-
<script>
|
|
39
|
-
import '@/styles/all.css';
|
|
40
|
-
import '@/styles/evui.css';
|
|
41
|
-
|
|
42
|
-
const prefixEvui = 'ev-contextmenu-children';
|
|
43
|
-
|
|
44
|
-
export default {
|
|
45
|
-
props: {
|
|
46
|
-
depth: {
|
|
47
|
-
type: Number,
|
|
48
|
-
default: 0,
|
|
49
|
-
},
|
|
50
|
-
parentRowIdx: {
|
|
51
|
-
type: Number,
|
|
52
|
-
default: 0,
|
|
53
|
-
},
|
|
54
|
-
items: {
|
|
55
|
-
type: Array,
|
|
56
|
-
default() {
|
|
57
|
-
return [];
|
|
58
|
-
},
|
|
59
|
-
validator(value) {
|
|
60
|
-
return value != null && value.constructor === Array;
|
|
61
|
-
},
|
|
62
|
-
},
|
|
63
|
-
click: {
|
|
64
|
-
type: Function,
|
|
65
|
-
default: () => {},
|
|
66
|
-
},
|
|
67
|
-
},
|
|
68
|
-
data() {
|
|
69
|
-
return {
|
|
70
|
-
prefixEvui,
|
|
71
|
-
contextChildrenStyle: '',
|
|
72
|
-
bodyCls: '',
|
|
73
|
-
subMenuKey: '',
|
|
74
|
-
nextDepth: 1,
|
|
75
|
-
};
|
|
76
|
-
},
|
|
77
|
-
created() {
|
|
78
|
-
this.contextChildrenStyle = this.getContextChildrenStyle();
|
|
79
|
-
this.bodyCls = this.getBodyClasses();
|
|
80
|
-
this.nextDepth = this.depth + 1;
|
|
81
|
-
},
|
|
82
|
-
methods: {
|
|
83
|
-
onRowClick(item, depth, rowIdx) {
|
|
84
|
-
this.$emit('click', { ...item, depth, rowIdx, parentRowIdx: this.parentRowIdx });
|
|
85
|
-
},
|
|
86
|
-
onClick(item) {
|
|
87
|
-
this.$emit('click', item);
|
|
88
|
-
},
|
|
89
|
-
onMouseOver(text, depth, rowIdx) {
|
|
90
|
-
this.subMenuKey = this.getSubMenuKey(text, depth, rowIdx);
|
|
91
|
-
},
|
|
92
|
-
onMouseOut() {
|
|
93
|
-
event.stopPropagation();
|
|
94
|
-
this.clearSubMenuKey(this.$children);
|
|
95
|
-
},
|
|
96
|
-
getSubMenuKey(text, depth, rowIdx) {
|
|
97
|
-
return `menu_sub_${text}_${depth}_${rowIdx}`;
|
|
98
|
-
},
|
|
99
|
-
getContextChildrenStyle() {
|
|
100
|
-
return this.depth === 0 ? '' : `margin-top: ${26 * this.parentRowIdx}px; left: -2px;`;
|
|
101
|
-
},
|
|
102
|
-
getBodyClasses() {
|
|
103
|
-
return [
|
|
104
|
-
`${prefixEvui}-body`,
|
|
105
|
-
{
|
|
106
|
-
[`${prefixEvui}-box-style`]: this.depth !== 0,
|
|
107
|
-
},
|
|
108
|
-
];
|
|
109
|
-
},
|
|
110
|
-
clearSubMenuKey(children) {
|
|
111
|
-
if (!children || children.constructor !== Array) {
|
|
112
|
-
return;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
let cmp;
|
|
116
|
-
|
|
117
|
-
for (let ix = 0, ixLen = children.length; ix < ixLen; ix++) {
|
|
118
|
-
cmp = children[ix];
|
|
119
|
-
|
|
120
|
-
if (cmp.subMenuKey) {
|
|
121
|
-
cmp.subMenuKey = '';
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
this.clearSubMenuKey(cmp.$children);
|
|
125
|
-
}
|
|
126
|
-
},
|
|
127
|
-
},
|
|
128
|
-
};
|
|
129
|
-
</script>
|
|
130
|
-
|
|
131
|
-
<style>
|
|
132
|
-
.ev-contextmenu-children{
|
|
133
|
-
position: relative;
|
|
134
|
-
float: left;
|
|
135
|
-
z-index: 9999;
|
|
136
|
-
}
|
|
137
|
-
.ev-contextmenu-children-body{
|
|
138
|
-
float: left;
|
|
139
|
-
position: relative;
|
|
140
|
-
border: 1px solid #d0d0d0;
|
|
141
|
-
font-size: 12px;
|
|
142
|
-
background: #f0f0f0;
|
|
143
|
-
color: #222222;
|
|
144
|
-
}
|
|
145
|
-
.ev-contextmenu-children-box-style{
|
|
146
|
-
border-radius: 3px 0 0 3px;
|
|
147
|
-
box-shadow: 2px 2px #9c9c9c;
|
|
148
|
-
}
|
|
149
|
-
.ev-contextmenu-children-separator {
|
|
150
|
-
position: absolute;
|
|
151
|
-
top: 0;
|
|
152
|
-
left: 20px;
|
|
153
|
-
width: 2px;
|
|
154
|
-
height: 100%;
|
|
155
|
-
background-color: white;
|
|
156
|
-
border-left: solid 1px #e0e0e0;
|
|
157
|
-
overflow: hidden;
|
|
158
|
-
}
|
|
159
|
-
.ev-contextmenu-children-row{
|
|
160
|
-
position: relative;
|
|
161
|
-
padding: 2px 22px 2px 30px;
|
|
162
|
-
line-height: 22px;
|
|
163
|
-
white-space: nowrap;
|
|
164
|
-
overflow: hidden;
|
|
165
|
-
cursor: pointer;
|
|
166
|
-
}
|
|
167
|
-
.ev-contextmenu-children-row:hover{
|
|
168
|
-
margin: 0 2px 0 2px;
|
|
169
|
-
padding: 1px 19px 1px 27px;
|
|
170
|
-
background-color: #e6e6e6;
|
|
171
|
-
border: 1px solid #9d9d9d;
|
|
172
|
-
border-radius: 3px;
|
|
173
|
-
}
|
|
174
|
-
.ev-contextmenu-children-right-arrow{
|
|
175
|
-
position: absolute;
|
|
176
|
-
}
|
|
177
|
-
.ev-contextmenu-children-right-arrow:after{
|
|
178
|
-
padding-left: 8px;
|
|
179
|
-
vertical-align: middle;
|
|
180
|
-
font: bold 16px "Font Awesome\ 5 Free";
|
|
181
|
-
color: #9c9c9c;
|
|
182
|
-
background: -webkit-linear-gradient(#eee, #333);
|
|
183
|
-
-webkit-background-clip: text;
|
|
184
|
-
-webkit-text-fill-color: transparent;
|
|
185
|
-
content: "\f0da";
|
|
186
|
-
}
|
|
187
|
-
.ev-contextmenu-children-sub-row{
|
|
188
|
-
position: relative;
|
|
189
|
-
padding: 2px 24px 2px 34px;
|
|
190
|
-
line-height: 22px;
|
|
191
|
-
white-space: nowrap;
|
|
192
|
-
overflow: hidden;
|
|
193
|
-
cursor: pointer;
|
|
194
|
-
}
|
|
195
|
-
.ev-contextmenu-children-sub-row:hover{
|
|
196
|
-
padding: 1px 11px 1px 33px;
|
|
197
|
-
background-color: #e6e6e6;
|
|
198
|
-
border: 1px solid #9d9d9d;
|
|
199
|
-
border-radius: 3px;
|
|
200
|
-
}
|
|
201
|
-
</style>
|
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div
|
|
3
|
-
v-click-outside="hide"
|
|
4
|
-
v-show="isShow"
|
|
5
|
-
:style="ctxMenuStyle"
|
|
6
|
-
:class="prefixEvui"
|
|
7
|
-
>
|
|
8
|
-
<ev-context-menu-children
|
|
9
|
-
ref="ctxChildren"
|
|
10
|
-
:depth="0"
|
|
11
|
-
:items="items"
|
|
12
|
-
@click="onClick"
|
|
13
|
-
/>
|
|
14
|
-
</div>
|
|
15
|
-
</template>
|
|
16
|
-
|
|
17
|
-
<script>
|
|
18
|
-
import '@/styles/evui.css';
|
|
19
|
-
import { getQuantity } from '../../common/utils';
|
|
20
|
-
|
|
21
|
-
const prefixEvui = 'ev-contextmenu';
|
|
22
|
-
|
|
23
|
-
export default {
|
|
24
|
-
directives: {
|
|
25
|
-
'click-outside': {
|
|
26
|
-
bind(el, binding) {
|
|
27
|
-
const contextMenuEl = el;
|
|
28
|
-
const bubble = binding.modifiers.bubble;
|
|
29
|
-
const handler = (e) => {
|
|
30
|
-
if (bubble || (contextMenuEl !== e.target && !contextMenuEl.contains(e.target))) {
|
|
31
|
-
binding.value(e);
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
contextMenuEl.vueClickOutside = handler;
|
|
35
|
-
|
|
36
|
-
document.addEventListener('mousedown', handler);
|
|
37
|
-
},
|
|
38
|
-
unbind(el) {
|
|
39
|
-
const contextMenuEl = el;
|
|
40
|
-
document.removeEventListener('mousedown', contextMenuEl.vueClickOutside);
|
|
41
|
-
contextMenuEl.vueClickOutside = null;
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
props: {
|
|
46
|
-
isUse: {
|
|
47
|
-
type: Boolean,
|
|
48
|
-
default: true,
|
|
49
|
-
},
|
|
50
|
-
x: {
|
|
51
|
-
type: Number,
|
|
52
|
-
default: 0,
|
|
53
|
-
},
|
|
54
|
-
y: {
|
|
55
|
-
type: Number,
|
|
56
|
-
default: 0,
|
|
57
|
-
},
|
|
58
|
-
items: {
|
|
59
|
-
type: Array,
|
|
60
|
-
default() {
|
|
61
|
-
return [];
|
|
62
|
-
},
|
|
63
|
-
validator(value) {
|
|
64
|
-
return value != null && value.constructor === Array;
|
|
65
|
-
},
|
|
66
|
-
},
|
|
67
|
-
},
|
|
68
|
-
data() {
|
|
69
|
-
return {
|
|
70
|
-
prefixEvui,
|
|
71
|
-
top: 0,
|
|
72
|
-
left: 0,
|
|
73
|
-
isShow: false,
|
|
74
|
-
};
|
|
75
|
-
},
|
|
76
|
-
computed: {
|
|
77
|
-
ctxMenuStyle() {
|
|
78
|
-
return `top: ${this.top}px; left: ${this.left}px;`;
|
|
79
|
-
},
|
|
80
|
-
},
|
|
81
|
-
created() {
|
|
82
|
-
this.setPosition(this.x, this.y);
|
|
83
|
-
},
|
|
84
|
-
mounted() {
|
|
85
|
-
this.parentAddListener();
|
|
86
|
-
this.moveElToBody();
|
|
87
|
-
},
|
|
88
|
-
beforeDestroy() {
|
|
89
|
-
if (this.$el) {
|
|
90
|
-
this.$el.remove();
|
|
91
|
-
}
|
|
92
|
-
},
|
|
93
|
-
methods: {
|
|
94
|
-
parentAddListener() {
|
|
95
|
-
const parentEl = this.$el.parentElement;
|
|
96
|
-
|
|
97
|
-
if (parentEl) {
|
|
98
|
-
parentEl.addEventListener('contextmenu', this.onContextMenu);
|
|
99
|
-
}
|
|
100
|
-
},
|
|
101
|
-
moveElToBody() {
|
|
102
|
-
document.body.appendChild(this.$el);
|
|
103
|
-
},
|
|
104
|
-
onContextMenu(e) {
|
|
105
|
-
this.setPosition(e.clientX, e.clientY);
|
|
106
|
-
this.show();
|
|
107
|
-
e.preventDefault();
|
|
108
|
-
},
|
|
109
|
-
onClick(item) {
|
|
110
|
-
if (!item.items) {
|
|
111
|
-
this.hide();
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
this.$emit('click', item);
|
|
115
|
-
},
|
|
116
|
-
setPosition(x, y) {
|
|
117
|
-
const posX = getQuantity(x) || { value: 0 };
|
|
118
|
-
const posY = getQuantity(y) || { value: 0 };
|
|
119
|
-
this.top = posY.value;
|
|
120
|
-
this.left = posX.value;
|
|
121
|
-
},
|
|
122
|
-
show() {
|
|
123
|
-
if (this.isUse) {
|
|
124
|
-
this.isShow = true;
|
|
125
|
-
}
|
|
126
|
-
},
|
|
127
|
-
hide() {
|
|
128
|
-
this.isShow = false;
|
|
129
|
-
const ctxChildren = this.$refs.ctxChildren;
|
|
130
|
-
|
|
131
|
-
if (ctxChildren && ctxChildren.clearSubMenuKey) {
|
|
132
|
-
ctxChildren.clearSubMenuKey(this.$children);
|
|
133
|
-
}
|
|
134
|
-
},
|
|
135
|
-
},
|
|
136
|
-
};
|
|
137
|
-
</script>
|
|
138
|
-
|
|
139
|
-
<style>
|
|
140
|
-
.ev-contextmenu{
|
|
141
|
-
position: absolute;
|
|
142
|
-
z-index: 9999;
|
|
143
|
-
}
|
|
144
|
-
</style>
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="evui-left-navigation">
|
|
3
|
-
<ul class="evui-menu">
|
|
4
|
-
<li
|
|
5
|
-
v-for="(menu, index) in store"
|
|
6
|
-
:key="menu.name + index"
|
|
7
|
-
class="evui-menu-group"
|
|
8
|
-
>
|
|
9
|
-
<div
|
|
10
|
-
class="evui-menu-group-title"
|
|
11
|
-
>
|
|
12
|
-
<i
|
|
13
|
-
v-show="menu.cls"
|
|
14
|
-
:class="menu.cls"
|
|
15
|
-
/> {{ menu.name }}
|
|
16
|
-
</div>
|
|
17
|
-
<ul
|
|
18
|
-
v-for="(submenu, index) in menu.children"
|
|
19
|
-
v-show="menu.children"
|
|
20
|
-
:key="submenu.name + index"
|
|
21
|
-
class="evui-menu-group-sub"
|
|
22
|
-
>
|
|
23
|
-
<li
|
|
24
|
-
:class="selectedMenu.name === submenu.name ? 'active' : ''"
|
|
25
|
-
class="evui-menu-item"
|
|
26
|
-
@click="setSelectedMenu(menu.name, submenu.name, index)"
|
|
27
|
-
>
|
|
28
|
-
{{ submenu.name }}
|
|
29
|
-
</li>
|
|
30
|
-
</ul>
|
|
31
|
-
</li>
|
|
32
|
-
</ul>
|
|
33
|
-
</div>
|
|
34
|
-
</template>
|
|
35
|
-
|
|
36
|
-
<script>
|
|
37
|
-
export default {
|
|
38
|
-
model: {
|
|
39
|
-
},
|
|
40
|
-
props: {
|
|
41
|
-
store: {
|
|
42
|
-
type: Array,
|
|
43
|
-
default: () => [],
|
|
44
|
-
},
|
|
45
|
-
},
|
|
46
|
-
data() {
|
|
47
|
-
return {
|
|
48
|
-
selectedMenu: {
|
|
49
|
-
parentName: '',
|
|
50
|
-
name: '',
|
|
51
|
-
index: '',
|
|
52
|
-
},
|
|
53
|
-
};
|
|
54
|
-
},
|
|
55
|
-
computed: {
|
|
56
|
-
},
|
|
57
|
-
methods: {
|
|
58
|
-
initSelectedMenu() {
|
|
59
|
-
this.selectedMenu.parentName = '';
|
|
60
|
-
this.selectedMenu.name = '';
|
|
61
|
-
this.selectedMenu.index = '';
|
|
62
|
-
},
|
|
63
|
-
setSelectedMenu(parentMenu, childMenu, childIndex) {
|
|
64
|
-
this.selectedMenu.parentName = parentMenu;
|
|
65
|
-
this.selectedMenu.name = childMenu;
|
|
66
|
-
this.selectedMenu.index = childIndex;
|
|
67
|
-
},
|
|
68
|
-
},
|
|
69
|
-
};
|
|
70
|
-
</script>
|
|
71
|
-
|
|
72
|
-
<style scoped>
|
|
73
|
-
.evui-left-navigation {
|
|
74
|
-
width: 240px;
|
|
75
|
-
border-right: 1px solid #dddee0;
|
|
76
|
-
}
|
|
77
|
-
.evui-menu {
|
|
78
|
-
display: block;
|
|
79
|
-
width: 100%;
|
|
80
|
-
background: #fff;
|
|
81
|
-
z-index: 900;
|
|
82
|
-
}
|
|
83
|
-
.evui-menu-group {
|
|
84
|
-
list-style-type: none;
|
|
85
|
-
}
|
|
86
|
-
.evui-menu-group-sub {
|
|
87
|
-
list-style-type: none;
|
|
88
|
-
}
|
|
89
|
-
.evui-menu-group-title {
|
|
90
|
-
height: 48px;
|
|
91
|
-
line-height: 48px;
|
|
92
|
-
padding-left: 20px;
|
|
93
|
-
font-weight: bold;
|
|
94
|
-
user-select: none;
|
|
95
|
-
}
|
|
96
|
-
.evui-menu-group-title > i {
|
|
97
|
-
margin-right: 10px;
|
|
98
|
-
}
|
|
99
|
-
.evui-menu-item {
|
|
100
|
-
height: 35px;
|
|
101
|
-
line-height: 35px;
|
|
102
|
-
padding-left: 30px;
|
|
103
|
-
border-right: 2px solid transparent;
|
|
104
|
-
color: #888888;
|
|
105
|
-
background-color: #ffffff;
|
|
106
|
-
z-index: 1;
|
|
107
|
-
cursor: pointer;
|
|
108
|
-
}
|
|
109
|
-
.evui-menu-item:hover {
|
|
110
|
-
border-right: 4px solid #2D89EF;
|
|
111
|
-
color: #2d8cf0;
|
|
112
|
-
}
|
|
113
|
-
.evui-menu-item.active {
|
|
114
|
-
border-right: 4px solid #2D89EF;
|
|
115
|
-
color: #f1f1f1;
|
|
116
|
-
background-color: #2D89EF;
|
|
117
|
-
transition: background-color 600ms ease;
|
|
118
|
-
z-index: 2;
|
|
119
|
-
}
|
|
120
|
-
a:hover {
|
|
121
|
-
color: #2D89EF;
|
|
122
|
-
}
|
|
123
|
-
</style>
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<slot/>
|
|
4
|
-
</div>
|
|
5
|
-
</template>
|
|
6
|
-
<script>
|
|
7
|
-
|
|
8
|
-
export default {
|
|
9
|
-
components: {
|
|
10
|
-
},
|
|
11
|
-
props: {
|
|
12
|
-
value: {
|
|
13
|
-
type: String,
|
|
14
|
-
default: '',
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
data() {
|
|
18
|
-
return {
|
|
19
|
-
};
|
|
20
|
-
},
|
|
21
|
-
componentName: 'RadioGroup',
|
|
22
|
-
computed: {
|
|
23
|
-
},
|
|
24
|
-
watch: {
|
|
25
|
-
value(v) {
|
|
26
|
-
this.initValue(v);
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
created() {
|
|
30
|
-
},
|
|
31
|
-
mounted() {
|
|
32
|
-
this.initValue();
|
|
33
|
-
},
|
|
34
|
-
methods: {
|
|
35
|
-
initValue(v) {
|
|
36
|
-
if (this.$children && this.$children instanceof Array) {
|
|
37
|
-
this.$children.forEach((c) => {
|
|
38
|
-
const child = c;
|
|
39
|
-
child.bindValue = v || this.value;
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
};
|
|
45
|
-
</script>
|
|
46
|
-
|
|
47
|
-
<style scoped>
|
|
48
|
-
</style>
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div
|
|
3
|
-
:class="{ disabled: disabled }"
|
|
4
|
-
class="ev-radio-wrap"
|
|
5
|
-
>
|
|
6
|
-
<label
|
|
7
|
-
:for="`${radioId}_${value}`"
|
|
8
|
-
class="ev-radio-label"
|
|
9
|
-
>
|
|
10
|
-
<input
|
|
11
|
-
:id="`${radioId}_${value}`"
|
|
12
|
-
:value="value"
|
|
13
|
-
:name="groupName"
|
|
14
|
-
:disabled="disabled"
|
|
15
|
-
v-model="bindValue"
|
|
16
|
-
type="radio"
|
|
17
|
-
class="ev-radio-input"
|
|
18
|
-
@change="onChange"
|
|
19
|
-
>
|
|
20
|
-
<slot/>
|
|
21
|
-
</label>
|
|
22
|
-
</div>
|
|
23
|
-
</template>
|
|
24
|
-
|
|
25
|
-
<script>
|
|
26
|
-
export default {
|
|
27
|
-
model: {
|
|
28
|
-
prop: 'customValue',
|
|
29
|
-
},
|
|
30
|
-
props: {
|
|
31
|
-
value: {
|
|
32
|
-
type: String,
|
|
33
|
-
required: true,
|
|
34
|
-
},
|
|
35
|
-
customValue: {
|
|
36
|
-
type: String,
|
|
37
|
-
default: '',
|
|
38
|
-
},
|
|
39
|
-
groupName: {
|
|
40
|
-
type: String,
|
|
41
|
-
default: '',
|
|
42
|
-
},
|
|
43
|
-
disabled: {
|
|
44
|
-
type: Boolean,
|
|
45
|
-
default: false,
|
|
46
|
-
},
|
|
47
|
-
},
|
|
48
|
-
data() {
|
|
49
|
-
return {
|
|
50
|
-
bindValue: this.customValue,
|
|
51
|
-
radioId: this._uid,
|
|
52
|
-
};
|
|
53
|
-
},
|
|
54
|
-
computed: {
|
|
55
|
-
},
|
|
56
|
-
watch: {
|
|
57
|
-
},
|
|
58
|
-
created() {
|
|
59
|
-
},
|
|
60
|
-
mounted() {
|
|
61
|
-
},
|
|
62
|
-
methods: {
|
|
63
|
-
onChange(e) {
|
|
64
|
-
if (this.$parent.$options.componentName === 'RadioGroup') {
|
|
65
|
-
// 부모 컴포넌트가 Radio Group인 경우
|
|
66
|
-
this.$parent.$emit('changeEvent', e);
|
|
67
|
-
this.$parent.$emit('input', e.target.value);
|
|
68
|
-
}
|
|
69
|
-
// else {
|
|
70
|
-
// // 부모 컴포넌트가 Radio Group로 안감싼경우
|
|
71
|
-
// this.$emit('input', e.target.value);
|
|
72
|
-
// }
|
|
73
|
-
},
|
|
74
|
-
},
|
|
75
|
-
};
|
|
76
|
-
</script>
|
|
77
|
-
|
|
78
|
-
<style scoped>
|
|
79
|
-
.ev-radio-wrap {
|
|
80
|
-
float: left;
|
|
81
|
-
user-select: none;
|
|
82
|
-
cursor: pointer;
|
|
83
|
-
}
|
|
84
|
-
.ev-radio-wrap.disabled {
|
|
85
|
-
color: #C0C4CC;
|
|
86
|
-
cursor: not-allowed;
|
|
87
|
-
}
|
|
88
|
-
.ev-radio-label {
|
|
89
|
-
cursor: inherit;
|
|
90
|
-
}
|
|
91
|
-
.ev-radio-input {
|
|
92
|
-
vertical-align: middle;
|
|
93
|
-
cursor: inherit;
|
|
94
|
-
}
|
|
95
|
-
</style>
|