sprintify-ui 0.8.21 → 0.8.23
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/dist/sprintify-ui.es.js +3381 -3380
- package/package.json +1 -1
- package/src/components/BaseDialog.vue +11 -7
- package/src/components/BaseForm.vue +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
2
|
+
<form
|
|
3
3
|
class="relative transform overflow-hidden rounded-lg bg-white ring-1 ring-black ring-opacity-10 p-4 text-left shadow-xl transition-all || sm:my-8 sm:w-full sm:max-w-lg"
|
|
4
|
+
@submit.prevent="confirm"
|
|
4
5
|
>
|
|
5
6
|
<div class="sm:flex sm:items-start || sm:gap-4">
|
|
6
7
|
<div
|
|
@@ -33,7 +34,9 @@
|
|
|
33
34
|
icon="heroicons:information-circle-20-solid"
|
|
34
35
|
/>
|
|
35
36
|
</div>
|
|
36
|
-
<div
|
|
37
|
+
<div
|
|
38
|
+
class="mt-3 text-center grow || sm:mt-0 sm:text-left"
|
|
39
|
+
>
|
|
37
40
|
<slot>
|
|
38
41
|
<h3
|
|
39
42
|
id="modal-title"
|
|
@@ -57,7 +60,7 @@
|
|
|
57
60
|
|
|
58
61
|
<BaseField
|
|
59
62
|
v-if="inputConfig"
|
|
60
|
-
class="mt-5"
|
|
63
|
+
class="mt-5 w-full"
|
|
61
64
|
:label="inputConfig.label"
|
|
62
65
|
:size="inputConfig.size"
|
|
63
66
|
:required="inputConfig.required"
|
|
@@ -87,11 +90,9 @@
|
|
|
87
90
|
<div class="mt-5 || sm:mt-4 sm:flex sm:flex-row-reverse">
|
|
88
91
|
<BaseButton
|
|
89
92
|
ref="confirm"
|
|
90
|
-
type="button"
|
|
91
93
|
size="sm"
|
|
92
94
|
class="mb-2 w-full sm:mb-0 sm:w-auto"
|
|
93
95
|
:color="color"
|
|
94
|
-
@click="confirm"
|
|
95
96
|
>
|
|
96
97
|
{{ confirmText ?? t('sui.confirm') }}
|
|
97
98
|
</BaseButton>
|
|
@@ -104,7 +105,7 @@
|
|
|
104
105
|
{{ cancelText ?? t('sui.cancel') }}
|
|
105
106
|
</BaseButton>
|
|
106
107
|
</div>
|
|
107
|
-
</
|
|
108
|
+
</form>
|
|
108
109
|
</template>
|
|
109
110
|
|
|
110
111
|
<script lang="ts" setup>
|
|
@@ -197,7 +198,10 @@ function confirm() {
|
|
|
197
198
|
return;
|
|
198
199
|
}
|
|
199
200
|
|
|
200
|
-
emit('confirm', input);
|
|
201
|
+
emit('confirm', input.value);
|
|
202
|
+
|
|
203
|
+
input.value = '';
|
|
204
|
+
|
|
201
205
|
}
|
|
202
206
|
|
|
203
207
|
</script>
|
|
@@ -251,7 +251,7 @@ function successHandler(response: AxiosResponse<any, any>) {
|
|
|
251
251
|
if (props.successHandler) {
|
|
252
252
|
props.successHandler(response);
|
|
253
253
|
} else {
|
|
254
|
-
const message = response.data.message
|
|
254
|
+
const message = get(response, 'response.data.message', null);
|
|
255
255
|
|
|
256
256
|
if (!message) {
|
|
257
257
|
return;
|