UNPKG

@antdp/antdp-ui

Version:

基于antd封装的组件

32 lines (31 loc) 989 B
import { ButtonProps } from 'antd/es/button'; import { ButtonGroupProps, ButtonType } from 'antd/lib/button'; import { MenuInfo } from 'rc-menu/lib/interface'; import React from 'react'; import './index.css'; export interface ButtonGroupProProps { button: any[]; className?: string; } export interface MenusProps extends Omit<MenuInfo, 'item'> { /** 禁用 */ disabled?: boolean; /** */ label?: string | React.ReactNode; /** 权限路径 */ path?: string; [k: string]: any; } export interface MenusOptionProps extends Omit<ButtonProps, 'type'>, ButtonGroupProps { path?: string; label?: string | React.ReactNode; option?: MenusOptionProps[]; menu?: MenusProps[]; key?: number; ButtonandDropdown?: string | number; type?: ButtonType; render?: (...arg: any) => React.ReactNode; badge?: number | string; } declare const ButtonGroupPro: (props: ButtonGroupProProps) => React.JSX.Element; export default ButtonGroupPro;