mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
[improvement] Toast: optimize loading-type default value
This commit is contained in:
parent
1616f60a31
commit
921f8a88fb
@ -11,16 +11,13 @@ export default sfc({
|
|||||||
|
|
||||||
props: {
|
props: {
|
||||||
className: null,
|
className: null,
|
||||||
|
loadingType: String,
|
||||||
forbidClick: Boolean,
|
forbidClick: Boolean,
|
||||||
message: [String, Number],
|
message: [String, Number],
|
||||||
type: {
|
type: {
|
||||||
type: String,
|
type: String,
|
||||||
default: 'text'
|
default: 'text'
|
||||||
},
|
},
|
||||||
loadingType: {
|
|
||||||
type: String,
|
|
||||||
default: 'circular'
|
|
||||||
},
|
|
||||||
position: {
|
position: {
|
||||||
type: String,
|
type: String,
|
||||||
default: 'middle'
|
default: 'middle'
|
||||||
|
@ -12,7 +12,7 @@ const defaultOptions = {
|
|||||||
duration: 3000,
|
duration: 3000,
|
||||||
position: 'middle',
|
position: 'middle',
|
||||||
forbidClick: false,
|
forbidClick: false,
|
||||||
loadingType: 'circular',
|
loadingType: undefined,
|
||||||
getContainer: 'body',
|
getContainer: 'body',
|
||||||
overlayStyle: null
|
overlayStyle: null
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user