| | |
| | | transform: `scale(${pageZoom})`, |
| | | transformOrigin: 'center top', |
| | | }"> |
| | | <pageHeader v-if="showCatalogList.indexOf(1) > -1" :showPageList="loadPageList"></pageHeader> |
| | | <chapter1 v-if="showCatalogList.indexOf(2) > -1" :showPageList="loadPageList" :resourceList="resourceList"> |
| | | <pageHeader v-if="showCatalogList.indexOf(1) > -1 " :showPageList="loadPageList"></pageHeader> |
| | | <chapter1 v-if="showCatalogList.indexOf(2) > -1 " :showPageList="loadPageList" :resourceList="resourceList"> |
| | | </chapter1> |
| | | <chapter2 v-if="showCatalogList.indexOf(3) > -1" :showPageList="loadPageList" :resourceList="resourceList"> |
| | | <chapter2 v-if="showCatalogList.indexOf(3) > -1 " :showPageList="loadPageList" :resourceList="resourceList"> |
| | | </chapter2> |
| | | <chapter3 v-if="showCatalogList.indexOf(4) > -1" :showPageList="loadPageList" :resourceList="resourceList"> |
| | | <chapter3 v-if="showCatalogList.indexOf(4) > -1 " :showPageList="loadPageList" :resourceList="resourceList"> |
| | | </chapter3> |
| | | <chapter4 v-if="showCatalogList.indexOf(5) > -1" :showPageList="loadPageList" :resourceList="resourceList"> |
| | | <chapter4 v-if="showCatalogList.indexOf(5) > -1 " :showPageList="loadPageList" :resourceList="resourceList"> |
| | | </chapter4> |
| | | <chapter5 v-if="showCatalogList.indexOf(6) > -1" :showPageList="loadPageList" :resourceList="resourceList"> |
| | | <chapter5 v-if="showCatalogList.indexOf(6) > -1 " :showPageList="loadPageList" :resourceList="resourceList"> |
| | | </chapter5> |
| | | <chapter6 v-if="showCatalogList.indexOf(7) > -1" :showPageList="loadPageList" :resourceList="resourceList"> |
| | | <chapter6 v-if="showCatalogList.indexOf(7) > -1 " :showPageList="loadPageList" :resourceList="resourceList"> |
| | | </chapter6> |
| | | <chapter7 v-if="showCatalogList.indexOf(8) > -1" :showPageList="loadPageList" :resourceList="resourceList"> |
| | | <chapter7 v-if="showCatalogList.indexOf(8) > -1 " :showPageList="loadPageList" :resourceList="resourceList"> |
| | | </chapter7> |
| | | <chapter8 v-if="showCatalogList.indexOf(9) > -1" :showPageList="loadPageList" :resourceList="resourceList"> |
| | | <chapter8 v-if="showCatalogList.indexOf(9) > -1 " :showPageList="loadPageList" :resourceList="resourceList"> |
| | | </chapter8> |
| | | <chapter9 v-if="showCatalogList.indexOf(10) > -1" :showPageList="loadPageList" :resourceList="resourceList"> |
| | | <chapter9 v-if="showCatalogList.indexOf(10) > -1 " :showPageList="loadPageList" :resourceList="resourceList"> |
| | | </chapter9> |
| | | <chapter10 v-if="showCatalogList.indexOf(11) > -1" :showPageList="loadPageList" |
| | | <chapter10 v-if="showCatalogList.indexOf(11) > -1 " :showPageList="loadPageList" |
| | | :resourceList="resourceList"> |
| | | </chapter10> |
| | | <chapter11 v-if="showCatalogList.indexOf(12) > -1" :showPageList="loadPageList" |
| | | <chapter11 v-if="showCatalogList.indexOf(12) > -1 " :showPageList="loadPageList" |
| | | :resourceList="resourceList"> |
| | | </chapter11> |
| | | <chapter12 v-if="showCatalogList.indexOf(13) > -1" :showPageList="loadPageList" |
| | | <chapter12 v-if="showCatalogList.indexOf(13) > -1 " :showPageList="loadPageList" |
| | | :resourceList="resourceList"> |
| | | </chapter12> |
| | | <chapter13 v-if="showCatalogList.indexOf(14) > -1" :showPageList="loadPageList" |
| | | <chapter13 v-if="showCatalogList.indexOf(14) > -1 " :showPageList="loadPageList" |
| | | :resourceList="resourceList"> |
| | | </chapter13> |
| | | <chapter14 v-if="showCatalogList.indexOf(15) > -1" :showPageList="loadPageList" |
| | | <chapter14 v-if="showCatalogList.indexOf(15) > -1 " :showPageList="loadPageList" |
| | | :resourceList="resourceList"> |
| | | </chapter14> |
| | | <chapter15 v-if="showCatalogList.indexOf(16) > -1" :showPageList="loadPageList" |
| | | <chapter15 v-if="showCatalogList.indexOf(16) > -1 " :showPageList="loadPageList" |
| | | :resourceList="resourceList"> |
| | | </chapter15> |
| | | <chapter16 v-if="showCatalogList.indexOf(17) > -1" :showPageList="loadPageList" |
| | | <chapter16 v-if="showCatalogList.indexOf(17) > -1 " :showPageList="loadPageList" |
| | | :resourceList="resourceList"> |
| | | </chapter16> |
| | | <chapter17 v-if="showCatalogList.indexOf(18) > -1" :showPageList="loadPageList" |
| | | <chapter17 v-if="showCatalogList.indexOf(18) > -1 " :showPageList="loadPageList" |
| | | :resourceList="resourceList"> |
| | | </chapter17> |
| | | |
| | |
| | | |
| | | // 处理标记数据 |
| | | handelSignData(type, data) { |
| | | if (this.loadPageList.indexOf(Number(data.page)) > -1) { |
| | | if (this.loadPageList.indexOf(Number(data.page)) > -1 ) { |
| | | // 立即渲染 |
| | | this.renderSign(type, data); |
| | | } |
| | |
| | | } |
| | | for (let i = 0; i < allTextNodes.length; i++) { |
| | | const textDom = allTextNodes[i]; |
| | | if (textDom.textContent.indexOf(data.txt) > -1) { |
| | | if (textDom.textContent.indexOf(data.txt) > -1 ) { |
| | | let reg = new RegExp(`${data.txt}`, "ig"); |
| | | switch (type) { |
| | | case "Highlight": |