调整使用dom渲染get等方法的错误; 调整宽度过窄时分页的样式

This commit is contained in:
maplemei
2019-12-03 10:35:11 +08:00
parent b493563677
commit c6a5080161
8 changed files with 12 additions and 8 deletions

View File

@@ -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 ;