|
@@ -0,0 +1,29 @@
|
|
|
+<template>
|
|
|
+ <el-tabs v-model="activeTab" class="chapter-tabs">
|
|
|
+ <el-tab-pane label="章节列表" name="chapters">
|
|
|
+ <div class="chapter-list">
|
|
|
+ 章节列表
|
|
|
+ </div>
|
|
|
+ </el-tab-pane>
|
|
|
+ <el-tab-pane label="书籍信息" name="info">
|
|
|
+ <div class="book-info">
|
|
|
+ 书籍信息
|
|
|
+ </div>
|
|
|
+ </el-tab-pane>
|
|
|
+ </el-tabs>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script setup>
|
|
|
+import { ref } from 'vue';
|
|
|
+import { ElTabs, ElTabPane } from 'element-plus';
|
|
|
+const activeTab = ref('chapters');
|
|
|
+</script>
|
|
|
+
|
|
|
+<style scoped>
|
|
|
+.chapter-tabs { height: 100%; }
|
|
|
+.chapter-list { padding: 10px; }
|
|
|
+.chapter-item { padding: 8px 12px; margin-bottom: 4px; cursor: pointer; border-radius: 4px; transition: background-color 0.2s; }
|
|
|
+.chapter-item:hover { background-color: #f5f5f5; }
|
|
|
+.book-info { padding: 15px; }
|
|
|
+.info-item { margin-bottom: 10px; }
|
|
|
+</style>
|