存在时会创建, 选中后长久保留, value为Date.now()生成 上海深圳 查看代码 下拉方向 方式一: -select-="auto|up|down", 自动, 上, 下, 默认自动模式 方式二: 使用formSelect.config配置 //配置某一个多选的 layui.formSelects.('select1', {direction: 'up'}); //配置所有多选的
isAdd = !othis.hasClass('xm-select-this');// 判断操作是要选中还是取消选中 if (data[id].config.radio) { // 单选情况下,移除所有的下拉选中项效果 othis.parents('.xm-select-linkage').find('.xm-select-this').removeClass('xm-select-this'); ...