1.1.0 • Published 3 years ago

organization-selection-vue v1.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

organization-selection-vue

一个组织架构组件,通过选择左侧成员,选择的值会在右侧显示。(每个成员包括组织都包含在选中值中)

Build Setup

# 安装
npm i organization-selection-vue --save

# 使用
main.js中:
import OrganizationSelect from 'organization-selection-vue'
Vue.use(OrganizationSelect)

 #实例
<OrganizationSelect  :propData='initData' v-model="bindValue"></OrganizationSelect>

initData: {
                title: "我是一级第一个",
                value:0,
                expand: true,
                children: [
                    {
                        title: "我是二级第一个",
                        value:1,
                    },
                    {
                        title: "我是二级第二个",
                        value:2,
                        children: [
                            {
                                title: "三级了-1",
                                value:3,
                            },
                            {
                                title: "三级了-2",
                                value:4,
                            }
                        ]
                    },
                   ]
                    }
<
#绑定值bindValue是个数组  bindValue:[],
1.1.0

3 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago