方法入口
var $select= $().$b("select",config) //返回组件的jQuery对象,即下面模板的jQuery对象
组件模板
<select id="<%= id %>" class="<%= className==''?'blo_input':className %>" style="<%= style %>">
<% for(var i=0; i < optionArray.length; i++){ %>
<% if( optionArray[i].value == defaultValue ){ %>
<option value="<%=optionArray[i].value%>" selected><%=optionArray[i].name%></option>
<% }else{ %>
<option value="<%=optionArray[i].value%>" ><%=optionArray[i].name%></option>
<% } %>
<% } %>
</select>
配置属性(通用属性参看2.3节)
属性名 | 类型 | 默认值 | 说明 |
---|---|---|---|
localOption | Array | [] | 复选框选项,静态数据源,固定不变 |
dataOption | Array | [] | 复选框选项,动态数据源 |
isVerify | Boolean | false | 组件是否需要验证 |
tplUrl | String | template/select.html | 模板路径 |
暂无 | ||
说明 | ||
入参 | ||
返回 |