Commit 65288b91 by cwq0219

create

1 parent f754beb2
...@@ -12,4 +12,10 @@ ...@@ -12,4 +12,10 @@
position: absolute; position: absolute;
right: 25px; right: 25px;
top: -56px; top: -56px;
}
.m-rl8{
margin: 0 8px;
}
.w-75{
width: 75px;
} }
\ No newline at end of file \ No newline at end of file
...@@ -13,8 +13,15 @@ ...@@ -13,8 +13,15 @@
</div> </div>
<div> <div>
<label>显示 <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>
<label>,&nbsp;共&nbsp;{{total}}&nbsp;条</label> <label>,&nbsp;共&nbsp;{{total}}&nbsp;条</label>
</div> </div>
...@@ -29,7 +36,6 @@ export default { ...@@ -29,7 +36,6 @@ export default {
return { return {
roleName: '', roleName: '',
showNumber: 10, showNumber: 10,
showNumberList: [],
total: 0, total: 0,
roleData: { roleData: {
border: true, border: true,
...@@ -151,6 +157,9 @@ export default { ...@@ -151,6 +157,9 @@ export default {
}).catch(() => { }).catch(() => {
this.message('', '取消删除') this.message('', '取消删除')
}) })
},
changeShowNumber (command) {
this.showNumber = command
} }
} }
} }
......
...@@ -16,8 +16,15 @@ ...@@ -16,8 +16,15 @@
</div> </div>
<div> <div>
<label>显示 <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>
<label>,&nbsp;共&nbsp;{{total}}&nbsp;条</label> <label>,&nbsp;共&nbsp;{{total}}&nbsp;条</label>
</div> </div>
...@@ -150,6 +157,9 @@ export default { ...@@ -150,6 +157,9 @@ export default {
}).catch(() => { }).catch(() => {
this.message('', '取消删除') 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!