调整使用dom渲染get等方法的错误; 调整宽度过窄时分页的样式
This commit is contained in:
@@ -28,7 +28,7 @@ class xmOptions {
|
||||
this.options = deepMerge(this.options, options);
|
||||
|
||||
//如果dom不存在, 则不进行渲染事项
|
||||
let dom = this.options.el.nodeType ? this.options.el : selector(this.options.el);
|
||||
let dom = selector(this.options.el);
|
||||
if(!dom){
|
||||
warn(`没有找到渲染对象: ${options.el}, 请检查`)
|
||||
return ;
|
||||
|
||||
Reference in New Issue
Block a user