https://github.com/future-team/ph-cascade-selector
基于phonexi-ui的级联选择组件
https://github.com/future-team/ph-cascade-selector
Last synced: about 1 year ago
JSON representation
基于phonexi-ui的级联选择组件
- Host: GitHub
- URL: https://github.com/future-team/ph-cascade-selector
- Owner: future-team
- License: mit
- Created: 2016-07-25T03:15:47.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-06-28T09:19:52.000Z (about 9 years ago)
- Last Synced: 2025-04-27T16:18:34.856Z (about 1 year ago)
- Language: JavaScript
- Size: 336 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ph-cascade-selector
级联选择
```jsx
```
回调返回值如下:
```js
{typeId: 1000024, typeName: "ppe测试", nodeType: "leaf"}
{typeId: 8, typeName: "页面展示/排序", nodeType: "branch"}
```
## API
View [example](/example/src/index.js) to get more details
#### `` Props:
- selectorData 级联选择的数据 .
- itemClick 每当item被选择(不论叶子节点还是树枝节点被选中),都会调用itemClick回调,nodeType用来区分哪个类型的节点被选择.
- label 用户没有选择任何item时,默认展示的文字.
### Contributing
- Fork the project
- Run the project in development view demo: `$ npm run demo`
- Make changes.
- Add appropriate tests
- `$ npm run test`
- If tests don't pass, make them pass.
- Update README with appropriate docs.
- Rnn build
- `$ npm run build`
- Commit and PR.