@fe6/water-pro
Version:
An enterprise-class UI design language and Vue-based implementation
35 lines (32 loc) • 1.26 kB
JavaScript
import { createVNode as _createVNode, resolveDirective as _resolveDirective } from "vue";
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
/** @format */
import { defineComponent, toRefs, computed } from 'vue';
import Modal from '../../../modal';
import { basicProps } from '../props';
import { useModalDragMove } from '../hooks/use-modal-drag';
export default defineComponent({
name: 'AModalProBase',
inheritAttrs: false,
props: basicProps,
setup: function setup(props) {
var _toRefs = toRefs(props),
visible = _toRefs.visible,
draggable = _toRefs.draggable,
destroyOnClose = _toRefs.destroyOnClose;
useModalDragMove({
visible: visible,
destroyOnClose: destroyOnClose,
draggable: draggable
});
var getProps = computed(function () {
return _extends({}, props);
});
return {
getProps: getProps
};
},
render: function render() {
return _createVNode(Modal, this.getProps, this.$slots);
}
});