// /* eslint-disable @typescript-eslint/consistent-type-imports */ import type { DefineComponent } from 'vue' declare module 'vue' { export interface GlobalComponents { /** * 通用Echart组件 * - options - string 运行Obj * - echarts -Object echart 包 */ MEchart: DefineComponent<{ options?: string echarts: any }> /** * 通用加载动画组件 * - type - number 类型 1 2 3 4 5 * - color -string 可传入颜色 */ MLoad: DefineComponent<{ color?: string type?: number }> /** * 自动滚动组件 * - height - number 高度 * - duration - number 滚动时长 * - count - number 重复次数 使用双数 2 4 6... * - type - string vertical 纵向 horizontal 横向 */ MAutoScroll: DefineComponent<{ borderWidth: number borderColor: string height: number duration: number count: number type: string }> /** * 数字滚动组件 * - num - number 数字 * - auto - boolean 是否自动运行 * - height - number 高度 30 * - width - number 宽度 20 * - fontSize - number 文字大小 20 * - fontColor - string 文字颜色 * - maxLen - number 最长数量 6 * - duration - string 动画时长 '1s' * */ MRunNumber: DefineComponent<{ num: number auto?: boolean height: number width: number fontSize: number fontColor: string maxLen: number duration: string }> } }