Socket
Socket
Sign inDemoInstall

@beisen-platform/button-group

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@beisen-platform/button-group

平台按钮分组组件


Version published
Maintainers
1
Created
Source

ButtonGroup 使用说明

项目运行

  1. cnpm install 或 npm install cnpm使用教程

  2. npm run dev (开发环境打包 port:8080)

  3. npm run test (测试用例)

  4. npm run build (生产环境打包)

ButtonGroup参数

{
  children: [{
    /** 按钮名称,可以取以下值:
     *   'IconButton'(默认)
     *   'BaseButton'
     *   'DropDownButton'
     *   其实……实际上写BaseButton和DropDownButton以外的都是IconButton🤔
     */
    buttonName: 'IconButton',

    /** 具体的相应按钮组件的props */
    ...buttonProps
  },{
    buttonName: 'IconButton',
    ...buttonProps
  }]
}

Button的props文档:

  • IconButton
  • BaseButton
  • DropDownButton

ButtonGroup调用方法

1.安装npm组件包

npm install @beisen/button-group --save-dev

2.引用组件

import ButtonGroup from "@beisen/button-group"
  1. 传入参数

该参数为上述参数,传入方式使用: {...参数}

render () {
    return (
      <ButtonGroup {...this.state.GroupData} />
    )
  }

Keywords

FAQs

Package last updated on 29 Apr 2019

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