Skip to content

Commit

Permalink
feat: 优化写法
Browse files Browse the repository at this point in the history
  • Loading branch information
dx123456 committed Jul 15, 2024
1 parent 90cfdf0 commit 24815e4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/components/layer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,10 @@
<Col span="4">
<Button
long
v-if="item.isLock"
@click="doLock(item)"
icon="md-lock"
:icon="item.isLock ? 'md-lock' : 'md-unlock'"
type="text"
@click="doLock(item)"
></Button>
<Button long v-else @click="doLock(item)" icon="md-unlock" type="text"></Button>
</Col>
</Row>
</div>
Expand Down

0 comments on commit 24815e4

Please sign in to comment.