Fixed #1146 - Allow Adding Classes to Dialog Content
parent
6bd39b173d
commit
32389aea17
|
@ -5,7 +5,8 @@ interface DialogProps {
|
||||||
footer?: any;
|
footer?: any;
|
||||||
visible?: boolean;
|
visible?: boolean;
|
||||||
modal?: boolean;
|
modal?: boolean;
|
||||||
contentStyle?: string;
|
contentStyle?: any;
|
||||||
|
contentClass?: string;
|
||||||
rtl?: boolean;
|
rtl?: boolean;
|
||||||
closable?: boolean;
|
closable?: boolean;
|
||||||
dismissableMask?: boolean;
|
dismissableMask?: boolean;
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="p-dialog-content" :style="contentStyle">
|
<div :class="contentStyleClass" :style="contentStyle">
|
||||||
<slot></slot>
|
<slot></slot>
|
||||||
</div>
|
</div>
|
||||||
<div class="p-dialog-footer" v-if="footer || $slots.footer">
|
<div class="p-dialog-footer" v-if="footer || $slots.footer">
|
||||||
|
@ -41,6 +41,7 @@ export default {
|
||||||
visible: Boolean,
|
visible: Boolean,
|
||||||
modal: Boolean,
|
modal: Boolean,
|
||||||
contentStyle: null,
|
contentStyle: null,
|
||||||
|
contentClass: String,
|
||||||
rtl: Boolean,
|
rtl: Boolean,
|
||||||
maximizable: Boolean,
|
maximizable: Boolean,
|
||||||
dismissableMask: Boolean,
|
dismissableMask: Boolean,
|
||||||
|
@ -288,6 +289,9 @@ export default {
|
||||||
},
|
},
|
||||||
attributeSelector() {
|
attributeSelector() {
|
||||||
return UniqueComponentId();
|
return UniqueComponentId();
|
||||||
|
},
|
||||||
|
contentStyleClass() {
|
||||||
|
return ['p-dialog-content', this.contentClass];
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
directives: {
|
directives: {
|
||||||
|
|
|
@ -144,6 +144,12 @@ export default {
|
||||||
<td>null</td>
|
<td>null</td>
|
||||||
<td>Style of the content section.</td>
|
<td>Style of the content section.</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>contentClass</td>
|
||||||
|
<td>string</td>
|
||||||
|
<td>null</td>
|
||||||
|
<td>Style class of the content section.</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>rtl</td>
|
<td>rtl</td>
|
||||||
<td>boolean</td>
|
<td>boolean</td>
|
||||||
|
|
Loading…
Reference in New Issue