修改样式
parent
5bbe68d1f2
commit
d417a644ec
|
@ -153,6 +153,15 @@ const loadData = () => {
|
||||||
const doNodeClick = (node) => {
|
const doNodeClick = (node) => {
|
||||||
info.selNode = node?.properties?.data || {};
|
info.selNode = node?.properties?.data || {};
|
||||||
info.param = node?.properties?.data?.parameters || { inputs: [], outputs: [], process: {} }
|
info.param = node?.properties?.data?.parameters || { inputs: [], outputs: [], process: {} }
|
||||||
|
if(!info.param.inputs){
|
||||||
|
info.param.inputs=[]
|
||||||
|
}
|
||||||
|
if(!info.param.outputs){
|
||||||
|
info.param.outputs=[]
|
||||||
|
}
|
||||||
|
if(!info.param.process){
|
||||||
|
info.param.process={}
|
||||||
|
}
|
||||||
info.param.inputs.forEach((d, idx) => {
|
info.param.inputs.forEach((d, idx) => {
|
||||||
d.selected = idx == 0;
|
d.selected = idx == 0;
|
||||||
});
|
});
|
||||||
|
@ -255,7 +264,9 @@ const doOutputSelected = idx => {
|
||||||
}
|
}
|
||||||
|
|
||||||
.div-param {
|
.div-param {
|
||||||
|
flex-grow: 1;
|
||||||
.div-navs {
|
.div-navs {
|
||||||
|
margin-left: 4px;
|
||||||
.sp-nav {
|
.sp-nav {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
line-height: 24px;
|
line-height: 24px;
|
||||||
|
|
|
@ -519,7 +519,9 @@ onMounted(() => {
|
||||||
}
|
}
|
||||||
|
|
||||||
.div-param {
|
.div-param {
|
||||||
|
flex-grow: 1;
|
||||||
.div-navs {
|
.div-navs {
|
||||||
|
margin-left: 4px;
|
||||||
.sp-nav {
|
.sp-nav {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
line-height: 24px;
|
line-height: 24px;
|
||||||
|
|
|
@ -60,6 +60,15 @@ const dragNode = (it, t) => {
|
||||||
}
|
}
|
||||||
OperApi.findOne(it.operator_id).then(res => {
|
OperApi.findOne(it.operator_id).then(res => {
|
||||||
it.parameters = res.data.data.parameters;
|
it.parameters = res.data.data.parameters;
|
||||||
|
if(!it.parameters.inputs){
|
||||||
|
it.parameters.inputs=[]
|
||||||
|
}
|
||||||
|
if(!it.parameters.outputs){
|
||||||
|
it.parameters.outputs=[]
|
||||||
|
}
|
||||||
|
if(!it.parameters.process){
|
||||||
|
it.parameters.process={}
|
||||||
|
}
|
||||||
props.lf.dnd.startDrag({
|
props.lf.dnd.startDrag({
|
||||||
type: 'ai-node',
|
type: 'ai-node',
|
||||||
text: it.text,
|
text: it.text,
|
||||||
|
|
Loading…
Reference in New Issue