chore(@vant/use): fix some lint issues (#8462)

This commit is contained in:
neverland
2021-04-06 20:03:26 +08:00
committed by GitHub
parent fe453dabb1
commit ace4c9b60b
8 changed files with 33 additions and 36 deletions
+14 -14
View File
@@ -62,13 +62,13 @@ export default {
### 类型定义
```ts
function useCountDown(options: UseCountDownOptions): CountDown;
type UseCountDownOptions = {
time: number;
millisecond?: boolean;
onChange?: (current: CurrentTime) => void;
onFinish?: () => void;
type CurrentTime = {
days: number;
hours: number;
total: number;
minutes: number;
seconds: number;
milliseconds: number;
};
type CountDown = {
@@ -78,14 +78,14 @@ type CountDown = {
current: ComputedRef<CurrentTime>;
};
type CurrentTime = {
days: number;
hours: number;
total: number;
minutes: number;
seconds: number;
milliseconds: number;
type UseCountDownOptions = {
time: number;
millisecond?: boolean;
onChange?: (current: CurrentTime) => void;
onFinish?: () => void;
};
function useCountDown(options: UseCountDownOptions): CountDown;
```
### 参数