curatenie si fix target
This commit is contained in:
@@ -1,5 +0,0 @@
|
||||
export default async function importTemplate(name) {
|
||||
const res = await fetch(name);
|
||||
const html = await res.text();
|
||||
return html;
|
||||
}
|
||||
@@ -1,33 +0,0 @@
|
||||
export default {
|
||||
props: {
|
||||
src: {
|
||||
type: String,
|
||||
required: true
|
||||
},
|
||||
fill: {
|
||||
type: String,
|
||||
default: 'currentColor'
|
||||
},
|
||||
theme : {
|
||||
type : String,
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
svg: ''
|
||||
}
|
||||
},
|
||||
async mounted() {
|
||||
const res = await fetch(this.src);
|
||||
const html = await res.text();
|
||||
this.svg = html;
|
||||
},
|
||||
async updated() {
|
||||
const res = await fetch(this.src);
|
||||
const html = await res.text();
|
||||
this.svg = html;
|
||||
},
|
||||
template: `
|
||||
<span v-html="svg" />
|
||||
`
|
||||
}
|
||||
Reference in New Issue
Block a user