style: 调整
This commit is contained in:
@ -1,20 +1,15 @@
|
|||||||
<template>
|
<template>
|
||||||
<svg
|
<svg aria-hidden="true" class="svg-icon" :width="props.size" :height="props.size">
|
||||||
aria-hidden="true"
|
|
||||||
class="svg-icon"
|
|
||||||
:width="props.size"
|
|
||||||
:height="props.size"
|
|
||||||
>
|
|
||||||
<use :xlink:href="symbolId" :fill="props.color" />
|
<use :xlink:href="symbolId" :fill="props.color" />
|
||||||
</svg>
|
</svg>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { computed } from "vue";
|
import { computed } from 'vue';
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
prefix: {
|
prefix: {
|
||||||
type: String,
|
type: String,
|
||||||
default: "icon",
|
default: 'icon',
|
||||||
},
|
},
|
||||||
name: {
|
name: {
|
||||||
type: String,
|
type: String,
|
||||||
@ -22,14 +17,13 @@
|
|||||||
},
|
},
|
||||||
color: {
|
color: {
|
||||||
type: String,
|
type: String,
|
||||||
default: "#333",
|
default: '#333',
|
||||||
},
|
},
|
||||||
size: {
|
size: {
|
||||||
type: String,
|
type: String,
|
||||||
default: "12",
|
default: '12',
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const symbolId = computed(() => `#${props.prefix}-${props.name}`);
|
const symbolId = computed(() => `#${props.prefix}-${props.name}`);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@ -4,6 +4,7 @@ $font-family-regular: 'PingFangSC-Regular', 'Microsoft Yahei', Arial, sans-serif
|
|||||||
$font-family-medium: 'PingFangSC-Medium', 'Microsoft Yahei', Arial, sans-serif;
|
$font-family-medium: 'PingFangSC-Medium', 'Microsoft Yahei', Arial, sans-serif;
|
||||||
$font-family-light: 'PingFangSC-Light', 'Microsoft Yahei', Arial, sans-serif;
|
$font-family-light: 'PingFangSC-Light', 'Microsoft Yahei', Arial, sans-serif;
|
||||||
$font-family-bold: 'PingFangSC-Semibold', 'PingFangSC-Regular', 'Microsoft Yahei', Arial, sans-serif;
|
$font-family-bold: 'PingFangSC-Semibold', 'PingFangSC-Regular', 'Microsoft Yahei', Arial, sans-serif;
|
||||||
|
|
||||||
// 数字字体包
|
// 数字字体包
|
||||||
$font-family-manrope-regular: 'Manrope-Regular';
|
$font-family-manrope-regular: 'Manrope-Regular';
|
||||||
$font-family-manrope-medium: 'Manrope-Medium';
|
$font-family-manrope-medium: 'Manrope-Medium';
|
||||||
|
|||||||
Reference in New Issue
Block a user