Commit 65288b91 by cwq0219

create

1 parent f754beb2
......@@ -12,4 +12,10 @@
position: absolute;
right: 25px;
top: -56px;
}
.m-rl8{
margin: 0 8px;
}
.w-75{
width: 75px;
}
\ No newline at end of file
......@@ -13,8 +13,15 @@
</div>
<div>
<label>显示
<!-- <gl-dropdown>{{showNumber}}</gl-dropdown> -->
条
<gl-dropdown split-button size="small" class="m-rl8" @command="changeShowNumber">
{{showNumber}}
<gl-dropdown-menu slot="dropdown" class="w-75">
<gl-dropdown-item command="10">10</gl-dropdown-item>
<gl-dropdown-item command="20">20</gl-dropdown-item>
<gl-dropdown-item command="30">30</gl-dropdown-item>
<gl-dropdown-item command="40">40</gl-dropdown-item>
</gl-dropdown-menu>
</gl-dropdown>条
</label>
<label>,&nbsp;共&nbsp;{{total}}&nbsp;条</label>
</div>
......@@ -29,7 +36,6 @@ export default {
return {
roleName: '',
showNumber: 10,
showNumberList: [],
total: 0,
roleData: {
border: true,
......@@ -151,6 +157,9 @@ export default {
}).catch(() => {
this.message('', '取消删除')
})
},
changeShowNumber (command) {
this.showNumber = command
}
}
}
......
......@@ -16,8 +16,15 @@
</div>
<div>
<label>显示
<!-- <gl-dropdown>{{showNumber}}</gl-dropdown> -->
条
<gl-dropdown split-button size="small" class="m-rl8" @command="changeShowNumber">
{{showNumber}}
<gl-dropdown-menu slot="dropdown" class="w-75">
<gl-dropdown-item command="10">10</gl-dropdown-item>
<gl-dropdown-item command="20">20</gl-dropdown-item>
<gl-dropdown-item command="30">30</gl-dropdown-item>
<gl-dropdown-item command="40">40</gl-dropdown-item>
</gl-dropdown-menu>
</gl-dropdown>条
</label>
<label>,&nbsp;共&nbsp;{{total}}&nbsp;条</label>
</div>
......@@ -150,6 +157,9 @@ export default {
}).catch(() => {
this.message('', '取消删除')
})
},
changeShowNumber (command) {
this.showNumber = command
}
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!