mirror of
https://github.com/youzan/vant.git
synced 2025-10-19 18:14:13 +00:00
[new feature] Toast: add className prop (#2680)
This commit is contained in:
@@ -10,6 +10,7 @@ export default sfc({
|
||||
mixins: [Popup],
|
||||
|
||||
props: {
|
||||
className: String,
|
||||
forbidClick: Boolean,
|
||||
message: [String, Number],
|
||||
type: {
|
||||
@@ -89,7 +90,7 @@ export default sfc({
|
||||
|
||||
return (
|
||||
<transition name="van-fade">
|
||||
<div vShow={this.value} class={bem([style, this.position])}>
|
||||
<div vShow={this.value} class={[bem([style, this.position]), this.className]}>
|
||||
{Content()}
|
||||
</div>
|
||||
</transition>
|
||||
|
Reference in New Issue
Block a user