制度添加条款形状

This commit is contained in:
lihongyu 2022-08-24 17:54:40 +08:00
parent e131207950
commit 62a69aa7da

View File

@ -54,7 +54,8 @@ Schema.addShape({name:"regulation", title:"制度",text:"制度", category:"cont
/*Item*/ /*Item*/
/***Schema.addShape({name:"it11em111111", title:"条款",text:"条款", category:"control_policy", lineStyle:{lineWidth: 1},props:{w:100, h:47}, textBlock:{x:"w*0.1", y:"2", w:"(w-Math.min(h/2,w/6))*0.8", h:"h-2"},textBlockFinal:{x:"w/2-60", y:"h", w:"120", h:"30"}, anchors:[ Schema.addShape({name:"item1", title:"条款",text:"条款", category:"control_policy", lineStyle:{lineWidth: 1},
props:{w:220, h:50}, textBlock:{x:"w*0.1", y:"2", w:"(w-Math.min(h/2,w/6))*0.8", h:"h-2"},textBlockFinal:{x:"w/2-60", y:"h", w:"120", h:"30"}, anchors:[
{x:"w*0.5", y:"0"}, {x:"w*0.5", y:"0"},
{x:"w-Math.min(h/2,w/6)", y:"h*0.5"}, {x:"w-Math.min(h/2,w/6)", y:"h*0.5"},
{x:"w*0.5", y:"h"}, {x:"w*0.5", y:"h"},
@ -69,10 +70,10 @@ Schema.addShape({name:"regulation", title:"制度",text:"制度", category:"cont
{action:"line", x:"0", y:"0"}, {action:"line", x:"0", y:"0"},
{action:"close"} {action:"close"}
]} ]}
]});*/ ]});
/***胶囊型Terminator*/Schema.addShape({name:"item", title:"条款", text:"条款", category:"control_policy",lineStyle:{lineWidth: 1}, /***胶囊型Terminator*/Schema.addShape({name:"item2", title:"条款", text:"条款", category:"control_policy",lineStyle:{lineWidth: 1},
props:{w:220, h:50},textBlock:{x:"Math.min(w,h)/3", y:"2", w:"w-(Math.min(w,h)/3)*2", h:"h-2"}, path:[ props:{w:220, h:50},textBlock:{x:"Math.min(w,h)/3", y:"2", w:"w-(Math.min(w,h)/3)*2", h:"h-2"}, path:[
{actions:[ {actions:[
{action:"move", x:"Math.min(w,h)/3+5", y:"0"}, {action:"move", x:"Math.min(w,h)/3+5", y:"0"},