Update image.html

This commit is contained in:
Anyon 2022-06-24 18:01:29 +08:00
parent c1cfaa5ec0
commit 3fcfb760fd

View File

@ -46,6 +46,10 @@
padding: 0 12px; padding: 0 12px;
} }
.image-dialog-page {
text-align: center;
}
.image-dialog-page .layui-laypage a, .image-dialog-page .layui-laypage a,
.image-dialog-page .layui-laypage span { .image-dialog-page .layui-laypage span {
margin-bottom: 0; margin-bottom: 0;
@ -53,7 +57,6 @@
</style> </style>
<script> <script>
require(['vue'], function (vue) { require(['vue'], function (vue) {
new vue({ new vue({
el: '#ImageDialog', el: '#ImageDialog',
@ -70,6 +73,7 @@
var that = this; var that = this;
layui.laypage.render({ layui.laypage.render({
curr: this.page, count: count, limit: that.limit, curr: this.page, count: count, limit: that.limit,
layout: ['count', 'prev', 'page', 'next', 'refresh'],
elem: 'ImageDialogPage', jump: function (obj, first) { elem: 'ImageDialogPage', jump: function (obj, first) {
if (!first) that.loadPage(that.page = obj.curr); if (!first) that.loadPage(that.page = obj.curr);
}, },