@farris/ui-vue
Version:
Farris Vue, a Farris Design based Vue3 component library.
195 lines (194 loc) • 5.8 kB
TypeScript
/**
* Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { ExtractPropTypes, PropType } from 'vue';
export declare const drawerProps: {
/** 标题 */
title: {
type: StringConstructor;
default: string;
};
/** 打开关闭抽屉 */
modelValue: {
type: BooleanConstructor;
default: boolean;
};
/** 从哪个位置呼出 */
position: {
type: PropType<"left" | "right" | "top" | "bottom">;
default: string;
};
/** 抽屉插入位置 */
appendTo: {
type: StringConstructor;
default: string;
};
/** 是否展示打开抽屉入口 */
showEntry: {
type: BooleanConstructor;
default: boolean;
};
/** 是否展示关闭按钮 */
showClose: {
type: BooleanConstructor;
default: boolean;
};
/** 是否展示遮罩层 */
showMask: {
type: BooleanConstructor;
default: boolean;
};
/** 宽度 */
width: {
type: (StringConstructor | NumberConstructor)[];
default: number;
};
/** 高度 */
height: {
type: (StringConstructor | NumberConstructor)[];
default: number;
};
/** 背景色 */
backgroundColor: {
type: StringConstructor;
default: string;
};
/** 点击遮罩是否关闭抽屉 */
closeByMask: {
type: BooleanConstructor;
default: boolean;
};
/** 抽屉容器样式 */
wrapperClass: {
type: StringConstructor;
default: string;
};
/** 入口样式类名 */
entryClass: {
type: StringConstructor;
default: string;
};
/** 按钮组 */
buttons: {
type: {
(arrayLength: number): any[];
(...items: any[]): any[];
new (arrayLength: number): any[];
new (...items: any[]): any[];
isArray(arg: any): arg is any[];
readonly prototype: any[];
from<T>(arrayLike: ArrayLike<T>): T[];
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
of<T_4>(...items: T_4[]): T_4[];
readonly [Symbol.species]: ArrayConstructor;
};
default: never[];
};
};
export type DrawerProps = ExtractPropTypes<typeof drawerProps>;
export declare const drawerPropsDesignerProps: {
/** 标题 */
title: {
type: StringConstructor;
default: string;
};
/** 打开关闭抽屉 */
modelValue: {
type: BooleanConstructor;
default: boolean;
};
/** 从哪个位置呼出 */
position: {
type: PropType<"left" | "right" | "top" | "bottom">;
default: string;
};
/** 抽屉插入位置 */
appendTo: {
type: StringConstructor;
default: string;
};
/** 是否展示打开抽屉入口 */
showEntry: {
type: BooleanConstructor;
default: boolean;
};
/** 是否展示关闭按钮 */
showClose: {
type: BooleanConstructor;
default: boolean;
};
/** 是否展示遮罩层 */
showMask: {
type: BooleanConstructor;
default: boolean;
};
/** 宽度 */
width: {
type: (StringConstructor | NumberConstructor)[];
default: number;
};
/** 高度 */
height: {
type: (StringConstructor | NumberConstructor)[];
default: number;
};
/** 背景色 */
backgroundColor: {
type: StringConstructor;
default: string;
};
/** 点击遮罩是否关闭抽屉 */
closeByMask: {
type: BooleanConstructor;
default: boolean;
};
/** 抽屉容器样式 */
wrapperClass: {
type: StringConstructor;
default: string;
};
/** 入口样式类名 */
entryClass: {
type: StringConstructor;
default: string;
};
/** 按钮组 */
buttons: {
type: {
(arrayLength: number): any[];
(...items: any[]): any[];
new (arrayLength: number): any[];
new (...items: any[]): any[];
isArray(arg: any): arg is any[];
readonly prototype: any[];
from<T>(arrayLike: ArrayLike<T>): T[];
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
of<T_4>(...items: T_4[]): T_4[];
readonly [Symbol.species]: ArrayConstructor;
};
default: never[];
};
} & {
componentId: {
type: StringConstructor;
default: string;
};
};
export type DrawerDesignerProps = ExtractPropTypes<typeof drawerPropsDesignerProps>;
export declare const propsResolver: (schemaValue?: Record<string, any>, mergeDefaults?: boolean) => Record<string, any>;