UNPKG

element-plus

Version:

A Component Library for Vue 3

66 lines (65 loc) 2.41 kB
import { EpPropFinalized } from "../../../utils/vue/props/types.js"; import _default from "./statistic.vue.js"; import * as _$vue from "vue"; import { ExtractPublicPropTypes, StyleValue } from "vue"; import { Dayjs } from "dayjs"; //#region ../../packages/components/statistic/src/statistic.d.ts interface StatisticProps { /** * @description Setting the decimal point */ decimalSeparator?: string; /** * @description Sets the thousandth identifier */ groupSeparator?: string; /** * @description numerical precision */ precision?: number; /** * @description Custom numerical presentation */ formatter?: (...args: any[]) => string | number; /** * @description Numerical content */ value?: number | Dayjs; /** * @description Sets the prefix of a number */ prefix?: string; /** * @description Sets the suffix of a number */ suffix?: string; /** * @description Numeric titles */ title?: string; /** * @description Styles numeric values */ valueStyle?: StyleValue; } /** * @deprecated Removed after 3.0.0, Use `StatisticProps` instead. */ declare const statisticProps: { readonly decimalSeparator: EpPropFinalized<StringConstructor, unknown, unknown, ".", boolean>; readonly groupSeparator: EpPropFinalized<StringConstructor, unknown, unknown, ",", boolean>; readonly precision: EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>; readonly formatter: FunctionConstructor; readonly value: EpPropFinalized<(new (...args: any[]) => number | Dayjs) | (() => number | Dayjs) | (((new (...args: any[]) => number | Dayjs) | (() => number | Dayjs)) | null)[], unknown, unknown, 0, boolean>; readonly prefix: StringConstructor; readonly suffix: StringConstructor; readonly title: StringConstructor; readonly valueStyle: EpPropFinalized<(new (...args: any[]) => string | false | _$vue.CSSProperties | StyleValue[]) | (() => StyleValue) | (((new (...args: any[]) => string | false | _$vue.CSSProperties | StyleValue[]) | (() => StyleValue)) | null)[], unknown, unknown, undefined, boolean>; }; /** * @deprecated Removed after 3.0.0, Use `StatisticProps` instead. */ type StatisticPropsPublic = ExtractPublicPropTypes<typeof statisticProps>; type StatisticInstance = InstanceType<typeof _default> & unknown; //#endregion export { StatisticInstance, StatisticProps, StatisticPropsPublic, statisticProps };