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,75 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="grid-pagination">
|
|
3
|
-
<ev-pagination
|
|
4
|
-
v-model="currentValue"
|
|
5
|
-
:total="total"
|
|
6
|
-
:per-page="perPage"
|
|
7
|
-
:visible-page="visiblePage"
|
|
8
|
-
:show-page-info="showPageInfo"
|
|
9
|
-
:order="order"
|
|
10
|
-
@change="changePage"
|
|
11
|
-
>
|
|
12
|
-
</ev-pagination>
|
|
13
|
-
</div>
|
|
14
|
-
</template>
|
|
15
|
-
|
|
16
|
-
<script>
|
|
17
|
-
import { ref, watch } from 'vue';
|
|
18
|
-
|
|
19
|
-
export default {
|
|
20
|
-
name: 'EvGridPagination',
|
|
21
|
-
props: {
|
|
22
|
-
total: {
|
|
23
|
-
type: [Number, String],
|
|
24
|
-
default: 0,
|
|
25
|
-
},
|
|
26
|
-
visiblePage: {
|
|
27
|
-
type: [Number, String],
|
|
28
|
-
default: 8,
|
|
29
|
-
},
|
|
30
|
-
perPage: {
|
|
31
|
-
type: [Number, String],
|
|
32
|
-
default: 20,
|
|
33
|
-
},
|
|
34
|
-
modelValue: {
|
|
35
|
-
type: [Number, String],
|
|
36
|
-
default: 1,
|
|
37
|
-
},
|
|
38
|
-
showPageInfo: {
|
|
39
|
-
type: Boolean,
|
|
40
|
-
default: false,
|
|
41
|
-
},
|
|
42
|
-
order: {
|
|
43
|
-
type: String,
|
|
44
|
-
default: 'left',
|
|
45
|
-
validator: val => ['left', 'right', 'center'].includes(val),
|
|
46
|
-
},
|
|
47
|
-
},
|
|
48
|
-
emits: {
|
|
49
|
-
'update:modelValue': null,
|
|
50
|
-
},
|
|
51
|
-
setup(props, { emit }) {
|
|
52
|
-
const currentValue = ref(props.modelValue);
|
|
53
|
-
const changePage = (page) => {
|
|
54
|
-
currentValue.value = page > 0 ? page : 1;
|
|
55
|
-
emit('update:modelValue', currentValue.value);
|
|
56
|
-
};
|
|
57
|
-
watch(
|
|
58
|
-
() => props.modelValue,
|
|
59
|
-
(value) => {
|
|
60
|
-
currentValue.value = value;
|
|
61
|
-
},
|
|
62
|
-
);
|
|
63
|
-
return {
|
|
64
|
-
currentValue,
|
|
65
|
-
changePage,
|
|
66
|
-
};
|
|
67
|
-
},
|
|
68
|
-
};
|
|
69
|
-
</script>
|
|
70
|
-
|
|
71
|
-
<style lang="scss" scoped>
|
|
72
|
-
.grid-pagination {
|
|
73
|
-
padding-top: 8px;
|
|
74
|
-
}
|
|
75
|
-
</style>
|
|
@@ -1,314 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div
|
|
3
|
-
ref="summaryRef"
|
|
4
|
-
:class="{
|
|
5
|
-
'grid-summary': true,
|
|
6
|
-
'non-border': styleInfo.borderStyle === 'none',
|
|
7
|
-
}"
|
|
8
|
-
>
|
|
9
|
-
<ul class="column-list">
|
|
10
|
-
<li
|
|
11
|
-
v-if="showCheckbox"
|
|
12
|
-
:class="{
|
|
13
|
-
'column': true,
|
|
14
|
-
'non-border': !!styleInfo.borderStyle,
|
|
15
|
-
}"
|
|
16
|
-
:style="{
|
|
17
|
-
'width': `${styleInfo.minWidth}px`,
|
|
18
|
-
'line-height': `${styleInfo.rowHeight}px`
|
|
19
|
-
}"
|
|
20
|
-
>
|
|
21
|
-
<span :style="{'height': `${styleInfo.rowHeight}px`}" />
|
|
22
|
-
</li>
|
|
23
|
-
<template
|
|
24
|
-
v-for="(column, index) in columns"
|
|
25
|
-
:key="`summary_${index}`"
|
|
26
|
-
>
|
|
27
|
-
<li
|
|
28
|
-
v-if="!column.hide"
|
|
29
|
-
:class="{
|
|
30
|
-
column: true,
|
|
31
|
-
'non-border': !!styleInfo.borderStyle,
|
|
32
|
-
[column.type]: column.type,
|
|
33
|
-
[column.align]: column.align,
|
|
34
|
-
}"
|
|
35
|
-
:style="{
|
|
36
|
-
width: `${column.width}px`,
|
|
37
|
-
'min-width': `${styleInfo.minWidth}px`,
|
|
38
|
-
'line-height': `${styleInfo.rowHeight}px`,
|
|
39
|
-
}"
|
|
40
|
-
>
|
|
41
|
-
<span
|
|
42
|
-
v-if="column.summaryType || column.summaryRenderer"
|
|
43
|
-
:style="{
|
|
44
|
-
width: '100%',
|
|
45
|
-
height: `${styleInfo.rowHeight}px`,
|
|
46
|
-
}"
|
|
47
|
-
>
|
|
48
|
-
<div
|
|
49
|
-
v-if="column.summaryRenderer"
|
|
50
|
-
:title="getSummaryRenderer(column)"
|
|
51
|
-
>
|
|
52
|
-
{{ getSummaryRenderer(column) }}
|
|
53
|
-
</div>
|
|
54
|
-
<div
|
|
55
|
-
v-else
|
|
56
|
-
:title="getSummaryValue(column)"
|
|
57
|
-
>
|
|
58
|
-
{{ getSummaryValue(column)}}
|
|
59
|
-
</div>
|
|
60
|
-
</span>
|
|
61
|
-
<span
|
|
62
|
-
v-else
|
|
63
|
-
:style="{'height': `${styleInfo.rowHeight}px`}"
|
|
64
|
-
/>
|
|
65
|
-
</li>
|
|
66
|
-
</template>
|
|
67
|
-
</ul>
|
|
68
|
-
</div>
|
|
69
|
-
</template>
|
|
70
|
-
|
|
71
|
-
<script>
|
|
72
|
-
import { computed, watch, ref, nextTick } from 'vue';
|
|
73
|
-
import { numberWithComma } from '@/common/utils';
|
|
74
|
-
import { bnDivide, bnFloor, bnPlus } from '@/common/utils.bignumber';
|
|
75
|
-
|
|
76
|
-
export default {
|
|
77
|
-
name: 'EvGridSummary',
|
|
78
|
-
props: {
|
|
79
|
-
stores: {
|
|
80
|
-
type: Object,
|
|
81
|
-
default: () => ({}),
|
|
82
|
-
},
|
|
83
|
-
orderedColumns: {
|
|
84
|
-
type: Object,
|
|
85
|
-
default: () => ({}),
|
|
86
|
-
},
|
|
87
|
-
useCheckbox: {
|
|
88
|
-
type: Boolean,
|
|
89
|
-
default: false,
|
|
90
|
-
},
|
|
91
|
-
styleOption: {
|
|
92
|
-
type: Object,
|
|
93
|
-
default: () => ({}),
|
|
94
|
-
},
|
|
95
|
-
isTree: {
|
|
96
|
-
type: Boolean,
|
|
97
|
-
default: false,
|
|
98
|
-
},
|
|
99
|
-
scrollLeft: {
|
|
100
|
-
type: Number,
|
|
101
|
-
default: 0,
|
|
102
|
-
},
|
|
103
|
-
},
|
|
104
|
-
setup(props) {
|
|
105
|
-
const DECIMAL = {
|
|
106
|
-
max: 20,
|
|
107
|
-
default: 3,
|
|
108
|
-
};
|
|
109
|
-
const summaryRef = ref();
|
|
110
|
-
const ROW_DATA_INDEX = 2;
|
|
111
|
-
const stores = computed(() => props.stores);
|
|
112
|
-
const columns = computed(() => props.orderedColumns);
|
|
113
|
-
const showCheckbox = computed(() => props.useCheckbox);
|
|
114
|
-
const styleInfo = computed(() => props.styleOption);
|
|
115
|
-
|
|
116
|
-
const getValidDecimal = (decimal) => {
|
|
117
|
-
if (decimal == null || decimal < 0) {
|
|
118
|
-
return DECIMAL.default;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
if (decimal > DECIMAL.max) {
|
|
122
|
-
return DECIMAL.max;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
return decimal;
|
|
126
|
-
};
|
|
127
|
-
|
|
128
|
-
const getConvertValue = (column, value) => {
|
|
129
|
-
if (typeof value === 'string' && value.length === 0) {
|
|
130
|
-
return value;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
const { type, decimal } = column;
|
|
134
|
-
let convertValue = value;
|
|
135
|
-
|
|
136
|
-
if (type === 'number') {
|
|
137
|
-
convertValue = numberWithComma(value);
|
|
138
|
-
convertValue = convertValue === false ? value : convertValue;
|
|
139
|
-
} else if (type === 'float') {
|
|
140
|
-
const floatValue = convertValue.toFixed(getValidDecimal(decimal ?? DECIMAL.default));
|
|
141
|
-
convertValue = floatValue.replace(/\B(?=(\d{3})+(?!\d))/g, ',');
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
return convertValue;
|
|
145
|
-
};
|
|
146
|
-
|
|
147
|
-
const getColumnIndex = field => columns.value.findIndex(column => column.field === field);
|
|
148
|
-
const getSummaryValue = (column) => {
|
|
149
|
-
const {
|
|
150
|
-
type,
|
|
151
|
-
field,
|
|
152
|
-
summaryType,
|
|
153
|
-
summaryDecimal,
|
|
154
|
-
summaryOnlyTopParent,
|
|
155
|
-
} = column;
|
|
156
|
-
|
|
157
|
-
let result = '';
|
|
158
|
-
const columnIndex = getColumnIndex(field);
|
|
159
|
-
if (columnIndex >= 0) {
|
|
160
|
-
if (summaryType === 'count') {
|
|
161
|
-
return stores.value.store.length;
|
|
162
|
-
}
|
|
163
|
-
if (type === 'number' || type === 'float') {
|
|
164
|
-
let columnValues = [];
|
|
165
|
-
if (props.isTree) {
|
|
166
|
-
columnValues = stores.value.store.reduce((acc, cur) => {
|
|
167
|
-
if (summaryOnlyTopParent) {
|
|
168
|
-
if (!cur.parent) {
|
|
169
|
-
acc.push(cur.data?.[field]);
|
|
170
|
-
}
|
|
171
|
-
} else {
|
|
172
|
-
acc.push(cur.data?.[field]);
|
|
173
|
-
}
|
|
174
|
-
return acc;
|
|
175
|
-
}, []);
|
|
176
|
-
} else {
|
|
177
|
-
columnValues = stores.value.store.map(row => row[ROW_DATA_INDEX][columnIndex]);
|
|
178
|
-
}
|
|
179
|
-
switch (summaryType) {
|
|
180
|
-
case 'sum': {
|
|
181
|
-
const sumValue = columnValues.reduce((prev, curr) => {
|
|
182
|
-
const value = Number(curr);
|
|
183
|
-
if (!Number.isNaN(value)) {
|
|
184
|
-
return bnPlus(prev, value);
|
|
185
|
-
}
|
|
186
|
-
return prev;
|
|
187
|
-
}, 0);
|
|
188
|
-
|
|
189
|
-
result = sumValue && bnFloor(
|
|
190
|
-
sumValue, getValidDecimal(summaryDecimal ?? DECIMAL.default),
|
|
191
|
-
);
|
|
192
|
-
break;
|
|
193
|
-
}
|
|
194
|
-
case 'average': {
|
|
195
|
-
const sumValue = columnValues.reduce((prev, curr) => {
|
|
196
|
-
const value = Number(curr);
|
|
197
|
-
if (!Number.isNaN(value)) {
|
|
198
|
-
return bnPlus(prev, value);
|
|
199
|
-
}
|
|
200
|
-
return prev;
|
|
201
|
-
}, 0);
|
|
202
|
-
result = sumValue && bnFloor(
|
|
203
|
-
bnDivide(sumValue, columnValues.length),
|
|
204
|
-
getValidDecimal(summaryDecimal ?? DECIMAL.default),
|
|
205
|
-
);
|
|
206
|
-
break;
|
|
207
|
-
}
|
|
208
|
-
case 'max': {
|
|
209
|
-
const filteredNullValues = columnValues.filter(value => value != null);
|
|
210
|
-
result = filteredNullValues.length ? Math.max(...filteredNullValues) : '';
|
|
211
|
-
break;
|
|
212
|
-
}
|
|
213
|
-
case 'min': {
|
|
214
|
-
const filteredNullValues = columnValues.filter(value => value != null);
|
|
215
|
-
result = filteredNullValues.length ? Math.min(...filteredNullValues) : '';
|
|
216
|
-
break;
|
|
217
|
-
}
|
|
218
|
-
default:
|
|
219
|
-
break;
|
|
220
|
-
}
|
|
221
|
-
result = getConvertValue(column, result);
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
return result;
|
|
225
|
-
};
|
|
226
|
-
const getSummaryRenderer = (column) => {
|
|
227
|
-
const str = column.summaryRenderer;
|
|
228
|
-
const summaryData = column.summaryData ? column.summaryData : [];
|
|
229
|
-
const fields = [column.field, ...summaryData];
|
|
230
|
-
let result = str;
|
|
231
|
-
fields.forEach((name, idx) => {
|
|
232
|
-
const columnIndex = getColumnIndex(name);
|
|
233
|
-
if (columnIndex >= 0) {
|
|
234
|
-
const value = getSummaryValue(stores.value.orderedColumns[columnIndex]);
|
|
235
|
-
result = result.replace(`{${idx}}`, value);
|
|
236
|
-
}
|
|
237
|
-
});
|
|
238
|
-
return result;
|
|
239
|
-
};
|
|
240
|
-
watch(
|
|
241
|
-
() => props.scrollLeft,
|
|
242
|
-
(val) => {
|
|
243
|
-
nextTick(() => {
|
|
244
|
-
summaryRef.value.scrollLeft = val;
|
|
245
|
-
});
|
|
246
|
-
},
|
|
247
|
-
);
|
|
248
|
-
return {
|
|
249
|
-
columns,
|
|
250
|
-
styleInfo,
|
|
251
|
-
showCheckbox,
|
|
252
|
-
summaryRef,
|
|
253
|
-
getSummaryValue,
|
|
254
|
-
getSummaryRenderer,
|
|
255
|
-
};
|
|
256
|
-
},
|
|
257
|
-
};
|
|
258
|
-
</script>
|
|
259
|
-
|
|
260
|
-
<style lang="scss" scoped>
|
|
261
|
-
@import 'style/grid.scss';
|
|
262
|
-
.grid-summary {
|
|
263
|
-
width: 100%;
|
|
264
|
-
overflow: hidden;
|
|
265
|
-
|
|
266
|
-
@include evThemify() {
|
|
267
|
-
border-bottom: 1px solid evThemed('disabled');
|
|
268
|
-
background-color: evThemed('background-lighten');
|
|
269
|
-
}
|
|
270
|
-
.non-border {
|
|
271
|
-
border-bottom: none !important;
|
|
272
|
-
}
|
|
273
|
-
span {
|
|
274
|
-
display: inline-block;
|
|
275
|
-
overflow: hidden;
|
|
276
|
-
text-overflow: ellipsis;
|
|
277
|
-
font-size: 14px;
|
|
278
|
-
> div {
|
|
279
|
-
white-space: nowrap;
|
|
280
|
-
overflow: hidden;
|
|
281
|
-
text-overflow: ellipsis;
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
@include evThemify() {
|
|
285
|
-
color: evThemed('font-color-base');
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
.column {
|
|
289
|
-
&.number,
|
|
290
|
-
&.float {
|
|
291
|
-
text-align: right;
|
|
292
|
-
}
|
|
293
|
-
&.string,
|
|
294
|
-
&.stringNumber {
|
|
295
|
-
text-align: left;
|
|
296
|
-
}
|
|
297
|
-
&.center {
|
|
298
|
-
text-align: center;
|
|
299
|
-
}
|
|
300
|
-
&.left {
|
|
301
|
-
text-align: left;
|
|
302
|
-
.wrap {
|
|
303
|
-
justify-content: flex-start;
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
&.right {
|
|
307
|
-
text-align: right;
|
|
308
|
-
.wrap {
|
|
309
|
-
justify-content: flex-end;
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
</style>
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="gridToolbar">
|
|
3
|
-
<slot name="toolbarWrapper"></slot>
|
|
4
|
-
</div>
|
|
5
|
-
</template>
|
|
6
|
-
|
|
7
|
-
<script>
|
|
8
|
-
export default {
|
|
9
|
-
name: 'EvGridToolbar',
|
|
10
|
-
};
|
|
11
|
-
</script>
|
|
12
|
-
|
|
13
|
-
<style lang="scss">
|
|
14
|
-
@import '../../style/index.scss';
|
|
15
|
-
.gridToolbar {
|
|
16
|
-
height: 30px;
|
|
17
|
-
margin-bottom: 10px;
|
|
18
|
-
}
|
|
19
|
-
.gridToolbar > .search {
|
|
20
|
-
float: right;
|
|
21
|
-
width: auto !important;
|
|
22
|
-
margin-right: 0 !important;
|
|
23
|
-
}
|
|
24
|
-
.gridToolbar > .ev-button {
|
|
25
|
-
margin: 0 2px 0 2px;
|
|
26
|
-
}
|
|
27
|
-
.gridToolbar > .grid-setting__icon {
|
|
28
|
-
float: right;
|
|
29
|
-
margin: 10px 5px;
|
|
30
|
-
cursor: pointer;
|
|
31
|
-
&:hover {
|
|
32
|
-
opacity: 0.6;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
</style>
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
|
-
<circle cx="6.49805" cy="11.998" r="1.5" transform="rotate(-90 6.49805 11.998)" fill="#ADB5BD"/>
|
|
4
|
-
<circle cx="11.998" cy="11.998" r="1.5" transform="rotate(-90 11.998 11.998)" fill="#ADB5BD"/>
|
|
5
|
-
<path d="M17.498 10.498C18.3265 10.498 18.998 11.1696 18.998 11.998C18.998
|
|
6
|
-
12.8265 18.3265 13.498 17.498 13.498C16.6696 13.498 15.998 12.8265
|
|
7
|
-
15.998 11.998C15.998 11.1696 16.6696 10.498 17.498 10.498Z"
|
|
8
|
-
fill="#ADB5BD"
|
|
9
|
-
/>
|
|
10
|
-
</svg>
|
|
11
|
-
</template>
|
|
12
|
-
|
|
13
|
-
<script>
|
|
14
|
-
export default {
|
|
15
|
-
name: 'GridOptionButton',
|
|
16
|
-
};
|
|
17
|
-
</script>
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<span v-if="icon === 'basic'">
|
|
3
|
-
<svg
|
|
4
|
-
width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
5
|
-
<rect width="14" height="14" rx="2" fill="#F1F3F5"/>
|
|
6
|
-
<path d="M7.00008 3.915L8.58508 5.5L9.29008 4.795L7.00008 2.5L4.70508 4.795L5.41508
|
|
7
|
-
5.5L7.00008 3.915ZM7.00008 10.085L5.41508 8.5L4.71008 9.205L7.00008
|
|
8
|
-
11.5L9.29508 9.205L8.58508 8.5L7.00008 10.085Z"
|
|
9
|
-
fill="#121212"
|
|
10
|
-
/>
|
|
11
|
-
<path d="M7.00008 3.915L8.58508 5.5L9.29008 4.795L7.00008
|
|
12
|
-
2.5L4.70508 4.795L5.41508 5.5L7.00008 3.915ZM7.00008 10.085L5.41508
|
|
13
|
-
8.5L4.71008 9.205L7.00008 11.5L9.29508 9.205L8.58508 8.5L7.00008 10.085Z"
|
|
14
|
-
fill="#D8D8D8"
|
|
15
|
-
fill-opacity="0.09"
|
|
16
|
-
/>
|
|
17
|
-
</svg>
|
|
18
|
-
</span>
|
|
19
|
-
<span v-else-if="icon === 'asc'">
|
|
20
|
-
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
21
|
-
<rect width="14" height="14" rx="2" fill="#F1F3F5"/>
|
|
22
|
-
<path d="M7.00008 3.915L8.58508 5.5L9.29008 4.795L7.00008 2.5L4.70508
|
|
23
|
-
4.795L5.41508 5.5L7.00008 3.915Z"
|
|
24
|
-
fill="#121212"/>
|
|
25
|
-
<path d="M7.00008 3.915L8.58508 5.5L9.29008 4.795L7.00008 2.5L4.70508
|
|
26
|
-
4.795L5.41508 5.5L7.00008 3.915Z"
|
|
27
|
-
fill="#D8D8D8"
|
|
28
|
-
fill-opacity="0.09"
|
|
29
|
-
/>
|
|
30
|
-
<path d="M7.00008 9.585L8.58508 8L9.29008 8.705L7.00008 11L4.70508
|
|
31
|
-
8.705L5.41508 8L7.00008 9.585Z"
|
|
32
|
-
fill="#DEE2E6"
|
|
33
|
-
/>
|
|
34
|
-
</svg>
|
|
35
|
-
</span>
|
|
36
|
-
<span v-else-if="icon === 'desc'">
|
|
37
|
-
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
38
|
-
<rect width="14" height="14" rx="2" fill="#F1F3F5"/>
|
|
39
|
-
<path d="M7.00008 9.585L8.58508 8L9.29008 8.705L7.00008 11L4.70508
|
|
40
|
-
8.705L5.41508 8L7.00008 9.585Z"
|
|
41
|
-
fill="#121212"
|
|
42
|
-
/>
|
|
43
|
-
<path d="M7.00008 9.585L8.58508 8L9.29008 8.705L7.00008 11L4.70508
|
|
44
|
-
8.705L5.41508 8L7.00008 9.585Z"
|
|
45
|
-
fill="#D8D8D8"
|
|
46
|
-
fill-opacity="0.09"
|
|
47
|
-
/>
|
|
48
|
-
<path d="M7.00008 3.915L8.58508 5.5L9.29008 4.795L7.00008 2.5L4.70508
|
|
49
|
-
4.795L5.41508 5.5L7.00008 3.915Z"
|
|
50
|
-
fill="#DEE2E6"
|
|
51
|
-
/>
|
|
52
|
-
</svg>
|
|
53
|
-
|
|
54
|
-
</span>
|
|
55
|
-
</template>
|
|
56
|
-
|
|
57
|
-
<script>
|
|
58
|
-
export default {
|
|
59
|
-
name: 'GridSortButton',
|
|
60
|
-
props: {
|
|
61
|
-
icon: {
|
|
62
|
-
type: String,
|
|
63
|
-
default: '',
|
|
64
|
-
},
|
|
65
|
-
},
|
|
66
|
-
};
|
|
67
|
-
</script>
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import VueResizeObserver from 'vue-resize-observer';
|
|
2
|
-
import ObserveVisibility from 'vue3-observe-visibility';
|
|
3
|
-
import EvGrid from './Grid';
|
|
4
|
-
|
|
5
|
-
EvGrid.install = (app) => {
|
|
6
|
-
app.component(EvGrid.name, EvGrid);
|
|
7
|
-
app.use(VueResizeObserver);
|
|
8
|
-
app.use(ObserveVisibility);
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
export default EvGrid;
|