更新记录

1.0.0(2020-12-02)

初次上传


平台兼容性

collapseItem

Project setup

基本使用:
 <div style='padding:0 30rpx;'
         v-for="(item, index) in dataAll"
         @click="openDetail(index)"
         :key="index">
      <collapse-item :collapseName="item.name"
                     :data="item"
                     :ref="'collapse'+index">
        <template v-slot:content>
          <div>
            基本使用
          </div>
        </template>
      </collapse-item>
    </div>

<script>
import collapseItem from "@/components/yixiao-collapseItem/yixiao-collapseItem";
export default {
  components: {
    collapseItem
  },
  data () {
    return {
      lastIndex: 1,
      dataAll: [
        {name:'测试1号'},
        {name:'测试2号'},
        {name:'测试3号'},
        {name:'测试4号'},
      ],
    }
  },
  methods: {
    //手风琴
    openDetail (index) {
      console.log(index);
      if (index != this.lastIndex && this.lastIndex >= 0) {
        this.$refs["collapse" + this.lastIndex][0].isOpen = false;
        this.$refs["collapse" + index][0].isOpen = !this.$refs[
          "collapse" + index
        ][0].isOpen;
      } else {
        this.$refs["collapse" + index][0].isOpen = !this.$refs[
          "collapse" + index
        ][0].isOpen;
      }
      this.lastIndex = index;
    },
  }
}
</script>

隐私、权限声明

1. 本插件需要申请的系统权限列表:

2. 本插件采集的数据、发送的服务器地址、以及数据用途说明:

插件不采集任何数据

3. 本插件是否包含广告,如包含需详细说明广告表达方式、展示频率:

许可协议

MIT协议

使用中有什么不明白的地方,就向插件作者提问吧~ 我要提问