From 17950a3254f2367dea76f978c6e862341ce50306 Mon Sep 17 00:00:00 2001 From: RuoYi <yzz_ivy@163.com> Date: 星期一, 25 四月 2022 17:50:08 +0800 Subject: [PATCH] 代码生成预览支持复制内容 --- src/views/tool/gen/index.vue | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/src/views/tool/gen/index.vue b/src/views/tool/gen/index.vue index d37e0bb..8487547 100644 --- a/src/views/tool/gen/index.vue +++ b/src/views/tool/gen/index.vue @@ -163,6 +163,7 @@ :name="key.substring(key.lastIndexOf('/')+1,key.indexOf('.vm'))" :key="key" > + <el-link :underline="false" icon="DocumentCopy" v-copyText="value" v-copyText:callback="copyTextSuccess" style="float:right"> 澶嶅埗</el-link> <pre>{{ value }}</pre> </el-tab-pane> </el-tabs> @@ -274,6 +275,10 @@ preview.value.activeName = "domain.java"; }); } +/** 澶嶅埗浠g爜鎴愬姛 */ +function copyTextSuccess() { + proxy.$modal.msgSuccess("澶嶅埗鎴愬姛"); +} // 澶氶�夋閫変腑鏁版嵁 function handleSelectionChange(selection) { ids.value = selection.map(item => item.tableId); -- Gitblit v1.9.3