docs: add cell storage protocol modules design for 2.2.6–2.2.10
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
058811ae77
commit
246ad2228e
153 files changed
+20578
-2040
No files matched your search
@@ -0,0 +1,118 @@
|
||||
import type { Component } from 'vue'
|
||||
import {
|
||||
ArrowDown,
|
||||
ArrowLeft,
|
||||
ArrowRight,
|
||||
ArrowUp,
|
||||
Back,
|
||||
Bell,
|
||||
Box,
|
||||
Brush,
|
||||
ChatDotRound,
|
||||
Check,
|
||||
CircleClose,
|
||||
Close,
|
||||
CloseBold,
|
||||
DArrowRight,
|
||||
DataAnalysis,
|
||||
Delete,
|
||||
Document,
|
||||
Edit,
|
||||
Expand,
|
||||
Fold,
|
||||
FullScreen,
|
||||
Grid,
|
||||
HomeFilled,
|
||||
Location,
|
||||
Message,
|
||||
Moon,
|
||||
MoreFilled,
|
||||
Notification,
|
||||
Operation,
|
||||
Picture,
|
||||
Plus,
|
||||
Position,
|
||||
Rank,
|
||||
Refresh,
|
||||
RefreshLeft,
|
||||
Right,
|
||||
Search,
|
||||
Select,
|
||||
Setting,
|
||||
Sort,
|
||||
StarFilled,
|
||||
Sunny,
|
||||
Tickets,
|
||||
Upload,
|
||||
User,
|
||||
View,
|
||||
Warning
|
||||
} from '@element-plus/icons-vue'
|
||||
|
||||
/**
|
||||
* Element Plus 图标名 → 组件映射
|
||||
*
|
||||
* 约定:icon 名不含 `:` 前缀 → 查此映射走 el-icon 渲染;
|
||||
* 含 `:` → 走 Iconify(向后兼容)。
|
||||
*/
|
||||
export const epIconMap: Record<string, Component> = {
|
||||
// Navigation / arrows
|
||||
'arrow-down': ArrowDown,
|
||||
'arrow-left': ArrowLeft,
|
||||
'arrow-right': ArrowRight,
|
||||
'arrow-up': ArrowUp,
|
||||
back: Back,
|
||||
right: Right,
|
||||
'd-arrow-right': DArrowRight,
|
||||
select: Select,
|
||||
sort: Sort,
|
||||
// Actions
|
||||
search: Search,
|
||||
setting: Setting,
|
||||
refresh: Refresh,
|
||||
'refresh-left': RefreshLeft,
|
||||
close: Close,
|
||||
'close-bold': CloseBold,
|
||||
'circle-close': CircleClose,
|
||||
check: Check,
|
||||
plus: Plus,
|
||||
delete: Delete,
|
||||
edit: Edit,
|
||||
view: View,
|
||||
'more-filled': MoreFilled,
|
||||
copy: Document,
|
||||
upload: Upload,
|
||||
// Content
|
||||
grid: Grid,
|
||||
'home-filled': HomeFilled,
|
||||
document: Document,
|
||||
picture: Picture,
|
||||
message: Message,
|
||||
bell: Bell,
|
||||
chat: ChatDotRound,
|
||||
box: Box,
|
||||
tickets: Tickets,
|
||||
'data-analysis': DataAnalysis,
|
||||
// UI
|
||||
fullscreen: FullScreen,
|
||||
fold: Fold,
|
||||
expand: Expand,
|
||||
sunny: Sunny,
|
||||
moon: Moon,
|
||||
user: User,
|
||||
location: Location,
|
||||
position: Position,
|
||||
notification: Notification,
|
||||
rank: Rank,
|
||||
operation: Operation,
|
||||
'star-filled': StarFilled,
|
||||
smile: ChatDotRound,
|
||||
brush: Brush,
|
||||
// Status
|
||||
warning: Warning
|
||||
}
|
||||
|
||||
export function resolveEpIcon(name: string | undefined): Component | undefined {
|
||||
if (!name || name.includes(':')) return undefined
|
||||
return epIconMap[name]
|
||||
}
|
||||
@@ -1,12 +1,12 @@
|
||||
/** 未设置头像时统一使用叁强 logo(与登录页、侧栏 ArtLogo 一致) */
|
||||
export const DEFAULT_USER_AVATAR_URL = '/logo1.jpg'
|
||||
/** 未设置头像时统一使用中科兴皖 logo(与登录页、侧栏 ArtLogo 一致) */
|
||||
export const DEFAULT_USER_AVATAR_URL = '/logo.png'
|
||||
|
||||
/** @deprecated 各角色默认已统一为 logo,保留参数仅为兼容旧调用 */
|
||||
export function defaultAvatarPathByRole(_role: string | undefined): string {
|
||||
return DEFAULT_USER_AVATAR_URL
|
||||
}
|
||||
|
||||
/** 展示用头像:有自定义 URL 用自定义,否则用叁强 logo */
|
||||
/** 展示用头像:有自定义 URL 用自定义,否则用中科兴皖 logo */
|
||||
export function resolveUserAvatarUrl(avatarUrl: string | null | undefined, role: string | undefined): string {
|
||||
const u = avatarUrl != null ? String(avatarUrl).trim() : ''
|
||||
if (u) return u
|
||||
|
||||
Reference in new issue
Block a user