From 48f057e17494347851af9a761b57b1ad41ee47c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B1=E7=9C=A0=E5=84=80=E5=BC=8F?= <854085467@qq.com> Date: Tue, 18 Oct 2022 09:31:43 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8(component):=20=E6=B8=85=E7=90=86=20sl?= =?UTF-8?q?ider=20=E7=BB=84=E4=BB=B6=20console.log=20=E8=B0=83=E8=AF=95?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package/component/src/component/popper/index.vue | 7 ++++--- package/component/src/component/popper/interface.ts | 1 - package/component/src/component/slider/Standard.vue | 4 ---- package/component/src/component/slider/StandardRange.vue | 1 - package/component/src/component/slider/VerticalRange.vue | 1 - 5 files changed, 4 insertions(+), 10 deletions(-) delete mode 100644 package/component/src/component/popper/interface.ts diff --git a/package/component/src/component/popper/index.vue b/package/component/src/component/popper/index.vue index b8b1fa27..64e1dfb1 100644 --- a/package/component/src/component/popper/index.vue +++ b/package/component/src/component/popper/index.vue @@ -44,19 +44,20 @@ import { useResizeObserver, useThrottleFn, } from "@vueuse/core"; -import { PopperTrigger } from "../tooltip/index.vue"; + +export type PopperTrigger = "click" | "hover" | "focus" | "contextMenu"; export interface PopperProps { el: HTMLElement; - content?: string | Number; position?: string; - trigger?: PopperTrigger | PopperTrigger[]; enterable?: boolean; isDark?: boolean; disabled?: boolean; isCanHide?: boolean; isAutoShow?: boolean; visible?: boolean; + content?: string | Number; + trigger?: PopperTrigger | PopperTrigger[]; popperClass?: string | Array | object; popperStyle?: StyleValue; } diff --git a/package/component/src/component/popper/interface.ts b/package/component/src/component/popper/interface.ts deleted file mode 100644 index 8e5656e9..00000000 --- a/package/component/src/component/popper/interface.ts +++ /dev/null @@ -1 +0,0 @@ -export type PopperTrigger = "click" | "hover" | "focus" | "contextMenu"; diff --git a/package/component/src/component/slider/Standard.vue b/package/component/src/component/slider/Standard.vue index 3dc95bb1..e855ef62 100644 --- a/package/component/src/component/slider/Standard.vue +++ b/package/component/src/component/slider/Standard.vue @@ -95,10 +95,6 @@ const dots = makeDots(props); const focusDot = (val: number) => { emit("link-val-hook", val); }; -// const focusClick = (e: MouseEvent)=>{ -// console.log(e); -// standardMove(e) -// }