- dict
+
+
+
+
+
+
+
![]()
+
{{ item.name }}
+
+
+
+
+
+
+
+
+
+
+
+ 翻译:
+
+ {{ i }}
+
+
+
+
+
+
+
+
+
+
+
+
+
{{ dictIsArticle ? '文章' : '章节' }}列表
+
+
+
+
+
+
+
+
+ {{ index + 1 }}. {{ item.title }}
+
+ {{ item.titleTranslate }}
+
+
+ 第{{ index + 1 }}章 {{ item.length }}词
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{{ wordFormMode === FormMode.Add ? '添加' : '修改' }}单词
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 关闭
+ {{
+ wordFormMode === FormMode.Add ? '添加' : '保存'
+ }}
+
+
+
+
+
+
+
+
+
+
{{ dictForm.id ? '修改' : '添加' }}词典
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 关闭
+ 确定
+
+
+
+
+
+
+
+
+
\ No newline at end of file
+
+.dict-page {
+ width: 50%;
+ height: 100%;
+ $header-height: 60rem;
+ padding: var(--space);
+ padding-top: 0;
+ box-sizing: border-box;
+
+ header {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ height: $header-height;
+
+ .tabs {
+ display: flex;
+ gap: 20rem;
+
+ .tab {
+ color: var(--color-font-1);
+ cursor: pointer;
+ padding: 10rem;
+ padding-bottom: 5rem;
+ transition: all .5s;
+ border-bottom: 2px solid transparent;
+ display: flex;
+ align-items: center;
+ gap: 6rem;
+
+ &.active {
+ border-bottom: 2px solid $main;
+ }
+
+ img {
+ height: 30rem;
+ }
+ }
+ }
+ }
+
+ .page-content {
+ display: flex;
+ height: calc(100% - $header-height);
+
+ .dict-list-wrapper {
+ flex: 1;
+ overflow: auto;
+ height: 100%;
+ padding-right: var(--space);
+
+ .translate {
+ display: flex;
+ align-items: center;
+ color: var(--color-font-1);
+ margin-bottom: 30rem;
+
+ & > span {
+ font-size: 22rem;
+ }
+ }
+ }
+ }
+}
+
+.dict-detail-page {
+ width: 50%;
+ height: 100%;
+ $header-height: 60rem;
+ box-sizing: border-box;
+ display: flex;
+ flex-direction: column;
+
+ header {
+ cursor: pointer;
+ width: 100%;
+ display: flex;
+ box-sizing: border-box;
+ height: $header-height;
+ align-items: center;
+ justify-content: space-between;
+ color: var(--color-font-3);
+ padding: 0 var(--space);
+
+ .left {
+ display: flex;
+ gap: 10rem;
+ align-items: center;
+ }
+ }
+
+ .detail {
+ flex: 1;
+ display: flex;
+ flex-direction: column;
+ overflow: hidden;
+
+ .page-content {
+ flex: 1;
+ overflow: hidden;
+ display: flex;
+ position: relative;
+
+ .left-column {
+ flex: 1;
+ display: flex;
+ flex-direction: column;
+ gap: 10rem;
+ min-height: 100rem;
+ position: relative;
+ color: var(--color-font-1);
+ font-size: 14rem;
+ position: relative;
+ }
+
+ .center-column {
+ flex: 1;
+ background: white;
+ border-radius: 10rem;
+ background: var(--color-second-bg);
+ color: var(--color-font-1);
+
+ .scroll {
+ height: calc(100% - 45rem);
+ }
+ }
+
+ .right-column {
+ flex: 1;
+ border-radius: 10rem;
+ background: var(--color-second-bg);
+ color: var(--color-font-1);
+ display: flex;
+ flex-direction: column;
+
+
+ }
+ }
+ }
+
+ .edit-dict {
+ flex: 1;
+ width: 100%;
+ display: flex;
+ justify-content: center;
+
+ .wrapper {
+ width: 50%;
+ }
+
+ .el-select {
+ width: 100%;
+ }
+ }
+}
+
+
diff --git a/src/pages/practice/index.vue b/src/pages/practice/index.vue
index c15000ad..5491bd44 100644
--- a/src/pages/practice/index.vue
+++ b/src/pages/practice/index.vue
@@ -171,6 +171,7 @@ onUnmounted(() => {