当前位置: 首页 > news >正文

度假区网站建设方案网站建设公司专业公司排名

度假区网站建设方案,网站建设公司专业公司排名,电脑微信怎么进入公众号,泰安seo网络公司antv/x6 自定义html节点 效果图定义一个连接桩公共方法注册图形节点创建html节点动态更新节点内容 效果图 定义一个连接桩公共方法 const ports {groups: {top: {position: top,attrs: {circle: {r: 4,magnet: true,stroke: #cf1322,strokeWidth: 1,fill: #fff,style: {visib… antv/x6 自定义html节点 效果图定义一个连接桩公共方法注册图形节点创建html节点动态更新节点内容 效果图 定义一个连接桩公共方法 const ports {groups: {top: {position: top,attrs: {circle: {r: 4,magnet: true,stroke: #cf1322,strokeWidth: 1,fill: #fff,style: {visibility: visible,},},},},right: {position: right,attrs: {circle: {r: 4,magnet: true,stroke: #389e0d,strokeWidth: 1,fill: #fff,style: {visibility: visible,},},},},bottom: {position: bottom,attrs: {circle: {r: 4,magnet: true,stroke: #389e0d,strokeWidth: 1,fill: #fff,style: {visibility: visible,},},},},left: {position: left,attrs: {circle: {r: 4,magnet: true,stroke: #cf1322,strokeWidth: 1,fill: #fff,style: {visibility: visible,},},},},},items: [{group: top,},{group: right,},{group: bottom,},{group: left,},], }注册图形节点 Shape.HTML.register({shape: html,width: 70,height: 36,effect: [data],html(cell) {const { label, props } cell.getData()const div document.createElement(div)div.style.width 70const titleDiv document.createElement(div)titleDiv.style.width 70pxtitleDiv.style.height 36pxtitleDiv.style.background #eb2f96titleDiv.style.color whitetitleDiv.style.fontSize 14pxtitleDiv.style.textAlign centertitleDiv.style.lineHeight 36pxtitleDiv.style.boxSizing border-boxtitleDiv.style.fontSize 12pxtitleDiv.style.borderRadius 6pxtitleDiv.style.whiteSpace nowraptitleDiv.style.overflow hiddentitleDiv.style.textOverflow ellipsistitleDiv.setAttribute(title, label)titleDiv.textContent labeldiv.append(titleDiv)return div},ports: { ...ports,items: [{group: left},{group: right}]},})effect 是当前节点的 prop 数组当 effect 包含的 prop 有变动时会重新执行 html 方法返回新的 dom更新节点内容ports 是此节点的连接桩此节点只用到了左右两个连接桩 创建html节点 const r2 this.graph.createNode({shape: html,data: {props:{desc: },label: 自定义html,}, })shape 要和注册节点里的名称一致 动态更新节点内容 let cell this.graph.getCellById(id) cell.prop(data/label, 文字) cell.prop(data/props/voice, desc)id 是要更改内容的cell的id
http://www.w-s-a.com/news/915961/

相关文章:

  • 比较好的国外网站建设公司wordpress短代码可视化
  • 做新的网站网站个性化
  • 吉安做网站的英文网站 字体大小
  • 外贸网站服务商wordpress主题handsome
  • 云主机多个网站如何优化网站图片
  • 松江移动网站建设成都app开发制作公司
  • 锦州做网站的公司百度seo搜索营销新视角
  • 做画册找什么网站海南建设工程股份有限公司网站
  • 网站机房建设有助于网站备案
  • 北辰苏州网站建设抖音代运营投诉平台
  • 安徽住房与城乡建设部网站如何新建站点
  • 企业网站开发的感想网站开发公司所需投入资源
  • 如何拿网站后台账号wordpress 电影下载站源码
  • 公司网站建设方案书安卓应用市场免费下载安装
  • phpmysql网站设计建设好一个网站需要
  • 自己做的网站能被别人看到吗idea怎么做网页
  • 燕莎网站建设互联网排名前十的公司2021
  • 微软云怎么做网站微商城和小程序区别
  • 哈尔滨建站的系统网站到首页排名
  • 运动网站开发的需求分析南通市住房和城乡建设局网站
  • 佘山做网站谷歌云做网站
  • 免费发布信息网站大全666做p2p网站费用
  • 北京 网站建设咨询顾问公司网络公司有几家
  • 设计类网站如何用ps做网站首页
  • 品牌网站建设的关键事项设计网有哪些
  • 网站没收录徐州建设工程审图中心网站
  • 网站建设记账做什么科目erp系统有哪些软件
  • 泰拳图片做网站用哪里有做空包网站的
  • 查外链网站重庆做网站微信的公司
  • 有没有外包活的网站如何做网站快捷键的元素