UNPKG

@fmdevui/fm-dev

Version:

Page level components developed based on Element Plus.

70 lines (69 loc) 2.5 kB
import { EmptyArrayType, EmptyObjectType, RouteItem, RouteToFrom } from '../../types'; /** * 设置浏览器标题国际化 * @method const title = useTitle(); ==> title() */ export declare function useTitle(): void; /** * 设置 自定义 tagsView 名称、 自定义 tagsView 名称国际化 * @param params 路由 query、params 中的 tagsViewName * @returns 返回当前 tagsViewName 名称 */ export declare function setTagsViewNameI18n(item: any): string; /** * 图片懒加载 * @param el dom 目标元素 * @param arr 列表数据 * @description data-xxx 属性用于存储页面或应用程序的私有自定义数据 */ export declare const lazyImg: (el: string, arr: EmptyArrayType) => void; /** * 全局组件大小 * @returns 返回 `window.localStorage` 中读取的缓存值 `globalComponentSize` */ export declare const globalComponentSize: () => string; /** * 对象深克隆 * @param obj 源对象 * @returns 克隆后的对象 */ export declare function deepClone(obj: EmptyObjectType): EmptyObjectType; /** * 判断是否是移动端 */ export declare function isMobile(): boolean; /** * 判断数组对象中所有属性是否为空,为空则删除当前行对象 * @description @感谢大黄 * @param list 数组对象 * @returns 删除空值后的数组对象 */ export declare function handleEmpty(list: EmptyArrayType): EmptyArrayType; /** * 打开外部链接 * @param val 当前点击项菜单 */ export declare function handleOpenLink(val: RouteItem): void; /** * 统一批量导出 * @method elSvg 导出全局注册 element plus svg 图标 * @method useTitle 设置浏览器标题国际化 * @method setTagsViewNameI18n 设置 自定义 tagsView 名称、 自定义 tagsView 名称国际化 * @method lazyImg 图片懒加载 * @method globalComponentSize() element plus 全局组件大小 * @method deepClone 对象深克隆 * @method isMobile 判断是否是移动端 * @method handleEmpty 判断数组对象中所有属性是否为空,为空则删除当前行对象 * @method handleOpenLink 打开外部链接 */ declare const other: { useTitle: () => void; setTagsViewNameI18n(route: RouteToFrom): string; lazyImg: (el: string, arr: EmptyArrayType) => void; globalComponentSize: () => string; deepClone: (obj: EmptyObjectType) => EmptyObjectType; isMobile: () => boolean; handleEmpty: (list: EmptyArrayType) => EmptyArrayType; handleOpenLink: (val: RouteItem) => void; }; export default other;