Skip to content
This repository was archived by the owner on Apr 7, 2021. It is now read-only.

Commit 9b227f2

Browse files
committed
fix
1 parent c9c864b commit 9b227f2

File tree

1 file changed

+16
-21
lines changed

1 file changed

+16
-21
lines changed

src/components/blocks/Navbar.vue

Lines changed: 16 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -24,39 +24,34 @@
2424
/>
2525
<el-button
2626
icon="el-icon-delete"
27-
v-bind:disabled="!isAnyItemSelected"
28-
v-on:click="showModal('Delete')"
29-
v-bind:title="lang.btn.delete"
27+
:disabled="!isAnyItemSelected"
28+
:title="lang.btn.delete"
29+
@click="showModal('Delete')"
3030
/>
3131
</el-button-group>
3232

3333
<el-button-group>
3434
<el-button
3535
icon="el-icon-document-copy"
36-
v-bind:disabled="!isAnyItemSelected"
37-
v-bind:title="lang.btn.copy"
38-
v-on:click="toClipboard('copy')"
36+
:disabled="!isAnyItemSelected"
37+
:title="lang.btn.copy"
38+
@click="toClipboard('copy')"
3939
/>
4040
<el-button
4141
icon="el-icon-scissors"
42-
v-bind:disabled="!isAnyItemSelected"
43-
v-bind:title="lang.btn.cut"
44-
v-on:click="toClipboard('cut')"
45-
/>
46-
<el-button
47-
icon="el-icon-files"
48-
v-bind:disabled="!clipboardType"
49-
v-bind:title="lang.btn.paste"
50-
v-on:click="paste"
42+
:disabled="!isAnyItemSelected"
43+
:title="lang.btn.cut"
44+
@click="toClipboard('cut')"
5145
/>
46+
<el-button icon="el-icon-files" :disabled="!clipboardType" :title="lang.btn.paste" @click="paste" />
5247
</el-button-group>
5348

5449
<el-button-group>
5550
<el-button
5651
:type="hiddenFiles ? 'default' : 'info'"
5752
icon="el-icon-view"
58-
v-bind:title="lang.btn.hidden"
59-
v-on:click="toggleHidden"
53+
:title="lang.btn.hidden"
54+
@click="toggleHidden"
6055
/>
6156
</el-button-group>
6257

@@ -70,17 +65,17 @@
7065
<el-button-group>
7166
<el-button
7267
:type="viewType === 'table' ? 'default' : 'info'"
73-
v-on:click="selectView('table')"
74-
v-bind:title="lang.btn.table"
68+
:title="lang.btn.table"
69+
@click="selectView('table')"
7570
>
7671
<i class="fas" v-bind:class="[viewType === 'table' ? 'fa-th-list' : 'fa-th']" />
7772
</el-button>
7873

7974
<el-button
8075
icon="el-icon-full-screen"
8176
:type="fullScreen ? 'default' : 'primary'"
82-
v-bind:title="lang.btn.fullScreen"
83-
v-on:click="screenToggle"
77+
:title="lang.btn.fullScreen"
78+
@click="screenToggle"
8479
/>
8580
</el-button-group>
8681

0 commit comments

Comments
 (0)