Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
finance-manage
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
finance-oa
finance-manage
Commits
44ce6774
Commit
44ce6774
authored
Dec 09, 2021
by
RuoYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码生成预览支持复制内容
parent
b911d7f7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
ruoyi-ui/src/views/tool/gen/index.vue
ruoyi-ui/src/views/tool/gen/index.vue
+6
-1
No files found.
ruoyi-ui/src/views/tool/gen/index.vue
View file @
44ce6774
...
@@ -169,6 +169,7 @@
...
@@ -169,6 +169,7 @@
:name=
"key.substring(key.lastIndexOf('/')+1,key.indexOf('.vm'))"
:name=
"key.substring(key.lastIndexOf('/')+1,key.indexOf('.vm'))"
:key=
"key"
:key=
"key"
>
>
<el-link
:underline=
"false"
icon=
"el-icon-document-copy"
v-clipboard:copy=
"value"
v-clipboard:success=
"clipboardSuccess"
style=
"float:right"
>
复制
</el-link>
<pre><code
class=
"hljs"
v-html=
"highlightedCode(value, key)"
></code></pre>
<pre><code
class=
"hljs"
v-html=
"highlightedCode(value, key)"
></code></pre>
</el-tab-pane>
</el-tab-pane>
</el-tabs>
</el-tabs>
...
@@ -306,6 +307,10 @@ export default {
...
@@ -306,6 +307,10 @@ export default {
const
result
=
hljs
.
highlight
(
language
,
code
||
""
,
true
);
const
result
=
hljs
.
highlight
(
language
,
code
||
""
,
true
);
return
result
.
value
||
'
'
;
return
result
.
value
||
'
'
;
},
},
/** 复制代码成功 */
clipboardSuccess
(){
this
.
$modal
.
msgSuccess
(
"
复制成功
"
);
},
// 多选框选中数据
// 多选框选中数据
handleSelectionChange
(
selection
)
{
handleSelectionChange
(
selection
)
{
this
.
ids
=
selection
.
map
(
item
=>
item
.
tableId
);
this
.
ids
=
selection
.
map
(
item
=>
item
.
tableId
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment