diff --git a/components/_util/ContainerRender.vue b/components/_util/ContainerRender.vue index deb7e4d48..839c4f7d7 100644 --- a/components/_util/ContainerRender.vue +++ b/components/_util/ContainerRender.vue @@ -53,13 +53,14 @@ export default { parent: self.parent, el: self.container, mounted () { - this.$next(() => { + this.$nextTick(() => { if (ready) { ready.call(self) } }) }, render () { + console.log(props) return getComponent(props) }, }) diff --git a/components/vc-dialog/Dialog.vue b/components/vc-dialog/Dialog.vue index b0d8f8a5f..d850b3bf5 100644 --- a/components/vc-dialog/Dialog.vue +++ b/components/vc-dialog/Dialog.vue @@ -3,7 +3,7 @@ import KeyCode from '../_util/KeyCode' import LazyRenderBox from './LazyRenderBox' import BaseMixin from '../_util/BaseMixin' import getTransitionProps from '../_util/getTransitionProps' -import getScrollBarSize from '../__util/getScrollBarSize' +import getScrollBarSize from '../_util/getScrollBarSize' import getDialogPropTypes from './IDialogPropTypes' const IDialogPropTypes = getDialogPropTypes() @@ -105,7 +105,7 @@ export default { this.lastOutSideFocusNode = document.activeElement this.addScrollingEffect() this.$refs.wrap.focus() - const dialogNode = this.$refs.dialog + const dialogNode = this.$refs.dialog.$el if (mousePosition) { const elOffset = offset(dialogNode) setTransformOrigin(dialogNode, @@ -386,7 +386,7 @@ export default { tabIndex={-1} onKeydown={this.onKeydown} class={`${prefixCls}-wrap ${wrapClassName || ''}`} - ref={this.saveRef('wrap')} + ref='wrap' onClick={maskClosable ? this.onMaskClick : undefined} role='dialog' aria-labelledby={title ? this.titleId : null} diff --git a/components/vc-dialog/DialogWrap.vue b/components/vc-dialog/DialogWrap.vue index d63a60014..26cb3d1b4 100644 --- a/components/vc-dialog/DialogWrap.vue +++ b/components/vc-dialog/DialogWrap.vue @@ -1,6 +1,6 @@ \ No newline at end of file diff --git a/examples/routes.js b/examples/routes.js index a559992ab..8fcd8f9f9 100644 --- a/examples/routes.js +++ b/examples/routes.js @@ -3,7 +3,7 @@ const AsyncComp = () => { const hashs = window.location.hash.split('/') const d = hashs[hashs.length - 1] return { - component: import(`../components/pagination/demo/${d}.vue`), + component: import(`../components/vc-dialog/demo/${d}.vue`), } } export default [