You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
76 lines
1.4 KiB
76 lines
1.4 KiB
|
3 years ago
|
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
|