[new feature] Toast: add className prop (#2680)

This commit is contained in:
neverland
2019-02-03 12:22:38 +08:00
committed by GitHub
parent d20b7fdcbf
commit ca4e476ddd
5 changed files with 7 additions and 3 deletions

View File

@@ -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>