Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
apaas-ui
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
gzga-jzapi
apaas-ui
Commits
21be4138
Commit
21be4138
authored
Aug 11, 2020
by
张俊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更改编辑yaml
parent
7074f5f1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
src/components/general/codes.vue
src/components/general/codes.vue
+3
-2
src/pages/workbench/yygl/app_debugger.vue
src/pages/workbench/yygl/app_debugger.vue
+2
-2
No files found.
src/components/general/codes.vue
View file @
21be4138
...
@@ -17,7 +17,7 @@ import ace from "ace-builds";
...
@@ -17,7 +17,7 @@ import ace from "ace-builds";
import
"
ace-builds/webpack-resolver
"
;
// 在 webpack 环境中使用必须要导入
import
"
ace-builds/webpack-resolver
"
;
// 在 webpack 环境中使用必须要导入
import
"
ace-builds/src-noconflict/mode-json
"
;
// 默认设置的语言模式
import
"
ace-builds/src-noconflict/mode-json
"
;
// 默认设置的语言模式
export
default
{
export
default
{
props
:
[
"
url
"
,
"
datas
"
],
props
:
[
"
url
"
,
"
datas
"
,
'
readOnly
'
],
data
()
{
data
()
{
return
{
return
{
aceEditor
:
null
,
aceEditor
:
null
,
...
@@ -34,7 +34,8 @@ export default {
...
@@ -34,7 +34,8 @@ export default {
mode
:
this
.
acemodePath
,
mode
:
this
.
acemodePath
,
wrap
:
this
.
wrap
,
wrap
:
this
.
wrap
,
tabSize
:
4
,
tabSize
:
4
,
highlightActiveLine
:
false
highlightActiveLine
:
false
,
readOnly
:
this
.
readOnly
?
this
.
readOnly
:
false
});
});
if
(
this
.
url
)
{
if
(
this
.
url
)
{
this
.
getValue
();
this
.
getValue
();
...
...
src/pages/workbench/yygl/app_debugger.vue
View file @
21be4138
...
@@ -53,8 +53,8 @@
...
@@ -53,8 +53,8 @@
<div
class=
"tips"
>
<div
class=
"tips"
>
<i
class=
"el-icon-warning-outline"
></i><span>
此操作相当于:kubectl apply -f
{{
'
<
'
+
'
spec.yaml
'
+
'
>
'
}}
</span>
<i
class=
"el-icon-warning-outline"
></i><span>
此操作相当于:kubectl apply -f
{{
'
<
'
+
'
spec.yaml
'
+
'
>
'
}}
</span>
</div>
</div>
<v-apaas-code
:datas=
"code_arr"
v-show=
"now_yaml==1"
></v-apaas-code>
<v-apaas-code
:datas=
"code_arr"
:readOnly=
'true'
v-show=
"now_yaml==1"
></v-apaas-code>
<v-apaas-code
:datas=
"yaml_arr"
v-show=
"now_yaml==0"
></v-apaas-code>
<v-apaas-code
:datas=
"yaml_arr"
:readOnly=
'true'
v-show=
"now_yaml==0"
></v-apaas-code>
</div>
</div>
</div>
</div>
...
...
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