@opentiny/vue-renderless
Version:
An enterprise-class UI component library, support both Vue.js 2 and Vue.js 3, as well as PC and mobile.
54 lines (50 loc) • 1.63 kB
TypeScript
import { ExtractPropTypes } from 'vue';
import { ISharedRenderlessFunctionParams } from './shared.type.js';
declare const $constants: {
PREFIX: string;
};
declare const statisticProps: {
_constants: {
type: ObjectConstructor;
default: () => {
PREFIX: string;
};
};
precision: NumberConstructor;
formatter: FunctionConstructor;
value: {
type: (StringConstructor | NumberConstructor)[];
default: number;
};
prefix: StringConstructor;
suffix: StringConstructor;
title: (StringConstructor | ObjectConstructor)[];
valueStyle: {
type: (ObjectConstructor | ArrayConstructor)[];
};
groupSeparator: {
type: StringConstructor;
default: string;
};
tiny_mode: StringConstructor;
tiny_mode_root: BooleanConstructor;
tiny_template: (FunctionConstructor | ObjectConstructor)[];
tiny_renderless: FunctionConstructor;
tiny_theme: StringConstructor;
tiny_mcp_config: ObjectConstructor;
tiny_chart_theme: ObjectConstructor;
};
type IStatisticProps = ExtractPropTypes<typeof statisticProps>;
type IStatisticConstants = typeof $constants;
interface IStatisticState {
getIntegerAndDecimal: number | string;
}
interface IStatisticApi {
getIntegerAndDecimal: (value: string | number) => string | undefined;
}
type IStatisticPcRenderlessParams = ISharedRenderlessFunctionParams<never> & {
state: IStatisticState;
props: IStatisticProps;
api: IStatisticApi;
};
export { IStatisticApi, IStatisticConstants, IStatisticPcRenderlessParams, IStatisticProps, IStatisticState };