基于layui的select開發(fā),select控件輸入搜索內(nèi)容時(shí)如不存在則追加下拉框,如有相關(guān)需求可自行下載修改
layui.config({
base: "/lib/layui-extend-modules/"
}).extend({ insertSelect: "InsertSelects/js/InsertSelect" })
.use(['jquery', 'form', 'layer', 'table', 'laydate', 'element','insertSelect'], function () {
var $ = layui.$,
form = layui.form,
table = layui.table,
laydate = layui.laydate,
insertSelect = layui.insertSelect;
insertSelect.render({ elem: '#reportState', data: ['報(bào)告已創(chuàng)建', '報(bào)告無效','報(bào)告待修改','報(bào)告待審核','報(bào)告待簽發(fā)','報(bào)告已完成'] });
});
該擴(kuò)展組件由第三方用戶主動(dòng)投遞,并由其自身進(jìn)行維護(hù),本站僅做收集。