jb-mobile-ui
Version:
JinBiWuYe Mobile UI Components base on Vant
149 lines (148 loc) • 5.45 kB
TypeScript
declare function __VLS_template(): {
attrs: Partial<{}>;
slots: {
title?(_: {
tab: Record<string, any>;
}): any;
};
refs: {};
rootEl: any;
};
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
/**
* 标签页所选择标签的值,可通过 v-model 进行双向数据绑定
*/
modelValue: {
type: (StringConstructor | NumberConstructor)[];
default: string;
};
/**
* 标签页的样式风格,default - 默认风格,capsule - 胶囊风格,button - 按钮风格
*/
type: {
type: StringConstructor;
default: string;
};
/**
* 标签页的标签列表
*/
tabsList: {
type: {
(arrayLength: number): Record<string, any>[];
(...items: Record<string, any>[]): Record<string, any>[];
new (arrayLength: number): Record<string, any>[];
new (...items: Record<string, any>[]): Record<string, any>[];
isArray(arg: any): arg is any[];
readonly prototype: any[];
from<T>(arrayLike: ArrayLike<T>): T[];
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
of<T>(...items: T[]): T[];
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
readonly [Symbol.species]: ArrayConstructor;
};
default: never[];
};
/**
* 标签数据项的自定义字段,可修改的字段有 label 和 value
*/
fieldNames: {
type: ObjectConstructor;
default: () => {};
};
/**
* 标签页的内边距,type 为 capsule 时有效
*/
padding: {
type: StringConstructor;
default: string;
};
/**
* 标签页的背景颜色,type 为 capsule 时有效
*/
bgColor: {
type: StringConstructor;
default: string;
};
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
change: (...args: any[]) => void;
"update:modelValue": (...args: any[]) => void;
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
/**
* 标签页所选择标签的值,可通过 v-model 进行双向数据绑定
*/
modelValue: {
type: (StringConstructor | NumberConstructor)[];
default: string;
};
/**
* 标签页的样式风格,default - 默认风格,capsule - 胶囊风格,button - 按钮风格
*/
type: {
type: StringConstructor;
default: string;
};
/**
* 标签页的标签列表
*/
tabsList: {
type: {
(arrayLength: number): Record<string, any>[];
(...items: Record<string, any>[]): Record<string, any>[];
new (arrayLength: number): Record<string, any>[];
new (...items: Record<string, any>[]): Record<string, any>[];
isArray(arg: any): arg is any[];
readonly prototype: any[];
from<T>(arrayLike: ArrayLike<T>): T[];
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
of<T>(...items: T[]): T[];
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
readonly [Symbol.species]: ArrayConstructor;
};
default: never[];
};
/**
* 标签数据项的自定义字段,可修改的字段有 label 和 value
*/
fieldNames: {
type: ObjectConstructor;
default: () => {};
};
/**
* 标签页的内边距,type 为 capsule 时有效
*/
padding: {
type: StringConstructor;
default: string;
};
/**
* 标签页的背景颜色,type 为 capsule 时有效
*/
bgColor: {
type: StringConstructor;
default: string;
};
}>> & Readonly<{
onChange?: ((...args: any[]) => any) | undefined;
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
}>, {
type: string;
modelValue: string | number;
fieldNames: Record<string, any>;
tabsList: Record<string, any>[];
padding: string;
bgColor: string;
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
export default _default;
type __VLS_WithTemplateSlots<T, S> = T & {
new (): {
$slots: S;
};
};