This commit is contained in:
maplemei 2020-02-10 15:06:38 +08:00
parent 10e4c4743a
commit 308e0b64e1
2 changed files with 30 additions and 30 deletions

2
dist/static/2.js vendored

File diff suppressed because one or more lines are too long

View File

@ -31,35 +31,6 @@ cascader: {
<script>
layui.form.render();
['strict'].forEach(function(key){
layui.form.on('checkbox('+key+')', function(data){
var config = {};
config[key] = data.elem.checked;
demo1.update({
cascader: config
})
});
})
layui.slider.render({
elem: '#slideTest1',
min: 50,
max: 300,
showstep: true,
input: true,
tips: true,
value: 100,
change: function(value){
demo1.update({
cascader: {
indent: value
}
})
}
});
var demo1 = xmSelect.render({
el: '#demo1',
autoRow: true,
@ -88,6 +59,35 @@ var demo1 = xmSelect.render({
]
}
})
layui.form.render();
['strict'].forEach(function(key){
layui.form.on('checkbox('+key+')', function(data){
var config = {};
config[key] = data.elem.checked;
demo1.update({
cascader: config
})
});
})
layui.slider.render({
elem: '#slideTest1',
min: 50,
max: 300,
showstep: true,
input: true,
tips: true,
value: 100,
change: function(value){
demo1.update({
cascader: {
indent: value
}
})
}
});
</script>
```
:::