xm-select/dist/static/3.js
maplemei 53521d7854 v1.0.13
bug修复
2019-11-07 10:52:51 +08:00

1 line
17 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{694:function(e,a,t){var i=t(696);"string"==typeof i&&(i=[[e.i,i,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};t(22)(i,n);i.locals&&(e.exports=i.locals)},695:function(e,a,t){"use strict";var i=t(694);t.n(i).a},696:function(e,a,t){(e.exports=t(21)(!1)).push([e.i,".page-changelog {\n padding-bottom: 100px;\n}\n.page-changelog .fr {\n float: right;\n padding: 0;\n}\n.page-changelog .fr.el-button {\n transform: translateY(-3px);\n}\n.page-changelog .fr a {\n display: block;\n padding: 10px 15px;\n color: #333;\n}\n.page-changelog .fr:hover a {\n color: #409EFF;\n}\n.page-changelog .heading {\n font-size: 24px;\n margin-bottom: 60px;\n color: #333;\n}\n.page-changelog .timeline {\n padding: 0;\n padding-bottom: 10px;\n position: relative;\n color: #5e6d82;\n}\n.page-changelog .timeline > li {\n position: relative;\n padding-bottom: 15px;\n list-style: none;\n line-height: 1.8;\n border: 1px solid #ddd;\n border-radius: 4px;\n}\n.page-changelog .timeline > li:not(:last-child) {\n margin-bottom: 50px;\n}\n.page-changelog .timeline ul {\n padding: 30px 30px 15px;\n}\n.page-changelog .timeline ul ul {\n padding: 0;\n padding-top: 5px;\n padding-left: 27px;\n}\n.page-changelog .timeline ul ul li {\n padding-left: 0;\n color: #555;\n word-break: normal;\n}\n.page-changelog .timeline ul ul li::before {\n content: '';\n circle: 4px #fff;\n border: solid 1px #333;\n margin-right: -12px;\n display: inline-block;\n vertical-align: middle;\n}\n.page-changelog .timeline li li {\n font-size: 16px;\n list-style: none;\n padding-left: 20px;\n padding-bottom: 5px;\n color: #333;\n word-break: break-all;\n}\n.page-changelog .timeline li li:before {\n content: '';\n circle: 6px #333;\n transform: translateX(-20px);\n display: inline-block;\n vertical-align: middle;\n}\n.page-changelog .timeline i {\n padding: 0 20px;\n display: inline-block;\n}\n.page-changelog .timeline h3 {\n margin: 0;\n padding: 15px 30px;\n border-bottom: 1px solid #ddd;\n font-size: 20px;\n color: #333;\n font-weight: bold;\n}\n.page-changelog .timeline h3 a {\n opacity: 1;\n font-size: 20px;\n float: none;\n margin-left: 0;\n color: #333;\n}\n.page-changelog .timeline h4 {\n margin: 0;\n margin-bottom: -10px;\n font-size: 18px;\n padding-left: 54px;\n padding-top: 30px;\n font-weight: bold;\n}\n.page-changelog .timeline p {\n margin: 0;\n}\n.page-changelog .timeline em {\n position: absolute;\n right: 30px;\n font-style: normal;\n top: 23px;\n font-size: 16px;\n color: #666;\n}\n",""])},699:function(e,a,t){"use strict";t.r(a);var i=function(){var e=this.$createElement,a=this._self._c||e;return a("div",{staticClass:"page-changelog"},[a("div",{staticClass:"heading"},[a("el-button",{staticClass:"fr"},[a("a",{attrs:{href:"https://gitee.com/maplemei/xm-select",target:"_blank"}},[this._v("Gitee")])]),this._v("\n 更新日志\n ")],1),a("ul",{ref:"timeline",staticClass:"timeline"}),a("change-log",{ref:"changeLog"})],1)};i._withStripped=!0;var n=function(){var e=this.$createElement;this._self._c;return this._m(0)};n._withStripped=!0;var r=t(28),s=Object(r.a)({},n,[function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("section",{staticClass:"content element-doc"},[t("h2",{attrs:{id:"geng-xin-ri-zhi"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#geng-xin-ri-zhi","aria-hidden":"true"}},[e._v("¶")]),e._v(" 更新日志")]),t("h3",{attrs:{id:"1.0.13"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#1.0.13","aria-hidden":"true"}},[e._v("¶")]),e._v(" 1.0.13")]),t("p",[t("em",[e._v("2019-11-07")])]),t("h4",{attrs:{id:"xin-zeng"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#xin-zeng","aria-hidden":"true"}},[e._v("¶")]),e._v(" 新增")]),t("ul",[t("li",[t("code",[e._v("get")]),e._v("方法新增"),t("code",[e._v("single")]),e._v("参数, 可以获取单实例")])]),t("h4",{attrs:{id:"bug-fixes"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#bug-fixes","aria-hidden":"true"}},[e._v("¶")]),e._v(" Bug fixes")]),t("ul",[t("li",[e._v("修复"),t("code",[e._v("reset")]),e._v("方法报错")]),t("li",[e._v("修复IE下工具条全选数据错误")]),t("li",[e._v("修改文档简单兼容IE")])]),t("h3",{attrs:{id:"1.0.12"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#1.0.12","aria-hidden":"true"}},[e._v("¶")]),e._v(" 1.0.12")]),t("p",[t("em",[e._v("2019-10-24")])]),t("h4",{attrs:{id:"xin-zeng-2"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#xin-zeng-2","aria-hidden":"true"}},[e._v("¶")]),e._v(" 新增")]),t("ul",[t("li",[e._v("新增配置"),t("code",[e._v("pageEmptyShow")]),e._v(", 调整分页+搜索模式下, 如果无数据是否展示分页")]),t("li",[e._v("新增"),t("code",[e._v("create")]),e._v("创建条目时的回调参数"),t("code",[e._v("data")]),e._v(", 当前下拉的数据")]),t("li",[e._v("工具条新增反选"),t("code",[e._v("REVERSE")])])]),t("h4",{attrs:{id:"bug-fixes-2"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#bug-fixes-2","aria-hidden":"true"}},[e._v("¶")]),e._v(" Bug fixes")]),t("ul",[t("li",[e._v("修复"),t("code",[e._v("create")]),e._v("创建条目时, 工具条不能操作的创建条目的问题")]),t("li",[e._v("修复"),t("code",[e._v("create")]),e._v("创建条目时, 分页页码显示异常的问题")]),t("li",[e._v("修复"),t("code",[e._v("create")]),e._v("创建条目时, 搜索不存在的回调逻辑")]),t("li",[e._v("修复多语言下工具条一直显示中文的问题")]),t("li",[e._v("调整分页模式下无数据显示页码 0 -> 1")])]),t("h3",{attrs:{id:"1.0.11"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#1.0.11","aria-hidden":"true"}},[e._v("¶")]),e._v(" 1.0.11")]),t("p",[t("em",[e._v("2019-10-23")])]),t("h4",{attrs:{id:"xin-zeng-3"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#xin-zeng-3","aria-hidden":"true"}},[e._v("¶")]),e._v(" 新增")]),t("ul",[t("li",[e._v("新增"),t("code",[e._v("disabled")]),e._v("配置, 可以禁用多选")]),t("li",[e._v("新增"),t("code",[e._v("create")]),e._v("配置, 可以创建条目, 具体见 "),t("a",{attrs:{href:"https://maplemei.gitee.io/xm-select/#/example/XM27"}},[e._v("创建条目")])]),t("li",[e._v("方法"),t("code",[e._v("warning")]),e._v("新增参数"),t("code",[e._v("sustain")]),e._v(", 可以配置是否持续显示")]),t("li",[e._v("新增全局"),t("code",[e._v("get")]),e._v("方法, 可以获取多选渲染后的对象")]),t("li",[e._v("新增全局"),t("code",[e._v("batch")]),e._v("方法, 可以批量给渲染后的多选执行方法")])]),t("h4",{attrs:{id:"bug-fixes-3"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#bug-fixes-3","aria-hidden":"true"}},[e._v("¶")]),e._v(" Bug fixes")]),t("ul",[t("li",[e._v("修复"),t("code",[e._v("update")]),e._v("方法, 会使已选中数据丢失的问题")]),t("li",[e._v("修复"),t("code",[e._v("Safari")]),e._v("浏览器下, 搜索框无法聚焦的问题")])]),t("h3",{attrs:{id:"1.0.10"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#1.0.10","aria-hidden":"true"}},[e._v("¶")]),e._v(" 1.0.10")]),t("p",[t("em",[e._v("2019-10-20")])]),t("h4",{attrs:{id:"xin-zeng-4"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#xin-zeng-4","aria-hidden":"true"}},[e._v("¶")]),e._v(" 新增")]),t("ul",[t("li",[e._v("新增"),t("code",[e._v("content")]),e._v("配置, 可自定义下拉框HTML, 具体见 "),t("a",{attrs:{href:"https://maplemei.gitee.io/xm-select/#/example-plugin/ZP01"}},[e._v("下拉自定义")])]),t("li",[e._v("方法"),t("code",[e._v("setValue")]),e._v("新增参数"),t("code",[e._v("listenOn")]),e._v(", 可以设置是否通过"),t("code",[e._v("on")]),e._v("监听")])]),t("h4",{attrs:{id:"bug-fixes-4"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#bug-fixes-4","aria-hidden":"true"}},[e._v("¶")]),e._v(" Bug fixes")]),t("ul",[t("li",[e._v("修复初始化渲染也会被"),t("code",[e._v("on")]),e._v("监听的bug")]),t("li",[e._v("修复分组模式下, 搜索后分组显示错误")]),t("li",[e._v("调整分组模式下也可以使用分页, 选项控制")])]),t("h3",{attrs:{id:"1.0.9"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#1.0.9","aria-hidden":"true"}},[e._v("¶")]),e._v(" 1.0.9")]),t("p",[t("em",[e._v("2019-10-17")])]),t("h4",{attrs:{id:"xin-zeng-5"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#xin-zeng-5","aria-hidden":"true"}},[e._v("¶")]),e._v(" 新增")]),t("ul",[t("li",[e._v("新增"),t("code",[e._v("size")]),e._v("尺寸设置, "),t("code",[e._v("large")]),e._v(", "),t("code",[e._v("medium")]),e._v(", "),t("code",[e._v("small")]),e._v(", "),t("code",[e._v("mini")])]),t("li",[e._v("新增"),t("code",[e._v("warning")]),e._v("方法, 可以闪烁边框提示")]),t("li",[e._v("新增搜索完成回调参数, "),t("code",[e._v("list")]),e._v(":当前过滤后的数据")])]),t("h4",{attrs:{id:"bug-fixes-5"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#bug-fixes-5","aria-hidden":"true"}},[e._v("¶")]),e._v(" Bug fixes")]),t("ul",[t("li",[e._v("修复远程搜索模式下 搜索完成回调错误")])]),t("h3",{attrs:{id:"1.0.8"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#1.0.8","aria-hidden":"true"}},[e._v("¶")]),e._v(" 1.0.8")]),t("p",[t("em",[e._v("2019-10-16")])]),t("h4",{attrs:{id:"jian-rong-ti-shi"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#jian-rong-ti-shi","aria-hidden":"true"}},[e._v("¶")]),e._v(" 兼容提示")]),t("ul",[t("li",[e._v("此版本的on方法结构调整, 升级请注意")])]),t("h4",{attrs:{id:"xin-zeng-6"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#xin-zeng-6","aria-hidden":"true"}},[e._v("¶")]),e._v(" 新增")]),t("ul",[t("li",[e._v("新增分组单击事件 click, 可选值 "),t("code",[e._v("SELECT")]),e._v(", "),t("code",[e._v("CLEAR")]),e._v(", "),t("code",[e._v("AUTO")]),e._v(", "),t("code",[e._v("自定义")])]),t("li",[e._v("新增"),t("code",[e._v("append")]),e._v("方法追加赋值, "),t("code",[e._v("delete")]),e._v("方法删除赋值")]),t("li",[e._v("新增搜索完成回调"),t("code",[e._v("filterDone")])])]),t("h4",{attrs:{id:"bug-fixes-6"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#bug-fixes-6","aria-hidden":"true"}},[e._v("¶")]),e._v(" Bug fixes")]),t("ul",[t("li",[e._v("修复全选和请空不走on监听的问题")]),t("li",[e._v("修复"),t("code",[e._v("autoRow")]),e._v("模式下, 无选项时的css样式错误")]),t("li",[e._v("修复"),t("code",[e._v("update")]),e._v("后, 下拉框显示状态被重置为隐藏")]),t("li",[e._v("优化"),t("code",[e._v("setValue")]),e._v("方法, 可自行判断下拉框的显示状态")]),t("li",[e._v("修复文档错误, 实例没有"),t("code",[e._v("render")]),e._v("方法")])]),t("h3",{attrs:{id:"1.0.7"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#1.0.7","aria-hidden":"true"}},[e._v("¶")]),e._v(" 1.0.7")]),t("p",[t("em",[e._v("2019-10-16")])]),t("h4",{attrs:{id:"xin-zeng-7"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#xin-zeng-7","aria-hidden":"true"}},[e._v("¶")]),e._v(" 新增")]),t("ul",[t("li",[e._v("新增"),t("code",[e._v("autoRow")]),e._v("配置, 可以开启自动换行")]),t("li",[e._v("新增是否显示icon配置, 隐藏图标后将变换背景色显示")])]),t("h3",{attrs:{id:"1.0.6"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#1.0.6","aria-hidden":"true"}},[e._v("¶")]),e._v(" 1.0.6")]),t("p",[t("em",[e._v("2019-10-14")])]),t("h4",{attrs:{id:"xin-zeng-8"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#xin-zeng-8","aria-hidden":"true"}},[e._v("¶")]),e._v(" 新增")]),t("ul",[t("li",[e._v("新增"),t("code",[e._v("showCount")]),e._v("配置, 可以控制选项的数量, 提高渲染性能")]),t("li",[e._v("新增分组模式, 可以在选项中使用"),t("code",[e._v("optgroup")]),e._v("或"),t("code",[e._v("children")]),e._v("来开启, 分组时不建议开启分页模式")]),t("li",[e._v("远程搜索中新增"),t("code",[e._v("show")]),e._v("参数, 可以查看当前下拉框是否显示")])]),t("h4",{attrs:{id:"bug-fixes-7"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#bug-fixes-7","aria-hidden":"true"}},[e._v("¶")]),e._v(" Bug fixes")]),t("ul",[t("li",[e._v("修复工具条中"),t("code",[e._v("全选")]),e._v("和"),t("code",[e._v("清空")]),e._v("还可以操作禁用选项的问题")]),t("li",[e._v("修复远程搜索中"),t("code",[e._v("selected")]),e._v("不回显的问题")])]),t("h3",{attrs:{id:"1.0.5"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#1.0.5","aria-hidden":"true"}},[e._v("¶")]),e._v(" 1.0.5")]),t("p",[t("em",[e._v("2019-10-10")])]),t("h4",{attrs:{id:"bug-fixes-8"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#bug-fixes-8","aria-hidden":"true"}},[e._v("¶")]),e._v(" Bug fixes")]),t("ul",[t("li",[e._v("修复本地搜索模式下多次重复触发过滤方法, 优化搜索性能")]),t("li",[e._v("修复选项过多时, 可以使用鼠标进行横向滚动")])]),t("h3",{attrs:{id:"1.0.4"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#1.0.4","aria-hidden":"true"}},[e._v("¶")]),e._v(" 1.0.4")]),t("p",[t("em",[e._v("2019-09-27")])]),t("h4",{attrs:{id:"xin-zeng-9"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#xin-zeng-9","aria-hidden":"true"}},[e._v("¶")]),e._v(" 新增")]),t("ul",[t("li",[e._v("新增多选上限设置, 可以设置多选选中上限")]),t("li",[e._v("新增工具条, 可以全选, 清空, 自定义")]),t("li",[e._v("新增name设置, 可以表单提交, 隐藏input实现, 值为value逗号分隔")]),t("li",[e._v("新增getValue参数, 可以获取不同类型的值")])]),t("h4",{attrs:{id:"bug-fixes-9"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#bug-fixes-9","aria-hidden":"true"}},[e._v("¶")]),e._v(" Bug fixes")]),t("ul",[t("li",[e._v("修复搜索模式下输入中文不显示的问题")]),t("li",[e._v("修改render不能及时渲染, 需要二次渲染的问题")]),t("li",[e._v("修改IE下输入循环触发input事件的问题, IE 慎入")])]),t("h3",{attrs:{id:"1.0.3"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#1.0.3","aria-hidden":"true"}},[e._v("¶")]),e._v(" 1.0.3")]),t("p",[t("em",[e._v("2019-09-25")])]),t("h4",{attrs:{id:"bug-fixes-10"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#bug-fixes-10","aria-hidden":"true"}},[e._v("¶")]),e._v(" Bug fixes")]),t("ul",[t("li",[e._v("借鉴"),t("a",{attrs:{href:"https://element.eleme.cn/#/zh-CN"}},[e._v("ElementUI")]),e._v("的文档编写方式, 重新编辑使用文档")]),t("li",[e._v("修改on监听时已选中数据不对的问题")]),t("li",[e._v("修改显示模式也支持html方式")]),t("li",[e._v("存在layui时, 同样也能直接使用xmSelect, 不用必须layui.xmSelect")])]),t("h3",{attrs:{id:"1.0.2"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#1.0.2","aria-hidden":"true"}},[e._v("¶")]),e._v(" 1.0.2")]),t("p",[t("em",[e._v("2019-09-23")])]),t("h4",{attrs:{id:"bug-fixes-11"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#bug-fixes-11","aria-hidden":"true"}},[e._v("¶")]),e._v(" Bug fixes")]),t("ul",[t("li",[e._v("搜索时输入中文延迟后才进行回显")]),t("li",[e._v("远程搜索时, loading状态也能进行输入的问题")]),t("li",[e._v("单选模式下, 前面的图标变成圆形")]),t("li",[e._v("修正Windows下的一些样式错乱, 兼容IE10以上")]),t("li",[e._v("启动分页, 当搜索时, 如果搜索总页码为0, 再次搜索有页码时, 当前页面为0的问题")]),t("li",[e._v("当底部空间不足时, 再次判断顶部空间是否充足, 优化展开方向")])]),t("h3",{attrs:{id:"1.0.1"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#1.0.1","aria-hidden":"true"}},[e._v("¶")]),e._v(" 1.0.1")]),t("p",[t("em",[e._v("2019-09-22")])]),t("h4",{attrs:{id:"xin-zeng-10"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#xin-zeng-10","aria-hidden":"true"}},[e._v("¶")]),e._v(" 新增")]),t("ul",[t("li",[e._v("物理分页配置")]),t("li",[e._v("自定义搜索模式(远程搜索)")]),t("li",[e._v("下拉选高度配置")])]),t("h4",{attrs:{id:"bug-fixes-12"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#bug-fixes-12","aria-hidden":"true"}},[e._v("¶")]),e._v(" Bug fixes")]),t("ul",[t("li",[e._v("调整布局为flex布局")]),t("li",[e._v("展开下拉选时, 自动聚焦搜索框")])])])}],!1,null,null,null);s.options.__file="CHANGELOG.md";var l={components:{ChangeLog:s.exports},data:function(){return{count:3}},mounted:function(){var e=this.$refs.changeLog,a=e.$el.children,t=a[1].querySelector("a");t&&t.remove();for(var i=a[1].textContent.trim(),n='<li><h3><a href="javascript:;">'.concat(i,"</a></h3>"),r=a.length,s=2;s<r;s++){var l=a[s];(t=a[s].querySelector("a"))&&"header-anchor"===t.getAttribute("class")&&t.remove(),"H3"!==l.tagName?n+=a[s].outerHTML:(i=a[s].textContent.trim(),n+='</li><li><h3><a href="javascript:;">'.concat(i,"</a></h3>"))}this.$refs.timeline.innerHTML="".concat(n,"</li>"),e.$el.remove()}},d=(t(695),Object(r.a)(l,i,[],!1,null,null,null));d.options.__file="docs/pages/changelog.vue";a.default=d.exports},741:function(e,a,t){var i={"./pages/changelog.vue":699};function n(e){var a=r(e);return t(a)}function r(e){if(!t.o(i,e)){var a=new Error("Cannot find module '"+e+"'");throw a.code="MODULE_NOT_FOUND",a}return i[e]}n.keys=function(){return Object.keys(i)},n.resolve=r,e.exports=n,n.id=741}}]);