eldropdown.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  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.text}}:</td>
  14. <td class="editTableValue"><input type="text" name="text" value="text{$.text}" class="editTableInput"/></td>
  15. </tr>
  16. </table>
  17. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  18. <!-- <tr>-->
  19. <!-- <td class="editTableTitle">{{$.lp.disabled}}:</td>-->
  20. <!-- <td class="editTableValue">-->
  21. <!-- <input type="radio" name="disabled" value="true" text{($.disabled)?'checked':''}/>{{$.lp.yes}}-->
  22. <!-- <input type="radio" name="disabled" value="false" text{(!$.disabled)?'checked':''}/>{{$.lp.no}}-->
  23. <!-- </td>-->
  24. <!-- </tr>-->
  25. <tr>
  26. <td class="editTableTitle">{{$.lp.el_placement}}:</td>
  27. <td class="editTableValue">
  28. <input type="radio" name="placement" value="top" text{($.placement==='top')?'checked':''}/>{{$.lp.placementValue[0]}}
  29. <input type="radio" name="placement" value="top-start" text{($.placement==='top-start')?'checked':''}/>{{$.lp.placementValue[1]}}
  30. <input type="radio" name="placement" value="top-end" text{($.placement==='top-end')?'checked':''}/>{{$.lp.placementValue[2]}}
  31. <input type="radio" name="placement" value="bottom" text{($.placement==='bottom')?'checked':''}/>{{$.lp.placementValue[3]}}
  32. <input type="radio" name="placement" value="bottom-start" text{($.placement==='bottom-start')?'checked':''}/>{{$.lp.placementValue[4]}}
  33. <input type="radio" name="placement" value="bottom-end" text{(!$.placement || $.placement==='bottom-end')?'checked':''}/>{{$.lp.placementValue[5]}}
  34. </td>
  35. </tr>
  36. <tr>
  37. <td class="editTableTitle">{{$.lp.trigger}}:</td>
  38. <td class="editTableValue">
  39. <input type="radio" name="trigger" value="hover" text{(!$.trigger || $.trigger==='hover')?'checked':''}
  40. onclick="if (this.checked){ $('text{$.pid}hoverTable').setStyle('display', '');}"
  41. />{{$.lp.triggerValue[0]}}
  42. <input type="radio" name="trigger" value="click" text{($.trigger==='click')?'checked':''}
  43. onclick="if (this.checked){ $('text{$.pid}hoverTable').setStyle('display', 'none');}"
  44. />{{$.lp.triggerValue[1]}}
  45. </td>
  46. </tr>
  47. <tr>
  48. <td class="editTableTitle">{{$.lp.hideOnClick}}:</td>
  49. <td class="editTableValue">
  50. <input type="radio" name="hideOnClick" value="true" text{($.hideOnClick)?'checked':''}/>{{$.lp.yes}}
  51. <input type="radio" name="hideOnClick" value="false" text{(!$.hideOnClick)?'checked':''}/>{{$.lp.no}}
  52. </td>
  53. </tr>
  54. <tr>
  55. <td class="editTableTitle">{{$.lp.size}}:</td>
  56. <td class="editTableValue">
  57. <input type="radio" name="size" value="default" text{(!$.size || $.size==='default')?'checked':''}/>default
  58. <input type="radio" name="size" value="large" text{($.size==='large')?'checked':''}/>large
  59. <input type="radio" name="size" value="small" text{($.size==='small')?'checked':''}/>small
  60. <input type="radio" name="size" value="mini" text{($.size==='mini')?'checked':''}/>mini
  61. </td>
  62. </tr>
  63. <tr>
  64. <td class="editTableTitle">{{$.lp.showButton}}:</td>
  65. <td class="editTableValue">
  66. <input type="radio" name="showButton" value="true" text{($.showButton)?'checked':''}
  67. onclick="if (this.checked){ $('text{$.pid}showButtonTable').setStyle('display', '');}"
  68. />{{$.lp.yes}}
  69. <input type="radio" name="showButton" value="false" text{(!$.showButton)?'checked':''}
  70. onclick="if (this.checked){ $('text{$.pid}showButtonTable').setStyle('display', 'none');}"
  71. />{{$.lp.no}}
  72. </td>
  73. </tr>
  74. </table>
  75. <table id="text{$.pid}hoverTable" border="0" cellpadding="5" cellspacing="0" class="editTable" style="display: text{($.trigger==='click')?'none':''};">
  76. <tr>
  77. <td class="editTableTitle">{{$.lp.showTimeout}}:</td>
  78. <td class="editTableValue"><input type="number" name="showTimeout" value="text{$.showTimeout}" class="editTableInput"/></td>
  79. </tr>
  80. <tr>
  81. <td class="editTableTitle">{{$.lp.hideTimeout}}:</td>
  82. <td class="editTableValue"><input type="number" name="hideTimeout" value="text{$.hideTimeout}" class="editTableInput"/></td>
  83. </tr>
  84. </table>
  85. <table id="text{$.pid}showButtonTable" border="0" cellpadding="5" cellspacing="0" class="editTable" style="display: text{($.showButton)?'':'none'};">
  86. <tr>
  87. <td class="editTableTitle">{{$.lp.splitButton}}:</td>
  88. <td class="editTableValue">
  89. <input type="radio" name="splitButton" value="true" text{($.splitButton)?'checked':''} />{{$.lp.yes}}
  90. <input type="radio" name="splitButton" value="false" text{(!$.splitButton)?'checked':''} />{{$.lp.no}}
  91. </td>
  92. </tr>
  93. <tr>
  94. <td class="editTableTitle">{{$.lp.splitButtonType}}:</td>
  95. <td class="editTableValue">
  96. <input type="radio" name="buttonType" value="primary" text{(!$.buttonType || $.buttonType==='primary')?'checked':''}/>primary
  97. <input type="radio" name="buttonType" value="success" text{($.buttonType==='success')?'checked':''}/>success
  98. <input type="radio" name="buttonType" value="warning" text{($.buttonType==='warning')?'checked':''}/>warning
  99. <input type="radio" name="buttonType" value="danger" text{($.buttonType==='danger')?'checked':''}/>danger
  100. <input type="radio" name="buttonType" value="info" text{($.buttonType==='info')?'checked':''}/>info
  101. <input type="radio" name="buttonType" value="text" text{($.buttonType==='text')?'checked':''}/>text
  102. </td>
  103. </tr>
  104. </table>
  105. <!-- <div onclick="var node = this.getNext(); node.setStyle('display', ((node.getStyle('display')!='none') ? 'none': 'block'))" style="cursor: pointer; height:24px; text-align: center; line-height: 24px; background-color: #EEE; border-top: 1px solid #999;font-weight:bold;">{{$.lp.prefixIcon}}</div>-->
  106. <!-- <div style="display: text{($.prefixIcon)?'block':'none'}" class="MWFElIcon" name="prefixIcon"></div>-->
  107. <!-- <div onclick="var node = this.getNext(); node.setStyle('display', ((node.getStyle('display')!='none') ? 'none': 'block'))" style="cursor: pointer; height:24px; text-align: center; line-height: 24px; background-color: #EEE; border-top: 1px solid #999;font-weight:bold;">{{$.lp.suffixIcon}}</div>-->
  108. <!-- <div style="display: text{($.suffixIcon)?'block':'none'}" class="MWFElIcon" name="suffixIcon"></div>-->
  109. <div class="MWFMaplist" name="elStyles" title="{{$.lp.style}}"></div>
  110. <div class="MWFMaplist" name="elProperties" title="{{$.lp.attribute}}"></div>
  111. <!-- <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">-->
  112. <!-- <tr>-->
  113. <!-- <td class="editTableTitle">{{$.lp.compute}}:</td>-->
  114. <!-- <td class="editTableValue">-->
  115. <!-- <input type="radio" name="compute" value="create" text{(!$.compute || $.compute=='create')?'checked':''}/>{{$.lp.create}}-->
  116. <!-- <input type="radio" name="compute" value="save" text{($.compute=='save')?'checked':''}/>{{$.lp.save}}-->
  117. <!-- <input type="radio" name="compute" value="show" text{($.compute=='show')?'checked':''}/>{{$.lp.show}}-->
  118. <!-- </td>-->
  119. <!-- </tr>-->
  120. <!-- </table>-->
  121. <!-- <div class="MWFScriptArea" name="defaultValue" title="{{$.lp.defaultValue}} (S)"></div>-->
  122. <!-- <div class="MWFValidation" name="validationConfig"></div>-->
  123. <!-- <div class="MWFScriptArea" name="validation" title="{{$.lp.verificationScript}} (S)"></div>-->
  124. </div>
  125. <div title="{{$.lp.menuItem}}" class="MWFTab">
  126. <table>
  127. <tr>
  128. <td class="editTableTitle"></td>
  129. <td class="editTableValue">
  130. <input type="radio" name="dataType" value="json" text{($.dataType!=='script')?'checked':''}
  131. onclick="if (this.checked){
  132. $('text{$.pid}dataJson').setStyle('display', '');
  133. $('text{$.pid}dataScript').setStyle('display', 'none');
  134. }"
  135. />{{$.lp.data}}
  136. <input type="radio" name="dataType" value="script" text{($.dataType==='script')?'checked':''}
  137. onclick="if (this.checked){
  138. $('text{$.pid}dataJson').setStyle('display', 'none');
  139. $('text{$.pid}dataScript').setStyle('display', '');
  140. }"
  141. />{{$.lp.script}}
  142. </td>
  143. </tr>
  144. </table>
  145. <div id="text{$.pid}dataJson" class="MWFElTDropdownData" name="dataJson" style="display: text{($.dataType=='script')?'none':''}"></div>
  146. <div id="text{$.pid}dataScript" style="display: text{($.dataType=='script')?'':'none'}">
  147. <div style="padding: 5px;">脚本返回选项数组,格式如下:<br/>return [{ <br/>
  148. "label" : "", //显示的文本, string<br/>
  149. &nbsp;&nbsp;"command" : "", //指令,菜单项的点击事件(command)可以接收到,string/number/object <br/>
  150. &nbsp;&nbsp;"disabled" : false, //是否禁用, boolean<br/>
  151. &nbsp;&nbsp;"divided" : false, //是否显示分割线,boolean<br/>
  152. &nbsp;&nbsp;"icon" : "" // 图标类名, string<br/>
  153. }, ...]; </div>
  154. <div class="MWFScriptArea" name="dataScript"></div>
  155. </div>
  156. </div>
  157. <div title="Vue" class="MWFTab">
  158. <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>
  159. <div style="display: text{($.vueData && $.vueData.code) ? 'block': 'none'}" class="MWFScriptArea" name="vueData" title="Vue Data (S)"></div>
  160. <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>
  161. <div div style="display: text{($.vueMethods && $.vueMethods.code) ? 'block': 'none'}" class="MWFScriptArea" name="vueMethods" title="Vue Methods (S)"></div>
  162. <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>
  163. <div div style="display: text{($.vueCss && $.vueCss.code) ? 'block': 'none'}" class="MWFCssArea" name="vueCss" title="Vue Css (S)"></div>
  164. <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>
  165. <div style="display: text{($.vueSlot) ? 'block' : 'none'}">
  166. <div class="MWFHtmlEditorArea" name="vueSlot" title="Input Slot (HTML)"></div>
  167. </div>
  168. </div>
  169. <div title="{{$.lp.event}}" class="MWFTab">
  170. <div class="MWFEventsArea" name="events"></div>
  171. </div>
  172. <div title="HTML" class="MWFTab">
  173. <div class="MWFHTMLArea" style="width:100%; height:400px; border:0px;font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
  174. </div>
  175. <div title="JSON" class="MWFTab">
  176. <div class="MWFJSONArea" style="font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
  177. </div>
  178. </div>