基于layui的select开发,select控件输入搜索内容时如不存在则追加下拉框,如有相关需求可自行下载修改
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: ['报告已创建', '报告无效','报告待修改','报告待审核','报告待签发','报告已完成'] });
});
该扩展组件由第三方用户主动投递,并由其自身进行维护,本站仅做收集。