selecttree.vue 539 Bytes
<template>
  <div>
    <Treeselect v-model="selectval" :multiple="true" :options="options" placeholder="请选择"/>
  </div>
</template>
<script>
import Treeselect from '@riophae/vue-treeselect'
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
export default {
  data() {
    return {
        selectval:null,
    }
  },
  props:{
    options:{
      type:Array,
      default:[]
    },

  },
  components:{
    Treeselect
  },
  methods: {

  },
  watch: {
    selectval(val){
      this.$emit('input',val)
    }
  },
}
</script>