lfj 548251cdbd 去掉默认账号和api地址 %!s(int64=4) %!d(string=hai) anos
..
api 18d3c661fd first %!s(int64=4) %!d(string=hai) anos
common 18d3c661fd first %!s(int64=4) %!d(string=hai) anos
components 0d9d3ea808 售检分析 %!s(int64=4) %!d(string=hai) anos
config 548251cdbd 去掉默认账号和api地址 %!s(int64=4) %!d(string=hai) anos
js_sdk 337705f26b 大体能明白了,首页合并,找回密码开始写 %!s(int64=4) %!d(string=hai) anos
pages 548251cdbd 去掉默认账号和api地址 %!s(int64=4) %!d(string=hai) anos
static 92307ef6eb 刚开始 %!s(int64=4) %!d(string=hai) anos
store d26aa9a176 兑换核销,子级权限完善,添加空白页跳转权限,后端状态码500处理 %!s(int64=4) %!d(string=hai) anos
uni_modules 0d9d3ea808 售检分析 %!s(int64=4) %!d(string=hai) anos
utils 4fb17b7506 优化请求接口数量,提取公共接口本地储存数据,完善权限,修改Tb上bug %!s(int64=4) %!d(string=hai) anos
App.vue 4fb17b7506 优化请求接口数量,提取公共接口本地储存数据,完善权限,修改Tb上bug %!s(int64=4) %!d(string=hai) anos
main.js 4fb17b7506 优化请求接口数量,提取公共接口本地储存数据,完善权限,修改Tb上bug %!s(int64=4) %!d(string=hai) anos
manifest.json 86c049469c 商品管理规则修复 %!s(int64=4) %!d(string=hai) anos
pages.json 92307ef6eb 刚开始 %!s(int64=4) %!d(string=hai) anos
readme.md 4140e17fc7 商品管理需求添加,新增,编辑,角色管理完成 %!s(int64=4) %!d(string=hai) anos
uni.scss bf1f18a8a4 设置页,联系我们,公告管理,订单管理,公共头部,静态 %!s(int64=4) %!d(string=hai) anos

readme.md

select-tree ζѡ

ζѡselect-tree

Ԥ

image.png

ʹ÷ʽ

script (ĬϿԲselectList,ĬйԤ)

°潫:selectList = 'selectList' Ϊ v-model='selectList'

import selectTree from "@/components/select-tree/select-tree"
export default {
    components: {selectTree}
}

һ÷

// 
  <select-tree @choose='choose' v-model='selectList' ref='selectTree'></select-tree>
// script
<script>
import selectTree from "@/components/select-tree/select-tree"
 export default {
        components: {
            selectTree,
        },
		  data() {
            return {
                selectList:  [
                    {
                        name: 'ˮ',
                        checked: false,
                        show: false,
                        childrenList: [
                            {
                                checked: false,
                                name: '',
                            }, {
                                checked: false,
                                name: ''
                            }
                        ]
                    },
                    {
                        name: '',
                        checked: false,
                        show: false,
                        childrenList: [
                            {
                                checked: false,
                                name: 'ͷ'
                            }, {
                                checked: false,
                                name: ''
                            }
                        ]

                    }
                ]
            }
        },
        methods: {
            choose(e){
                console.log(e)
				//ز˵
            },
			chooseAll(){
				this.$refs.selectTree.chooseAll()
			},
			cancelAll(){
				this.$refs.selectTree.cancelAll()
			}
        },
    }
</script>

options ˵

Ƿ ˵
selectList Array ά
showCheck Boolean ƶѡǷʾ
disableLv2Check Boolean ƶѡdisabled

¼˵

¼ ˵ ز
choose ѡťʱ¼ [lv1_value: { ...item }, lv2_value: { ...item2 }]

**ڲ: ** ||˵|ز| |:--|:---|:--| |chooseAll|ѡҳв㼶|| |cancelAll|ȡҳв㼶||

Ļ˵

selectList:[
  {
    name: 'ˮ',//һε
    checked: false,//һθѡǷѡ
    show: false,//˵Ƿչʾ
    childrenList: [
        {
          checked: false,//θѡǷѡ
       	  name: '',//ε
        }, {
          checked: false,
          name: ''
        }
    ]
   }]

زԤ

image.png

޸ http://dlhtx.zicp.vip:9090/#/blogDetail?blogId=12438