Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
sts网站
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liyang
sts网站
Commits
ecfe7006
Commit
ecfe7006
authored
Dec 11, 2020
by
RuoYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码生成预览支持高亮显示
parent
9e387dc4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
+8
-2
package.json
ruoyi-ui/package.json
+1
-0
main.js
ruoyi-ui/src/main.js
+5
-1
index.vue
ruoyi-ui/src/views/tool/gen/index.vue
+2
-1
No files found.
ruoyi-ui/package.json
View file @
ecfe7006
...
...
@@ -44,6 +44,7 @@
"element-ui"
:
"2.14.1"
,
"file-saver"
:
"2.0.4"
,
"fuse.js"
:
"6.4.3"
,
"highlight.js"
:
"10.4.1"
,
"js-beautify"
:
"1.13.0"
,
"js-cookie"
:
"2.2.1"
,
"jsencrypt"
:
"3.0.0-rc.1"
,
...
...
ruoyi-ui/src/main.js
View file @
ecfe7006
...
...
@@ -18,8 +18,11 @@ import { getDicts } from "@/api/system/dict/data";
import
{
getConfigKey
}
from
"@/api/system/config"
;
import
{
parseTime
,
resetForm
,
addDateRange
,
selectDictLabel
,
selectDictLabels
,
download
,
handleTree
}
from
"@/utils/ruoyi"
;
import
Pagination
from
"@/components/Pagination"
;
//自定义表格工具扩展
//
自定义表格工具扩展
import
RightToolbar
from
"@/components/RightToolbar"
// 代码高亮插件
import
hljs
from
'highlight.js'
import
'highlight.js/styles/github-gist.css'
// 全局方法挂载
Vue
.
prototype
.
getDicts
=
getDicts
...
...
@@ -49,6 +52,7 @@ Vue.component('Pagination', Pagination)
Vue
.
component
(
'RightToolbar'
,
RightToolbar
)
Vue
.
use
(
permission
)
Vue
.
use
(
hljs
.
vuePlugin
);
/**
* If you don't want to use mock-server
...
...
ruoyi-ui/src/views/tool/gen/index.vue
View file @
ecfe7006
...
...
@@ -165,7 +165,7 @@
:name=
"key.substring(key.lastIndexOf('/')+1,key.indexOf('.vm'))"
:key=
"key"
>
<
pre>
{{ value }}
</pre
>
<
highlightjs
autodetect
:code=
"value"
/
>
</el-tab-pane>
</el-tabs>
</el-dialog>
...
...
@@ -177,6 +177,7 @@
import
{
listTable
,
previewTable
,
delTable
,
genCode
,
synchDb
}
from
"@/api/tool/gen"
;
import
importTable
from
"./importTable"
;
import
{
downLoadZip
}
from
"@/utils/zipdownload"
;
export
default
{
name
:
"Gen"
,
components
:
{
importTable
},
...
...
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