@fiscozen/dialog 0.1.15 → 0.1.16
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 +2 -2
- package/src/FzDialog.vue +5 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fiscozen/dialog",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.16",
|
|
4
4
|
"description": "Design System Dialog component",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"type": "module",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"vite-plugin-dts": "^3.8.3",
|
|
32
32
|
"vitest": "^1.2.0",
|
|
33
33
|
"vue-tsc": "^1.8.25",
|
|
34
|
-
"@fiscozen/eslint-config": "^0.1.0",
|
|
35
34
|
"@fiscozen/tsconfig": "^0.1.0",
|
|
35
|
+
"@fiscozen/eslint-config": "^0.1.0",
|
|
36
36
|
"@fiscozen/prettier-config": "^0.1.0"
|
|
37
37
|
},
|
|
38
38
|
"license": "MIT",
|
package/src/FzDialog.vue
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
class="fz-dialog__backdrop w-screen h-screen fixed flex flex-col items-center justify-start sm:justify-center z-30">
|
|
7
7
|
<dialog
|
|
8
8
|
ref="dialog"
|
|
9
|
-
@close="
|
|
9
|
+
@close="handleModalClose"
|
|
10
10
|
:class="[dialogStaticClasses, dialogClasses]"
|
|
11
11
|
>
|
|
12
12
|
<div ref="innerDialog" :class="[staticClasses, classes]">
|
|
@@ -66,11 +66,14 @@ const showModal = () => {
|
|
|
66
66
|
|
|
67
67
|
const closeModal = (returnVal?: string) => {
|
|
68
68
|
dialog.value!.close(returnVal);
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
function handleModalClose() {
|
|
69
72
|
visible.value = false;
|
|
70
73
|
if (props.unrenderOnClose) {
|
|
71
74
|
shouldRender.value = false;
|
|
72
75
|
}
|
|
73
|
-
}
|
|
76
|
+
}
|
|
74
77
|
|
|
75
78
|
watch(dialog, (dialog) => {
|
|
76
79
|
if (dialog && shouldRender.value) {
|