This commit is contained in:
zyronon
2023-12-16 14:30:36 +08:00
parent 9b2f8c30ff
commit 3945fb8c6e
7 changed files with 180 additions and 19 deletions

View File

@@ -102,6 +102,7 @@ onMounted(() => {
canvas {
width: 100vw;
height: 100vh;
opacity: 0;
}
}

View File

@@ -5,8 +5,6 @@ import {$computed, $ref} from "vue/macros";
import {dictionaryResources} from "@/assets/dictionary.ts";
import {groupBy} from "lodash-es";
import {useBaseStore} from "@/stores/base.ts";
import {useSettingStore} from "@/stores/setting.ts";
import {useRuntimeStore} from "@/stores/runtime.ts";
import DictList from "@/components/list/DictList.vue";
import DictGroup from "@/components/list/DictGroup.vue";
@@ -15,8 +13,6 @@ const emit = defineEmits<{
selectDict: [val: { dict: any, index: number }]
}>()
const store = useBaseStore()
const settingStore = useSettingStore()
const runtimeStore = useRuntimeStore()
let currentLanguage = $ref('my')
let currentTranslateLanguage = $ref('common')
@@ -143,7 +139,7 @@ const groupedByCategoryAndTag = $computed(() => {
gap: 6rem;
&.active {
$main: rgb(64,158,255);
$main: rgb(64, 158, 255);
border-bottom: 2px solid $main;
}

View File

@@ -27,7 +27,7 @@ const props = defineProps({
type: Boolean,
default: true
},
anim: {
slide: {
type: Boolean,
default: true
}
@@ -65,17 +65,17 @@ onMounted(() => {
})
function touchStart(e) {
if (!props.anim) return
if (!props.slide) return
slideTouchStart(e, wrapperEl.value, state)
}
function touchMove(e) {
if (!props.anim) return
if (!props.slide) return
slideTouchMove(e, wrapperEl.value, state, judgeValue, canNext, null, SlideType.HORIZONTAL)
}
function touchEnd(e) {
if (!props.anim) return
if (!props.slide) return
slideTouchEnd(e, state, canNext, () => {
})