49 lines
1.1 KiB
TypeScript
49 lines
1.1 KiB
TypeScript
import { isClient } from '@vueuse/core';
|
|
export declare class ForIconfontGlyphs {
|
|
icon_id: string;
|
|
name: string;
|
|
font_class: string;
|
|
unicode: string;
|
|
unicode_decimal: string;
|
|
}
|
|
export declare class ForIconfont {
|
|
id: string;
|
|
name: string;
|
|
font_family: string;
|
|
css_prefix_text: string;
|
|
description: string;
|
|
glyphs: Array<ForIconfontGlyphs>;
|
|
}
|
|
/**
|
|
* 将阿里妈妈的iconfont.json文件读成想用的单色图标对象
|
|
* @param json
|
|
*/
|
|
export declare const analyzingIconForIconfont: (json: ForIconfont) => {
|
|
font_family: string;
|
|
css_prefix_text: string;
|
|
list: Array<string>;
|
|
};
|
|
/**
|
|
* 将阿里妈妈的iconfont.json文件读成想用的彩色图标对象
|
|
* @param json
|
|
*/
|
|
export declare const eIconSymbol: (json: ForIconfont) => {
|
|
font_family: string;
|
|
list: string[];
|
|
css_prefix_text: string;
|
|
};
|
|
/**
|
|
* 校验是否是外部链接
|
|
* @param {string} path 路径
|
|
*/
|
|
export declare function isExternal(path: string): boolean;
|
|
/**
|
|
* 是否是服务端
|
|
*/
|
|
export declare const isServer: boolean;
|
|
export {
|
|
/**
|
|
* 是否是客户端
|
|
*/
|
|
isClient };
|