瀏覽代碼

fix: 修复演示页相关问题

xiaoxian521 1 年之前
父節點
當前提交
6db0d63733
共有 2 個文件被更改,包括 3 次插入2 次删除
  1. 2 1
      src/components/ReCropper/src/index.tsx
  2. 1 1
      src/views/components/danmaku/index.vue

+ 2 - 1
src/components/ReCropper/src/index.tsx

@@ -1,9 +1,9 @@
 import "./circled.css";
 import Cropper from "cropperjs";
-import { useTippy } from "vue-tippy";
 import { ElUpload } from "element-plus";
 import type { CSSProperties } from "vue";
 import { longpress } from "@/directives/longpress";
+import { useTippy, directive as tippy } from "vue-tippy";
 import {
   ref,
   unref,
@@ -236,6 +236,7 @@ export default defineComponent({
 
     const menuContent = defineComponent({
       directives: {
+        tippy,
         longpress
       },
       setup() {

+ 1 - 1
src/views/components/danmaku/index.vue

@@ -186,7 +186,7 @@ function addDanmu() {
     </div>
   </el-card>
 </template>
-<style lang="scss">
+<style lang="scss" scoped>
 .demo {
   flex: 1;
   height: 600px;