forked from forgejo/forgejo
parent
726afe8a9e
commit
04e97b8311
18 changed files with 384 additions and 606 deletions
|
@ -26,8 +26,6 @@ import octiconSidebarExpand from '../../public/img/svg/octicon-sidebar-expand.sv
|
|||
import octiconSidebarCollapse from '../../public/img/svg/octicon-sidebar-collapse.svg';
|
||||
|
||||
|
||||
import Vue from 'vue';
|
||||
|
||||
export const svgs = {
|
||||
'octicon-chevron-down': octiconChevronDown,
|
||||
'octicon-chevron-right': octiconChevronRight,
|
||||
|
@ -74,7 +72,8 @@ export function svg(name, size = 16, className = '') {
|
|||
return serializer.serializeToString(svgNode);
|
||||
}
|
||||
|
||||
export const SvgIcon = Vue.component('SvgIcon', {
|
||||
export const SvgIcon = {
|
||||
name: 'SvgIcon',
|
||||
props: {
|
||||
name: {type: String, required: true},
|
||||
size: {type: Number, default: 16},
|
||||
|
@ -88,4 +87,4 @@ export const SvgIcon = Vue.component('SvgIcon', {
|
|||
},
|
||||
|
||||
template: `<span v-html="svg" />`
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue