Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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
  • npm
  • Socket score

Version published
Maintainers
13
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

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc