update dropdown

This commit is contained in:
huanghong 2018-03-16 16:58:20 +08:00
parent 10d29acb97
commit 347815f7a3
2 changed files with 31 additions and 0 deletions

View file

@ -5,6 +5,36 @@
<Button type="primary" @click="subject">- 1</Button> <Button type="primary" @click="subject">- 1</Button>
<Button type="primary" @click="change">Change</Button> <Button type="primary" @click="change">Change</Button>
<Page :current="2" :total="50" simple></Page> <Page :current="2" :total="50" simple></Page>
<div style="margin:20px 0px">
<Page :total="total" show-sizer show-elevator show-total transfer :current.sync="current"></Page>
</div>
<div style="margin:20px 0px">
<Page :total="total" show-sizer show-elevator show-total transfer :current.sync="current"></Page>
</div>
<div style="margin:20px 0px">
<Page :total="total" show-sizer show-elevator show-total transfer :current.sync="current"></Page>
</div>
<div style="margin:20px 0px">
<Page :total="total" show-sizer show-elevator show-total transfer :current.sync="current"></Page>
</div>
<div style="margin:20px 0px">
<Page :total="total" show-sizer show-elevator show-total transfer :current.sync="current"></Page>
</div>
<div style="margin:20px 0px">
<Page :total="total" show-sizer show-elevator show-total transfer :current.sync="current"></Page>
</div>
<div style="margin:20px 0px">
<Page :total="total" show-sizer show-elevator show-total transfer :current.sync="current"></Page>
</div>
<div style="margin:20px 0px">
<Page :total="total" show-sizer show-elevator show-total transfer :current.sync="current"></Page>
</div>
<div style="margin:20px 0px">
<Page :total="total" show-sizer show-elevator show-total transfer :current.sync="current"></Page>
</div>
<div style="margin:20px 0px">
<Page :total="total" show-sizer show-elevator show-total transfer :current.sync="current"></Page>
</div>
</div> </div>
</template> </template>
<script> <script>

View file

@ -49,6 +49,7 @@
}, },
onCreate:()=>{ onCreate:()=>{
this.resetTransformOrigin(); this.resetTransformOrigin();
this.$nextTick(this.popper.update());
}, },
onUpdate:()=>{ onUpdate:()=>{
this.resetTransformOrigin(); this.resetTransformOrigin();