Skip to content

Commit

Permalink
fix(ui): 增加button组件的loading参数校验
Browse files Browse the repository at this point in the history
affects: @varlet/ui
  • Loading branch information
haoziqaq committed Dec 2, 2020
1 parent cdf32e5 commit 4d839c1
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
32 changes: 16 additions & 16 deletions packages/varlet-ui/src/button/example/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
class="example__button"
type="primary"
size="large"
v-model:loading="loading"
:loading="loading"
@click="trigger"
>
Large
Expand All @@ -34,7 +34,7 @@
class="example__button"
type="primary"
size="normal"
v-model:loading="loading"
:loading="loading"
@click="trigger"
>
Normal
Expand All @@ -43,7 +43,7 @@
class="example__button"
type="primary"
size="small"
v-model:loading="loading"
:loading="loading"
@click="trigger"
>
Small
Expand All @@ -52,7 +52,7 @@
class="example__button"
type="primary"
size="mini"
v-model:loading="loading"
:loading="loading"
@click="trigger"
>
Mini
Expand All @@ -63,7 +63,7 @@
type="danger"
loading-type="cube"
size="large"
v-model:loading="loading"
:loading="loading"
@click="trigger"
>
Large
Expand All @@ -73,7 +73,7 @@
type="danger"
loading-type="cube"
size="normal"
v-model:loading="loading"
:loading="loading"
@click="trigger"
>
Normal
Expand All @@ -83,7 +83,7 @@
type="danger"
loading-type="cube"
size="small"
v-model:loading="loading"
:loading="loading"
@click="trigger"
>
Small
Expand All @@ -93,7 +93,7 @@
type="danger"
loading-type="cube"
size="mini"
v-model:loading="loading"
:loading="loading"
@click="trigger"
>
Mini
Expand All @@ -104,7 +104,7 @@
type="warning"
loading-type="rect"
size="large"
v-model:loading="loading"
:loading="loading"
@click="trigger"
>
Large
Expand All @@ -114,7 +114,7 @@
type="warning"
loading-type="rect"
size="normal"
v-model:loading="loading"
:loading="loading"
@click="trigger"
>
Normal
Expand All @@ -124,7 +124,7 @@
type="warning"
loading-type="rect"
size="small"
v-model:loading="loading"
:loading="loading"
@click="trigger"
>
Small
Expand All @@ -134,7 +134,7 @@
type="warning"
loading-type="rect"
size="mini"
v-model:loading="loading"
:loading="loading"
@click="trigger"
>
Mini
Expand All @@ -145,7 +145,7 @@
type="success"
loading-type="disappear"
size="large"
v-model:loading="loading"
:loading="loading"
@click="trigger"
>
Large
Expand All @@ -155,7 +155,7 @@
type="success"
loading-type="disappear"
size="normal"
v-model:loading="loading"
:loading="loading"
@click="trigger"
>
Normal
Expand All @@ -165,7 +165,7 @@
type="success"
loading-type="disappear"
size="small"
v-model:loading="loading"
:loading="loading"
@click="trigger"
>
Small
Expand All @@ -175,7 +175,7 @@
type="success"
loading-type="disappear"
size="mini"
v-model:loading="loading"
:loading="loading"
@click="trigger"
>
Mini
Expand Down
2 changes: 1 addition & 1 deletion packages/varlet-ui/src/button/propsEmits.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const props = {
default: (props: any) => props.size,
validator: loadingSizeValidator
},
// 原型按钮
// 圆型按钮
round: {
type: Boolean,
default: false
Expand Down

0 comments on commit 4d839c1

Please sign in to comment.