Skip to content

Commit 7b02750

Browse files
committed
chroe: add methods of components and optimization of code
1 parent 10972ff commit 7b02750

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

packages/components/rotate/index.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
</template>
7676

7777
<script lang="ts" setup>
78-
import {computed, nextTick, onMounted, reactive, ref, toRaw, watch} from "vue"
78+
import {computed, nextTick, onMounted, onUnmounted, reactive, ref, toRaw, watch} from "vue"
7979
import {RotateConfig, defaultConfig} from "./meta/config";
8080
8181
import CloseIcon from "../../assets/icons/close-icon.vue";
@@ -87,7 +87,6 @@ import {defaultRotateData, RotateData} from "./meta/data";
8787
import {RotateEvent} from "./meta/event";
8888
import {RotateExpose} from "./meta/expose";
8989
import {useHandler} from "./hooks/handler";
90-
import {onUnmounted} from "@vue/runtime-core";
9190
9291
// @ts-ignore
9392
const props = withDefaults(

packages/components/slide/index.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,6 @@ const hasDisplayWrapperState = computed(() => {
186186
const fn = (event: any) => event.preventDefault()
187187
onMounted(async () => {
188188
await nextTick();
189-
190189
dragBlockRef.value && dragBlockRef.value.addEventListener('dragstart', fn);
191190
});
192191

0 commit comments

Comments
 (0)