xdesign-vue-next
Version:
XDesign Component for vue-next
109 lines (104 loc) • 2.13 kB
JavaScript
/**
* xdesign v1.0.6
* (c) 2023 xdesign
* @license MIT
*/
;
Object.defineProperty(exports, '__esModule', { value: true });
/* unplugin-vue-components disabled */var props = {
attach: {
type: [String, Function],
"default": ""
},
body: {
type: [String, Function],
"default": ""
},
cancelBtn: {
type: [String, Object, Function],
"default": ""
},
closeBtn: {
type: [String, Boolean, Function],
"default": true
},
closeOnEscKeydown: {
type: Boolean,
"default": void 0
},
closeOnOverlayClick: {
type: Boolean,
"default": void 0
},
confirmBtn: {
type: [String, Object, Function],
"default": ""
},
confirmOnEnter: Boolean,
"default": {
type: [String, Function]
},
destroyOnClose: Boolean,
draggable: Boolean,
footer: {
type: [Boolean, Function],
"default": true
},
header: {
type: [String, Boolean, Function],
"default": true
},
mode: {
type: String,
"default": "modal",
validator: function validator(val) {
if (!val) return true;
return ["modal", "modeless", "normal", "full-screen"].includes(val);
}
},
placement: {
type: String,
"default": "top",
validator: function validator(val) {
if (!val) return true;
return ["top", "center"].includes(val);
}
},
preventScrollThrough: {
type: Boolean,
"default": true
},
showInAttachedElement: Boolean,
showOverlay: {
type: Boolean,
"default": true
},
theme: {
type: String,
"default": "default",
validator: function validator(val) {
if (!val) return true;
return ["default", "info", "warning", "danger", "success"].includes(val);
}
},
top: {
type: [String, Number]
},
visible: Boolean,
width: {
type: [String, Number]
},
zIndex: {
type: Number
},
onCancel: Function,
onClose: Function,
onCloseBtnClick: Function,
onClosed: Function,
onConfirm: Function,
onEscKeydown: Function,
onOpened: Function,
onOverlayClick: Function
};
exports["default"] = props;
//# sourceMappingURL=props.js.map