Skip to content

Commit

Permalink
fix: view table
Browse files Browse the repository at this point in the history
  • Loading branch information
sendya committed Jan 30, 2019
1 parent 4e618a6 commit 2a54be9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/views/list/TableInnerEditList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
</div>

<div class="table-operator">
<a-button type="primary" icon="plus" @click="() => $router.push({name: 'anime-add'})">新建</a-button>
<a-button type="primary" icon="plus">新建</a-button>
<a-dropdown v-if="selectedRowKeys.length > 0">
<a-menu slot="overlay">
<a-menu-item key="1"><a-icon type="delete" />删除</a-menu-item>
Expand Down
4 changes: 2 additions & 2 deletions src/views/list/TableList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@
</div>

<div class="table-operator">
<a-button type="primary" icon="plus" v-if="$auth('table.add')">新建</a-button>
<a-dropdown v-if="$auth('table.edit') && selectedRowKeys.length > 0">
<a-button type="primary" icon="plus" v-action:add>新建</a-button>
<a-dropdown v-action:edit && selectedRowKeys.length > 0">
<a-menu slot="overlay">
<a-menu-item key="1"><a-icon type="delete" />删除</a-menu-item>
<!-- lock | unlock -->
Expand Down

0 comments on commit 2a54be9

Please sign in to comment.