elcascader.html 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  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. <tr>
  13. <td class="editTableTitle">{{$.lp.description}}:</td>
  14. <td class="editTableValue"><input type="text" name="description" value="text{$.description}" class="editTableInput"/></td>
  15. </tr>
  16. <tr>
  17. <td class="editTableTitle">{{$.lp.readonly}}:</td>
  18. <td class="editTableValue">
  19. <input type="radio" name="isReadonly" value="true" text{($.isReadonly)?'checked':''}/>{{$.lp.yes}}
  20. <input type="radio" name="isReadonly" value="false" text{(!$.isReadonly)?'checked':''}/>{{$.lp.no}}
  21. </td>
  22. </tr>
  23. <tr>
  24. <td class="editTableTitle">{{$.lp.el_disabled}}:</td>
  25. <td class="editTableValue">
  26. <input type="radio" name="disabled" value="true" text{($.disabled)?'checked':''}/>{{$.lp.yes}}
  27. <input type="radio" name="disabled" value="false" text{(!$.disabled)?'checked':''}/>{{$.lp.no}}
  28. </td>
  29. </tr>
  30. </table>
  31. <div style="text-align: center; height:24px; padding-left: 5px; line-height: 24px; background-color: #EEE; border-bottom: 1px solid #ccc; border-top: 1px solid #999;font-weight:bold;">{{$.lp.options}}</div>
  32. <div style="border-bottom: 1px solid #cccccc">
  33. <div class="MWFFormulaArea" name="itemsScript" title="{{$.lp.optionScript}} (S)"></div>
  34. <div style="padding: 5px">{{$.lp.selectItemScriptInfo}}</div>
  35. </div>
  36. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  37. <tr>
  38. <td class="editTableTitle">{{$.lp.size}}:</td>
  39. <td class="editTableValue">
  40. <input type="radio" name="size" value="default" text{(!$.size || $.size==='default')?'checked':''}/>default
  41. <input type="radio" name="size" value="medium" text{($.size==='medium')?'checked':''}/>medium
  42. <input type="radio" name="size" value="small" text{($.size==='small')?'checked':''}/>small
  43. <input type="radio" name="size" value="mini" text{($.size==='mini')?'checked':''}/>mini
  44. </td>
  45. </tr>
  46. <tr>
  47. <td class="editTableTitle">{{$.lp.showAllLevels}}:</td>
  48. <td class="editTableValue">
  49. <input type="radio" name="showAllLevels" value="true" text{($.showAllLevels!==false)?'checked':''}/>{{$.lp.yes}}
  50. <input type="radio" name="showAllLevels" value="false" text{($.showAllLevels===false)?'checked':''}/>{{$.lp.no}}
  51. </td>
  52. </tr>
  53. <tr>
  54. <td class="editTableTitle">{{$.lp.clearable}}:</td>
  55. <td class="editTableValue">
  56. <input type="radio" name="clearable" value="true" text{($.clearable===true)?'checked':''}/>{{$.lp.yes}}
  57. <input type="radio" name="clearable" value="false" text{($.clearable!==true)?'checked':''}/>{{$.lp.no}}
  58. </td>
  59. </tr>
  60. <tr>
  61. <td class="editTableTitle">{{$.lp.separator}}:</td>
  62. <td class="editTableValue"><input type="text" name="separator" value="text{$.separator || '/'}" class="editTableInput"/></td>
  63. </tr>
  64. <tr>
  65. <td class="editTableTitle">{{$.lp.popperClass}}:</td>
  66. <td class="editTableValue">
  67. <input type="text" name="popperClass" value="text{$.popperClass}" class="editTableInput"/>
  68. </td>
  69. </tr>
  70. <tr>
  71. <td class="editTableTitle">{{$.lp.filterable}}:</td>
  72. <td class="editTableValue">
  73. <input type="radio" onclick="if (this.checked){ this.getParent('table').getNext().show();}" name="filterable" value="true" text{($.filterable===true)?'checked':''}/>{{$.lp.yes}}
  74. <input type="radio" onclick="if (this.checked){ this.getParent('table').getNext().hide();}" name="filterable" value="false" text{($.filterable!==true)?'checked':''}/>{{$.lp.no}}
  75. </td>
  76. </tr>
  77. </table>
  78. <div style="display: text{($.filterable===true) ? 'block' : 'none'}">
  79. <div class="MWFFormulaArea" name="filterMethod" title="{{$.lp.filterMethod}} (S)"></div>
  80. <div style="padding: 5px; border-bottom: 1px solid #666666">{{$.lp.filterMethodInfo}}</div>
  81. <div class="MWFFormulaArea" name="beforeFilter" title="{{$.lp.beforeFilter}} (S)"></div>
  82. <div style="padding: 5px; border-bottom: 1px solid #666666">{{$.lp.beforeFilterInfo}}</div>
  83. </div>
  84. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  85. <tr>
  86. <td class="editTableTitle">{{$.lp.expandTrigger}}:</td>
  87. <td class="editTableValue">
  88. <input type="radio" name="props.expandTrigger" value="click" text{($.props.expandTrigger!=='hover')?'checked':''}/>click
  89. <input type="radio" name="props.expandTrigger" value="hover" text{($.props.expandTrigger==='hover')?'checked':''}/>hover
  90. </td>
  91. </tr>
  92. <tr>
  93. <td class="editTableTitle">{{$.lp.multiple}}:</td>
  94. <td class="editTableValue">
  95. <input onclick="if (this.checked){ this.getParent('table').getNext().show();}" type="radio" name="props.multiple" value="true" text{($.props.multiple===true)?'checked':''}/>{{$.lp.yes}}
  96. <input onclick="if (this.checked){ this.getParent('table').getNext().hide();}" type="radio" name="props.multiple" value="false" text{($.props.multiple!==true)?'checked':''}/>{{$.lp.no}}
  97. </td>
  98. </tr>
  99. </table>
  100. <table style="display: text{($.props.multiple===true) ? 'block' : 'none'}" width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  101. <tr>
  102. <td class="editTableTitle">{{$.lp.collapseTags}}:</td>
  103. <td class="editTableValue">
  104. <input type="radio" name="collapseTags" value="true" text{($.collapseTags===true)?'checked':''}/>{{$.lp.yes}}
  105. <input type="radio" name="collapseTags" value="false" text{($.collapseTags!==true)?'checked':''}/>{{$.lp.no}}
  106. </td>
  107. </tr>
  108. </table>
  109. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  110. <tr>
  111. <td class="editTableTitle">{{$.lp.checkStrictly}}:</td>
  112. <td class="editTableValue">
  113. <input type="radio" name="props.checkStrictly" value="true" text{($.props.checkStrictly===true)?'checked':''}/>{{$.lp.yes}}
  114. <input type="radio" name="props.checkStrictly" value="false" text{($.props.checkStrictly!==true)?'checked':''}/>{{$.lp.no}}
  115. <div style="padding: 5px">{{$.lp.checkStrictlyInfo}}</div>
  116. </td>
  117. </tr>
  118. <tr>
  119. <td class="editTableTitle">{{$.lp.emitPath}}:</td>
  120. <td class="editTableValue">
  121. <input type="radio" name="props.emitPath" value="true" text{($.props.emitPath!==false)?'checked':''}/>{{$.lp.yes}}
  122. <input type="radio" name="props.emitPath" value="false" text{($.props.emitPath===false)?'checked':''}/>{{$.lp.no}}
  123. <div style="padding: 5px">{{$.lp.emitPathInfo}}</div>
  124. </td>
  125. </tr>
  126. <tr>
  127. <td class="editTableTitle">{{$.lp.lazy}}:</td>
  128. <td class="editTableValue">
  129. <input type="radio" onclick="if (this.checked){ this.getParent('table').getNext().show();}" name="props.lazy" value="true" text{($.props.lazy===true)?'checked':''}/>{{$.lp.yes}}
  130. <input type="radio" onclick="if (this.checked){ this.getParent('table').getNext().hide();}" name="props.lazy" value="false" text{($.props.lazy!==true)?'checked':''}/>{{$.lp.no}}
  131. </td>
  132. </tr>
  133. </table>
  134. <div style="display: text{($.props.lazy===true) ? 'block' : 'none'}">
  135. <div class="MWFFormulaArea" name="lazyLoadScript" title="{{$.lp.lazyLoadScript}} (S)"></div>
  136. <div style="padding: 5px; border-bottom: 1px solid #666666">{{$.lp.lazyLoadScriptInfo}}</div>
  137. </div>
  138. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  139. <tr>
  140. <td class="editTableTitle">{{$.lp.props_value}}:</td>
  141. <td class="editTableValue">
  142. <input type="text" name="props.value" value="text{$.props.value || 'value'}" class="editTableInput"/>
  143. </td>
  144. </tr>
  145. <tr>
  146. <td class="editTableTitle">{{$.lp.props_label}}:</td>
  147. <td class="editTableValue">
  148. <input type="text" name="props.label" value="text{$.props.label || 'label'}" class="editTableInput"/>
  149. </td>
  150. </tr>
  151. <tr>
  152. <td class="editTableTitle">{{$.lp.props_children}}:</td>
  153. <td class="editTableValue">
  154. <input type="text" name="props.children" value="text{$.props.children || 'children'}" class="editTableInput"/>
  155. </td>
  156. </tr>
  157. <tr>
  158. <td class="editTableTitle">{{$.lp.props_disabled}}:</td>
  159. <td class="editTableValue">
  160. <input type="text" name="props.disabled" value="text{$.props.disabled || 'disabled'}" class="editTableInput"/>
  161. </td>
  162. </tr>
  163. <tr>
  164. <td class="editTableTitle">{{$.lp.props_leaf}}:</td>
  165. <td class="editTableValue">
  166. <input type="text" name="props.leaf" value="text{$.props.leaf || 'leaf'}" class="editTableInput"/>
  167. </td>
  168. </tr>
  169. </table>
  170. <div class="MWFMaplist" name="elStyles" title="{{$.lp.style}}"></div>
  171. <div class="MWFMaplist" name="elProperties" title="{{$.lp.attribute}}"></div>
  172. <!-- <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">-->
  173. <!-- <tr>-->
  174. <!-- <td class="editTableTitle">{{$.lp.compute}}:</td>-->
  175. <!-- <td class="editTableValue">-->
  176. <!-- <input type="radio" name="compute" value="create" text{(!$.compute || $.compute=='create')?'checked':''}/>{{$.lp.create}}-->
  177. <!-- <input type="radio" name="compute" value="save" text{($.compute=='save')?'checked':''}/>{{$.lp.save}}-->
  178. <!-- <input type="radio" name="compute" value="show" text{($.compute=='show')?'checked':''}/>{{$.lp.show}}-->
  179. <!-- </td>-->
  180. <!-- </tr>-->
  181. <!-- </table>-->
  182. <div class="MWFScriptArea" name="defaultValue" title="{{$.lp.defaultValue}} (S)"></div>
  183. <div class="MWFValidation" name="validationConfig"></div>
  184. <div class="MWFScriptArea" name="validation" title="{{$.lp.verificationScript}} (S)"></div>
  185. </div>
  186. <div title="Vue" class="MWFTab">
  187. <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>
  188. <div style="display: text{($.vueData && $.vueData.code) ? 'block': 'none'}" class="MWFScriptArea" name="vueData" title="Vue Data (S)"></div>
  189. <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>
  190. <div div style="display: text{($.vueMethods && $.vueMethods.code) ? 'block': 'none'}" class="MWFScriptArea" name="vueMethods" title="Vue Methods (S)"></div>
  191. <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>
  192. <div div style="display: text{($.vueCss && $.vueCss.code) ? 'block': 'none'}" class="MWFCssArea" name="vueCss" title="Vue Css (S)"></div>
  193. <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>
  194. <div style="display: text{($.vueSlot) ? 'block' : 'none'}">
  195. <div class="MWFHtmlEditorArea" name="vueSlot" title="Input Slot (HTML)"></div>
  196. </div>
  197. <!-- <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;">{{$.lp.selectTemplete}}</div>-->
  198. <!-- <div style="display: text{($.customTemplete) ? 'block' : 'none'}">-->
  199. <!-- <div class="MWFHtmlEditorArea" name="customTemplete" title="{{$.lp.selectTemplete}} (HTML)"></div>-->
  200. <!-- </div>-->
  201. </div>
  202. <div title="{{$.lp.section}}" class="MWFTab">
  203. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  204. <tr>
  205. <td class="editTableTitle">{{$.lp.enableSection}}:</td>
  206. <td class="editTableValue">
  207. <input onclick="if (this.checked){
  208. $('text{$.pid}sectionByEditArea').setStyle('display', 'block');
  209. $('text{$.pid}sectionMergeArea').setStyle('display', 'none')
  210. }" type="radio" name="section" value="yes" text{($.section=='yes')?'checked':''}/>{{$.lp.yes}}
  211. <input onclick="if (this.checked){
  212. $('text{$.pid}sectionByEditArea').setStyle('display', 'none');
  213. $('text{$.pid}sectionMergeArea').setStyle('display', 'block')
  214. }" type="radio" name="section" value="no" text{($.section!='yes')?'checked':''}/>{{$.lp.no}}
  215. </td>
  216. </tr>
  217. </table>
  218. <div id="text{$.pid}sectionByEditArea" style="display: text{($.section=='yes')?'block':'none'};">
  219. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  220. <tr>
  221. <td class="editTableTitle">{{$.lp.sectionBy}}:</td>
  222. <td class="editTableValue">
  223. <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/>
  224. <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/>
  225. <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/>
  226. <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/>
  227. <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/>
  228. </td>
  229. </tr>
  230. </table>
  231. <div id="text{$.pid}sectionByScriptEditArea" style="display: text{($.sectionBy=='script')?'block':'none'};">
  232. <div class="MWFScriptArea" name="sectionByScript" title="{{$.lp.sectionBy}} (S)"></div>
  233. </div>
  234. </div>
  235. <div id="text{$.pid}sectionMergeArea" class="MWFSectionMergeArea" style="display: text{($.section=='yes')?'none':''};"></div>
  236. </div>
  237. <div title="{{$.lp.event}}" class="MWFTab">
  238. <div class="MWFEventsArea" name="events"></div>
  239. </div>
  240. <div title="HTML" class="MWFTab">
  241. <div class="MWFHTMLArea" style="width:100%; height:400px; border:0px;font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
  242. </div>
  243. <div title="JSON" class="MWFTab">
  244. <div class="MWFJSONArea" style="font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
  245. </div>
  246. </div>