|
|
@ -32,7 +32,7 @@ |
|
|
|
</v-contextmenu> |
|
|
|
</v-contextmenu> |
|
|
|
<el-tabs v-model="activeName" type="card" closable @tab-remove="removeTab"> |
|
|
|
<el-tabs v-model="activeName" type="card" closable @tab-remove="removeTab"> |
|
|
|
<el-tab-pane :name="key" v-for="(item,key) in openList" :key="key"> |
|
|
|
<el-tab-pane :name="key" v-for="(item,key) in openList" :key="key"> |
|
|
|
<span slot="label"> |
|
|
|
<span slot="label" class="icon-size"> |
|
|
|
{{item.title}} |
|
|
|
{{item.title}} |
|
|
|
<el-tooltip :content="item.hasCollect?$t('read.tip.cancel_collect'):$t('read.tip.collect')"> |
|
|
|
<el-tooltip :content="item.hasCollect?$t('read.tip.cancel_collect'):$t('read.tip.collect')"> |
|
|
|
<i @click="star($event,item)" :class="'el-icon-star-'+(item.hasCollect?'on':'off')"></i> |
|
|
|
<i @click="star($event,item)" :class="'el-icon-star-'+(item.hasCollect?'on':'off')"></i> |
|
|
@ -237,7 +237,7 @@ |
|
|
|
//导出笔记 |
|
|
|
//导出笔记 |
|
|
|
download(item) { |
|
|
|
download(item) { |
|
|
|
|
|
|
|
|
|
|
|
console.info(item) |
|
|
|
console.info('笔记内容:\n'+JSON.stringify(item,null,2)) |
|
|
|
let ele = document.createElement('a') |
|
|
|
let ele = document.createElement('a') |
|
|
|
//设置下载文件名 |
|
|
|
//设置下载文件名 |
|
|
|
ele.download = `${this.$t('note.table.note_title')}.txt` |
|
|
|
ele.download = `${this.$t('note.table.note_title')}.txt` |
|
|
@ -764,4 +764,8 @@ ${this.$t('note.table.note_content')}:${item.content}`]) |
|
|
|
vertical-align: text-top; |
|
|
|
vertical-align: text-top; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.icon-size { |
|
|
|
|
|
|
|
font-size: 28px; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
</style> |
|
|
|
</style> |
|
|
|