[new feature] Notify: add className prop (#2681)

This commit is contained in:
neverland
2019-02-04 10:13:00 +08:00
committed by GitHub
parent ca4e476ddd
commit 3578defd11
10 changed files with 13 additions and 7 deletions
+2 -1
View File
@@ -8,6 +8,7 @@ export default sfc({
mixins: [PopupMixin],
props: {
className: null,
message: [String, Number],
color: {
type: String,
@@ -34,7 +35,7 @@ export default sfc({
};
return (
<transition name="van-slide-down">
<div vShow={this.value} class={bem()} style={style}>
<div vShow={this.value} class={[bem(), this.className]} style={style}>
{this.message}
</div>
</transition>