Socket
Book a DemoInstallSign in
Socket

@teamix/action-group

Package Overview
Dependencies
Maintainers
13
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@teamix/action-group

将多的操作进行分组展示

1.0.0
latest
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
13
Weekly downloads
 
Created
Source

操作分组_spacex_1623830780015

@teamix/action-group

将多的操作进行分组展示

API

参数名说明必填类型默认值备注
preButtons前置按钮配置数据详见下方[]
moreText展开文案详见下方全部操作'
dataSource下拉面板数据详见下方
onItemClick点击单回调详见下方() => {}
interface IChild {
    text: string;
    tooltip?: string;
    disabled?: boolean;
    [key: string]: any;
  }

interface IDataSourceItem {
  title: string;
  children: Array<IChild>;
}

interface IActionGroupProps extends React.HTMLAttributes<HTMLDivElement> {
  preButtons?: Array<{
    type: 'primary' | 'secondary' | 'normal';
    text: string;
    disabled?: boolean;
    onClick?: () => void;
    [key: string]: any;
  }>;
  moreText: string;
  dataSource: IDataSourceItem[];
  onItemClick?: (item: {
    text: string;
    tooltip?: string;
    disabled?: boolean;
    [key: string]: any;
  }) => void;
}

Keywords

teamix

FAQs

Package last updated on 17 Jun 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.