first commit

This commit is contained in:
2026-01-08 14:58:16 +08:00
commit 556e5d64aa
9575 changed files with 1621095 additions and 0 deletions
@@ -0,0 +1,50 @@
<template>
<div ref="svgContainer" class="svg-icon" :style="{ 'font-size': size + 'px' }"></div>
</template>
<script>
module.exports = {
name: "index",
props: {
name: {
type: String
},
size: {
type: Number,
default: 26
}
},
data() {
return {}
},
methods: {},
created() {
if (this.name) {
fetch("/assets/platform/img/svg/" + this.name + ".svg")
.then(async (res) => {
const svg = await res.text()
if (this.$refs.svgContainer) {
this.$refs.svgContainer.innerHTML = ""
this.$refs.svgContainer.innerHTML = svg
}
})
.catch(() => {})
}
}
}
</script>
<style scoped>
.svg-icon {
display: inline-flex;
font-size: 20px;
}
.svg-icon svg {
width: 1em;
height: 1em;
vertical-align: -0.15em;
fill: currentColor;
overflow: hidden;
}
</style>