mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 02:31:21 +00:00
[Improvement] Dialog: support custom className (#1224)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<transition name="van-dialog-bounce">
|
||||
<div v-show="value" :class="b()">
|
||||
<div v-show="value" :class="[b(), className]">
|
||||
<div v-if="title" v-text="title" :class="b('header')" />
|
||||
<div :class="b('content')" class="van-hairline">
|
||||
<slot>
|
||||
@@ -49,6 +49,7 @@ export default create({
|
||||
title: String,
|
||||
message: String,
|
||||
callback: Function,
|
||||
className: [String, Object, Array],
|
||||
beforeClose: Function,
|
||||
confirmButtonText: String,
|
||||
cancelButtonText: String,
|
||||
|
Reference in New Issue
Block a user