eltree.html 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279
  1. <div style="background-color: #FFF; overflow: hidden">
  2. <div title="{{$.lp.base}}" class="MWFTab">
  3. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  4. <tr>
  5. <td class="editTableTitle">{{$.lp.id}}:</td>
  6. <td class="editTableValue"><input type="text" name="id" value="text{$.id}" class="editTableInput"/></td>
  7. </tr>
  8. <tr>
  9. <td class="editTableTitle">{{$.lp.name}}:</td>
  10. <td class="editTableValue"><input type="text" name="name" value="text{$.name}" class="editTableInput"/></td>
  11. </tr>
  12. </table>
  13. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  14. <tr>
  15. <td class="editTableTitle">{{$.lp.indent}}:</td>
  16. <td class="editTableValue">
  17. <input type="number" name="indent" value="text{$.indent}" class="editTableInputNoWidth"/>px
  18. </td>
  19. </tr>
  20. <tr>
  21. <td class="editTableTitle">{{$.lp.emptyText}}:</td>
  22. <td class="editTableValue">
  23. <input type="text" name="emptyText" value="text{$.emptyText}" class="editTableInput"/>
  24. </td>
  25. </tr>
  26. <tr>
  27. <td class="editTableTitle">{{$.lp.highlightCurrent}}:</td>
  28. <td class="editTableValue">
  29. <input type="radio" name="highlightCurrent" value="true" text{($.highlightCurrent)?'checked':''}/>{{$.lp.yes}}
  30. <input type="radio" name="highlightCurrent" value="false" text{(!$.highlightCurrent)?'checked':''}/>{{$.lp.no}}
  31. </td>
  32. </tr>
  33. <tr>
  34. <td class="editTableTitle">{{$.lp.nodeKey}}:</td>
  35. <td class="editTableValue">
  36. {{$.lp.nodeKeyNote}}
  37. <input type="text" name="nodeKey" value="text{$.nodeKey}" class="editTableInput"/>
  38. </td>
  39. </tr>
  40. </table>
  41. <div>
  42. <div class="MWFFormulaArea" name="currentNodeKey" title="{{$.lp.currentNodeKey}}"></div>
  43. </div>
  44. <div style="height:24px; text-align: center; line-height: 24px; background-color: #EEE; border-top: 1px solid #999;">{{$.lp.expand}}</div>
  45. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  46. <tr>
  47. <td class="editTableTitle">{{$.lp.defaultExpandAll}}:</td>
  48. <td class="editTableValue">
  49. <input type="radio" name="defaultExpandAll" value="true" text{($.defaultExpandAll)?'checked':''}
  50. onclick="if (this.checked){ $('text{$.pid}expandDetail').setStyle('display', 'none')}"
  51. />{{$.lp.yes}}
  52. <input type="radio" name="defaultExpandAll" value="false" text{(!$.defaultExpandAll)?'checked':''}
  53. onclick="if (this.checked){ $('text{$.pid}expandDetail').setStyle('display', '')}"
  54. />{{$.lp.no}}
  55. </td>
  56. </tr>
  57. <tr>
  58. <td class="editTableTitle">{{$.lp.expandOnClickNode}}:</td>
  59. <td class="editTableValue">
  60. <input type="radio" name="expandOnClickNode" value="true" text{($.expandOnClickNode)?'checked':''}/>{{$.lp.clickNode}}
  61. <input type="radio" name="expandOnClickNode" value="false" text{(!$.expandOnClickNode)?'checked':''}/>{{$.lp.clickArrow}}
  62. </td>
  63. </tr>
  64. <tr>
  65. <td class="editTableTitle">{{$.lp.renderAfterExpand}}:</td>
  66. <td class="editTableValue">
  67. <input type="radio" name="renderAfterExpand" value="true" text{($.renderAfterExpand)?'checked':''}/>{{$.lp.yes}}
  68. <input type="radio" name="renderAfterExpand" value="false" text{(!$.renderAfterExpand)?'checked':''}/>{{$.lp.no}}
  69. </td>
  70. </tr>
  71. <tr>
  72. <td class="editTableTitle">{{$.lp.accordion}}:</td>
  73. <td class="editTableValue">
  74. <input type="radio" name="accordion" value="true" text{($.accordion)?'checked':''}/>{{$.lp.yes}}
  75. <input type="radio" name="accordion" value="false" text{(!$.accordion)?'checked':''}/>{{$.lp.no}}
  76. </td>
  77. </tr>
  78. </table>
  79. <div id="text{$.pid}expandDetail" style="display: text{($.defaultExpandAll)?'none':''}; ">
  80. <div>{{$.lp.defaultExpandedkeysNote}}</div>
  81. <div class="MWFFormulaArea" name="defaultExpandedKeys" title="{{$.lp.defaultExpandedkeys}}"></div>
  82. </div>
  83. <div style="height:24px; text-align: center; line-height: 24px; background-color: #EEE; border-top: 1px solid #999;">{{$.lp.select}}</div>
  84. <table>
  85. <tr>
  86. <td class="editTableTitle">{{$.lp.showCheckbox}}:</td>
  87. <td class="editTableValue">
  88. <input type="radio" name="showCheckbox" value="true" text{($.showCheckbox)?'checked':''}
  89. onclick="if (this.checked){ $('text{$.pid}checkboxDetail').setStyle('display', '')}"
  90. />{{$.lp.yes}}
  91. <input type="radio" name="showCheckbox" value="false" text{(!$.showCheckbox)?'checked':''}
  92. onclick="if (this.checked){ $('text{$.pid}checkboxDetail').setStyle('display', 'none')}"
  93. />{{$.lp.no}}
  94. </td>
  95. </tr>
  96. </table>
  97. <div id="text{$.pid}checkboxDetail" style="display: text{($.showCheckbox)?'':'none'};">
  98. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  99. <tr>
  100. <td class="editTableTitle">{{$.lp.checkOnClickNode}}:</td>
  101. <td class="editTableValue">
  102. <input type="radio" name="checkOnClickNode" value="true" text{($.checkOnClickNode)?'checked':''}/>{{$.lp.clickNode}}
  103. <input type="radio" name="checkOnClickNode" value="false" text{(!$.checkOnClickNode)?'checked':''}/>{{$.lp.clickCheckbox}}
  104. </td>
  105. </tr>
  106. <tr>
  107. <td class="editTableTitle">{{$.lp.checkStrictly}}:</td>
  108. <td class="editTableValue">
  109. <input type="radio" name="checkStrictly" value="true" text{($.checkStrictly)?'checked':''}/>{{$.lp.yes}}
  110. <input type="radio" name="checkStrictly" value="false" text{(!$.checkStrictly)?'checked':''}/>{{$.lp.no}}
  111. </td>
  112. </tr>
  113. </table>
  114. <div>
  115. <div>{{$.lp.defaultCheckedKeysNote}}</div>
  116. <div class="MWFFormulaArea" name="defaultCheckedKeys" title="{{$.lp.defaultCheckedkeys}}"></div>
  117. </div>
  118. </div>
  119. <!-- <div style="height:24px; text-align: center; line-height: 24px; background-color: #EEE; border-top: 1px solid #999;">{{$.lp.lazy}}</div>-->
  120. <!-- <table>-->
  121. <!-- <tr>-->
  122. <!-- <td class="editTableTitle">{{$.lp.lazy}}:</td>-->
  123. <!-- <td class="editTableValue">-->
  124. <!-- <input type="radio" name="lazy" value="true" text{($.lazy)?'checked':''}-->
  125. <!-- onclick="if (this.checked){ $('text{$.pid}lazyDetail').setStyle('display', '')}"-->
  126. <!-- />{{$.lp.yes}}-->
  127. <!-- <input type="radio" name="lazy" value="false" text{(!$.lazy)?'checked':''}-->
  128. <!-- onclick="if (this.checked){ $('text{$.pid}lazyDetail').setStyle('display', 'none')}"-->
  129. <!-- />{{$.lp.no}}-->
  130. <!-- </td>-->
  131. <!-- </tr>-->
  132. <!-- </table>-->
  133. <!-- <table id="text{$.pid}lazyDetail" style="display: text{($.lazy)?'':'none'};" width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">-->
  134. <!-- <tr>-->
  135. <!-- <td colspan="2">-->
  136. <!-- <div>{{$.lp.loadFunNote}}</div>-->
  137. <!-- <div class="MWFFormulaArea" name="loadFun" title="{{$.lp.loadFun}}"></div>-->
  138. <!-- </td>-->
  139. <!-- </tr>-->
  140. <!-- </table>-->
  141. <div style="height:24px; text-align: center; line-height: 24px; background-color: #EEE; border-top: 1px solid #999;">{{$.lp.dragdrop}}</div>
  142. <table>
  143. <tr>
  144. <td class="editTableTitle">{{$.lp.draggable}}:</td>
  145. <td class="editTableValue">
  146. <input type="radio" name="draggable" value="true" text{($.draggable)?'checked':''}
  147. onclick="if (this.checked){ $('text{$.pid}dragDetail').setStyle('display', '')}"
  148. />{{$.lp.yes}}
  149. <input type="radio" name="draggable" value="false" text{(!$.draggable)?'checked':''}
  150. onclick="if (this.checked){ $('text{$.pid}dragDetail').setStyle('display', 'none')}"
  151. />{{$.lp.no}}
  152. </td>
  153. </tr>
  154. </table>
  155. <div id="text{$.pid}dragDetail" style="display: text{($.draggable)?'':'none'};" >
  156. <div>
  157. <div>{{$.lp.allowDragNote}}</div>
  158. <div class="MWFFormulaArea" name="allowDrag" title="{{$.lp.allowDrag}}"></div>
  159. </div>
  160. <div>
  161. <div>{{$.lp.allowDropNote}}</div>
  162. <div class="MWFFormulaArea" name="allowDrop" title="{{$.lp.allowDrop}}"></div>
  163. </div>
  164. </div>
  165. <div class="MWFMaplist" name="elStyles" title="{{$.lp.style}}"></div>
  166. <div class="MWFMaplist" name="elProperties" title="{{$.lp.attribute}}"></div>
  167. <!-- <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">-->
  168. <!-- <tr>-->
  169. <!-- <td class="editTableTitle">{{$.lp.compute}}:</td>-->
  170. <!-- <td class="editTableValue">-->
  171. <!-- <input type="radio" name="compute" value="create" text{(!$.compute || $.compute=='create')?'checked':''}/>{{$.lp.create}}-->
  172. <!-- <input type="radio" name="compute" value="save" text{($.compute=='save')?'checked':''}/>{{$.lp.save}}-->
  173. <!-- <input type="radio" name="compute" value="show" text{($.compute=='show')?'checked':''}/>{{$.lp.show}}-->
  174. <!-- </td>-->
  175. <!-- </tr>-->
  176. <!-- </table>-->
  177. <!-- <div class="MWFScriptArea" name="defaultValue" title="{{$.lp.defaultValue}} (S)"></div>-->
  178. <!-- <div class="MWFValidation" name="validationConfig"></div>-->
  179. <!-- <div class="MWFScriptArea" name="validation" title="{{$.lp.verificationScript}} (S)"></div>-->
  180. </div>
  181. <div title="{{$.lp.data}}" class="MWFTab">
  182. <table>
  183. <tr>
  184. <td class="editTableTitle"></td>
  185. <td class="editTableValue">
  186. <input type="radio" name="dataType" value="json" text{($.dataType!=='script')?'checked':''}
  187. onclick="if (this.checked){
  188. $('text{$.pid}dataJson').setStyle('display', '');
  189. $('text{$.pid}dataScript').setStyle('display', 'none');
  190. }"
  191. />{{$.lp.data}}
  192. <input type="radio" name="dataType" value="script" text{($.dataType==='script')?'checked':''}
  193. onclick="if (this.checked){
  194. $('text{$.pid}dataJson').setStyle('display', 'none');
  195. $('text{$.pid}dataScript').setStyle('display', '');
  196. }"
  197. />{{$.lp.script}}
  198. </td>
  199. </tr>
  200. </table>
  201. <div id="text{$.pid}dataJson" class="MWFElTreeData" name="dataJson" style="display: text{($.dataType=='script')?'none':''}"></div>
  202. <div id="text{$.pid}dataScript" style="display: text{($.dataType=='script')?'':'none'}">
  203. <div style="padding: 5px;">{{$.lp.dataScriptNote}}:<br/>return [{ <br/>
  204. &nbsp;&nbsp;"label" : "", // {{$.lp.labelDescription}} <br/>
  205. &nbsp;&nbsp;"children" : [], // {{$.lp.childrenDescription}}<br/>
  206. &nbsp;&nbsp;"disabled" : false, // {{$.lp.disabledDescription}}<br/>
  207. &nbsp;&nbsp;"isLeaf" : false, // {{$.lp.isLeafDescription}}<br/>
  208. &nbsp;&nbsp;"id"/{{$.lp.settedKey}} : "" // {{$.lp.idDescription}}<br/>
  209. &nbsp;&nbsp;... // {{$.lp.customDescription}}<br/>
  210. }]; </div>
  211. <div class="MWFScriptArea" name="dataScript"></div>
  212. </div>
  213. </div>
  214. <div title="Vue" class="MWFTab">
  215. <div onclick="var node = this.getNext(); node.setStyle('display', ((node.getStyle('display')!='none') ? 'none': 'block'))" style="cursor: pointer; height:24px; padding-left: 5px; line-height: 24px; background-color: #EEE; border-bottom: 1px solid #999;font-weight:bold;">Vue Data</div>
  216. <div style="display: text{($.vueData && $.vueData.code) ? 'block': 'none'}" class="MWFScriptArea" name="vueData" title="Vue Data (S)"></div>
  217. <div onclick="var node = this.getNext(); node.setStyle('display', ((node.getStyle('display')!='none') ? 'none': 'block'))" style="cursor: pointer; height:24px; padding-left: 5px; line-height: 24px; background-color: #EEE; border-bottom: 1px solid #999;font-weight:bold;">Vue Method</div>
  218. <div div style="display: text{($.vueMethods && $.vueMethods.code) ? 'block': 'none'}" class="MWFScriptArea" name="vueMethods" title="Vue Methods (S)"></div>
  219. <div onclick="var node = this.getNext(); node.setStyle('display', ((node.getStyle('display')!='none') ? 'none': 'block'))" style="cursor: pointer; height:24px; padding-left: 5px; line-height: 24px; background-color: #EEE; border-bottom: 1px solid #999;font-weight:bold;">Vue CSS</div>
  220. <div div style="display: text{($.vueCss && $.vueCss.code) ? 'block': 'none'}" class="MWFCssArea" name="vueCss" title="Vue Css (S)"></div>
  221. <div onclick="var node = this.getNext(); node.setStyle('display', ((node.getStyle('display')!='none') ? 'none': 'block'))" style="cursor: pointer; height:24px; padding-left: 5px; line-height: 24px; background-color: #EEE; border-bottom: 1px solid #999;font-weight:bold;">Vue Slots</div>
  222. <div style="display: text{($.vueSlot) ? 'block' : 'none'}">
  223. <div class="MWFHtmlEditorArea" name="vueSlot" title="Input Slot (HTML)"></div>
  224. </div>
  225. </div>
  226. <!-- <div title="{{$.lp.section}}" class="MWFTab">-->
  227. <!-- <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">-->
  228. <!-- <tr>-->
  229. <!-- <td class="editTableTitle">{{$.lp.enableSection}}:</td>-->
  230. <!-- <td class="editTableValue">-->
  231. <!-- <input onclick="if (this.checked){ $('text{$.pid}sectionByEditArea').setStyle('display', 'block')}" type="radio" name="section" value="yes" text{($.section=='yes')?'checked':''}/>{{$.lp.yes}}-->
  232. <!-- <input onclick="if (this.checked){ $('text{$.pid}sectionByEditArea').setStyle('display', 'none')}" type="radio" name="section" value="no" text{($.section!='yes')?'checked':''}/>{{$.lp.no}}-->
  233. <!-- </td>-->
  234. <!-- </tr>-->
  235. <!-- </table>-->
  236. <!-- <div id="text{$.pid}sectionByEditArea" style="display: text{($.section=='yes')?'block':'none'};">-->
  237. <!-- <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">-->
  238. <!-- <tr>-->
  239. <!-- <td class="editTableTitle">{{$.lp.sectionBy}}:</td>-->
  240. <!-- <td class="editTableValue">-->
  241. <!-- <input class="editTableRadio" onclick="if (this.checked){ $('text{$.pid}sectionByScriptEditArea').setStyle('display', 'none');}" name="sectionBy" text{(($.sectionBy=='person') || ($.sectionBy!='unit' && $.sectionBy!='activity' && $.sectionBy!='script'))?'checked':''} type="radio" value="person"/>{{$.lp.handler}}<br/>-->
  242. <!-- <input class="editTableRadio" onclick="if (this.checked){ $('text{$.pid}sectionByScriptEditArea').setStyle('display', 'none');}" name="sectionBy" text{($.sectionBy=='unit')?'checked':''} type="radio" value="unit"/>{{$.lp.handlerUnit}}<br/>-->
  243. <!-- <input class="editTableRadio" onclick="if (this.checked){ $('text{$.pid}sectionByScriptEditArea').setStyle('display', 'none');}" name="sectionBy" text{($.sectionBy=='activity')?'checked':''} type="radio" value="activity"/>{{$.lp.activityId}}<br/>-->
  244. <!-- <input class="editTableRadio" onclick="if (this.checked){ $('text{$.pid}sectionByScriptEditArea').setStyle('display', 'none');}" name="sectionBy" text{($.sectionBy=='splitValue')?'checked':''} type="radio" value="splitValue"/>{{$.lp.splitValue}}<br/>-->
  245. <!-- <input class="editTableRadio" onclick="if (this.checked){ $('text{$.pid}sectionByScriptEditArea').setStyle('display', 'block');}" name="sectionBy" text{($.sectionBy=='script')?'checked':''} type="radio" value="script"/>{{$.lp.script}}<br/>-->
  246. <!-- </td>-->
  247. <!-- </tr>-->
  248. <!-- </table>-->
  249. <!-- <div id="text{$.pid}sectionByScriptEditArea" style="display: text{($.sectionBy=='script')?'block':'none'};">-->
  250. <!-- <div class="MWFScriptArea" name="sectionByScript" title="{{$.lp.sectionBy}} (S)"></div>-->
  251. <!-- </div>-->
  252. <!-- </div>-->
  253. <!-- </div>-->
  254. <div title="{{$.lp.event}}" class="MWFTab">
  255. <div class="MWFEventsArea" name="events"></div>
  256. </div>
  257. <div title="HTML" class="MWFTab">
  258. <div class="MWFHTMLArea" style="width:100%; height:400px; border:0px;font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
  259. </div>
  260. <div title="JSON" class="MWFTab">
  261. <div class="MWFJSONArea" style="font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
  262. </div>
  263. </div>