File tree 2 files changed +10
-2
lines changed
2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 42
42
:size =" 200"
43
43
:progress =" progress"
44
44
:thickness =" 10"
45
+ :loading =" loading"
45
46
:color-fill =" emptyColorFill"
46
- dash = " strict 60 0.5 "
47
+ :loader = " { opacity: '1' } "
47
48
:empty-thickness =" 10"
48
49
>
49
50
<template v-slot :default =" { counterTick } " >
Original file line number Diff line number Diff line change
1
+ import { isValidNumber } from "@/utils" ;
2
+
1
3
const colorConfig = ( defaultColor = "transparent" ) => ( {
2
4
type : [ String , Object ] ,
3
5
required : false ,
@@ -14,7 +16,12 @@ const colorConfig = (defaultColor = "transparent") => ({
14
16
} ) ;
15
17
16
18
const validateLoaderProps = ( loaderOptions ) =>
17
- Object . keys ( loaderOptions ) . every ( ( option ) => options [ option ] . validator ( loaderOptions [ option ] ) ) ;
19
+ Object . keys ( loaderOptions ) . every ( ( option ) => {
20
+ if ( option === "opacity" ) {
21
+ return isValidNumber ( loaderOptions [ option ] && loaderOptions [ option ] >= 0 ) ;
22
+ }
23
+ return options [ option ] . validator ( loaderOptions [ option ] ) ;
24
+ } ) ;
18
25
19
26
const linePosition = {
20
27
type : String ,
You can’t perform that action at this time.
0 commit comments