@farris/ui-vue
Version:
Farris Vue, a Farris Design based Vue3 component library.
115 lines (114 loc) • 3.02 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 type PopoverPlacement = 'top' | 'bottom' | 'left' | 'right' | 'auto' | 'bottom-left' | 'top-left';
export declare const popoverProps: {
id: {
type: StringConstructor;
};
arrowOffsetX: {
type: NumberConstructor;
default: number;
};
class: {
type: StringConstructor;
default: string;
};
customStyles: {
type: PropType<Record<string, any>>;
default: null;
};
/**
* popover应用场景有提示、展示其他内容,可能在界面呈现上会有区别。
* 如果做提示使用,需要特殊样式,通过此属性控制在没有自定义样式的情况下,指定特殊样式
*/
isSimpleTips: {
type: BooleanConstructor;
default: boolean;
};
fitContent: {
type: BooleanConstructor;
default: boolean;
};
/**
* 指定要弹出的内容插入到哪个元素
*/
host: {
type: PropType<any>;
};
/**
* 未被使用
*/
leftBoundary: {
type: PropType<any>;
};
keepWidthWithReference: {
type: BooleanConstructor;
default: boolean;
};
minWidth: {
type: NumberConstructor;
default: number;
};
/**
* 未被使用
*/
offsetX: {
type: PropType<any>;
default: import("vue").Ref<number, number>;
};
placement: {
type: PropType<PopoverPlacement>;
default: string;
};
reference: {
type: PropType<any>;
};
/**
* 未被使用
*/
rightBoundary: {
type: PropType<any>;
};
/**
* popover应用场景有提示、展示其他内容。
* 通常展示其他内容,不显示箭头。
* 提示通常展示箭头。
*/
showArrow: {
type: BooleanConstructor;
default: boolean;
};
title: {
type: StringConstructor;
};
visible: {
type: BooleanConstructor;
default: boolean;
};
zIndex: {
type: NumberConstructor;
default: number;
};
/**
* 根据空间大小重新调整,原下拉面板内容指定的高度
*/
limitContentBySpace: {
type: BooleanConstructor;
default: boolean;
};
};
export type PopoverProps = ExtractPropTypes<typeof popoverProps>;