fix: 图标改为更简洁的Element UI风格符号
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -1,40 +1,38 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="icon-wrapper" :style="iconStyle">
|
<text class="icon" :class="'icon-' + name" :style="iconStyle">{{ iconChar }}</text>
|
||||||
<text class="icon-text">{{ iconChar }}</text>
|
|
||||||
</view>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
// 简单图标映射
|
// Element UI 风格图标(使用更专业的 Unicode 符号)
|
||||||
const icons = {
|
const icons = {
|
||||||
home: '🏠',
|
home: '⌂',
|
||||||
user: '👤',
|
user: '👤',
|
||||||
chart: '📊',
|
chart: '📈',
|
||||||
product: '📦',
|
product: '📦',
|
||||||
add: '➕',
|
add: '+',
|
||||||
search: '🔍',
|
search: '🔎',
|
||||||
order: '📋',
|
order: '📝',
|
||||||
edit: '✏️',
|
edit: '✎',
|
||||||
check: '✓',
|
check: '✓',
|
||||||
close: '✕',
|
close: '✕',
|
||||||
stock: '🏭',
|
stock: '📦',
|
||||||
alert: '⚡',
|
alert: '⚠',
|
||||||
in: '⬇️',
|
in: '↓',
|
||||||
out: '⬆️',
|
out: '↑',
|
||||||
customer: '👥',
|
customer: '👥',
|
||||||
money: '💰',
|
money: '💴',
|
||||||
logout: '↩️',
|
logout: '↪',
|
||||||
right: '›',
|
right: '›',
|
||||||
left: '‹',
|
left: '‹',
|
||||||
down: '▼',
|
down: '▽',
|
||||||
lock: '🔐',
|
lock: '🔒',
|
||||||
calendar: '📅',
|
calendar: '📅',
|
||||||
setting: '⚙️',
|
setting: '⚙',
|
||||||
wechat: '💬',
|
wechat: '💬',
|
||||||
cash: '💵',
|
cash: '💵',
|
||||||
alipay: '💙',
|
alipay: '💙',
|
||||||
plus: '📥',
|
plus: '+',
|
||||||
flow: '📊'
|
flow: '↔'
|
||||||
}
|
}
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@@ -59,12 +57,10 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.icon-wrapper {
|
.icon {
|
||||||
display: flex;
|
font-family: system-ui, -apple-system, sans-serif;
|
||||||
align-items: center;
|
display: inline-block;
|
||||||
justify-content: center;
|
text-align: center;
|
||||||
}
|
|
||||||
.icon-text {
|
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
Reference in New Issue
Block a user