ivue-material-plus
Version:
A high quality UI components Library with Vue.js
136 lines (135 loc) • 3.13 kB
TypeScript
declare const _sfc_main: import("vue").DefineComponent<{
/**
* 需要对比的时间,可以是时间戳或 Date 类型
*
* @type {Number | Date | String}
*/
time: {
type: (NumberConstructor | DateConstructor | StringConstructor)[];
required: true;
};
/**
* 类型,可选值为 相对时间、日期 或 日期时间
*
* @type {String}
*/
type: {
type: StringConstructor;
validator(value: string): boolean;
default: string;
};
/**
* 语言
*
* @type {String}
*
* before?: string
after?: string
just?: string
seconds?: string
minutes?: string
hours?: string
days?: string
*/
locale: {
type: ObjectConstructor;
default: () => void;
};
/**
* 月份格式开始类型
*
* @type {String}
*/
dateStartType: {
type: StringConstructor;
validator(value: string): boolean;
};
/**
* 自动更新的间隔,单位:秒
*
* @type {Number}
*/
interval: {
type: NumberConstructor;
default: number;
};
/**
* 自定义日期方法
*
* @type {Function}
*/
dateFunction: {
type: FunctionConstructor;
};
}, {
prefixCls: string;
date: import("vue").Ref<string>;
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
/**
* 需要对比的时间,可以是时间戳或 Date 类型
*
* @type {Number | Date | String}
*/
time: {
type: (NumberConstructor | DateConstructor | StringConstructor)[];
required: true;
};
/**
* 类型,可选值为 相对时间、日期 或 日期时间
*
* @type {String}
*/
type: {
type: StringConstructor;
validator(value: string): boolean;
default: string;
};
/**
* 语言
*
* @type {String}
*
* before?: string
after?: string
just?: string
seconds?: string
minutes?: string
hours?: string
days?: string
*/
locale: {
type: ObjectConstructor;
default: () => void;
};
/**
* 月份格式开始类型
*
* @type {String}
*/
dateStartType: {
type: StringConstructor;
validator(value: string): boolean;
};
/**
* 自动更新的间隔,单位:秒
*
* @type {Number}
*/
interval: {
type: NumberConstructor;
default: number;
};
/**
* 自定义日期方法
*
* @type {Function}
*/
dateFunction: {
type: FunctionConstructor;
};
}>>, {
type: string;
interval: number;
locale: Record<string, any>;
}>;
export default _sfc_main;