mirror of
https://github.com/ZiuChen/ClipboardManager.git
synced 2025-06-08 14:24:03 +08:00
feat: 集成超级分词
跳转功能
This commit is contained in:
parent
09468449fe
commit
7e71c7845c
@ -37,11 +37,16 @@
|
|||||||
<template v-for="{ id, title, icon } of operation">
|
<template v-for="{ id, title, icon } of operation">
|
||||||
<div
|
<div
|
||||||
v-if="
|
v-if="
|
||||||
(id !== 'collect' && id !== 'view' && id !== 'open-folder' && id !== 'un-collect') ||
|
(id !== 'collect' &&
|
||||||
|
id !== 'view' &&
|
||||||
|
id !== 'open-folder' &&
|
||||||
|
id !== 'un-collect' &&
|
||||||
|
id !== 'word-break') ||
|
||||||
(id === 'collect' && item.collect !== true) ||
|
(id === 'collect' && item.collect !== true) ||
|
||||||
(id === 'view' && item.type !== 'image') ||
|
(id === 'view' && item.type !== 'image') ||
|
||||||
(id === 'open-folder' && item.type === 'file') ||
|
(id === 'open-folder' && item.type === 'file') ||
|
||||||
(id === 'un-collect' && item.collect === true)
|
(id === 'un-collect' && item.collect === true) ||
|
||||||
|
(id === 'word-break' && item.type === 'text' && item.data.length <= 500)
|
||||||
"
|
"
|
||||||
:class="id"
|
:class="id"
|
||||||
:title="title"
|
:title="title"
|
||||||
@ -177,6 +182,7 @@ const operation = [
|
|||||||
{ id: 'view', title: '查看全部', icon: '💬' },
|
{ id: 'view', title: '查看全部', icon: '💬' },
|
||||||
{ id: 'open-folder', title: '打开文件夹', icon: '📁' },
|
{ id: 'open-folder', title: '打开文件夹', icon: '📁' },
|
||||||
{ id: 'collect', title: '收藏', icon: '⭐' },
|
{ id: 'collect', title: '收藏', icon: '⭐' },
|
||||||
|
{ id: 'word-break', title: '分词', icon: '💣' },
|
||||||
{ id: 'un-collect', title: '取消收藏', icon: '📤' },
|
{ id: 'un-collect', title: '取消收藏', icon: '📤' },
|
||||||
{ id: 'remove', title: '删除', icon: '❌' }
|
{ id: 'remove', title: '删除', icon: '❌' }
|
||||||
]
|
]
|
||||||
@ -197,6 +203,9 @@ const handleOperateClick = ({ id, item }) => {
|
|||||||
item.collect = true
|
item.collect = true
|
||||||
window.db.updateDataBaseLocal(db)
|
window.db.updateDataBaseLocal(db)
|
||||||
break
|
break
|
||||||
|
case 'word-break':
|
||||||
|
utools.redirect('超级分词', item.data)
|
||||||
|
break
|
||||||
case 'un-collect':
|
case 'un-collect':
|
||||||
item.collect = undefined
|
item.collect = undefined
|
||||||
window.db.updateDataBaseLocal(db)
|
window.db.updateDataBaseLocal(db)
|
||||||
|
@ -55,7 +55,7 @@
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
word-break: break-all;
|
word-break: break-all;
|
||||||
max-height: 120px;
|
max-height: 120px;
|
||||||
max-width: 500px;
|
max-width: 490px;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
white-space: pre-wrap;
|
white-space: pre-wrap;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user