From 4e9fec9c9a2bfa5750e486e5a457e5756b0f8848 Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Fri, 9 Mar 2018 12:20:21 +0800 Subject: [PATCH] update vc-xxx --- components/dropdown/src/Dropdown.vue | 2 +- components/modal/demo/index.vue | 4 ++-- components/time-picker/demo/index.vue | 4 ++-- components/vc-pagination/Pagination.vue | 12 +++++++----- components/vc-select/Select.vue | 1 + contributors.md | 2 +- 6 files changed, 14 insertions(+), 11 deletions(-) diff --git a/components/dropdown/src/Dropdown.vue b/components/dropdown/src/Dropdown.vue index 4c3bddd86..61f99503b 100644 --- a/components/dropdown/src/Dropdown.vue +++ b/components/dropdown/src/Dropdown.vue @@ -89,7 +89,7 @@ export default { const overlayNode = this.getPopupDomNode() const rootNode = this.$el if (rootNode && overlayNode && rootNode.offsetWidth > overlayNode.offsetWidth) { - overlayNode.style.width = `${rootNode.offsetWidth}px` + overlayNode.style.minWidth = `${rootNode.offsetWidth}px` if (this.$refs.trigger && this.$refs.trigger._component && this.$refs.trigger._component.alignInstance) { diff --git a/components/modal/demo/index.vue b/components/modal/demo/index.vue index 5dafd70f2..a7895bdaa 100644 --- a/components/modal/demo/index.vue +++ b/components/modal/demo/index.vue @@ -35,7 +35,7 @@ export default { title: 'Modal', render () { return ( -
+
@@ -57,7 +57,7 @@ export default { diff --git a/components/time-picker/demo/index.vue b/components/time-picker/demo/index.vue index 3165dbc92..9298d36e9 100644 --- a/components/time-picker/demo/index.vue +++ b/components/time-picker/demo/index.vue @@ -28,7 +28,7 @@ export default { title: 'TimePicker', render () { return ( -
+
@@ -48,5 +48,5 @@ export default { } diff --git a/components/vc-pagination/Pagination.vue b/components/vc-pagination/Pagination.vue index 9e37ec597..5e4d6a031 100644 --- a/components/vc-pagination/Pagination.vue +++ b/components/vc-pagination/Pagination.vue @@ -276,14 +276,16 @@ export default { ) } + const hasPrev = this.hasPrev() + const hasNext = this.hasNext() return (