(component): 清理 slider 组件 console.log 调试代码

This commit is contained in:
就眠儀式 2022-10-18 09:31:43 +08:00
parent 45a8d62ffb
commit 48f057e174
5 changed files with 4 additions and 10 deletions

View File

@ -44,19 +44,20 @@ import {
useResizeObserver, useResizeObserver,
useThrottleFn, useThrottleFn,
} from "@vueuse/core"; } from "@vueuse/core";
import { PopperTrigger } from "../tooltip/index.vue";
export type PopperTrigger = "click" | "hover" | "focus" | "contextMenu";
export interface PopperProps { export interface PopperProps {
el: HTMLElement; el: HTMLElement;
content?: string | Number;
position?: string; position?: string;
trigger?: PopperTrigger | PopperTrigger[];
enterable?: boolean; enterable?: boolean;
isDark?: boolean; isDark?: boolean;
disabled?: boolean; disabled?: boolean;
isCanHide?: boolean; isCanHide?: boolean;
isAutoShow?: boolean; isAutoShow?: boolean;
visible?: boolean; visible?: boolean;
content?: string | Number;
trigger?: PopperTrigger | PopperTrigger[];
popperClass?: string | Array<string | object> | object; popperClass?: string | Array<string | object> | object;
popperStyle?: StyleValue; popperStyle?: StyleValue;
} }

View File

@ -1 +0,0 @@
export type PopperTrigger = "click" | "hover" | "focus" | "contextMenu";

View File

@ -95,10 +95,6 @@ const dots = makeDots(props);
const focusDot = (val: number) => { const focusDot = (val: number) => {
emit("link-val-hook", val); emit("link-val-hook", val);
}; };
// const focusClick = (e: MouseEvent)=>{
// console.log(e);
// standardMove(e)
// }
</script> </script>
<template> <template>

View File

@ -133,7 +133,6 @@ function cross(val: any) {
} }
// //
const dots = makeDots(props); const dots = makeDots(props);
console.log(dots);
const focusDot = (item: number) => { const focusDot = (item: number) => {
let currbtn = moveNeighbors(item, rv); let currbtn = moveNeighbors(item, rv);

View File

@ -132,7 +132,6 @@ function cross(val: any) {
} }
// //
const dots = makeDots(props); const dots = makeDots(props);
console.log(dots);
const focusDot = (item: number) => { const focusDot = (item: number) => {
let currbtn = moveNeighbors(item, rv); let currbtn = moveNeighbors(item, rv);