fix(接口定义): 不允许拖拽

This commit is contained in:
fit2-zhao 2021-01-12 18:02:23 +08:00
parent 14a54cabcc
commit 20c9d9b50c
1 changed files with 13 additions and 1 deletions

View File

@ -3,7 +3,7 @@
@copy="copyRow" @copy="copyRow"
@remove="remove" @remove="remove"
:data="jsr223ProcessorData" :data="jsr223ProcessorData"
:draggable="true" :draggable="draggable"
color="#B8741A" color="#B8741A"
background-color="#F9F1EA" background-color="#F9F1EA"
:title="title"> :title="title">
@ -39,6 +39,7 @@
import MsInstructionsIcon from "../../../common/components/MsInstructionsIcon"; import MsInstructionsIcon from "../../../common/components/MsInstructionsIcon";
import MsDropdown from "../../../common/components/MsDropdown"; import MsDropdown from "../../../common/components/MsDropdown";
import ApiBaseComponent from "./common/ApiBaseComponent"; import ApiBaseComponent from "./common/ApiBaseComponent";
export default { export default {
name: "MsJsr233Processor", name: "MsJsr233Processor",
components: {ApiBaseComponent, MsDropdown, MsInstructionsIcon, MsCodeEdit}, components: {ApiBaseComponent, MsDropdown, MsInstructionsIcon, MsCodeEdit},
@ -92,6 +93,10 @@
this.jsr223ProcessorData = this.jsr223Processor; this.jsr223ProcessorData = this.jsr223Processor;
}, },
props: { props: {
draggable: {
type: Boolean,
default: false,
},
isReadOnly: { isReadOnly: {
type: Boolean, type: Boolean,
default: default:
@ -147,26 +152,33 @@
.ace_editor { .ace_editor {
border-radius: 5px; border-radius: 5px;
} }
.script-content { .script-content {
height: calc(100vh - 570px); height: calc(100vh - 570px);
} }
.script-index { .script-index {
padding: 0 20px; padding: 0 20px;
} }
.template-title { .template-title {
margin-bottom: 5px; margin-bottom: 5px;
font-weight: bold; font-weight: bold;
font-size: 15px; font-size: 15px;
} }
.document-url { .document-url {
margin-top: 10px; margin-top: 10px;
} }
.instructions-icon { .instructions-icon {
margin-left: 5px; margin-left: 5px;
} }
.ms-dropdown { .ms-dropdown {
margin-bottom: 20px; margin-bottom: 20px;
} }
/deep/ .el-divider { /deep/ .el-divider {
margin-bottom: 10px; margin-bottom: 10px;
} }