UNPKG

hongluan-ui

Version:
75 lines (72 loc) 1.49 kB
import '../../../constants/index.mjs'; import '../../../utils/index.mjs'; import '../../panel/index.mjs'; import { dialogContentProps } from './dialog-content2.mjs'; import { panelProps } from '../../panel/src/panel2.mjs'; import { UPDATE_MODEL_EVENT } from '../../../constants/event.mjs'; import { isBoolean } from '../../../utils/types.mjs'; const dialogProps = { appendToBody: Boolean, appendTo: { type: [String, HTMLElement], default: "body" }, beforeClose: { type: Function }, destroyOnClose: Boolean, closeOnClickModal: { type: Boolean, default: true }, closeOnPressEscape: { type: Boolean, default: true }, lockScroll: { type: Boolean, default: true }, modal: { type: Boolean, default: true }, animationName: { type: String, default: "slideDown" }, openDelay: { type: Number, default: 0 }, closeDelay: { type: Number, default: 0 }, modelValue: { type: Boolean, default: false }, modalClass: String, zIndex: { type: Number }, trapFocus: Boolean, headerAriaLevel: { type: String, default: "2" }, ...dialogContentProps, ...panelProps }; 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