feat: iconfont字体图标使用
parent
8307c17785
commit
625c7d5f33
@ -0,0 +1,24 @@
|
||||
<template>
|
||||
<el-card header="Iconfont示例">
|
||||
<i
|
||||
v-for="icon in iconList"
|
||||
:key="icon"
|
||||
class="iconfont"
|
||||
:class="`${icon}`"
|
||||
></i>
|
||||
</el-card>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref } from 'vue';
|
||||
|
||||
const iconList = ref();
|
||||
iconList.value = ['icon-yinhangka', 'icon-tupian', 'icon-RectangleCopy', 'icon-RectangleCopy1', 'icon-RectangleCopy2', 'icon-RectangleCopy3'];
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.iconfont {
|
||||
font-size: 48px;
|
||||
color: #333;
|
||||
}
|
||||
</style>
|
||||
Loading…
Reference in New Issue