adminforth 2.4.0-next.211 → 2.4.0-next.212

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.
@@ -76,6 +76,7 @@ interface DialogProps {
76
76
  clickToCloseOutside?: boolean
77
77
  beforeCloseFunction?: (() => void | Promise<void>) | null
78
78
  beforeOpenFunction?: (() => void | Promise<void>) | null
79
+ closable?: boolean
79
80
  }
80
81
 
81
82
  const props = withDefaults(defineProps<DialogProps>(), {
@@ -87,6 +88,7 @@ const props = withDefaults(defineProps<DialogProps>(), {
87
88
  clickToCloseOutside: true,
88
89
  beforeCloseFunction: null,
89
90
  beforeOpenFunction: null,
91
+ closable: true,
90
92
  })
91
93
 
92
94
  onMounted(async () => {
@@ -95,6 +97,7 @@ onMounted(async () => {
95
97
  modal.value = new Modal(
96
98
  modalEl.value,
97
99
  {
100
+ closable: props.closable,
98
101
  backdrop: props.clickToCloseOutside ? 'dynamic' : 'static',
99
102
  onHide: async () => {
100
103
  if (props.beforeCloseFunction) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adminforth",
3
- "version": "2.4.0-next.211",
3
+ "version": "2.4.0-next.212",
4
4
  "description": "OpenSource Vue3 powered forth-generation admin panel",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",