fix 可输入控制条件

This commit is contained in:
YuanFeng 2024-11-21 23:34:26 +08:00
parent 1d495c6e35
commit 3920a5415d
2 changed files with 8 additions and 2 deletions

View File

@ -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];

View File

@ -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];