<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                ### 更改為單個數據,原組件是左右 > 根目錄下找到該組件進行更改 * 在中間加入自己定義的all ``` <template> <view class="u-waterfall"> <view id="u-left-column" class="u-column"><slot name="left" :leftList="leftList"></slot></view> <view id="u-right-column" class="u-column"><slot name="right" :rightList="rightList"></slot></view> <view id="u-all-column" class="u-column u-all"><slot name="all" :allList="allList"></slot></view> </view> </template> ``` * splitData下更改即可 ``` async splitData() { if (!this.tempList.length) return; let leftRect = await this.$uGetRect('#u-left-column'); let rightRect = await this.$uGetRect('#u-right-column'); let allRect = await this.$uGetRect('#u-all-column'); if(!item) return ; this.allList.push(item); }, ``` * clear也要加 ``` // 清空數據列表 clear() { this.leftList = []; this.rightList = []; this.allList = [] // 同時清除父組件列表中的數據 this.$emit('input', []); this.tempList = []; }, ``` * 樣式 ``` .u-all{ flex: unset !important; width: 100%; } ``` > 使用 ```vue <template> <view> <u-waterfall v-model="activeList" ref="uWaterfall"> <template v-slot:all="{allList}"> <view class="learnList"> <view class="item" v-for="(item,index) in allList" :key="index" @click="info(item)"> <text>{{item.noticeTitle}}</text> </view> </view> </template> </u-waterfall> <u-loadmore bg-color="#fff" :status="loadStatus" @loadmore="getActiveList()"></u-loadmore> </view> </template> <script> export default { data() { return { active: 0, activeList: [], loadStatus: 'loadmore', // 分頁 page: { num: 0, limit: 10 }, moreStatus: true, // 個人求職,加載更多 }; }, onLoad() { this.getActiveList() }, onReachBottom() { // 個人求職 if (this.moreStatus == true) { this.loadStatus = 'loading'; // 模擬數據加載 setTimeout(() => { this.getActiveList(); this.loadStatus = 'loadmore'; }, 1000) } }, methods: { select(index) { this.active = index; this.page.num = 0; this.$refs.uWaterfall.clear(); this.moreStatus = true this.loadStatus = 'loadmore'; this.getActiveList() }, getActiveList() { this.page.num++; this.$u.get("/system/notice/list", { noticeType: this.tabCate[this.active].id, pageNum: this.page.num, pageSize: this.page.limit }).then(res => { if (res.code == 200) { let resData = res.rows this.activeList = this.activeList.concat(resData) if (resData.length == 0 || res.total <= this.activeList.length) { this.moreStatus = false this.loadStatus = 'nomore'; } } }) }, } } </script> <style lang="scss"> </style> ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看