2.0.0 • Published 3 years ago

industry-classification-select v2.0.0

Weekly downloads
11
License
MIT
Repository
github
Last release
3 years ago

English| 简体中文

industry-classification-select

This is base on GICS, and used ant-design v4 Cascader

When To Use

When you need to select industry classification.

Online Demo

API

import IndustryClassificationSelect from 'industry-classification-select;

<IndustryClassificationSelect onChange={v => consle.log(v)}/>

Parameter

ParametersDescTypeDefault
allowClearwhether allow clearbooleantrue
changeOnSelectchange value on each selection if set to true, see above demo for detailsbooleanfalse
classNameadditional css classstring-
zhlanguage zh or enbooleanfalse
defaultValueinitial selected value({ code: number; en?: string; zh?: string; desc?: string; desc_zh?: string; })object-
disabledwhether disabled selectbooleanfalse
expandTriggerexpand current item when click or hover, one of 'click' 'hover'string‘click’
getPopupContainerParent Node which the selector should be rendered to. Default to body. When position issues happen, try to modify it into scrollable content and position it relative.exampleFunction(triggerNode)() => document.body
notFoundContentSpecify content to show when no result matches.string'Not Found'
placeholderinput placeholderstring'请选择'
popupClassNameadditional className of popup overlaystring-
popupPlacementuse preset popup align config from builtinPlacements:bottomLeft bottomRight topLeft topRightEnumbottomLeft
popupVisibleset visible of cascader popupboolean-
showSearchWhether show search input in single mode.booleanfalse
sizeinput size, one of large default smallstringdefault
styleadditional stylestring-
suffixIconThe custom suffix iconReactNode-
valueselected value({ code: number; en?: string; zh?: string; desc?: string; desc_zh?: string; })object-
onChangecallback when finishing cascader select({ code: number; en: string; zh: string; desc: string; desc_zh: string; })) => void-
onPopupVisibleChangecallback when popup shown or hidden(value) => void

more parameters to ant-design cascader