修改连接线
This commit is contained in:
parent
1ee052abb9
commit
688a44ad2d
@ -32,7 +32,7 @@ const props = defineProps({
|
|||||||
default: {}
|
default: {}
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
const connectingwireInfo:any = ref(props.connectingwireInfo);
|
const connectingwireInfo:any = ref({});
|
||||||
const connectingwireList:any = ref([
|
const connectingwireList:any = ref([
|
||||||
{
|
{
|
||||||
label: "实线",
|
label: "实线",
|
||||||
@ -125,10 +125,11 @@ function connectingwireInput(e:any) {
|
|||||||
connectingwireInfo.value.strokeDasharray = e
|
connectingwireInfo.value.strokeDasharray = e
|
||||||
}
|
}
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
connectingwireInfo.value = JSON.parse(JSON.stringify(props.connectingwireInfo))
|
||||||
if(connectingwireInfo.value.label === '自定义'){
|
if(connectingwireInfo.value.label === '自定义'){
|
||||||
customizeInfo.value.strokeDasharray = connectingwireInfo.value.strokeDasharray
|
customizeInfo.value.strokeDasharray = connectingwireInfo.value.strokeDasharray
|
||||||
}
|
}
|
||||||
|
customizeInfo.value.color = connectingwireInfo.value.color
|
||||||
});
|
});
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
@ -173,7 +174,7 @@ onMounted(() => {
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div style="margin-top: 20px;margin-bottom: 10px;">颜色</div>
|
<div style="margin-top: 20px;margin-bottom: 10px;">颜色</div>
|
||||||
<el-color-picker-panel v-model="customizeInfo.color" />
|
<el-color-picker-panel v-model="customizeInfo.color"/>
|
||||||
<span class="dialog-footer"
|
<span class="dialog-footer"
|
||||||
style="display: flex;display: -webkit-flex; justify-content: flex-end;-webkit-justify-content: flex-end;">
|
style="display: flex;display: -webkit-flex; justify-content: flex-end;-webkit-justify-content: flex-end;">
|
||||||
<el-button @click="handleClose">取 消</el-button>
|
<el-button @click="handleClose">取 消</el-button>
|
||||||
|
|||||||
@ -1018,12 +1018,13 @@ const connectingwireInfo:any = ref({
|
|||||||
label: "实线",
|
label: "实线",
|
||||||
strokeDasharray: "0",
|
strokeDasharray: "0",
|
||||||
arrow: "1",
|
arrow: "1",
|
||||||
strokeWidth: 1,
|
strokeWidth: 2,
|
||||||
color: "#a2b1c3",
|
color: "#a2b1c3",
|
||||||
})
|
})
|
||||||
const lineLine:any = ref( "#a2b1c3")
|
const lineLine:any = ref( "#a2b1c3")
|
||||||
function closeConnectingwireModel(e:any){ // 关闭连接线弹窗
|
function closeConnectingwireModel(e:any){ // 关闭连接线弹窗
|
||||||
if(e != false){
|
if(e != false){
|
||||||
|
connectingwireInfo.value = e
|
||||||
lineLine.value = e.color
|
lineLine.value = e.color
|
||||||
let lineStyle:any = {
|
let lineStyle:any = {
|
||||||
strokeDasharray: 0,
|
strokeDasharray: 0,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user