From e620459e833a82103c5f7ddbdc0a954fa361f85c Mon Sep 17 00:00:00 2001 From: hancong03 <121371790@qq.com> Date: Thu, 31 Oct 2013 18:46:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0chart=E7=9A=84=E8=BE=93?= =?UTF-8?q?=E5=87=BA=E8=BF=87=E6=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _src/plugins/charts.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/_src/plugins/charts.js b/_src/plugins/charts.js index 2dae77a2..1be0266c 100644 --- a/_src/plugins/charts.js +++ b/_src/plugins/charts.js @@ -58,6 +58,26 @@ UE.plugin.register('charts', function (){ } } + }, + inputRule:function(root){ + utils.each(root.getNodesByTagName('table'),function( tableNode ){ + + if ( tableNode.getAttr("data-chart") !== undefined ) { + tableNode.setAttr("style"); + } + + }) + + }, + outputRule:function(root){ + utils.each(root.getNodesByTagName('table'),function( tableNode ){ + + if ( tableNode.getAttr("data-chart") !== undefined ) { + tableNode.setAttr("style", "display: none;"); + } + + }) + } } -- GitLab