Skip to content

Commit

Permalink
chore: 文案样式调整
Browse files Browse the repository at this point in the history
  • Loading branch information
xream committed Feb 6, 2024
1 parent 904d0e4 commit adcd775
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sub-store-front-end",
"version": "2.14.132",
"version": "2.14.133",
"private": true,
"scripts": {
"dev": "vite --host",
Expand Down
2 changes: 1 addition & 1 deletion src/locales/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ export default {
},
pasteAction: {
label: 'Import Data From Clipboard',
placeholder: 'Failed to read clipboard automatically, please paste data manually.'
placeholder: 'Failed to read the clipboard automatically, please paste the data manually in this text box.'
},
},
nodeActions: {
Expand Down
2 changes: 1 addition & 1 deletion src/locales/zh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ export default {
},
pasteAction: {
label: '从剪贴板导入',
placeholder: '自动读取剪贴板失败, 请手动粘贴数据'
placeholder: '自动读取剪贴板失败, 请在此文本框内手动粘贴数据'
},
},
nodeActions: {
Expand Down
9 changes: 8 additions & 1 deletion src/views/editor/ActionBlock.vue
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@
text-align="center"
/>
<div class="horizontal-button-container">
<button @click="cancelPaste" class="custom-button">
{{ $t(`editorPage.subConfig.actions.addAction.cancel`) }}
</button>
<button @click="paste" class="custom-button">
{{ $t(`editorPage.subConfig.actions.pasteAction.label`) }}
</button>
Expand Down Expand Up @@ -164,6 +167,10 @@ const copyItem = async element => {
Toast.text(`已复制数据 可用于导入`);
};
const cancelPaste = async () => {
showPasteboard.value = false
pasteboard.value = ''
}
const paste = async () => {
try {
let text = ''
Expand Down Expand Up @@ -289,7 +296,7 @@ const pop = (type: string, tipsDes: string) => {
border: solid 1px var(--divider-color);
position: fixed;
width: 80vw;
height: 20vw;
height: 40vw;
left: calc(50vw - 40vw);
top: calc(50vh - 20vw);
}
Expand Down

0 comments on commit adcd775

Please sign in to comment.