UNPKG

iking-countto

Version:

金合前端组件

31 lines (29 loc) 939 B
/* * @Author: wfl * @LastEditors: wfl * @description: * @updateInfo: * @Date: 2022-08-08 18:33:34 * @LastEditTime: 2022-08-09 09:44:35 */ /// <reference types="vite/client" /> declare module 'iking-countto' { import type { Component } from 'vue' import { TransitionPresets } from '@vueuse/core'; const component: Component<{ startVal: Number; // 起始值 endVal: Number; // 最终值 duration: Number;// 动画持续时间 autoplay: Boolean; // 自动播放 decimals: Number; // 小数位数 prefix: String; // 前缀 suffix: String; // 后缀 separator: String; // 分隔符号 decimal: String; // 小数点符号 color: String; // 数字颜色 useEasing: Boolean; // 启用数字动画 transition: keyof typeof TransitionPresets // 动画类型 customClass: String; // 自定义class,传入class名称 }> export default component }