Skip to content

Commit

Permalink
Feat: animate
Browse files Browse the repository at this point in the history
  • Loading branch information
LazyCreeper committed Dec 14, 2023
1 parent 9ebcf95 commit 90f8a9f
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 7 deletions.
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"dependencies": {
"@vueuse/core": "^10.4.1",
"@vueuse/router": "^10.5.0",
"animate.css": "^4.1.1",
"artplayer": "^5.0.9",
"artplayer-plugin-danmuku": "^5.0.1",
"artplayer-plugin-dash-quality": "^2.0.0",
Expand Down
12 changes: 7 additions & 5 deletions src/components/cinema/MoviePush.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const Props = defineProps<{
}>();
// 新影片信息
let newMovieInfo = ref<BaseMovieInfo>({
const newMovieInfo = ref<BaseMovieInfo>({
url: "",
name: "",
type: "",
Expand Down Expand Up @@ -331,24 +331,26 @@ const getBiliBiliVendors = async () => {
</select>
</div>
<div class="card-body flex justify-around flex-wrap">
<Transition name="fade">
<TransitionGroup
enter-active-class="animate__animated animate__zoomIn"
leave-active-class="animate__animated animate__zoomOut"
mode="out-in"
>
<input
type="text"
:placeholder="selectedMovieType === pushType.BILIBILI ? '视频Url或bv号' : '影片Url'"
class="l-input-violet w-full"
v-if="!(newMovieInfo.live && newMovieInfo.rtmpSource)"
v-model="newMovieInfo.url"
/>
</Transition>
<Transition name="fade">
<input
type="text"
placeholder="影片名称"
class="l-input-slate mt-2 w-full"
v-if="selectedMovieType !== pushType.BILIBILI"
v-model="newMovieInfo.name"
/>
</Transition>
</TransitionGroup>
</div>
<div class="mx-5" v-if="!newMovieInfo.vendorInfo?.vendor">
<el-collapse @change="" class="bg-transparent" style="background: #aaa0 !important">
Expand Down
1 change: 1 addition & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import "./assets/global.less";
import "./assets/animation.less";
import "element-plus/dist/index.css";
import "element-plus/theme-chalk/dark/css-vars.css";
import "animate.css";
import { createApp } from "vue";
import { createPinia } from "pinia";

Expand Down
4 changes: 2 additions & 2 deletions src/views/admin/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ onMounted(() => {
<template>
<div class="menu-toggle" @click="menuToggle"></div>
<div class="container mx-auto flex gap-5">
<transition name="slide-to-left">
<Transition name="slide-to-left">
<div class="w-96 relative menu-drawer" v-show="menu">
<div class="card" style="height: 85vh; overflow-y: auto">
<div class="card-body py-5">
Expand All @@ -123,7 +123,7 @@ onMounted(() => {
</div>
</div>
</div>
</transition>
</Transition>

<div class="w-full right-content">
<component
Expand Down

0 comments on commit 90f8a9f

Please sign in to comment.