New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

igroot-tags

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

igroot-tags

## 何时使用

latest
npmnpm
Version
0.0.9
Version published
Weekly downloads
1
-88.89%
Maintainers
1
Weekly downloads
 
Created
Source

Tags 组件

何时使用

需要利用 Tags 进行表单受控,支持单选和多选

安装方法

  sl add -c igroot-tags

API

<Tags radio options={options} />

属性

参数说明类型默认值
style样式Object-
className扩展样式类名string Or array-
disalbed是否禁用状态,默认为 falsebooleanfalse
defaultValue初始值booleanfalse
optionstags的选项,只支持label和value的形式array-
radio类型booleanfalse

options

const options = [
  {
    label: '类型1',
    value: '1',
    tip: '类型1'
  },
  {
    label: '类型2',
    value: '2'
  },
  {
    label: '类型3',
    value: '3'
  },
  {
    label: '类型4',
    value: '4'
  }
]

Keywords

igroot

FAQs

Package last updated on 10 Jul 2019

Related posts