Welcome to JiKe DevOps Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
483 views
in Technique[技术] by (71.8m points)

vue-blu分页组件翻页后始终高亮在第一页,内容与功能正常,是否是被sass冲掉?

我们这边项目用的vue-blu是基于 Vue.js(2.x) 和 Bulma 的 UI 组件库,pagination是里面的分页组件。
这个组件之前是好使的,但现在是无论第几页都是第一页高亮,但内容没问题。
最近为了换肤引入过sass,不知是不是sass的原因,请教下大家,有没有类似样式被冲掉的经历,如何解决。

clipboard.png

翻页实现的代码如下,内容功能都没问题,样式一直在第一页,问题应该不在代码上,简略粘一下。

template部分:

<div v-if="GET_POI_PANEL" id="poilist">
            <ul>
                   <li class="poiResult" v-for="poi in poiList"> //GET_RESULT.count个li标签
            </ul>
            <pagination v-if="+GET_RESULT.count>10" :total="+GET_RESULT.count" :change="poiPage" layout="pager" size="small"></pagination>
        </div>

script部分:

poiPage(page) {
                this.SET_OPTION_START(10 * (page - 1));
                this.SET_QUERY("1").then(function() {
                    this.poiList = this.GET_RESULT.pois;
                }).catch(function() {
                });
            },

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

Please log in or register to answer this question.

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to JiKe DevOps Community for programmer and developer-Open, Learning and Share
...