mirror of
https://gitee.com/Donal/ofd.js.git
synced 2024-12-02 03:48:44 +08:00
首页及最后一页
This commit is contained in:
parent
b85d08d683
commit
f75cf1d5fa
@ -12,22 +12,22 @@
|
||||
<font-awesome-icon icon="search-plus"/>
|
||||
</div>
|
||||
|
||||
<div class="scale-icon">
|
||||
<font-awesome-icon icon="search-minus" @click="minus"/>
|
||||
<div class="scale-icon" @click="minus">
|
||||
<font-awesome-icon icon="search-minus" />
|
||||
</div>
|
||||
<div class="scale-icon">
|
||||
<font-awesome-icon icon="step-backward"/>
|
||||
<font-awesome-icon icon="step-backward" @click="firstPage"/>
|
||||
</div>
|
||||
|
||||
<div class="scale-icon">
|
||||
<div class="scale-icon" style="font-size: 18px" @click="prePage">
|
||||
<font-awesome-icon icon="caret-left"/>
|
||||
</div>
|
||||
|
||||
<div class="scale-icon">
|
||||
<div class="scale-icon" style="font-size: 18px" @click="nextPage">
|
||||
<font-awesome-icon icon="caret-right"/>
|
||||
</div>
|
||||
|
||||
<div class="scale-icon">
|
||||
<div class="scale-icon" @click="lastPage">
|
||||
<font-awesome-icon icon="step-forward"/>
|
||||
</div>
|
||||
|
||||
@ -193,6 +193,25 @@ export default {
|
||||
this.displayOfdDiv(divs);
|
||||
},
|
||||
|
||||
prePage() {
|
||||
},
|
||||
|
||||
firstPage() {
|
||||
let contentDiv = document.getElementById('content');
|
||||
let first = contentDiv.firstElementChild;
|
||||
first.scrollIntoView(true);
|
||||
},
|
||||
|
||||
nextPage() {
|
||||
},
|
||||
|
||||
lastPage() {
|
||||
let contentDiv = document.getElementById('content');
|
||||
let last = contentDiv.lastElementChild;
|
||||
last.scrollIntoView(true);
|
||||
|
||||
},
|
||||
|
||||
demo(value) {
|
||||
let ofdFile = null;
|
||||
switch (value) {
|
||||
|
Loading…
Reference in New Issue
Block a user