kuaifan 58a0180caa feat(setting): 移动端设置页改版,顶部个人资料卡、图标与右箭头、右侧显示当前值、按语义分组,退出登录改为底部按钮
- 引入 ionicons 8 新版图标,新增全局 IonIcon 组件(按需引入 SVG 内联渲染,不走 CDN)
- 桌面端设置菜单保持不变
- 同步 ai-kb 设置入口与个人设置路径
2026-10-28 09:49:06 +00:00

32 lines
828 B
Vue
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<script>
/**
* Ionicons(新版)SVG 图标
*
* 用法:
* import {lockClosedOutline} from "ionicons/icons";
* <IonIcon :icon="lockClosedOutline"/>
*
* 按需引入 ionicons/icons 导出的 data URI,内联渲染为 SVG(不使用 <ion-icon> 组件,避免运行时从 CDN 加载)
* 尺寸跟随 font-size,颜色跟随 color
*/
export default {
name: 'IonIcon',
functional: true,
props: {
icon: {
type: String,
required: true
},
},
render(h, {props, data}) {
const {icon} = props
return h('i', Object.assign({}, data, {
staticClass: ['ion-icon', data.staticClass].filter(Boolean).join(' '),
domProps: {
innerHTML: icon.slice(icon.indexOf(',') + 1)
},
}))
}
}
</script>