feat(系统设置): 字体管理

This commit is contained in:
dataeaseShu 2024-08-19 11:30:54 +08:00
parent b603c20660
commit 76f9fed913

View File

@ -1,3 +1,144 @@
<script lang="ts" setup>
import { ref } from 'vue'
const fontKeyword = ref('')
const fontList = ref([1, 2, 3, 4, 5])
</script>
<template>
<h2>This is "Font manage page" for su.tong</h2>
<div class="font-management_system">
<div class="route-title">
字体管理
<div class="search-font">
<el-input v-model="fontKeyword" clearable style="width: 240px" placeholder="搜索插件名称">
<template #prefix>
<el-icon>
<Icon name="icon_search-outline_outlined"></Icon>
</el-icon>
</template>
</el-input>
<el-button type="primary">
<template #icon>
<Icon name="icon_add_outlined"></Icon>
</template>
添加字体
</el-button>
</div>
</div>
<div class="font-content_list">
<div class="font-content_item" v-for="ele in fontList" :key="ele">
<span class="font-default">默认字体</span>
<div class="font-name">PingFang <span class="font-type"> 系统内置 </span></div>
<div class="font-update_time">
更新时间2022-04-20 20:35:08 <span class="line"></span> 字库文件-
</div>
<div class="font-upload_btn">
<el-button secondary>上传字库文件</el-button>
<el-button secondary>设为默认字体</el-button>
<el-button secondary>重命名</el-button>
<el-button secondary>删除</el-button>
</div>
</div>
</div>
</div>
</template>
<style lang="less" scoped>
.font-management_system {
.route-title {
display: flex;
align-items: center;
justify-content: space-between;
font-size: 20px;
font-weight: 500;
line-height: 28px;
margin-bottom: 16px;
.search-font {
display: flex;
align-items: center;
justify-content: flex-end;
.ed-button {
margin-left: 12px;
}
}
}
.font-content_list {
display: flex;
flex-wrap: wrap;
row-gap: 16px;
justify-content: space-between;
.font-content_item {
border-radius: 4px;
background: #fff;
width: calc(50% - 8px);
position: relative;
padding: 24px;
.font-default {
width: 68px;
height: 24px;
background: #34c72433;
position: absolute;
right: 0;
top: 0;
font-size: 14px;
font-weight: 400;
line-height: 22px;
color: #2ca91f;
padding-left: 6px;
border-bottom-left-radius: 4px;
}
.font-name {
font-size: 16px;
font-weight: 500;
line-height: 24px;
display: flex;
align-items: center;
margin-bottom: 4px;
.font-type {
width: 56px;
height: 20px;
border-radius: 2px;
background: #3370ff33;
font-size: 12px;
font-weight: 400;
line-height: 20px;
color: #2b5fd9;
margin-left: 8px;
padding-left: 4px;
}
}
.font-update_time {
margin-bottom: 16px;
font-size: 12px;
font-weight: 400;
line-height: 20px;
color: #646a73;
display: flex;
align-items: center;
.line {
width: 1px;
height: 14px;
background: #1f232926;
margin: 0 8px;
}
}
.font-upload_btn {
.ed-button {
min-width: 0;
padding: 4px 8px;
font-size: 12px;
font-weight: 400;
line-height: 20px;
}
}
}
}
}
</style>