fix 可输入控制条件
This commit is contained in:
parent
1d495c6e35
commit
3920a5415d
|
|
@ -55,7 +55,7 @@
|
|||
|
||||
<el-col :span="6">
|
||||
<div style="width: 120px;display: flex">
|
||||
<el-checkbox :disabled="that.configInfo.shape"
|
||||
<el-checkbox :disabled="disableInput"
|
||||
v-model="that.configInfo.canInput">
|
||||
<span>允许输入值</span>
|
||||
</el-checkbox>
|
||||
|
|
@ -227,6 +227,9 @@ const delLast = () => {
|
|||
that.configInfo.pointList.pop()
|
||||
useMessage().success(`成功删除1个位置信息`)
|
||||
}
|
||||
const disableInput = computed(()=>{
|
||||
return that.configInfo.shape === ShapeType.vueShapeImage
|
||||
})
|
||||
const appendNode = () => {
|
||||
const arr = that.configInfo.pointList;
|
||||
const info1 = arr[arr.length - 1];
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@
|
|||
|
||||
<el-col :span="6">
|
||||
<div style="width: 120px;display: flex">
|
||||
<el-checkbox :disabled="that.configInfo.shape"
|
||||
<el-checkbox :disabled="disableInput"
|
||||
v-model="that.configInfo.canInput">
|
||||
<span>允许输入值</span>
|
||||
</el-checkbox>
|
||||
|
|
@ -227,6 +227,9 @@ const delLast = () => {
|
|||
that.configInfo.pointList.pop()
|
||||
useMessage().success(`成功删除1个位置信息`)
|
||||
}
|
||||
const disableInput = computed(()=>{
|
||||
return that.configInfo.shape === ShapeType.vueShapeImage
|
||||
})
|
||||
const appendNode = () => {
|
||||
const arr = that.configInfo.pointList;
|
||||
const info1 = arr[arr.length - 1];
|
||||
|
|
|
|||
Loading…
Reference in New Issue