releases 4.0.5 更新 ts,列组件名称调整,兼容所有版本
This commit is contained in:
27
types/button.d.ts
vendored
27
types/button.d.ts
vendored
@@ -3,6 +3,7 @@ import { VXEComponent, VxeComponentBase, VxeEvent, SizeType, ValueOf, VNodeStyle
|
||||
|
||||
/**
|
||||
* 组件 - 按钮
|
||||
* @example import { Button as VxeButton } from 'vxe-table'
|
||||
*/
|
||||
export const Button: VXEComponent<VxeButtonProps>;
|
||||
|
||||
@@ -35,8 +36,6 @@ export interface ButtonInternalData {
|
||||
showTime: any;
|
||||
}
|
||||
|
||||
export interface VxeButtonOptions extends VxeButtonProps, VxeButtonListeners { }
|
||||
|
||||
export namespace VxeButtonPropTypes {
|
||||
export type Size = SizeType;
|
||||
export type Type = string;
|
||||
@@ -58,51 +57,51 @@ export type VxeButtonProps = {
|
||||
/**
|
||||
* 按钮类型
|
||||
*/
|
||||
type: VxeButtonPropTypes.Type;
|
||||
type?: VxeButtonPropTypes.Type;
|
||||
/**
|
||||
* 用来标识这一项
|
||||
*/
|
||||
name: VxeButtonPropTypes.Name;
|
||||
name?: VxeButtonPropTypes.Name;
|
||||
/**
|
||||
* 按钮内容
|
||||
*/
|
||||
content: VxeButtonPropTypes.Content;
|
||||
content?: VxeButtonPropTypes.Content;
|
||||
/**
|
||||
* 固定显示下拉面板的方向
|
||||
*/
|
||||
placement: VxeButtonPropTypes.Placement;
|
||||
placement?: VxeButtonPropTypes.Placement;
|
||||
/**
|
||||
* 按钮状态
|
||||
*/
|
||||
status: VxeButtonPropTypes.Status;
|
||||
status?: VxeButtonPropTypes.Status;
|
||||
/**
|
||||
* 按钮的图标
|
||||
*/
|
||||
icon: VxeButtonPropTypes.Icon;
|
||||
icon?: VxeButtonPropTypes.Icon;
|
||||
/**
|
||||
* 圆角边框
|
||||
*/
|
||||
round: VxeButtonPropTypes.Round;
|
||||
round?: VxeButtonPropTypes.Round;
|
||||
/**
|
||||
* 圆角按钮
|
||||
*/
|
||||
circle: VxeButtonPropTypes.Circle;
|
||||
circle?: VxeButtonPropTypes.Circle;
|
||||
/**
|
||||
* 是否禁用
|
||||
*/
|
||||
disabled: VxeButtonPropTypes.Disabled;
|
||||
disabled?: VxeButtonPropTypes.Disabled;
|
||||
/**
|
||||
* 是否加载中
|
||||
*/
|
||||
loading: VxeButtonPropTypes.Loading;
|
||||
loading?: VxeButtonPropTypes.Loading;
|
||||
/**
|
||||
* 在下拉面板关闭时销毁内容
|
||||
*/
|
||||
destroyOnClose: VxeButtonPropTypes.DestroyOnClose;
|
||||
destroyOnClose?: VxeButtonPropTypes.DestroyOnClose;
|
||||
/**
|
||||
* 是否将弹框容器插入于 body 内
|
||||
*/
|
||||
transfer: VxeButtonPropTypes.Transfer;
|
||||
transfer?: VxeButtonPropTypes.Transfer;
|
||||
}
|
||||
|
||||
export interface ButtonMethods {
|
||||
|
||||
Reference in New Issue
Block a user