@monoui/vuejs 1.1.51 → 1.1.53

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monoui/vuejs",
3
- "version": "1.1.51",
3
+ "version": "1.1.53",
4
4
  "description": "This project will contain MonoFor UI Framework",
5
5
  "main": "./dist/main.js",
6
6
  "repository": "git@gitlab.com:monoui/vuejs.git",
@@ -102,7 +102,7 @@ export default {
102
102
  show() {
103
103
  this.$swal({
104
104
  title: this.title,
105
- type: this.type,
105
+ icon: this.type,
106
106
  // text: this.text,
107
107
  html: this.text,
108
108
  showCancelButton: true,
@@ -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="isFullScreen ? 'modal-header-fullScreen' : ''"
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
+ computerHeaderClass() {
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,