[improvement] GoodsAction: add loading & disabled prop (#1994)
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
<template>
|
||||
<van-button
|
||||
tag="a"
|
||||
:href="url"
|
||||
square
|
||||
:class="b()"
|
||||
:type="primary ? 'primary' : 'default'"
|
||||
bottom-action
|
||||
size="large"
|
||||
:loading="loading"
|
||||
:disabled="disabled"
|
||||
:type="primary ? 'danger' : 'warning'"
|
||||
@click="onClick"
|
||||
>
|
||||
<slot>{{ text }}</slot>
|
||||
@@ -26,9 +27,10 @@ export default create({
|
||||
},
|
||||
|
||||
props: {
|
||||
url: String,
|
||||
text: String,
|
||||
primary: Boolean
|
||||
primary: Boolean,
|
||||
loading: Boolean,
|
||||
disabled: Boolean
|
||||
},
|
||||
|
||||
methods: {
|
||||
|
||||
Reference in New Issue
Block a user