d_cascader
v1.0.3
Published
这是一个级联选择器
Downloads
7
Maintainers
Readme
这里是文档
Installation
npm install d_cascader --save
Usage
Register component
Registe global component:
import d_cascader from 'd_cascader'
Vue.component('d_cascader', d_cascader)
Registe component:
import d_cascader from 'd_cascader'
export default {
components: { d_cascader }
}
How to use
Basic:
<d_cascader :cdate="citylist" >
</d_cascader>
var citylist=[
{
id:"0",
name:"名字-0",
unid:"0"
},{
id:"1",
name:"名字-1",
unid:"0"
},
{
id:"2",
name:"名字-2",
unid:"1"
}
,
{
id:"3",
name:"名字-3",
unid:"1"
}
];
Default Value:
<v-distpicker :cdate="citylist" :de_value="devalue">
</v-distpicker>
var citylist=[
{
id:"0",
name:"名字-0",
unid:"0"
},{
id:"1",
name:"名字-1",
unid:"0"
},
{
id:"2",
name:"名字-2",
unid:"1"
}
,
{
id:"3",
name:"名字-3",
unid:"1"
}
];
var de_value=[
0,3
];