Skip to content
This repository was archived by the owner on Jun 10, 2021. It is now read-only.

Commit 8333e52

Browse files
committed
Fixed missed assets for sorting
1 parent fc281ca commit 8333e52

File tree

1 file changed

+25
-8
lines changed

1 file changed

+25
-8
lines changed

src/components/ServerDatasource.vue

+25-8
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22
import DatasourceUtils from '@/utils/DatasourceUtils'
33
import Pagination from './Pagination'
44
import {EventBus} from '@/utils/EventBus'
5-
import IconAsc from '@/assets/icon-sort-asc.svg'
6-
import IconDesc from '@/assets/icon-sort-desc.svg'
5+
import SvgIcon from '@/components/SvgIcon'
76
export default {
87
name: 'ServerDatasource',
9-
components: {Pagination},
8+
components: {Pagination, SvgIcon},
109
render (h) {
1110
return (
1211
<div class="vue-server-datasource">
@@ -142,10 +141,16 @@ export default {
142141
columnItems () {
143142
let showArrows = (key) => {
144143
if (this.columnSortSelected.key) {
145-
return (this.shouldShowUpArrow(key)) ? <img class="arrow-active" src={IconAsc} width="15"/>
146-
: <img class="arrow-active" src={IconDesc} width="15"/>
144+
return (this.shouldShowUpArrow(key)) ? <span class="icon-asc">
145+
<SvgIcon/>
146+
</span>
147+
: <span class="icon-desc">
148+
<SvgIcon/>
149+
</span>
147150
} else {
148-
return <img src={IconDesc} width="15"/>
151+
return <span class="icon-desc">
152+
<SvgIcon/>
153+
</span>
149154
}
150155
}
151156
@@ -268,15 +273,27 @@ export default {
268273
width: 100%;
269274
height: 100%;
270275
background: rgba(229, 229, 229, 0.5);
271-
276+
272277
.v-spinner {
273-
position: absolute;
278+
position: absolute;
274279
top: 50%;
275280
left: 50%;
276281
margin-left: -25px;
277282
margin-top: -50px;
278283
}
279284
}
285+
.icon-asc,
286+
.icon-desc {
287+
svg {
288+
fill: #a3a3a3;
289+
width: 1em;
290+
}
291+
}
292+
.icon-asc {
293+
svg {
294+
transform: rotate(180deg);
295+
}
296+
}
280297
}
281298
282299
.pr1 {

0 commit comments

Comments
 (0)