@monoui/vuejs 1.1.52 → 1.1.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -2
- package/dist/main.js +1 -1
- package/package.json +1 -1
- package/src/components/Modal/Modal.vue +13 -6
package/package.json
CHANGED
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
:dialog-class="isFullScreen ? 'modal-dialog-fullScreen' : ''"
|
|
11
11
|
:content-class="computedContentClass"
|
|
12
12
|
:body-class="computedBodyClass"
|
|
13
|
-
:header-class="
|
|
13
|
+
:header-class="computedHeaderClass"
|
|
14
|
+
:footer-class="computedFooterClass"
|
|
14
15
|
>
|
|
15
16
|
<mui-loader :loading="loading" />
|
|
16
17
|
|
|
@@ -20,11 +21,6 @@
|
|
|
20
21
|
<slot name="default"> </slot>
|
|
21
22
|
</template>
|
|
22
23
|
|
|
23
|
-
<!-- TODO: DONT USE! -->
|
|
24
|
-
<!-- <template v-if="!loading" #modal-title>
|
|
25
|
-
<slot name="modal-title"></slot>
|
|
26
|
-
</template> -->
|
|
27
|
-
|
|
28
24
|
<template v-if="!loading" #modal-header="{close}">
|
|
29
25
|
<slot name="modal-header">
|
|
30
26
|
<div class="d-flex align-items-center">
|
|
@@ -103,6 +99,15 @@ export default {
|
|
|
103
99
|
return this.isFullScreen
|
|
104
100
|
? `${this.contentClass} modal-content-fullScreen`
|
|
105
101
|
: this.contentClass;
|
|
102
|
+
},
|
|
103
|
+
computedHeaderClass() {
|
|
104
|
+
const headerClass = this.headerClass || "";
|
|
105
|
+
return this.isFullScreen
|
|
106
|
+
? `${headerClass} modal-header-fullScreen`
|
|
107
|
+
: headerClass;
|
|
108
|
+
},
|
|
109
|
+
computedFooterClass() {
|
|
110
|
+
return this.footerClass;
|
|
106
111
|
}
|
|
107
112
|
},
|
|
108
113
|
props: {
|
|
@@ -110,6 +115,8 @@ export default {
|
|
|
110
115
|
"hide-footer": {},
|
|
111
116
|
"custom-class": {},
|
|
112
117
|
"ok-disabled": {},
|
|
118
|
+
headerClass: {},
|
|
119
|
+
footerClass: {},
|
|
113
120
|
title: {},
|
|
114
121
|
loading: {
|
|
115
122
|
type: Boolean,
|