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,349 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<tr
|
|
3
|
-
:data-index="node.index"
|
|
4
|
-
:class="getRowClass(node)"
|
|
5
|
-
@click="onClick($event, node)"
|
|
6
|
-
@dblclick="onDblClick($event, node)"
|
|
7
|
-
>
|
|
8
|
-
<td
|
|
9
|
-
v-if="useCheckbox.use"
|
|
10
|
-
:class="checkboxClass"
|
|
11
|
-
:style="{
|
|
12
|
-
width: `${minWidth}px`,
|
|
13
|
-
height: `${rowHeight}px`,
|
|
14
|
-
'border-right': '1px solid #CFCFCF',
|
|
15
|
-
}"
|
|
16
|
-
>
|
|
17
|
-
<ev-checkbox
|
|
18
|
-
v-model="node.checked"
|
|
19
|
-
:disabled="node.uncheckable"
|
|
20
|
-
:indeterminate="node.indeterminate"
|
|
21
|
-
class="row-checkbox-input"
|
|
22
|
-
@change="onCheck($event, node)"
|
|
23
|
-
/>
|
|
24
|
-
</td>
|
|
25
|
-
<template
|
|
26
|
-
v-for="(column, cellIndex) in orderedColumns"
|
|
27
|
-
:key="cellIndex"
|
|
28
|
-
>
|
|
29
|
-
<td
|
|
30
|
-
v-if="!column.hide && !column.hiddenDisplay"
|
|
31
|
-
:data-name="column.field"
|
|
32
|
-
:data-index="node.index"
|
|
33
|
-
:class="getColumnClass(column, cellIndex)"
|
|
34
|
-
:style="getColumnStyle(column, cellIndex)"
|
|
35
|
-
>
|
|
36
|
-
<div class="td-content__wrapper">
|
|
37
|
-
<!--Level Depth-->
|
|
38
|
-
<span
|
|
39
|
-
v-if="cellIndex === expandColumnIdx"
|
|
40
|
-
:style="getDepthStyle(node.level)"
|
|
41
|
-
>
|
|
42
|
-
</span>
|
|
43
|
-
<!--Expand Icon-->
|
|
44
|
-
<span
|
|
45
|
-
v-if="cellIndex === expandColumnIdx"
|
|
46
|
-
:class="{
|
|
47
|
-
expand: node.expand,
|
|
48
|
-
'ev-tree-toggle': true
|
|
49
|
-
}"
|
|
50
|
-
>
|
|
51
|
-
<template v-if="node.hasChild">
|
|
52
|
-
<ev-icon
|
|
53
|
-
v-if="expandIconClasses(node)"
|
|
54
|
-
:icon="expandIconClasses(node)"
|
|
55
|
-
style="display: block;"
|
|
56
|
-
@click="onExpand(node)"
|
|
57
|
-
/>
|
|
58
|
-
<button
|
|
59
|
-
v-else
|
|
60
|
-
class="tree-expand-icon"
|
|
61
|
-
@click.stop="onExpand(node)"
|
|
62
|
-
>
|
|
63
|
-
<i></i>
|
|
64
|
-
</button>
|
|
65
|
-
</template>
|
|
66
|
-
</span>
|
|
67
|
-
<!--Data Icon-->
|
|
68
|
-
<span
|
|
69
|
-
v-if="cellIndex === expandColumnIdx && isDataIcon"
|
|
70
|
-
:title="node[column.field]"
|
|
71
|
-
:class="{
|
|
72
|
-
expand: node.expand,
|
|
73
|
-
'ev-tree-toggle': true,
|
|
74
|
-
}"
|
|
75
|
-
>
|
|
76
|
-
<span
|
|
77
|
-
:class="node.hasChild ? parentIconMV : childIconMV"
|
|
78
|
-
>
|
|
79
|
-
<i></i>
|
|
80
|
-
</span>
|
|
81
|
-
</span>
|
|
82
|
-
<div class="td-content">
|
|
83
|
-
<!-- cell renderer -->
|
|
84
|
-
<template v-if="!!$slots[column.field + 'Node']">
|
|
85
|
-
<slot
|
|
86
|
-
:name="column.field + 'Node'"
|
|
87
|
-
:item="{
|
|
88
|
-
data: node.data,
|
|
89
|
-
}"
|
|
90
|
-
/>
|
|
91
|
-
</template>
|
|
92
|
-
</div>
|
|
93
|
-
</div>
|
|
94
|
-
</td>
|
|
95
|
-
</template>
|
|
96
|
-
<!-- Row Contextmenu Button -->
|
|
97
|
-
<td
|
|
98
|
-
v-if="customContextMenu?.length"
|
|
99
|
-
:class="{
|
|
100
|
-
'row-contextmenu': true,
|
|
101
|
-
'non-border': !!borderStyle,
|
|
102
|
-
}"
|
|
103
|
-
:style="{
|
|
104
|
-
position: 'sticky',
|
|
105
|
-
right: 0,
|
|
106
|
-
width: '30px',
|
|
107
|
-
height: `${rowHeight}px`,
|
|
108
|
-
'min-width': '30px',
|
|
109
|
-
'line-height': `${rowHeight}px`,
|
|
110
|
-
}"
|
|
111
|
-
>
|
|
112
|
-
<template v-if="$slots.contextmenuIconNode">
|
|
113
|
-
<span
|
|
114
|
-
class="row-contextmenu__btn"
|
|
115
|
-
@click="onContextMenu($event)"
|
|
116
|
-
@click.prevent="menuRef.show"
|
|
117
|
-
>
|
|
118
|
-
<slot
|
|
119
|
-
name="contextmenuIconNode"
|
|
120
|
-
/>
|
|
121
|
-
</span>
|
|
122
|
-
</template>
|
|
123
|
-
<template v-else>
|
|
124
|
-
<grid-option-button
|
|
125
|
-
icon="ev-icon-warning2"
|
|
126
|
-
class="row-contextmenu__btn"
|
|
127
|
-
@click="onContextMenu($event)"
|
|
128
|
-
@click.prevent="menuRef.show"
|
|
129
|
-
/>
|
|
130
|
-
</template>
|
|
131
|
-
</td>
|
|
132
|
-
</tr>
|
|
133
|
-
</template>
|
|
134
|
-
|
|
135
|
-
<script>
|
|
136
|
-
import { computed } from 'vue';
|
|
137
|
-
import GridOptionButton from '@/components/grid/icon/icon-option-button.vue';
|
|
138
|
-
|
|
139
|
-
export default {
|
|
140
|
-
name: 'TreeGridNode',
|
|
141
|
-
components: { GridOptionButton },
|
|
142
|
-
props: {
|
|
143
|
-
dataIndex: {
|
|
144
|
-
type: Number,
|
|
145
|
-
default: 0,
|
|
146
|
-
},
|
|
147
|
-
nodeData: {
|
|
148
|
-
type: Object,
|
|
149
|
-
default: () => ({}),
|
|
150
|
-
},
|
|
151
|
-
selectedData: {
|
|
152
|
-
type: Object,
|
|
153
|
-
default: () => ({}),
|
|
154
|
-
},
|
|
155
|
-
useCheckbox: {
|
|
156
|
-
type: Object,
|
|
157
|
-
default: () => ({}),
|
|
158
|
-
},
|
|
159
|
-
orderedColumns: {
|
|
160
|
-
type: [Array],
|
|
161
|
-
default: () => [],
|
|
162
|
-
},
|
|
163
|
-
expandIcon: {
|
|
164
|
-
type: String,
|
|
165
|
-
default: '',
|
|
166
|
-
},
|
|
167
|
-
collapseIcon: {
|
|
168
|
-
type: String,
|
|
169
|
-
default: '',
|
|
170
|
-
},
|
|
171
|
-
parentIcon: {
|
|
172
|
-
type: String,
|
|
173
|
-
default: '',
|
|
174
|
-
},
|
|
175
|
-
childIcon: {
|
|
176
|
-
type: String,
|
|
177
|
-
default: '',
|
|
178
|
-
},
|
|
179
|
-
customContextMenu: {
|
|
180
|
-
type: [Array],
|
|
181
|
-
default: () => [],
|
|
182
|
-
},
|
|
183
|
-
menuRef: {
|
|
184
|
-
type: Object,
|
|
185
|
-
default: null,
|
|
186
|
-
},
|
|
187
|
-
rowHeight: {
|
|
188
|
-
type: Number,
|
|
189
|
-
default: 35,
|
|
190
|
-
},
|
|
191
|
-
minWidth: {
|
|
192
|
-
type: Number,
|
|
193
|
-
default: 40,
|
|
194
|
-
},
|
|
195
|
-
borderStyle: {
|
|
196
|
-
type: String,
|
|
197
|
-
default: '',
|
|
198
|
-
},
|
|
199
|
-
highlightIndex: {
|
|
200
|
-
type: Number,
|
|
201
|
-
default: -1,
|
|
202
|
-
},
|
|
203
|
-
},
|
|
204
|
-
emits: {
|
|
205
|
-
'check-tree-data': null,
|
|
206
|
-
'expand-tree-data': null,
|
|
207
|
-
'click-tree-data': null,
|
|
208
|
-
'dbl-click-tree-data': null,
|
|
209
|
-
'context-menu': null,
|
|
210
|
-
},
|
|
211
|
-
setup(props, { emit }) {
|
|
212
|
-
const onCheck = ($event, data) => {
|
|
213
|
-
emit('check-tree-data', $event, data);
|
|
214
|
-
};
|
|
215
|
-
const onExpand = (data) => {
|
|
216
|
-
emit('expand-tree-data', data);
|
|
217
|
-
};
|
|
218
|
-
const onClick = ($event, data) => {
|
|
219
|
-
emit('click-tree-data', $event, data);
|
|
220
|
-
};
|
|
221
|
-
const onDblClick = ($event, data) => {
|
|
222
|
-
emit('dbl-click-tree-data', $event, data);
|
|
223
|
-
};
|
|
224
|
-
const onContextMenu = ($event) => {
|
|
225
|
-
emit('context-menu', $event);
|
|
226
|
-
};
|
|
227
|
-
const expandIconClasses = (node) => {
|
|
228
|
-
const expandIcon = props.expandIcon ? props.expandIcon : '';
|
|
229
|
-
const collapseIcon = props.expandIcon ? props.collapseIcon : '';
|
|
230
|
-
return node.expand ? collapseIcon : expandIcon;
|
|
231
|
-
};
|
|
232
|
-
const node = computed(() => (props.nodeData || {}));
|
|
233
|
-
const parentIconMV = computed(() => (props.parentIcon || 'tree-parent-icon'));
|
|
234
|
-
const childIconMV = computed(() => (props.childIcon || 'tree-child-icon'));
|
|
235
|
-
const isDataIcon = computed(() => ((parentIconMV.value !== 'none' || childIconMV.value !== 'none')));
|
|
236
|
-
|
|
237
|
-
const expandColumnIdx = computed(() => {
|
|
238
|
-
const columns = props.orderedColumns || [];
|
|
239
|
-
const visibleExpandIdx = columns.findIndex(column =>
|
|
240
|
-
column.expandColumn && !column.hide && !column.hiddenDisplay);
|
|
241
|
-
if (visibleExpandIdx !== -1) {
|
|
242
|
-
return visibleExpandIdx;
|
|
243
|
-
}
|
|
244
|
-
const firstVisibleIdx = columns.findIndex(column => !column.hide && !column.hiddenDisplay);
|
|
245
|
-
return firstVisibleIdx !== -1 ? firstVisibleIdx : 0;
|
|
246
|
-
});
|
|
247
|
-
const getRowClass = nodeInfo => ({
|
|
248
|
-
row: true,
|
|
249
|
-
'tree-row': true,
|
|
250
|
-
[`tree-row--level-${nodeInfo?.level}`]: true,
|
|
251
|
-
highlight: nodeInfo?.index === props.highlightIndex,
|
|
252
|
-
selected: nodeInfo.selected,
|
|
253
|
-
'non-border': !!props.borderStyle && props.borderStyle !== 'rows',
|
|
254
|
-
});
|
|
255
|
-
const checkboxClass = computed(() => ({
|
|
256
|
-
cell: true,
|
|
257
|
-
'row-checkbox': true,
|
|
258
|
-
'non-border': !!props.borderStyle,
|
|
259
|
-
}));
|
|
260
|
-
const getColumnClass = (column, cellIndex) => ({
|
|
261
|
-
cell: true,
|
|
262
|
-
'tree-td': cellIndex === 0,
|
|
263
|
-
[column.type]: column.type,
|
|
264
|
-
[column.align]: column.align,
|
|
265
|
-
[column.field]: column.field,
|
|
266
|
-
'non-border': !!props.borderStyle,
|
|
267
|
-
});
|
|
268
|
-
const getColumnStyle = (column, cellIndex) => ({
|
|
269
|
-
width: `${column.width}px`,
|
|
270
|
-
height: `${props.rowHeight}px`,
|
|
271
|
-
'line-height': `${props.rowHeight}px`,
|
|
272
|
-
'min-width': `${props.minWidth}px`,
|
|
273
|
-
'border-right': props.orderedColumns.length - 1 === cellIndex
|
|
274
|
-
? 'none' : '1px solid #CFCFCF',
|
|
275
|
-
});
|
|
276
|
-
const getDepthStyle = (nodeLevel) => {
|
|
277
|
-
const depthSize = nodeLevel * 13;
|
|
278
|
-
return {
|
|
279
|
-
'margin-left': `${depthSize}px`,
|
|
280
|
-
};
|
|
281
|
-
};
|
|
282
|
-
return {
|
|
283
|
-
parentIconMV,
|
|
284
|
-
childIconMV,
|
|
285
|
-
node,
|
|
286
|
-
isDataIcon,
|
|
287
|
-
checkboxClass,
|
|
288
|
-
expandColumnIdx,
|
|
289
|
-
onCheck,
|
|
290
|
-
onExpand,
|
|
291
|
-
onClick,
|
|
292
|
-
onDblClick,
|
|
293
|
-
onContextMenu,
|
|
294
|
-
expandIconClasses,
|
|
295
|
-
getRowClass,
|
|
296
|
-
getColumnClass,
|
|
297
|
-
getColumnStyle,
|
|
298
|
-
getDepthStyle,
|
|
299
|
-
};
|
|
300
|
-
},
|
|
301
|
-
};
|
|
302
|
-
</script>
|
|
303
|
-
|
|
304
|
-
<style lang="scss" scoped>
|
|
305
|
-
@import './style/treeGrid.scss';
|
|
306
|
-
.ev-tree-toggle {
|
|
307
|
-
display: inline-block;
|
|
308
|
-
width: 13px;
|
|
309
|
-
margin-right: 4px;
|
|
310
|
-
text-align: center;
|
|
311
|
-
vertical-align: middle;
|
|
312
|
-
.tree-expand-icon {
|
|
313
|
-
border: none;
|
|
314
|
-
background: transparent;
|
|
315
|
-
outline: none;
|
|
316
|
-
cursor: pointer;
|
|
317
|
-
}
|
|
318
|
-
.tree-expand-icon i {
|
|
319
|
-
display: inline-block;
|
|
320
|
-
top: -3px;
|
|
321
|
-
width: 11px;
|
|
322
|
-
height: 10px;
|
|
323
|
-
background: url('icon/icon-tree.png') no-repeat -43px -61px;
|
|
324
|
-
}
|
|
325
|
-
&.expand > .tree-expand-icon i {
|
|
326
|
-
height: 8px;
|
|
327
|
-
background-position: -15px -63px;
|
|
328
|
-
}
|
|
329
|
-
.tree-parent-icon i, .tree-child-icon i {
|
|
330
|
-
display: inline-block;
|
|
331
|
-
top: -3px;
|
|
332
|
-
width: 14px;
|
|
333
|
-
height: 14px;
|
|
334
|
-
}
|
|
335
|
-
.tree-parent-icon i {
|
|
336
|
-
background: url('icon/icon-tree.png') no-repeat -39px -35px;
|
|
337
|
-
}
|
|
338
|
-
&.expand > .tree-parent-icon i {
|
|
339
|
-
background-position: -65px -35px;
|
|
340
|
-
}
|
|
341
|
-
.tree-child-icon i {
|
|
342
|
-
background: url('icon/icon-tree.png') no-repeat -14px -35px;
|
|
343
|
-
}
|
|
344
|
-
}
|
|
345
|
-
.td-content {
|
|
346
|
-
position: relative;
|
|
347
|
-
flex: 1;
|
|
348
|
-
}
|
|
349
|
-
</style>
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="tree-grid-toolbar">
|
|
3
|
-
<slot name="toolbarWrapper"></slot>
|
|
4
|
-
</div>
|
|
5
|
-
</template>
|
|
6
|
-
|
|
7
|
-
<script>
|
|
8
|
-
export default {
|
|
9
|
-
name: 'EvTreeGridToolbar',
|
|
10
|
-
};
|
|
11
|
-
</script>
|
|
12
|
-
|
|
13
|
-
<style lang="scss">
|
|
14
|
-
@import '../../style/index.scss';
|
|
15
|
-
.tree-grid-toolbar {
|
|
16
|
-
height: 30px;
|
|
17
|
-
margin-bottom: 10px;
|
|
18
|
-
}
|
|
19
|
-
.tree-grid-toolbar > .search {
|
|
20
|
-
float: right;
|
|
21
|
-
width: auto !important;
|
|
22
|
-
margin-right: 0 !important;
|
|
23
|
-
}
|
|
24
|
-
.tree-grid-toolbar > .ev-button {
|
|
25
|
-
margin: 0 2px 0 2px;
|
|
26
|
-
}
|
|
27
|
-
.tree-grid-toolbar > .grid-setting__icon {
|
|
28
|
-
float: right;
|
|
29
|
-
margin: 10px 5px;
|
|
30
|
-
cursor: pointer;
|
|
31
|
-
&:hover {
|
|
32
|
-
opacity: 0.6;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
</style>
|
|
Binary file
|
|
@@ -1,277 +0,0 @@
|
|
|
1
|
-
@import '../../../style/index.scss';
|
|
2
|
-
|
|
3
|
-
.ev-tree-grid {
|
|
4
|
-
$header-height: 33px;
|
|
5
|
-
position: relative;
|
|
6
|
-
width: 100%;
|
|
7
|
-
height: 100%;
|
|
8
|
-
padding-top: $header-height;
|
|
9
|
-
|
|
10
|
-
&--empty {
|
|
11
|
-
overflow: auto;
|
|
12
|
-
.table-header {
|
|
13
|
-
display: table;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
&.non-header {
|
|
17
|
-
padding-top: 0;
|
|
18
|
-
}
|
|
19
|
-
.table-header {
|
|
20
|
-
overflow: hidden;
|
|
21
|
-
position: absolute;
|
|
22
|
-
top: 0;
|
|
23
|
-
width: 100%;
|
|
24
|
-
height: $header-height;
|
|
25
|
-
|
|
26
|
-
@include evThemify() {
|
|
27
|
-
border-top: 2px solid evThemed('grid-header-border');
|
|
28
|
-
border-bottom: 1px solid evThemed('grid-bottom-border');
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
.row-contextmenu__btn {
|
|
32
|
-
display: none;
|
|
33
|
-
vertical-align: middle;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.column-list {
|
|
38
|
-
position: relative;
|
|
39
|
-
width: 100%;
|
|
40
|
-
height: 100%;
|
|
41
|
-
white-space: nowrap;
|
|
42
|
-
list-style-type: none;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.column {
|
|
46
|
-
display: inline-flex;
|
|
47
|
-
position: relative;
|
|
48
|
-
height: 100%;
|
|
49
|
-
padding: 0 10px;
|
|
50
|
-
justify-content: center;
|
|
51
|
-
align-items: center;
|
|
52
|
-
text-align: center;
|
|
53
|
-
vertical-align: top;
|
|
54
|
-
user-select: none;
|
|
55
|
-
|
|
56
|
-
@include evThemify() {
|
|
57
|
-
border-right: 1px solid evThemed('grid-bottom-border');
|
|
58
|
-
}
|
|
59
|
-
&:nth-last-child(1) {
|
|
60
|
-
border-right: 0;
|
|
61
|
-
}
|
|
62
|
-
.sort-icon {
|
|
63
|
-
display: inline-block;
|
|
64
|
-
float: right;
|
|
65
|
-
font-size: 14px;
|
|
66
|
-
line-height: 30px;
|
|
67
|
-
|
|
68
|
-
@include evThemify() {
|
|
69
|
-
color: evThemed('font-color-base');
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
&.checkbox-all {
|
|
73
|
-
padding: 0;
|
|
74
|
-
.ev-checkbox {
|
|
75
|
-
display: inline-flex;
|
|
76
|
-
width: 100%;
|
|
77
|
-
height: 100%;
|
|
78
|
-
justify-content: center;
|
|
79
|
-
align-items: center;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
.column-sort__icon {
|
|
83
|
-
position: absolute;
|
|
84
|
-
top: 50%;
|
|
85
|
-
right: 0;
|
|
86
|
-
width: 24px;
|
|
87
|
-
height: 24px;
|
|
88
|
-
background-size: contain;
|
|
89
|
-
transform: translateY(-50%);
|
|
90
|
-
&:hover {
|
|
91
|
-
cursor: pointer;
|
|
92
|
-
}
|
|
93
|
-
&--basic {
|
|
94
|
-
visibility: hidden;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
:hover {
|
|
98
|
-
.column-sort__icon--basic {
|
|
99
|
-
visibility: visible;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.column-name {
|
|
105
|
-
display: inline-block;
|
|
106
|
-
float: left;
|
|
107
|
-
width: 100%;
|
|
108
|
-
overflow: hidden;
|
|
109
|
-
text-overflow: ellipsis;
|
|
110
|
-
font-weight: bold;
|
|
111
|
-
font-size: 14px;
|
|
112
|
-
&--click {
|
|
113
|
-
cursor: pointer;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
@include evThemify() {
|
|
117
|
-
color: evThemed('font-color-base');
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.column-resize {
|
|
122
|
-
position: absolute;
|
|
123
|
-
bottom: 0;
|
|
124
|
-
right: -5px;
|
|
125
|
-
width: 10px;
|
|
126
|
-
height: 100%;
|
|
127
|
-
&:hover {
|
|
128
|
-
cursor: col-resize;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
.table-body {
|
|
133
|
-
position: relative;
|
|
134
|
-
width: 100%;
|
|
135
|
-
height: 100%;
|
|
136
|
-
overflow: auto;
|
|
137
|
-
overflow-anchor: none;
|
|
138
|
-
table {
|
|
139
|
-
clear: both;
|
|
140
|
-
width: inherit;
|
|
141
|
-
border-spacing: 0;
|
|
142
|
-
border-collapse: collapse;
|
|
143
|
-
}
|
|
144
|
-
&.stripe tr:nth-child(even) {
|
|
145
|
-
@include evThemify() {
|
|
146
|
-
background: evThemed('grid-row-stripe');
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
&.bottom-border {
|
|
150
|
-
@include evThemify() {
|
|
151
|
-
border-bottom: 1px solid evThemed('grid-bottom-border');
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
.row {
|
|
155
|
-
white-space: nowrap;
|
|
156
|
-
|
|
157
|
-
@include evThemify() {
|
|
158
|
-
border-bottom: 1px solid evThemed('grid-bottom-border');
|
|
159
|
-
}
|
|
160
|
-
&.selected {
|
|
161
|
-
@include evThemify() {
|
|
162
|
-
background: evThemed('grid-row-selected') !important;
|
|
163
|
-
color: inherit !important;
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
&.highlight {
|
|
167
|
-
background: #5AB7FF;
|
|
168
|
-
color: #FFFFFF;
|
|
169
|
-
}
|
|
170
|
-
&:hover {
|
|
171
|
-
.row-contextmenu__btn {
|
|
172
|
-
display: grid;
|
|
173
|
-
&:hover {
|
|
174
|
-
cursor: pointer;
|
|
175
|
-
opacity: 0.6;
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
.cell {
|
|
182
|
-
display: inline-block;
|
|
183
|
-
padding: 0 10px;
|
|
184
|
-
text-align: center;
|
|
185
|
-
max-width: 100%;
|
|
186
|
-
white-space: nowrap;
|
|
187
|
-
overflow: hidden;
|
|
188
|
-
text-overflow: ellipsis;
|
|
189
|
-
|
|
190
|
-
@include evThemify() {
|
|
191
|
-
border-right: 1px solid evThemed('grid-bottom-border');
|
|
192
|
-
}
|
|
193
|
-
&.row-checkbox {
|
|
194
|
-
padding: 0;
|
|
195
|
-
.ev-checkbox {
|
|
196
|
-
display: inline-flex;
|
|
197
|
-
width: 100%;
|
|
198
|
-
height: 100%;
|
|
199
|
-
justify-content: center;
|
|
200
|
-
align-items: center;
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
&.render {
|
|
204
|
-
overflow: initial;
|
|
205
|
-
}
|
|
206
|
-
&.number,
|
|
207
|
-
&.float {
|
|
208
|
-
text-align: right;
|
|
209
|
-
}
|
|
210
|
-
&.string,
|
|
211
|
-
&.stringNumber {
|
|
212
|
-
text-align: left;
|
|
213
|
-
}
|
|
214
|
-
&.center {
|
|
215
|
-
text-align: center;
|
|
216
|
-
}
|
|
217
|
-
&.left {
|
|
218
|
-
text-align: left;
|
|
219
|
-
.wrap {
|
|
220
|
-
justify-content: flex-start;
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
&.right {
|
|
224
|
-
text-align: right;
|
|
225
|
-
.wrap {
|
|
226
|
-
justify-content: flex-end;
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
&:last-child {
|
|
230
|
-
border-right: 0;
|
|
231
|
-
}
|
|
232
|
-
&.tree-td {
|
|
233
|
-
text-align: left !important;
|
|
234
|
-
.td-content__wrapper {
|
|
235
|
-
display: flex;
|
|
236
|
-
position: relative;
|
|
237
|
-
align-items: center;
|
|
238
|
-
white-space: nowrap;
|
|
239
|
-
overflow: hidden;
|
|
240
|
-
text-overflow: ellipsis;
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
.table-resize-line {
|
|
247
|
-
position: absolute;
|
|
248
|
-
top: 0;
|
|
249
|
-
bottom: 0;
|
|
250
|
-
width: 1px;
|
|
251
|
-
|
|
252
|
-
@include evThemify() {
|
|
253
|
-
border-right: 1px solid evThemed('grid-bottom-border');
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
.vscroll-spacer {
|
|
258
|
-
opacity: 0;
|
|
259
|
-
clear: both;
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
[v-cloak] {
|
|
263
|
-
display: none;
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
.ev-checkbox {
|
|
267
|
-
margin: 0;
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
.non-border {
|
|
271
|
-
border: none !important;
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
.is-empty {
|
|
275
|
-
height: 30px;
|
|
276
|
-
text-align: center;
|
|
277
|
-
}
|