1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
| import '../../../utils/index.mjs';
| import '../../../constants/index.mjs';
| import { dialogContentProps } from './dialog-content.mjs';
| import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
| import { UPDATE_MODEL_EVENT } from '../../../constants/event.mjs';
| import { isBoolean } from '../../../utils/types.mjs';
|
| const dialogProps = buildProps({
| ...dialogContentProps,
| appendToBody: {
| type: Boolean,
| default: false
| },
| beforeClose: {
| type: definePropType(Function)
| },
| destroyOnClose: {
| type: Boolean,
| default: false
| },
| closeOnClickModal: {
| type: Boolean,
| default: true
| },
| closeOnPressEscape: {
| type: Boolean,
| default: true
| },
| lockScroll: {
| type: Boolean,
| default: true
| },
| modal: {
| type: Boolean,
| default: true
| },
| openDelay: {
| type: Number,
| default: 0
| },
| closeDelay: {
| type: Number,
| default: 0
| },
| top: {
| type: String
| },
| modelValue: {
| type: Boolean,
| default: false
| },
| modalClass: String,
| width: {
| type: [String, Number]
| },
| zIndex: {
| type: Number
| },
| trapFocus: {
| type: Boolean,
| default: false
| }
| });
| const dialogEmits = {
| open: () => true,
| opened: () => true,
| close: () => true,
| closed: () => true,
| [UPDATE_MODEL_EVENT]: (value) => isBoolean(value),
| openAutoFocus: () => true,
| closeAutoFocus: () => true
| };
|
| export { dialogEmits, dialogProps };
| //# sourceMappingURL=dialog.mjs.map
|
|