Giter VIP home page Giter VIP logo

react-position-select's Introduction

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}/>
Properties Description Type Default Values
spaceTree Space Data([Data](###Space Data)) array []
showPositionSelect show components bool false
defaultValue defaultValue ([Data](### defaultValue)) array []
onClose click close handle func function(){}
onChange select finish handle func function(data){} ,data为选中节点有序的数组
title title string '请选择'
selectTip select tip string '请选择'
selectColor select node color string #fa8c16
selectFilter Control optional content, if it returns true, it will not be displayed func function(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

react-position-select's People

Contributors

vkingw avatar

Watchers

James Cloos avatar Joe avatar  avatar

Forkers

hellodeqi

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.