|
@@ -1,29 +1,26 @@
|
|
|
<template>
|
|
|
<teleport to="body">
|
|
|
- <div v-if="store.allPaperModal" class="dialog-container">
|
|
|
- <header class="tw-flex tw-place-content-between tw-items-center">
|
|
|
- <div class="tw-text-2xl ctw-text-base tw-ml-5 tw-my-2">全卷切换</div>
|
|
|
- <div class="tw-flex tw-items-center tw-gap-2 tw-mx-8 tw-flex-grow">
|
|
|
- <span
|
|
|
- v-for="(u, index) in urls"
|
|
|
- :key="index"
|
|
|
- class="image-index hover:tw-bg-gray-300"
|
|
|
- :class="checkedIndex === index && 'tw-bg-gray-300'"
|
|
|
- @click="checkedIndex = index"
|
|
|
- >
|
|
|
- {{ index + 1 }}
|
|
|
- </span>
|
|
|
+ <div v-if="store.allPaperModal" class="qm-dialog fullscreen">
|
|
|
+ <header class="qm-dialog-header">
|
|
|
+ <div class="qm-dialog-title">
|
|
|
+ <h2>全卷切换</h2>
|
|
|
+ <div class="head-menu">
|
|
|
+ <a-button
|
|
|
+ v-for="(u, index) in urls"
|
|
|
+ :key="index"
|
|
|
+ :type="checkedIndex === index ? 'primary' : 'default'"
|
|
|
+ @click="checkedIndex = index"
|
|
|
+ >
|
|
|
+ {{ index + 1 }}
|
|
|
+ </a-button>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- <a-button
|
|
|
- shape="circle"
|
|
|
- class="tw-mr-2"
|
|
|
- @click="store.allPaperModal = false"
|
|
|
- >
|
|
|
- <template #icon><CloseOutlined /></template>
|
|
|
- </a-button>
|
|
|
+ <button class="qm-dialog-close" @click="store.allPaperModal = false">
|
|
|
+ <CloseOutlined />
|
|
|
+ </button>
|
|
|
</header>
|
|
|
|
|
|
- <div>
|
|
|
+ <div class="qm-dialog-body">
|
|
|
<div
|
|
|
v-for="(url, index) in urls"
|
|
|
:key="index"
|
|
@@ -48,31 +45,16 @@ const urls = $computed(() => {
|
|
|
let checkedIndex = $ref(0);
|
|
|
</script>
|
|
|
|
|
|
-<style scoped>
|
|
|
-.dialog-container {
|
|
|
- /* always top */
|
|
|
- z-index: 99999;
|
|
|
- position: absolute;
|
|
|
- background-color: white;
|
|
|
- top: 0;
|
|
|
- left: 0;
|
|
|
- width: 100vw;
|
|
|
- height: 100vh;
|
|
|
- overflow: auto;
|
|
|
- min-width: var(--app-min-width);
|
|
|
-}
|
|
|
-header {
|
|
|
- color: var(--app-main-text-color);
|
|
|
- border-bottom: 1px solid var(--app-main-bg-color);
|
|
|
+<style lang="less" scoped>
|
|
|
+.head-menu {
|
|
|
+ display: flex;
|
|
|
+ gap: 10px;
|
|
|
+ margin-left: 20px;
|
|
|
}
|
|
|
-.image-index {
|
|
|
- display: inline-block;
|
|
|
- border: 1px solid grey;
|
|
|
- width: 25px;
|
|
|
+.ant-btn {
|
|
|
+ padding: 4px 10px;
|
|
|
+ min-width: 32px;
|
|
|
text-align: center;
|
|
|
- border-radius: 5px;
|
|
|
-
|
|
|
- cursor: pointer;
|
|
|
}
|
|
|
|
|
|
.show-image {
|