jb-mobile-ui
Version:
JinBiWuYe Mobile UI Components base on Vant
181 lines (180 loc) • 4.67 kB
TypeScript
declare function __VLS_template(): {
attrs: Partial<{}>;
slots: {
popupBg?(_: {}): any;
default?(_: {}): any;
footButton?(_: {}): any;
};
refs: {};
rootEl: any;
};
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
/**
* 是否显示弹出层,可通过 v-model 进行双向数据绑定
*/
visible: {
type: BooleanConstructor;
default: boolean;
};
/**
* 弹出层的标题
*/
title: {
type: StringConstructor;
default: string;
};
/**
* 弹出层的标题是否为白色背景
*/
titleWhiteBg: {
type: BooleanConstructor;
default: boolean;
};
/**
* 弹出层内容的高度
*/
contentHeight: {
type: (StringConstructor | NumberConstructor)[];
default: string;
};
/**
* 弹出层是否为灰色背景
*/
greyBg: {
type: BooleanConstructor;
default: boolean;
};
/**
* 是否显示弹出层的底部确认按钮
*/
confirmButton: {
type: BooleanConstructor;
default: boolean;
};
/**
* 弹出层底部确认按钮的文本
*/
confirmButtonText: {
type: StringConstructor;
default: string;
};
/**
* 是否禁用弹出层的底部确认按钮
*/
confirmButtonDisabled: {
type: BooleanConstructor;
default: boolean;
};
/**
* 点击确认按钮前的回调函数,返回值为 true 时才会触发确认按钮的 confirm 事件,为 false 时则不会触发
*/
beforeConfirm: {
type: FunctionConstructor;
default: () => boolean;
};
/**
* 弹出层是否需要适配底部安全区域
*/
safeAreaInsetBottom: {
type: BooleanConstructor;
default: boolean;
};
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
close: (...args: any[]) => void;
"update:visible": (...args: any[]) => void;
confirm: (...args: any[]) => void;
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
/**
* 是否显示弹出层,可通过 v-model 进行双向数据绑定
*/
visible: {
type: BooleanConstructor;
default: boolean;
};
/**
* 弹出层的标题
*/
title: {
type: StringConstructor;
default: string;
};
/**
* 弹出层的标题是否为白色背景
*/
titleWhiteBg: {
type: BooleanConstructor;
default: boolean;
};
/**
* 弹出层内容的高度
*/
contentHeight: {
type: (StringConstructor | NumberConstructor)[];
default: string;
};
/**
* 弹出层是否为灰色背景
*/
greyBg: {
type: BooleanConstructor;
default: boolean;
};
/**
* 是否显示弹出层的底部确认按钮
*/
confirmButton: {
type: BooleanConstructor;
default: boolean;
};
/**
* 弹出层底部确认按钮的文本
*/
confirmButtonText: {
type: StringConstructor;
default: string;
};
/**
* 是否禁用弹出层的底部确认按钮
*/
confirmButtonDisabled: {
type: BooleanConstructor;
default: boolean;
};
/**
* 点击确认按钮前的回调函数,返回值为 true 时才会触发确认按钮的 confirm 事件,为 false 时则不会触发
*/
beforeConfirm: {
type: FunctionConstructor;
default: () => boolean;
};
/**
* 弹出层是否需要适配底部安全区域
*/
safeAreaInsetBottom: {
type: BooleanConstructor;
default: boolean;
};
}>> & Readonly<{
onClose?: ((...args: any[]) => any) | undefined;
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
onConfirm?: ((...args: any[]) => any) | undefined;
}>, {
title: string;
visible: boolean;
titleWhiteBg: boolean;
contentHeight: string | number;
greyBg: boolean;
confirmButton: boolean;
confirmButtonText: string;
confirmButtonDisabled: boolean;
beforeConfirm: Function;
safeAreaInsetBottom: boolean;
}, {}, {}, {}, 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;
};
};