0.1.6 • Published 3 years ago

react-position-select v0.1.6

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

react-position-select

position select

中文文档

威发微服务位置选择组件/Wafer microservice position select component

GitHub license npm NPM downloads

Example

Example

How to use

install

yarn add react-position-select

React

import {PositionSelect, PosModel} from 'react-position-select';

<PositionSelect {...props}/>
PropertiesDescriptionTypeDefault Values
spaceTreeSpace Data(Data(###Space Data))array[]
showPositionSelectshow componentsboolfalse
defaultValuedefaultValue (Data(### defaultValue))array[]
onCloseclick close handlefuncfunction(){}
onChangeselect finish handlefuncfunction(data){} ,data为选中节点有序的数组
titletitlestring'请选择'
selectTipselect tipstring'请选择'
selectColorselect node colorstring#fa8c16
selectFilterControl optional content, if it returns true, it will not be displayedfuncfunction(v){}

Space Data

[
      {
        id: 1,
        parentId: 0,
        children: [
          {
            id: 3,
            parentId: 1,
            children: [
              {
                id: 4,
                parentId: 3,
                children: [
                  {
                    id: 5,
                    parentId: 4,
                    children: [],
                    name: '院校农信',
                  },
                ],
                name: '高新农信',
              },
            ],
            name: '潍坊农信',
          },
        ],
        name: '山东农信',
      },
  ]

defaultValue

[
{id:1,parentId:0,name:'A'},
{id:2,parentId:1,name:'B'}
]

Development

$ git clone https://github.com/wafersystems/react-contacts.git
$ yarn
$ yarn start
0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.0

3 years ago

0.1.1

3 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.3

4 years ago

0.0.4

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago