1. [新增]物理分页配置
2. [新增]自定义搜索模式(远程搜索)
3. [新增]下拉选高度配置
4. [修改]调整布局为flex布局
5. [修改]展开下拉选时, 自动聚焦搜索框
This commit is contained in:
maplemei
2019-09-22 14:15:46 +08:00
parent a204c07653
commit 45cbfe8f1d
11 changed files with 412 additions and 70 deletions

View File

@@ -49,9 +49,13 @@ class xmOptions {
//如果是历史渲染过的数据, 重置一下数据
isNew && childs[this.options.el] && childs[this.options.el].reset();
let isRender = false;
const onRef = (ref) => childs[this.options.el] = ref;
const onReset = result => {
this.options.data = result;
}
render(<Framework { ...this.options } onClose={ onClose } onRef={ onRef } />, dom);
render(<Framework { ...this.options } onReset={ onReset } onClose={ onClose } onRef={ onRef } />, dom);
//记录数据
data[this.options.el] = this;