基于element-ui实现的多选级联组件,完全继承element-ui级联组件功能
npm i multi-cascader-base-ele --save
import Vue from 'vue'
import Element from 'element-ui'
import App from './App.vue'
import multiCascader from 'multi-cascader-base-ele'
import 'element-ui/lib/theme-chalk/index.css';
Vue.config.productionTip = false
Vue.config.devtools = true
Vue.use(Element)
Vue.use(multiCascader)
new Vue({
el: '#app',
components: { App },
template: '<App/>'
})
<el-multi-cascader class="multi-cascader" :options="options" multiple filterable select-children clearable collapse-tags
only-out-put-leaf-node
change-on-select v-model="selectedOptions"> </el-multi-cascader>