diff --git a/business-css/frontend/src/components/antvx6/connectingwire.vue b/business-css/frontend/src/components/antvx6/connectingwire.vue index 6c02f71..28e8bcb 100644 --- a/business-css/frontend/src/components/antvx6/connectingwire.vue +++ b/business-css/frontend/src/components/antvx6/connectingwire.vue @@ -32,7 +32,7 @@ const props = defineProps({ default: {} }, }) -const connectingwireInfo:any = ref(props.connectingwireInfo); +const connectingwireInfo:any = ref({}); const connectingwireList:any = ref([ { label: "实线", @@ -125,10 +125,11 @@ function connectingwireInput(e:any) { connectingwireInfo.value.strokeDasharray = e } onMounted(() => { + connectingwireInfo.value = JSON.parse(JSON.stringify(props.connectingwireInfo)) if(connectingwireInfo.value.label === '自定义'){ customizeInfo.value.strokeDasharray = connectingwireInfo.value.strokeDasharray } - + customizeInfo.value.color = connectingwireInfo.value.color }); @@ -173,7 +174,7 @@ onMounted(() => {
颜色
- + 取 消 diff --git a/business-css/frontend/src/components/antvx6/index.vue b/business-css/frontend/src/components/antvx6/index.vue index 6190310..c5422ca 100644 --- a/business-css/frontend/src/components/antvx6/index.vue +++ b/business-css/frontend/src/components/antvx6/index.vue @@ -1018,12 +1018,13 @@ const connectingwireInfo:any = ref({ label: "实线", strokeDasharray: "0", arrow: "1", - strokeWidth: 1, + strokeWidth: 2, color: "#a2b1c3", }) const lineLine:any = ref( "#a2b1c3") function closeConnectingwireModel(e:any){ // 关闭连接线弹窗 if(e != false){ + connectingwireInfo.value = e lineLine.value = e.color let lineStyle:any = { strokeDasharray: 0,