1.0.0 • Published 6 years ago

ux-cascader-liuxinyue v1.0.0

Weekly downloads
1
License
ISC
Repository
gitlab
Last release
6 years ago

cascader

级联组件

API

参数说明类型默认值是否必传
options可选项数据源array[]
onChange选中节点变化触发(value)=>{}

数据格式

const options = [
  {
    label : "黑龙江",
    value : "heilongjiang",
    children : [
      {
        label : "哈尔滨",
        value : "harbin"
      },
      {
        label : "大庆",
        value : "daqing",
        children:[
          {
            label: "龙凤区",
            value: "longfeng"
          }
        ]
      },
      {
        label : "齐齐哈尔",
        value : "qiqihaer"
      }
    ],
  },
  {
    label : "辽宁",
    value : "liaoning",
    children : [
      {
        label:"沈阳",
        value:"shenyang"
      },
      {
        label:"大连",
        value:"dalian",
        children:[
          {
            label:"甘井子区",
            value:"ganjingzi"
          }
        ]
      }
    ]
  },
  {
    label:"长春",
    value:"changchun"
  }
]