0.0.4 • Published 5 years ago

box-cascader v0.0.4

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

box-cascader

NPM

NPM Version NPM Downloads Node Version

angular 6 component

预览图

Install

npm install box-cascader --save
or
yarn add box-cascader

Usage

import { BoxCascaderModule } from 'box-cascader';

@NgModule({
  imports: [
    ...
    BoxCascaderModule
  ],
})

simple

  nodes = [{
    key: 'zhejiang',
    title: 'Zhejiang',
    children: [{
      key: 'hangzhou',
      title: 'Hangzhou',
      children: [{
        key: 'xihu',
        title: 'West Lake',
        isLeaf: true
      }]
    }, {
      key: 'ningbo',
      title: 'Ningbo',
      isLeaf: true
    }]
  }, {
    key: 'jiangsu',
    title: 'Jiangsu',
    children: [{
      key: 'nanjing',
      title: 'Nanjing',
      children: [{
        key: 'zhonghuamen',
        title: 'Zhong Hua Men',
        isLeaf: true
      }]
    }]
  }];
<box-cascader [(ngModel)]="value" [nodes]="nodes" [disabled]="false" required="true"></box-cascader>

propdesctypedeafult
[ngModel]bidirectional bindings[][]
[nodes]nodes array[][]
(nzClick)click functionEventEmitter<NzFormatEmitEvent>-
(nzCheckBoxChange)Checkbox triggerEventEmitter<NzFormatEmitEvent>-
0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago