<view class="dropDown" @click="downAction(item)"></view>
<view class="uni-combox__selectors" v-if="item.hideShow">
                            
</view>

 listss: [
                {
                    start_time: '',
                    end_time: '',
                    hideShow: false,
                    stuList: [{ name: 'dsf ', state: '0' }, { name: '张三 ', state: '1' }],
                },
                {
                    start_time: '',
                    end_time: '',
                    hideShow: false,
                    stuList: [{ name: 'dsf ', state: '0' }, { name: '张三 ', state: '2' }],
                },
              
],

        downAction(data) {
           let this_ = this;
           if (!data.hideShow) {
            data.hideShow = true;
           } else if (data.hideShow == true) {
            data.hideShow = false;
           }
          },

Logo

前往低代码交流专区

更多推荐