| | |
| | | |
| | | js = dealJs(js, tag); |
| | | js = dealJsAddComponentCode(js, tag); |
| | | js = "<script type=\"text/javascript\">//<![CDATA[ \n" + js + "//]]>\n</script>"; |
| | | js = "<script type=\"text/javascript\" "+DIV_PROPERTY_COMPONENT+"=\""+componentName+"\">//<![CDATA[ \n" + js + "//]]>\n</script>"; |
| | | htmlModel.add(modelFactory.createText(js)); |
| | | |
| | | } |
| | | |
| | | logger.debug("解析完成组件{},{}", componentName, new Date().getTime()); |
| | |
| | | return js; |
| | | } |
| | | |
| | | String[] tmpType = tmpProTypes.contains("\r\n") |
| | | ? tmpProTypes.split("\r\n") |
| | | tmpProTypes = tmpProTypes.contains("\r")? tmpProTypes.replace("\r", "") : tmpProTypes; |
| | | |
| | | String[] tmpType = tmpProTypes.contains("\n") |
| | | ? tmpProTypes.split("\n") |
| | | : tmpProTypes.split(","); |
| | | StringBuffer propsJs = new StringBuffer("\nvar $props = {};\n"); |
| | | for (String type : tmpType) { |