|
|
|
@ -32,7 +32,7 @@ |
|
|
|
|
</v-contextmenu> |
|
|
|
|
<el-tabs v-model="activeName" type="card" closable @tab-remove="removeTab"> |
|
|
|
|
<el-tab-pane :name="key" v-for="(item,key) in openList" :key="key"> |
|
|
|
|
<span slot="label"> |
|
|
|
|
<span slot="label" class="icon-size"> |
|
|
|
|
{{item.title}} |
|
|
|
|
<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> |
|
|
|
@ -137,9 +137,9 @@ |
|
|
|
|
|
|
|
|
|
<script lang="ts"> |
|
|
|
|
|
|
|
|
|
import Vue from 'vue' |
|
|
|
|
import Vue from 'vue' |
|
|
|
|
|
|
|
|
|
export default Vue.extend({ |
|
|
|
|
export default Vue.extend({ |
|
|
|
|
name: 'read', |
|
|
|
|
layout: 'my-pre', |
|
|
|
|
data() { |
|
|
|
@ -237,7 +237,7 @@ |
|
|
|
|
//导出笔记 |
|
|
|
|
download(item) { |
|
|
|
|
|
|
|
|
|
console.info(item) |
|
|
|
|
console.info('笔记内容:\n'+JSON.stringify(item,null,2)) |
|
|
|
|
let ele = document.createElement('a') |
|
|
|
|
//设置下载文件名 |
|
|
|
|
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; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.icon-size { |
|
|
|
|
font-size: 28px; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
</style> |
|
|
|
|