hy-app
Version:
修复上传提示功能
391 lines (389 loc) • 6.52 kB
text/typescript
export const IconConfig = {
/**
* @description 加载动画
* */
LOADING: "loading",
/**
* @description 关闭
* */
CLOSE: "close",
/**
* @description 空星
* */
STAR: "collect",
/**
* @description 实星
* */
STAR_FILL: "collect-fill",
/**
* @description 微笑
* */
SMILE: "smile",
/**
* @description 微笑-实心
* */
SMILE_FILL: "smile-fill",
/**
* @description 难过-实心
* */
CRY_FILL: "cry-fill",
/**
* @description 打勾,勾选
* */
CHECK_MASK: "check-mask",
/**
* @description 编辑
* */
EDIT: "edit",
/**
* @description 商城
* */
SHOP: "shop",
/**
* @description 实心锁
* */
LOCK_FILL: "lock-fill",
/**
* @description 打开实心锁
* */
LOCK_OPEN_FILL: "lock-open-fill",
/**
* @description 空心锁
* */
LOCK: "lock",
/**
* @description 地点
* */
MAP: "map",
/**
* @description 地点-实心
* */
MAP_FILL: "map-fill",
/**
* @description 购物车
* */
SHOPPING_CART: "shopping-cart",
/**
* @description 购物车-实心
* */
SHOPPING_CART_FILL: "shopping-cart-fill",
/**
* @description 添加购物车
* */
SHOPPING_CART_ADD: "shopping-cart-add",
/**
* @description 购物袋
* */
SHOPPING_BAG: "shopping-bag",
/**
* @description 刷新
* */
REFRESH: "refresh",
/**
* @description 任务
* */
TASK: "task",
/**
* @description 标签
* */
TAG: "tag",
/**
* @description 左
* */
LEFT: "left",
/**
* @description 右
* */
RIGHT: "right",
/**
* @description 上
* */
UP: "up",
/**
* @description 下
* */
DOWN: "down",
/**
* @description 向上-实心
* */
ARROW_UP_FILL: "arrow-up-fill",
/**
* @description 向下-实心
* */
ARROW_DOWN_FILL: "arrow-down-fill",
/**
* @description 向左-实心
* */
ARROW_LEFT_FILL: "arrow-left-fill",
/**
* @description 向右-实心
* */
ARROW_RIGHT_FILL: "arrow-right-fill",
/**
* @description 向左双箭头
* */
ARROW_DOUBLE_LEFT: "arrow-double-left",
/**
* @description 向右双箭头
* */
ARROW_DOUBLE_RIGHT: "arrow-double-right",
/**
* @description 箭头向左
* */
ARROW_LEFTWARD: "arrow-leftward",
/**
* @description 箭头向右
* */
ARROW_RIGHTWARD: "arrow-rightward",
/**
* @description 历史
* */
HISTORY: "history",
/**
* @description 时间
* */
TIME: "time",
/**
* @description 网络
* */
NETWORK: "network",
/**
* @description 列表
* */
LIST_DOT: "list-dot",
/**
* @description 菜单
* */
MENU: "menu",
/**
* @description 搜索
* */
SEARCH: "search",
/**
* @description 加
* */
PLUS: "plus",
/**
* @description 减
* */
MINUS: "minus",
/**
* @description 提醒
* */
REMIND: "remind",
/**
* @description 警告
* */
WARNING: "warning",
/**
* @description 警告-实心
* */
WARNING_FILL: "warning-fill",
/**
* @description 删除
* */
DELETE: "delete",
/**
* @description 删除-实心
* */
DELETE_FILL: "delete-fill",
/**
* @description 筛选
* */
SCREEN: "screen",
/**
* @description 分类
* */
CLASS: "class",
/**
* @description 应用
* */
CLASS_FILL: "class-fill",
/**
* @description 首页
* */
HOME: "home",
/**
* @description 首页-实心
* */
HOME_FILL: "home-fill",
/**
* @description 我的
* */
MINE: "mine",
/**
* @description 我的-实心
* */
MINE_FILL: "mine-fill",
/**
* @description 设置
* */
SETTING: "setting",
/**
* @description 关闭-圈
* */
CLOSE_CIRCLE: "close-circle",
/**
* @description 关闭-圈-实心
* */
CLOSE_CIRCLE_FILL: "close-circle-fill",
/**
* @description 注意
* */
NOTICE: "notice",
/**
* @description 注意-实心
* */
NOTICE_FILL: "notice-fill",
/**
* @description 成功
* */
SUCCESS: "success",
/**
* @description 成功-实心
* */
SUCCESS_FILL: "success-fill",
/**
* @description 帮助
* */
HELP: "help",
/**
* @description 帮助-实心
* */
HELP_FILL: "help-fill",
/**
* @description 上传
* */
UPLOAD: "upload",
/**
* @description 转换
* */
SWITCH: "switch",
/**
* @description 下载
* */
DOWNLOAD: "download",
/**
* @description 保护
* */
SECURITY: "security",
/**
* @description 扫码
* */
SCAN: "scan",
/**
* @description 保存
* */
SAVE: "save",
/**
* @description 图片
* */
PHOTO: "picture",
/**
* @description pdf
* */
PDF: "pdf",
/**
* @description 导航
* */
NAVIGATION: "navigation",
/**
* @description 打印
* */
PRINT: "print",
/**
* @description layers
* */
LAYERS: "layers",
/**
* @description 链接
* */
LINK: "link",
/**
* @description 导出
* */
EXPORT: "export",
/**
* @description 省略号
* */
ELLIPSIS: "ellipsis",
/**
* @description 客服
* */
CUSTOMER_SERVICE: "customer-service",
/**
* @description 信息
* */
COMMENT: "comment",
/**
* @description 附件
* */
ATTACHMENT: "attachment",
/**
* @description 相机
* */
CAMERA: "camera",
/**
* @description 眼睛
* */
EYE: "eye",
/**
* @description 眼睛-关闭
* */
EYE_CLOSE: "eye-close",
/**
* @description 日历
* */
CALENDAR: "calendar",
/**
* @description 复制
* */
COPY: "copy",
/**
* @description 订单
* */
ORDER: "order",
/**
* @description 消息
* */
MESSAGE: "message",
/**
* @description 消息-实心
* */
MESSAGE_FILL: "message-fill",
/**
* @description 通知
* */
NOTIFICATION_FILL: "systemprompt_fill",
/**
* @description 发送
* */
SEND: "send",
/**
* @description 分享
* */
SHARE: "share",
/**
* @description 分享-实心
* */
SHARE_FILL: "share-fill",
};
/**
* @description 不同主题对应不同的图标
* */
export const iconName = (type: string) => {
switch (type) {
case "success":
return IconConfig.SUCCESS_FILL;
case "error":
return IconConfig.CLOSE_CIRCLE_FILL;
case "warning":
return IconConfig.NOTICE_FILL;
case "info":
return IconConfig.HELP_FILL;
case "primary":
return IconConfig.MESSAGE_FILL;
default:
return IconConfig.CLOSE_CIRCLE_FILL;
}
};