From 2d3225dbcfd809f37208ccd7a52a42989e9beefc Mon Sep 17 00:00:00 2001 From: Lykin <137850705+tiny-craft@users.noreply.github.com> Date: Sat, 2 Dec 2023 00:58:15 +0800 Subject: [PATCH] perf: add copy value button for complex type #23 --- .../components/common/EditableTableColumn.vue | 8 +++--- .../content_value/ContentToolbar.vue | 2 +- .../content_value/ContentValueHash.vue | 15 +++++++++-- .../content_value/ContentValueList.vue | 15 +++++++++-- .../content_value/ContentValueSet.vue | 15 +++++++++-- .../content_value/ContentValueStream.vue | 27 +++++++++---------- .../content_value/ContentValueString.vue | 4 +-- .../content_value/ContentValueZSet.vue | 15 +++++++++-- .../src/components/sidebar/BrowserTree.vue | 2 +- frontend/src/langs/en-us.json | 4 +-- frontend/src/langs/pt-br.json | 4 +-- frontend/src/langs/zh-cn.json | 4 +-- 12 files changed, 79 insertions(+), 36 deletions(-) diff --git a/frontend/src/components/common/EditableTableColumn.vue b/frontend/src/components/common/EditableTableColumn.vue index db2b0e2..5e266c2 100644 --- a/frontend/src/components/common/EditableTableColumn.vue +++ b/frontend/src/components/common/EditableTableColumn.vue @@ -4,6 +4,7 @@ import Delete from '@/components/icons/Delete.vue' import Edit from '@/components/icons/Edit.vue' import Close from '@/components/icons/Close.vue' import Save from '@/components/icons/Save.vue' +import Copy from '@/components/icons/Copy.vue' const props = defineProps({ bindKey: String, @@ -11,7 +12,7 @@ const props = defineProps({ readonly: Boolean, }) -const emit = defineEmits(['edit', 'delete', 'save', 'cancel']) +const emit = defineEmits(['edit', 'delete', 'copy', 'save', 'cancel'])