Commit 347815f7a3d6761db91dd7d01b960d3ca6ba7a29
1 parent
10d29acb
update dropdown
Showing
2 changed files
with
31 additions
and
0 deletions
Show diff stats
examples/routers/page.vue
| @@ -5,6 +5,36 @@ | @@ -5,6 +5,36 @@ | ||
| 5 | <Button type="primary" @click="subject">- 1</Button> | 5 | <Button type="primary" @click="subject">- 1</Button> |
| 6 | <Button type="primary" @click="change">Change</Button> | 6 | <Button type="primary" @click="change">Change</Button> |
| 7 | <Page :current="2" :total="50" simple></Page> | 7 | <Page :current="2" :total="50" simple></Page> |
| 8 | + <div style="margin:20px 0px"> | ||
| 9 | + <Page :total="total" show-sizer show-elevator show-total transfer :current.sync="current"></Page> | ||
| 10 | + </div> | ||
| 11 | + <div style="margin:20px 0px"> | ||
| 12 | + <Page :total="total" show-sizer show-elevator show-total transfer :current.sync="current"></Page> | ||
| 13 | + </div> | ||
| 14 | + <div style="margin:20px 0px"> | ||
| 15 | + <Page :total="total" show-sizer show-elevator show-total transfer :current.sync="current"></Page> | ||
| 16 | + </div> | ||
| 17 | + <div style="margin:20px 0px"> | ||
| 18 | + <Page :total="total" show-sizer show-elevator show-total transfer :current.sync="current"></Page> | ||
| 19 | + </div> | ||
| 20 | + <div style="margin:20px 0px"> | ||
| 21 | + <Page :total="total" show-sizer show-elevator show-total transfer :current.sync="current"></Page> | ||
| 22 | + </div> | ||
| 23 | + <div style="margin:20px 0px"> | ||
| 24 | + <Page :total="total" show-sizer show-elevator show-total transfer :current.sync="current"></Page> | ||
| 25 | + </div> | ||
| 26 | + <div style="margin:20px 0px"> | ||
| 27 | + <Page :total="total" show-sizer show-elevator show-total transfer :current.sync="current"></Page> | ||
| 28 | + </div> | ||
| 29 | + <div style="margin:20px 0px"> | ||
| 30 | + <Page :total="total" show-sizer show-elevator show-total transfer :current.sync="current"></Page> | ||
| 31 | + </div> | ||
| 32 | + <div style="margin:20px 0px"> | ||
| 33 | + <Page :total="total" show-sizer show-elevator show-total transfer :current.sync="current"></Page> | ||
| 34 | + </div> | ||
| 35 | + <div style="margin:20px 0px"> | ||
| 36 | + <Page :total="total" show-sizer show-elevator show-total transfer :current.sync="current"></Page> | ||
| 37 | + </div> | ||
| 8 | </div> | 38 | </div> |
| 9 | </template> | 39 | </template> |
| 10 | <script> | 40 | <script> |
src/components/select/dropdown.vue
| @@ -49,6 +49,7 @@ | @@ -49,6 +49,7 @@ | ||
| 49 | }, | 49 | }, |
| 50 | onCreate:()=>{ | 50 | onCreate:()=>{ |
| 51 | this.resetTransformOrigin(); | 51 | this.resetTransformOrigin(); |
| 52 | + this.$nextTick(this.popper.update()); | ||
| 52 | }, | 53 | }, |
| 53 | onUpdate:()=>{ | 54 | onUpdate:()=>{ |
| 54 | this.resetTransformOrigin(); | 55 | this.resetTransformOrigin(); |