v1.0.1
1. [新增]物理分页配置 2. [新增]自定义搜索模式(远程搜索) 3. [新增]下拉选高度配置 4. [修改]调整布局为flex布局 5. [修改]展开下拉选时, 自动聚焦搜索框
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user