1.0.1 • Published 4 years ago

vue-tree-table-1 v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

这是一个基于vue的树形table列表 --作者 :洪坤越

npm i vue-tree-table-1
import VueTreeTable from 'vue-tree-table-1'
Vue.use(VueTreeTable)



<VueTreeTable  ref="table"
                sum-text="sum"
                index-text="#"
                :data="data"
                :columns="columns"
                :expand-type="expandType"
                :selection-type="expandType"
                children-prop="sysResourceList">
            <template slot="operate" slot-scope="scope">
                <Button size="small" type="success" v-if="scope.row.isLeaf == 1"
                        @click="openUploadModal(scope.row)">上传图片
                </Button>
                <Button size="small" type="default" v-if="scope.row.isLeaf == 1"
                        @click="openButtonModal(scope.row)">按钮
                </Button>
                <Button size="small" type="primary" @click="openModal('编辑资源',scope.row)">编辑</Button>
                <Button size="small" type="error" @click="del_res(scope.row)">删除</Button>
            </template>