Commit 838c895e4a83e8d11dd8128149af65acf6905b5e

Authored by ww
1 parent 1b18ed49

fix: fix real time component lack date

... ... @@ -36,7 +36,7 @@
36 36 return this.createEdgeTemplateFromCells([ cell ], 60, 40, '线条');
37 37 })),
38 38 this.addEntry('real time', mxUtils.bind(this, function () {
39   - const template = `<div class="thingKit-component__real-time"><div class="real-time__date"></div> <div style="font-size:30px" class="real-time__now">时间</div></div>`
  39 + const template = `<div class="thingKit-component__real-time"><div class="real-time__date">%currentDate%</div> <div style="font-size:30px" class="real-time__now">HH:mm:ss</div></div>`
40 40 const cell = new mxCell(template, new mxGeometry(0, 0, 180, 60), 'text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;overflow=hidden;');
41 41 cell.vertex = true;
42 42 this.setCellAttributes(cell, {
... ...