♻️: merge branch 'next' into feat-popup-menu

This commit is contained in:
sight 2022-07-01 18:18:00 +08:00
parent 212332a0c1
commit 286398fc4d

View File

@ -119,7 +119,10 @@ watch(currentPage, function () {
<a <a
href="javascript:;" href="javascript:;"
class="layui-laypage-prev" class="layui-laypage-prev"
:class="[currentPage === 1 ? 'layui-disabled' : '',theme && currentPage !== 1 ? 'layui-laypage-a-' + theme : '']" :class="[
currentPage === 1 ? 'layui-disabled' : '',
theme && currentPage !== 1 ? 'layui-laypage-a-' + theme : '',
]"
@click="prev()" @click="prev()"
> >
<slot v-if="slots.prev" name="prev"></slot> <slot v-if="slots.prev" name="prev"></slot>
@ -134,14 +137,23 @@ watch(currentPage, function () {
></em> ></em>
<em>{{ index }}</em> <em>{{ index }}</em>
</span> </span>
<a v-else href="javascript:;" @click="jump(index)" :class="[theme ? 'layui-laypage-a-' + theme : '']">{{ index }}</a> <a
v-else
href="javascript:;"
@click="jump(index)"
:class="[theme ? 'layui-laypage-a-' + theme : '']"
>{{ index }}</a
>
</template> </template>
</template> </template>
<a <a
href="javascript:;" href="javascript:;"
class="layui-laypage-next" class="layui-laypage-next"
:class="[currentPage === maxPage ? 'layui-disabled' : '',theme && currentPage !== maxPage ? 'layui-laypage-a-' + theme : '']" :class="[
currentPage === maxPage ? 'layui-disabled' : '',
theme && currentPage !== maxPage ? 'layui-laypage-a-' + theme : '',
]"
@click="next()" @click="next()"
> >
<slot v-if="slots.next" name="next"></slot> <slot v-if="slots.next" name="next"></slot>