@eturnity/eturnity_reusable_components 1.1.59 → 1.1.60
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
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
@click.native="onOutsideClose()"
|
|
6
6
|
>
|
|
7
7
|
<modal-container @click.stop>
|
|
8
|
+
<spinner v-if="isLoading" size="50px" :fullWidth="true" />
|
|
8
9
|
<close-button @click.native="onCloseModal()" class="close" />
|
|
9
10
|
<slot />
|
|
10
11
|
</modal-container>
|
|
@@ -15,12 +16,13 @@
|
|
|
15
16
|
// import Modal from "@eturnity/eturnity_reusable_components/src/components/modals/modal"
|
|
16
17
|
// This is a more flexible modal box, where the parent can decide how the body of the modal looks
|
|
17
18
|
// To use:
|
|
18
|
-
// <modal :isOpen="isOpen" @on-close="$emit('on-close-summary')" :preventOutsideClose="true">
|
|
19
|
+
// <modal :isOpen="isOpen" @on-close="$emit('on-close-summary')" :preventOutsideClose="true" :isLoading="true">
|
|
19
20
|
// <div>Data....</div>
|
|
20
21
|
// </modal>
|
|
21
22
|
|
|
22
23
|
import styled from "vue-styled-components"
|
|
23
24
|
import CloseButton from "../../buttons/closeButton"
|
|
25
|
+
import Spinner from "../../spinner"
|
|
24
26
|
|
|
25
27
|
const pageAttrs = { isOpen: Boolean }
|
|
26
28
|
const PageWrapper = styled("div", pageAttrs)`
|
|
@@ -92,6 +94,7 @@ export default {
|
|
|
92
94
|
PageWrapper,
|
|
93
95
|
ModalContainer,
|
|
94
96
|
CloseButton,
|
|
97
|
+
Spinner,
|
|
95
98
|
},
|
|
96
99
|
props: {
|
|
97
100
|
isOpen: {
|
|
@@ -102,6 +105,10 @@ export default {
|
|
|
102
105
|
required: false,
|
|
103
106
|
default: false,
|
|
104
107
|
},
|
|
108
|
+
isLoading: {
|
|
109
|
+
required: false,
|
|
110
|
+
default: false,
|
|
111
|
+
},
|
|
105
112
|
},
|
|
106
113
|
methods: {
|
|
107
114
|
onCloseModal() {
|