点击回首页
我的浏览记录 | | 帮助?
当前位置:
首页>> 企业应用>> 新翔网络OA系统V1.0>> 源文件浏览
[商业版 200RMB] WebForm,下载次数:1 次 | 关键字: PHP MYSQL OA 办公 网络办公

源码截图

源码目录树

;
当前路径:static/js/xm-select/static/2.js
/*!
 * @Title: xm-select
 * @Version: 1.2.2
 * @Description:基于layui的多选解决方案
 * @Site: https://gitee.com/maplemei/xm-select
 * @Author: maplemei
 * @License:Apache License 2.0
 */
(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{693:function(t,e,n){t.exports=n.p+"static/wx.b556b2e.jpg"},694:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA3gAAADLCAMAAAALBsE6AAAAAXNSR0IArs4c6QAAAFFQTFRF/////wAA/5WVmZOTVFRU/93d/3Fx//Hx//vl/9fX/8nJ8ePkta2t/7W1/1RUz8XF/+fn/Do739PUh4OD+evscnBw/2JiYGBg/xwc/IiKSIn0g0Gw+gAAEgRJREFUeNrtnQt7okoSQBPQdkdBFDQm9///0O16NDSKxpmYmMRzvrubUVBROVY/quin/wHAl/PERwCAeACPId4fAPhynhYA8OUgHgDiASAeAHyqePV6u13XfBoAXyle2CrhJx14sd5cs9t8W9/9GAAmxVtG5/S/5cnmOso4X8/fPwUL+xvq7JR/jhTTNsQt/yxE0GfVk76wp7lwhO+KF85vX74+byefOL0e4sFHxHvZhqcQ/9u+9HeXuw+Lt1hszrVer3nG8zq8bI69+cjzXRDv7KYPHT+AiyetzKcnaW/2d++7JheveHt9loZojDDrzWYt/y+ubV6WizoGr9dlEbZxB/l3FiRUvCJISE3PII+t04lbv6zj3puXNwlhskUCWXwiiSNhCCbz8BJfYRSEJWbaDiJHkJcNfSgMaduiD4n1c/YM4c32k3cxPuIY4rIQLe9OXyAebjqGWvb21/NjkPBdHx8kwL+Jt99XuXjb+Tw2ROvhhC5cPLk7xBuv+q+JiCeSyd7RsHhTTuPt0puadTxTi2KzDrJTKHT/uJ/JlIm3LV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GLViyHq/uMKXp55cPMLatJv13xxeeL5tgKKH95MiHgAgHsA3FO8PAHw5TwAAAAAAAAAAAAA/kWbFZwDw5fz3H+YBYB7Ao5jX8iEAIB7Ar2dHUxOALh7AQ8B0AgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMDT0/8B0p38SAf/3OIAAAAASUVORK5CYII="},696:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("section",{staticClass:"content element-doc"},[t._m(0),t._m(1),t._m(2),n("demo-block",[n("div",[n("p",[n("code",[t._v("el")]),t._v("绑定的不一定是id, 也可以是其他css选择器")])]),n("template",{slot:"source"},[n("element-demo0")],1),n("template",{slot:"highlight"},[n("pre",{pre:!0},[n("code",{pre:!0,attrs:{class:"html"}},[t._v("<div id=\"demo1\" class=\"xm-select-demo\"></div>\n\n<script>\nvar demo1 = xmSelect.render({\n\tel: '#demo1', \n\tdata: [\n\t\t{name: '张三', value: 1},\n\t\t{name: '李四', value: 2},\n\t\t{name: '王五', value: 3},\n\t]\n})\n<\/script>\n")])])])],2),t._m(3),n("demo-block",[n("div",[n("p",[n("code",[t._v("el")]),t._v("绑定的不一定是id, 也可以是dom元素, 不支持jQuery dom对象")])]),n("template",{slot:"source"},[n("element-demo1")],1),n("template",{slot:"highlight"},[n("pre",{pre:!0},[n("code",{pre:!0,attrs:{class:"html"}},[t._v("<div id=\"demo2\" class=\"xm-select-demo\"></div>\n\n<script>\nvar demo2 = xmSelect.render({\n\tel: document.querySelector('#demo2'), \n\tdata: [\n\t\t{name: '张三', value: 1},\n\t\t{name: '李四', value: 2},\n\t\t{name: '王五', value: 3},\n\t]\n})\n<\/script>\n")])])])],2)],1)};a._withStripped=!0;var i={name:"component-doc",components:{"element-demo0":function(){var t=function(){var t=this.$createElement;this._self._c;return this._m(0)};return t._withStripped=!0,{render:t,staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("div",{staticClass:"xm-select-demo",attrs:{id:"demo1"}})])}],mounted:function(){this.$nextTick((function(){xmSelect.render({el:"#demo1",data:[{name:"张三",value:1},{name:"李四",value:2},{name:"王五",value:3}]})}))}}}(),"element-demo1":function(){var t=function(){var t=this.$createElement;this._self._c;return this._m(0)};return t._withStripped=!0,{render:t,staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("div",{staticClass:"xm-select-demo",attrs:{id:"demo2"}})])}],mounted:function(){this.$nextTick((function(){xmSelect.render({el:document.querySelector("#demo2"),data:[{name:"张三",value:1},{name:"李四",value:2},{name:"王五",value:3}]})}))}}}()}},s=n(25),r=Object(s.a)(i,a,[function(){var t=this.$createElement,e=this._self._c||t;return e("h2",{attrs:{id:"ji-chu-shi-yong"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#ji-chu-shi-yong"}},[this._v("¶")]),this._v(" 基础使用")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"tip"},[e("p",[this._v("只需引入"),e("code",[this._v("xm-select.js")]),this._v(", 剩下的就只有渲染了")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("h3",{attrs:{id:"yi-ge-xiao-li-zi"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#yi-ge-xiao-li-zi"}},[this._v("¶")]),this._v(" 一个小栗子")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h3",{attrs:{id:"yongdom-jin-xing-xuan-ran"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#yongdom-jin-xing-xuan-ran"}},[this._v("¶")]),this._v(" 用dom进行渲染")])}],!1,null,null,null);r.options.__file="docs/mds/XM01.md";e.default=r.exports},697:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("section",{staticClass:"content element-doc"},[t._m(0),t._m(1),n("demo-block",[n("div",[n("p",[t._v("目前仅支持"),n("code",[t._v("中文")]),t._v("和"),n("code",[t._v("英文")]),t._v(", 如需更多语言, 可以"),n("code",[t._v("clone")]),t._v("代码进行二次开发")])]),n("template",{slot:"source"},[n("element-demo0")],1),n("template",{slot:"highlight"},[n("pre",{pre:!0},[n("code",{pre:!0,attrs:{class:"html"}},[t._v("<div id=\"demo1\" class=\"xm-select-demo\"></div>\n<div xid=\"demo2\" class=\"xm-select-demo\"></div>\n\n<script>\nvar demo1 = xmSelect.render({\n\tel: '#demo1', \n\tlanguage: 'en',\n\tdata: []\n})\nvar demo2 = xmSelect.render({\n\tel: '[xid=demo2]', \n\tlanguage: 'en',\n\tdata: [\n\t\t{name: 'apple', value: 1},\n\t\t{name: 'banana', value: 2},\n\t\t{name: 'orange', value: 3},\n\t]\n})\n<\/script>\n")])])])],2)],1)};a._withStripped=!0;var i={name:"component-doc",components:{"element-demo0":function(){var t=function(){var t=this.$createElement;this._self._c;return this._m(0)};return t._withStripped=!0,{render:t,staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("div",{staticClass:"xm-select-demo",attrs:{id:"demo1"}}),this._v(" "),e("div",{staticClass:"xm-select-demo",attrs:{xid:"demo2"}})])}],mounted:function(){this.$nextTick((function(){xmSelect.render({el:"#demo1",language:"en",data:[]}),xmSelect.render({el:"[xid=demo2]",language:"en",data:[{name:"apple",value:1},{name:"banana",value:2},{name:"orange",value:3}]})}))}}}()}},s=n(25),r=Object(s.a)(i,a,[function(){var t=this.$createElement,e=this._self._c||t;return e("h2",{attrs:{id:"guo-ji-hua"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#guo-ji-hua"}},[this._v("¶")]),this._v(" 国际化")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h3",{attrs:{id:"ying-yu"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#ying-yu"}},[this._v("¶")]),this._v(" 英语")])}],!1,null,null,null);r.options.__file="docs/mds/XM02.md";e.default=r.exports},698:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("section",{staticClass:"content element-doc"},[t._m(0),t._m(1),n("demo-block",[n("div",[n("p",[t._v("当然"),n("code",[t._v("selected")]),t._v("是选中, "),n("code",[t._v("disabled")]),t._v("是禁用")])]),n("template",{slot:"source"},[n("element-demo0")],1),n("template",{slot:"highlight"},[n("pre",{pre:!0},[n("code",{pre:!0,attrs:{class:"html"}},[t._v("<div id=\"demo2\" class=\"xm-select-demo\"></div>\n\n<script>\nvar demo2 = xmSelect.render({\n\tel: '#demo2', \n\tdata: [\n\t\t{name: '水果', value: 1, selected: true, disabled: true},\n\t\t{name: '蔬菜', value: 2, selected: true},\n\t\t{name: '桌子', value: 3, disabled: true},\n\t\t{name: '北京', value: 4},\n\t]\n})\n<\/script>\n")])])])],2),t._m(2),n("demo-block",[n("div",[n("p",[n("code",[t._v("initValue")]),t._v("的优先级大于选项中的"),n("code",[t._v("selected")])])]),n("template",{slot:"source"},[n("element-demo1")],1),n("template",{slot:"highlight"},[n("pre",{pre:!0},[n("code",{pre:!0,attrs:{class:"html"}},[t._v("<div id=\"demo1\" class=\"xm-select-demo\"></div>\n\n<script>\nvar demo5 = xmSelect.render({\n\tel: '#demo1', \n\tinitValue: [4],\n\tdata: [\n\t\t{name: '水果', value: 1, selected: true, disabled: true},\n\t\t{name: '蔬菜', value: 2, selected: true},\n\t\t{name: '桌子', value: 3, disabled: true},\n\t\t{name: '北京', value: 4},\n\t]\n})\n<\/script>\n")])])])],2)],1)};a._withStripped=!0;var i={name:"component-doc",components:{"element-demo0":function(){var t=function(){var t=this.$createElement;this._self._c;return this._m(0)};return t._withStripped=!0,{render:t,staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("div",{staticClass:"xm-select-demo",attrs:{id:"demo2"}})])}],mounted:function(){this.$nextTick((function(){xmSelect.render({el:"#demo2",data:[{name:"水果",value:1,selected:!0,disabled:!0},{name:"蔬菜",value:2,selected:!0},{name:"桌子",value:3,disabled:!0},{name:"北京",value:4}]})}))}}}(),"element-demo1":function(){var t=function(){var t=this.$createElement;this._self._c;return this._m(0)};return t._withStripped=!0,{render:t,staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("div",{staticClass:"xm-select-demo",attrs:{id:"demo1"}})])}],mounted:function(){this.$nextTick((function(){xmSelect.render({el:"#demo1",initValue:[4],data:[{name:"水果",value:1,selected:!0,disabled:!0},{name:"蔬菜",value:2,selected:!0},{name:"桌子",value:3,disabled:!0},{name:"北京",value:4}]})}))}}}()}},s=n(25),r=Object(s.a)(i,a,[function(){var t=this.$createElement,e=this._self._c||t;return e("h2",{attrs:{id:"mo-ren-xuan-zhong"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#mo-ren-xuan-zhong"}},[this._v("¶")]),this._v(" 默认选中")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h3",{attrs:{id:"shi-yongselected-shu-xing"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#shi-yongselected-shu-xing"}},[this._v("¶")]),this._v(" 使用"),e("code",[this._v("selected")]),this._v("属性")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h3",{attrs:{id:"shi-yonginitvalue-jin-xing-chu-shi-hua"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#shi-yonginitvalue-jin-xing-chu-shi-hua"}},[this._v("¶")]),this._v(" 使用initValue进行初始化")])}],!1,null,null,null);r.options.__file="docs/mds/XM03.md";e.default=r.exports},699:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this.$createElement,e=this._self._c||t;return e("section",{staticClass:"content element-doc"},[this._m(0),this._m(1),e("demo-block",[e("template",{slot:"source"},[e("element-demo0")],1),e("template",{slot:"highlight"},[e("pre",{pre:!0},[e("code",{pre:!0,attrs:{class:"html"}},[this._v("<div id=\"demo1\" class=\"xm-select-demo\"></div>\n\n<script>\nvar demo1 = xmSelect.render({\n\tel: '#demo1', \n\ttips: '你喜欢什么水果呢?',\n\tdata: [\n\t\t{name: '水果', value: 1},\n\t\t{name: '蔬菜', value: 2},\n\t\t{name: '桌子', value: 3},\n\t\t{name: '北京', value: 4},\n\t]\n})\n<\/script>\n")])])])],2),this._m(2),e("demo-block",[e("template",{slot:"source"},[e("element-demo1")],1),e("template",{slot:"highlight"},[e("pre",{pre:!0},[e("code",{pre:!0,attrs:{class:"html"}},[this._v("<div id=\"demo2\" class=\"xm-select-demo\"></div>\n\n<script>\nvar demo2 = xmSelect.render({\n\tel: '#demo2', \n\tempty: '呀, 没有数据呢',\n\tdata: [ ]\n})\n<\/script>\n")])])])],2),this._m(3),e("demo-block",[e("template",{slot:"source"},[e("element-demo2")],1),e("template",{slot:"highlight"},[e("pre",{pre:!0},[e("code",{pre:!0,attrs:{class:"html"}},[this._v("<div id=\"demo3\" class=\"xm-select-demo\"></div>\n\n<script>\nvar demo3 = xmSelect.render({\n\tel: '#demo3', \n\tfilterable: true,\n\tsearchTips: '你想吃什么水果吧',\n\tdata: [\n\t\t{name: '水果', value: 1},\n\t\t{name: '蔬菜', value: 2},\n\t\t{name: '桌子', value: 3},\n\t\t{name: '北京', value: 4},\n\t]\n})\n<\/script>\n")])])])],2)],1)};a._withStripped=!0;var i={name:"component-doc",components:{"element-demo0":function(){var t=function(){var t=this.$createElement;this._self._c;return this._m(0)};return t._withStripped=!0,{render:t,staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("div",{staticClass:"xm-select-demo",attrs:{id:"demo1"}})])}],mounted:function(){this.$nextTick((function(){xmSelect.render({el:"#demo1",tips:"你喜欢什么水果呢?",data:[{name:"水果",value:1},{name:"蔬菜",value:2},{name:"桌子",value:3},{name:"北京",value:4}]})}))}}}(),"element-demo1":function(){var t=function(){var t=this.$createElement;this._self._c;return this._m(0)};return t._withStripped=!0,{render:t,staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("div",{staticClass:"xm-select-demo",attrs:{id:"demo2"}})])}],mounted:function(){this.$nextTick((function(){xmSelect.render({el:"#demo2",empty:"呀, 没有数据呢",data:[]})}))}}}(),"element-demo2":function(){var t=function(){var t=this.$createElement;this._self._c;return this._m(0)};return t._withStripped=!0,{render:t,staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("div",{staticClass:"xm-select-demo",attrs:{id:"demo3"}})])}],mounted:function(){this.$nextTick((function(){xmSelect.render({el:"#demo3",filterable:!0,searchTips:"你想吃什么水果吧",data:[{name:"水果",value:1},{name:"蔬菜",value:2},{name:"桌子",value:3},{name:"北京",value:4}]})}))}}}()}},s=n(25),r=Object(s.a)(i,a,[function(){var t=this.$createElement,e=this._self._c||t;return e("h2",{attrs:{id:"xiu-gai-ti-shi"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#xiu-gai-ti-shi"}},[this._v("¶")]),this._v(" 修改提示")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h3",{attrs:{id:"xiu-gai-xuan-xiang-ti-shi-wen-zi"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#xiu-gai-xuan-xiang-ti-shi-wen-zi"}},[this._v("¶")]),this._v(" 修改选项提示文字")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h3",{attrs:{id:"xiu-gai-kong-shu-ju-ti-shi-wen-zi"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#xiu-gai-kong-shu-ju-ti-shi-wen-zi"}},[this._v("¶")]),this._v(" 修改空数据提示文字")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h3",{attrs:{id:"xiu-gai-sou-suo-ti-shi-wen-zi"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#xiu-gai-sou-suo-ti-shi-wen-zi"}},[this._v("¶")]),this._v(" 修改搜索提示文字")])}],!1,null,null,null);r.options.__file="docs/mds/XM04.md";e.default=r.exports},700:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("section",{staticClass:"content element-doc"},[t._m(0),t._m(1),n("demo-block",[n("div",[n("p",[t._v("默认按照"),n("code",[t._v("name")]),t._v("进行搜索")])]),n("template",{slot:"source"},[n("element-demo0")],1),n("template",{slot:"highlight"},[n("pre",{pre:!0},[n("code",{pre:!0,attrs:{class:"html"}},[t._v("<div id=\"demo1\" class=\"xm-select-demo\"></div>\n\n<script>\nvar demo1 = xmSelect.render({\n\tel: '#demo1', \n\tfilterable: true,\n\tdata: [\n\t\t{name: '水果', value: 1},\n\t\t{name: '蔬菜', value: 2},\n\t\t{name: '桌子', value: 3},\n\t\t{name: '北京', value: 4},\n\t]\n})\n<\/script>\n")])])])],2),t._m(2),n("demo-block",[n("template",{slot:"source"},[n("element-demo1")],1),n("template",{slot:"highlight"},[n("pre",{pre:!0},[n("code",{pre:!0,attrs:{class:"html"}},[t._v("<div id=\"demo2\" class=\"xm-select-demo\"></div>\n\n<script>\nvar demo2 = xmSelect.render({\n\tel: '#demo2', \n\tfilterable: true,\n\tfilterMethod: function(val, item, index, prop){\n\t\tif(val == item.value){//把value相同的搜索出来\n\t\t\treturn true;\n\t\t}\n\t\tif(item.name.indexOf(val) != -1){//名称中包含的搜索出来\n\t\t\treturn true;\n\t\t}\n\t\treturn false;//不知道的就不管了\n\t},\n\tdata: [\n\t\t{name: '水果', value: 1},\n\t\t{name: '蔬菜', value: 2},\n\t\t{name: '桌子', value: 3},\n\t\t{name: '北京', value: 4},\n\t]\n})\n<\/script>\n")])])])],2),t._m(3),t._m(4),n("demo-block",[n("div",[n("p",[n("code",[t._v("delay: 2000")]),t._v(" 输入停止2s后进行搜索过滤")])]),n("template",{slot:"source"},[n("element-demo2")],1),n("template",{slot:"highlight"},[n("pre",{pre:!0},[n("code",{pre:!0,attrs:{class:"html"}},[t._v("<div id=\"demo3\" class=\"xm-select-demo\"></div>\n\n<script>\nvar demo3 = xmSelect.render({\n\tel: '#demo3', \n\tfilterable: true,\n\tdelay: 2000,\n\tdata: [\n\t\t{name: '水果', value: 1},\n\t\t{name: '蔬菜', value: 2},\n\t\t{name: '桌子', value: 3},\n\t\t{name: '北京', value: 4},\n\t]\n})\n<\/script>\n")])])])],2),t._m(5),t._m(6),t._m(7),n("p",[t._v("第三部: 重写搜索回调")]),n("p",[t._v("简单吧, 记得Star ^_^")]),n("demo-block",[n("div",[n("p",[n("code",[t._v("render")]),t._v("后, 就会进行一次回调, 用于渲染第一次数据")])]),n("template",{slot:"source"},[n("element-demo3")],1),n("template",{slot:"highlight"},[n("pre",{pre:!0},[n("code",{pre:!0,attrs:{class:"html"}},[t._v("<div id=\"demo4\" class=\"xm-select-demo\"></div>\n\n<script>\nvar demo4 = xmSelect.render({\n\tel: '#demo4', \n\tfilterable: true,\n\tremoteSearch: true,\n\tremoteMethod: function(val, cb, show){\n\t\t//这里模拟3s后返回数据\n\t\tsetTimeout(function(){\n\t\t\t//需要回传一个数组\n\t\t\tcb([\n\t\t\t\t{name: '水果' + val, value: val + 1},\n\t\t\t\t{name: '蔬菜' + val, value: val + 2, selected: true},\n\t\t\t\t{name: '桌子' + val, value: val + 3},\n\t\t\t\t{name: '北京' + val, value: val + 4},\n\t\t\t])\n\t\t}, 3000)\n\t},\n\tdata: []\n})\n<\/script>\n")])])])],2),t._m(8),t._m(9),t._m(10),n("p",[t._v("第三部: 重写搜索回调")]),n("p",[t._v("简单吧, 记得Star ^_^")]),n("demo-block",[n("div",[n("p",[n("code",[t._v("render")]),t._v("后, 就会进行一次回调, 用于渲染第一次数据")])]),n("template",{slot:"source"},[n("element-demo4")],1),n("template",{slot:"highlight"},[n("pre",{pre:!0},[n("code",{pre:!0,attrs:{class:"html"}},[t._v("<div id=\"demo5\" class=\"xm-select-demo\"></div>\n\n<script>\nvar demo5 = xmSelect.render({\n\tel: '#demo5', \n\tfilterable: true,\n\tremoteSearch: true,\n\tremoteMethod: function(val, cb, show){\n\t\taxios({\n\t\t\tmethod: 'get',\n\t\t\turl: 'https://www.fastmock.site/mock/98228b1f16b7e5112d6c0c87921eabc1/xmSelect/search',\n\t\t\tparams: {\n\t\t\t\tkeyword: val,\n\t\t\t}\n\t\t}).then(response => {\n\t\t\tvar res = response.data;\n\t\t\tcb(res.data)\n\t\t}).catch(err => {\n\t\t\tcb([]);\n\t\t});\n\t},\n\tdata: []\n})\n<\/script>\n")])])])],2),t._m(11),n("demo-block",[n("template",{slot:"source"},[n("element-demo5")],1),n("template",{slot:"highlight"},[n("pre",{pre:!0},[n("code",{pre:!0,attrs:{class:"html"}},[t._v("<div id=\"demo6\" class=\"xm-select-demo\"></div>\n\n<script>\nvar demo6 = xmSelect.render({\n\tel: '#demo6', \n\tfilterable: true,\n\tfilterDone: function(val, list){\n\t\talert(`搜索完毕, 搜索关键词: ${val}, 过滤数据: ${list.length}个`)\n\t},\n\tdata: [\n\t\t{name: '水果', value: 1},\n\t\t{name: '蔬菜', value: 2},\n\t\t{name: '桌子', value: 3},\n\t\t{name: '北京', value: 4},\n\t]\n})\n<\/script>\n")])])])],2)],1)};a._withStripped=!0;var i={name:"component-doc",components:{"element-demo0":function(){var t=function(){var t=this.$createElement;this._self._c;return this._m(0)};return t._withStripped=!0,{render:t,staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("div",{staticClass:"xm-select-demo",attrs:{id:"demo1"}})])}],mounted:function(){this.$nextTick((function(){xmSelect.render({el:"#demo1",filterable:!0,data:[{name:"水果",value:1},{name:"蔬菜",value:2},{name:"桌子",value:3},{name:"北京",value:4}]})}))}}}(),"element-demo1":function(){var t=function(){var t=this.$createElement;this._self._c;return this._m(0)};return t._withStripped=!0,{render:t,staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("div",{staticClass:"xm-select-demo",attrs:{id:"demo2"}})])}],mounted:function(){this.$nextTick((function(){xmSelect.render({el:"#demo2",filterable:!0,filterMethod:function(t,e,n,a){return t==e.value||-1!=e.name.indexOf(t)},data:[{name:"水果",value:1},{name:"蔬菜",value:2},{name:"桌子",value:3},{name:"北京",value:4}]})}))}}}(),"element-demo2":function(){var t=function(){var t=this.$createElement;this._self._c;return this._m(0)};return t._withStripped=!0,{render:t,staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("div",{staticClass:"xm-select-demo",attrs:{id:"demo3"}})])}],mounted:function(){this.$nextTick((function(){xmSelect.render({el:"#demo3",filterable:!0,delay:2e3,data:[{name:"水果",value:1},{name:"蔬菜",value:2},{name:"桌子",value:3},{name:"北京",value:4}]})}))}}}(),"element-demo3":function(){var t=function(){var t=this.$createElement;this._self._c;return this._m(0)};return t._withStripped=!0,{render:t,staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("div",{staticClass:"xm-select-demo",attrs:{id:"demo4"}})])}],mounted:function(){this.$nextTick((function(){xmSelect.render({el:"#demo4",filterable:!0,remoteSearch:!0,remoteMethod:function(t,e,n){setTimeout((function(){e([{name:"水果"+t,value:t+1},{name:"蔬菜"+t,value:t+2,selected:!0},{name:"桌子"+t,value:t+3},{name:"北京"+t,value:t+4}])}),3e3)},data:[]})}))}}}(),"element-demo4":function(){var t=function(){var t=this.$createElement;this._self._c;return this._m(0)};return t._withStripped=!0,{render:t,staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("div",{staticClass:"xm-select-demo",attrs:{id:"demo5"}})])}],mounted:function(){this.$nextTick((function(){xmSelect.render({el:"#demo5",filterable:!0,remoteSearch:!0,remoteMethod:function(t,e,n){axios({method:"get",url:"https://www.fastmock.site/mock/98228b1f16b7e5112d6c0c87921eabc1/xmSelect/search",params:{keyword:t}}).then((function(t){var n=t.data;e(n.data)})).catch((function(t){e([])}))},data:[]})}))}}}(),"element-demo5":function(){var t=function(){var t=this.$createElement;this._self._c;return this._m(0)};return t._withStripped=!0,{render:t,staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("div",{staticClass:"xm-select-demo",attrs:{id:"demo6"}})])}],mounted:function(){this.$nextTick((function(){xmSelect.render({el:"#demo6",filterable:!0,filterDone:function(t,e){alert("搜索完毕, 搜索关键词: ".concat(t,", 过滤数据: ").concat(e.length,"个"))},data:[{name:"水果",value:1},{name:"蔬菜",value:2},{name:"桌子",value:3},{name:"北京",value:4}]})}))}}}()}},s=n(25),r=Object(s.a)(i,a,[function(){var t=this.$createElement,e=this._self._c||t;return e("h2",{attrs:{id:"sou-suo-mo-shi"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#sou-suo-mo-shi"}},[this._v("¶")]),this._v(" 搜索模式")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h3",{attrs:{id:"mo-ren-sou-suo"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#mo-ren-sou-suo"}},[this._v("¶")]),this._v(" 默认搜索")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h3",{attrs:{id:"chong-xie-sou-suo-fang-fa"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#chong-xie-sou-suo-fang-fa"}},[this._v("¶")]),this._v(" 重写搜索方法")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h3",{attrs:{id:"sou-suo-yan-chi"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#sou-suo-yan-chi"}},[this._v("¶")]),this._v(" 搜索延迟")])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",[this._v("为了提高有效搜索, 当停止输入"),e("code",[this._v("500ms")]),this._v("后才开始进行过滤搜索, 当然这个"),e("code",[this._v("500")]),this._v("你也可以进行修改")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h3",{attrs:{id:"zi-ding-yi-sou-suo-yuan-cheng-sou-suo"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#zi-ding-yi-sou-suo-yuan-cheng-sou-suo"}},[this._v("¶")]),this._v(" 自定义搜索 (远程搜索)")])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",[this._v("第一步: 需要先开启搜索 "),e("code",[this._v("filterable: true,")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",[this._v("第二步: 开启自定义搜索 "),e("code",[this._v("remoteSearch: true")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("h3",{attrs:{id:"yuan-cheng-sou-suo"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#yuan-cheng-sou-suo"}},[this._v("¶")]),this._v(" 远程搜索")])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",[this._v("第一步: 需要先开启搜索 "),e("code",[this._v("filterable: true,")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",[this._v("第二步: 开启自定义搜索 "),e("code",[this._v("remoteSearch: true")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("h3",{attrs:{id:"sou-suo-wan-cheng-hui-diao"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#sou-suo-wan-cheng-hui-diao"}},[this._v("¶")]),this._v(" 搜索完成回调")])}],!1,null,null,null);r.options.__file="docs/mds/XM05.md";e.default=r.exports},701:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this.$createElement,e=this._self._c||t;return e("section",{staticClass:"content element-doc"},[this._m(0),this._m(1),e("demo-block",[e("template",{slot:"source"},[e("element-demo0")],1),e("template",{slot:"highlight"},[e("pre",{pre:!0},[e("code",{pre:!0,attrs:{class:"html"}},[this._v("<div style=\"height: 500px\">占位div, 演示效果使用, 底部空间不足时会自动向上展开</div>\n\n<div id=\"demo1\" class=\"xm-select-demo\"></div>\n\n<script>\nvar demo1 = xmSelect.render({\n\tel: '#demo1', \n\tdirection: 'auto',\n\tdata: [\n\t\t{name: '水果', value: 1},\n\t\t{name: '蔬菜', value: 2},\n\t\t{name: '桌子', value: 3},\n\t\t{name: '北京', value: 4},\n\t]\n})\n<\/script>\n")])])])],2),this._m(2),e("demo-block",[e("template",{slot:"source"},[e("element-demo1")],1),e("template",{slot:"highlight"},[e("pre",{pre:!0},[e("code",{pre:!0,attrs:{class:"html"}},[this._v("<div id=\"demo2\" class=\"xm-select-demo\"></div>\n\n<script>\nvar demo2 = xmSelect.render({\n\tel: '#demo2', \n\tdirection: 'up',\n\tdata: [\n\t\t{name: '水果', value: 1},\n\t\t{name: '蔬菜', value: 2},\n\t\t{name: '桌子', value: 3},\n\t\t{name: '北京', value: 4},\n\t]\n})\n<\/script>\n")])])])],2),this._m(3),e("demo-block",[e("template",{slot:"source"},[e("element-demo2")],1),e("template",{slot:"highlight"},[e("pre",{pre:!0},[e("code",{pre:!0,attrs:{class:"html"}},[this._v("<div id=\"demo3\" class=\"xm-select-demo\"></div>\n\n<script>\nvar demo3 = xmSelect.render({\n\tel: '#demo3', \n\tdirection: 'down',\n\tdata: [\n\t\t{name: '水果', value: 1},\n\t\t{name: '蔬菜', value: 2},\n\t\t{name: '桌子', value: 3},\n\t\t{name: '北京', value: 4},\n\t]\n})\n<\/script>\n")])])])],2)],1)};a._withStripped=!0;var i={name:"component-doc",components:{"element-demo0":function(){var t=function(){var t=this.$createElement;this._self._c;return this._m(0)};return t._withStripped=!0,{render:t,staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("div",{staticStyle:{height:"500px"}},[this._v("占位div, 演示效果使用, 底部空间不足时会自动向上展开")]),this._v(" "),e("div",{staticClass:"xm-select-demo",attrs:{id:"demo1"}})])}],mounted:function(){this.$nextTick((function(){xmSelect.render({el:"#demo1",direction:"auto",data:[{name:"水果",value:1},{name:"蔬菜",value:2},{name:"桌子",value:3},{name:"北京",value:4}]})}))}}}(),"element-demo1":function(){var t=function(){var t=this.$createElement;this._self._c;return this._m(0)};return t._withStripped=!0,{render:t,staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("div",{staticClass:"xm-select-demo",attrs:{id:"demo2"}})])}],mounted:function(){this.$nextTick((function(){xmSelect.render({el:"#demo2",direction:"up",data:[{name:"水果",value:1},{name:"蔬菜",value:2},{name:"桌子",value:3},{name:"北京",value:4}]})}))}}}(),"element-demo2":function(){var t=function(){var t=this.$createElement;this._self._c;return this._m(0)};return t._withStripped=!0,{render:t,staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("div",{staticClass:"xm-select-demo",attrs:{id:"demo3"}})])}],mounted:function(){this.$nextTick((function(){xmSelect.render({el:"#demo3",direction:"down",data:[{name:"水果",value:1},{name:"蔬菜",value:2},{name:"桌子",value:3},{name:"北京",value:4}]})}))}}}()}},s=n(25),r=Object(s.a)(i,a,[function(){var t=this.$createElement,e=this._self._c||t;return e("h2",{attrs:{id:"xia-la-fang-xiang"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#xia-la-fang-xiang"}},[this._v("¶")]),this._v(" 下拉方向")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h3",{attrs:{id:"zi-dongauto"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#zi-dongauto"}},[this._v("¶")]),this._v(" 自动"),e("code",[this._v("auto")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("h3",{attrs:{id:"da-qia-xiang-shangup"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#da-qia-xiang-shangup"}},[this._v("¶")]),this._v(" 打卡向上"),e("code",[this._v("up")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("h3",{attrs:{id:"da-kai-xiang-xiadown"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#da-kai-xiang-xiadown"}},[this._v("¶")]),this._v(" 打开向下"),e("code",[this._v("down")])])}],!1,null,null,null);r.options.__file="docs/mds/XM06.md";e.default=r.exports},702:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this.$createElement,e=this._self._c||t;return e("section",{staticClass:"content element-doc"},[this._m(0),this._m(1),e("p",[this._v("修改一下外边距, 加上圆角, 更改一下高度")]),e("demo-block",[e("template",{slot:"source"},[e("element-demo0")],1),e("template",{slot:"highlight"},[e("pre",{pre:!0},[e("code",{pre:!0,attrs:{class:"html"}},[this._v("<div id=\"demo1\" class=\"xm-select-demo\"></div>\n\n<script>\nvar demo1 = xmSelect.render({\n\tel: '#demo1', \n\tstyle: {\n\t\tmarginLeft: '200px',\n\t\tborderRadius: '50px',\n\t\theight: '50px',\n\t},\n\tdata: [\n\t\t{name: '张三', value: 1},\n\t\t{name: '李四', value: 2},\n\t\t{name: '王五', value: 3},\n\t]\n})\n<\/script>\n")])])])],2),this._m(2),e("demo-block",[e("template",{slot:"source"},[e("element-demo1")],1),e("template",{slot:"highlight"},[e("pre",{pre:!0},[e("code",{pre:!0,attrs:{class:"html"}},[this._v("<div id=\"demo2\" class=\"xm-select-demo\"></div>\n\n<script>\nvar demo2 = xmSelect.render({\n\tel: '#demo2', \n\theight: '50px',\n\tdata: [\n\t\t{name: '张三', value: 1},\n\t\t{name: '李四', value: 2},\n\t\t{name: '王五', value: 3},\n\t]\n})\n<\/script>\n")])])])],2)],1)};a._withStripped=!0;var i={name:"component-doc",components:{"element-demo0":function(){var t=function(){var t=this.$createElement;this._self._c;return this._m(0)};return t._withStripped=!0,{render:t,staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("div",{staticClass:"xm-select-demo",attrs:{id:"demo1"}})])}],mounted:function(){this.$nextTick((function(){xmSelect.render({el:"#demo1",style:{marginLeft:"200px",borderRadius:"50px",height:"50px"},data:[{name:"张三",value:1},{name:"李四",value:2},{name:"王五",value:3}]})}))}}}(),"element-demo1":function(){var t=function(){var t=this.$createElement;this._self._c;return this._m(0)};return t._withStripped=!0,{render:t,staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("div",{staticClass:"xm-select-demo",attrs:{id:"demo2"}})])}],mounted:function(){this.$nextTick((function(){xmSelect.render({el:"#demo2",height:"50px",data:[{name:"张三",value:1},{name:"李四",value:2},{name:"王五",value:3}]})}))}}}()}},s=n(25),r=Object(s.a)(i,a,[function(){var t=this.$createElement,e=this._self._c||t;return e("h2",{attrs:{id:"zi-ding-yi-yang-shi"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#zi-ding-yi-yang-shi"}},[this._v("¶")]),this._v(" 自定义样式")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h3",{attrs:{id:"sui-bian-shi-shi"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#sui-bian-shi-shi"}},[this._v("¶")]),this._v(" 随便试试")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h3",{attrs:{id:"xiu-gai-xia-la-kuang-de-zui-da-gao-du"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#xiu-gai-xia-la-kuang-de-zui-da-gao-du"}},[this._v("¶")]),this._v(" 修改下拉框的最大高度")])}],!1,null,null,null);r.options.__file="docs/mds/XM07.md";e.default=r.exports},703:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("section",{staticClass:"content element-doc"},[t._m(0),t._m(1),t._m(2),n("demo-block",[n("template",{slot:"source"},[n("element-demo0")],1),n("template",{slot:"highlight"},[n("pre",{pre:!0},[n("code",{pre:!0,attrs:{class:"html"}},[t._v("<div id=\"demo1\" class=\"xm-select-demo\"></div>\n\n<script>\nvar demo1 = xmSelect.render({\n\tel: '#demo1', \n\tpaging: true,\n\tdata: [\n\t\t{name: '张三', value: 1},\n\t\t{name: '李四', value: 2},\n\t\t{name: '王五', value: 3},\n\t\t{name: '赵六', value: 4},\n\t\t{name: '苹果', value: 5},\n\t\t{name: '香蕉', value: 6},\n\t\t{name: '凤梨', value: 7},\n\t\t{name: '葡萄', value: 8},\n\t\t{name: '樱桃', value: 9},\n\t\t{name: '车厘子', value: 10},\n\t\t{name: '火龙果', value: 11},\n\t]\n})\n<\/script>\n")])])])],2),t._m(3),n("p",[t._v("每页3条")]),t._m(4),n("demo-block",[n("template",{slot:"source"},[n("element-demo1")],1),n("template",{slot:"highlight"},[n("pre",{pre:!0},[n("code",{pre:!0,attrs:{class:"html"}},[t._v("<div id=\"demo2\" class=\"xm-select-demo\"></div>\n\n<script>\nvar demo2 = xmSelect.render({\n\tel: '#demo2', \n\tpaging: true,\n\tpageSize: 3,\n\tdata: [\n\t\t{name: '张三', value: 1},\n\t\t{name: '李四', value: 2},\n\t\t{name: '王五', value: 3},\n\t\t{name: '赵六', value: 4},\n\t\t{name: '苹果', value: 5},\n\t\t{name: '香蕉', value: 6},\n\t\t{name: '凤梨', value: 7},\n\t\t{name: '葡萄', value: 8},\n\t\t{name: '樱桃', value: 9},\n\t\t{name: '车厘子', value: 10},\n\t\t{name: '火龙果', value: 11},\n\t]\n})\n<\/script>\n")])])])],2),t._m(5),t._m(6),n("demo-block",[n("template",{slot:"source"},[n("element-demo2")],1),n("template",{slot:"highlight"},[n("pre",{pre:!0},[n("code",{pre:!0,attrs:{class:"html"}},[t._v('<div id="demo3" class="xm-select-demo"></div>\n<button class="btn" id="demo3-5">每页5条</button>\n<button class="btn" id="demo3-10">每页10条</button>\n<button class="btn" id="demo3-20">每页20条</button>\n\n<script>\nvar data = [];\nfor(var i = 0 ; i < 100 ; i++ ){\n\tdata.push({\n\t\tname: \'测试数据\' + i,\n\t\tvalue: i,\n\t})\n}\n\nvar demo3 = xmSelect.render({\n\tel: \'#demo3\', \n\tpaging: true,\n\tpageSize: 5,\n\tfilterable: true,\n\tdata\n})\n\ndocument.getElementById(\'demo3-5\').onclick = function(){\n\tdemo3.update({\n\t\tpageSize: 5\n\t})\n}\n\ndocument.getElementById(\'demo3-10\').onclick = function(){\n\tdemo3.update({\n\t\tpageSize: 10\n\t})\n}\n\ndocument.getElementById(\'demo3-20\').onclick = function(){\n\tdemo3.update({\n\t\tpageSize: 20\n\t})\n}\n\n<\/script>\n')])])])],2),t._m(7),t._m(8),n("demo-block",[n("template",{slot:"source"},[n("element-demo3")],1),n("template",{slot:"highlight"},[n("pre",{pre:!0},[n("code",{pre:!0,attrs:{class:"html"}},[t._v("<div id=\"demo4\" class=\"xm-select-demo\"></div>\n\n<script>\nvar demo4 = xmSelect.render({\n\tel: '#demo4', \n\tpaging: true,\n\tpageSize: 3,\n\tfilterable: true,\n\tpageEmptyShow: false,\n\tdata: [\n\t\t{name: '张三', value: 1},\n\t\t{name: '李四', value: 2},\n\t\t{name: '王五', value: 3},\n\t\t{name: '赵六', value: 4},\n\t\t{name: '苹果', value: 5},\n\t\t{name: '香蕉', value: 6},\n\t\t{name: '凤梨', value: 7},\n\t\t{name: '葡萄', value: 8},\n\t\t{name: '樱桃', value: 9},\n\t\t{name: '车厘子', value: 10},\n\t\t{name: '火龙果', value: 11},\n\t]\n})\n<\/script>\n")])])])],2),t._m(9),t._m(10),n("demo-block",[n("div",[n("p",[n("code",[t._v("render")]),t._v("后, 就会进行一次回调, 用于渲染第一次数据")])]),n("template",{slot:"source"},[n("element-demo4")],1),n("template",{slot:"highlight"},[n("pre",{pre:!0},[n("code",{pre:!0,attrs:{class:"html"}},[t._v("<div id=\"demo5\" class=\"xm-select-demo\"></div>\n\n<script>\nvar demo5 = xmSelect.render({\n\tel: '#demo5', \n\tpaging: true,\n\tpageRemote: true,\n\tremoteMethod: function(val, cb, show, pageIndex){\n\t\t//val: 搜索框的内容, 不开启搜索默认为空, cb: 回调函数, show: 当前下拉框是否展开, pageIndex: 当前第几页\n\t\t\n\t\t//这里的axios类似于ajax\n\t\taxios({\n\t\t\tmethod: 'get',\n\t\t\turl: 'https://www.fastmock.site/mock/98228b1f16b7e5112d6c0c87921eabc1/xmSelect/search',\n\t\t\tparams: {\n\t\t\t\tkeyword: val + '_' + pageIndex,\n\t\t\t}\n\t\t}).then(response => {\n\t\t\t//这里是success的处理\n\t\t\tvar res = response.data;\n\t\t\t//回调需要两个参数, 第一个: 数据数组, 第二个: 总页码\n\t\t\tcb(res.data, 10)\n\t\t}).catch(err => {\n\t\t\t//这里是error的处理\n\t\t\tcb([], 0);\n\t\t});\n\t}\n})\n<\/script>\n")])])])],2),t._m(11),t._m(12),n("demo-block",[n("div",[n("p",[n("code",[t._v("render")]),t._v("后, 就会进行一次回调, 用于渲染第一次数据")])]),n("template",{slot:"source"},[n("element-demo5")],1),n("template",{slot:"highlight"},[n("pre",{pre:!0},[n("code",{pre:!0,attrs:{class:"html"}},[t._v("<div id=\"demo6\" class=\"xm-select-demo\"></div>\n\n<script>\nvar demo6 = xmSelect.render({\n\tel: '#demo6', \n\t//配置搜索\n\tfilterable: true,\n\t//配置远程分页\n\tpaging: true,\n\tpageRemote: true,\n\t//数据处理\n\tremoteMethod: function(val, cb, show, pageIndex){\n\t\t//val: 搜索框的内容, 不开启搜索默认为空, cb: 回调函数, show: 当前下拉框是否展开, pageIndex: 当前第几页\n\t\t\n\t\t//这里的axios类似于ajax\n\t\taxios({\n\t\t\tmethod: 'get',\n\t\t\turl: 'https://www.fastmock.site/mock/98228b1f16b7e5112d6c0c87921eabc1/xmSelect/search',\n\t\t\tparams: {\n\t\t\t\tkeyword: val + '_' + pageIndex,\n\t\t\t}\n\t\t}).then(response => {\n\t\t\t//这里是success的处理\n\t\t\tvar res = response.data;\n\t\t\t//回调需要两个参数, 第一个: 数据数组, 第二个: 总页码\n\t\t\tcb(res.data, 10)\n\t\t}).catch(err => {\n\t\t\t//这里是error的处理\n\t\t\tcb([], 0);\n\t\t});\n\t}\n})\n<\/script>\n")])])])],2)],1)};a._withStripped=!0;var i={name:"component-doc",components:{"element-demo0":function(){var t=function(){var t=this.$createElement;this._self._c;return this._m(0)};return t._withStripped=!0,{render:t,staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("div",{staticClass:"xm-select-demo",attrs:{id:"demo1"}})])}],mounted:function(){this.$nextTick((function(){xmSelect.render({el:"#demo1",paging:!0,data:[{name:"张三",value:1},{name:"李四",value:2},{name:"王五",value:3},{name:"赵六",value:4},{name:"苹果",value:5},{name:"香蕉",value:6},{name:"凤梨",value:7},{name:"葡萄",value:8},{name:"樱桃",value:9},{name:"车厘子",value:10},{name:"火龙果",value:11}]})}))}}}(),"element-demo1":function(){var t=function(){var t=this.$createElement;this._self._c;return this._m(0)};return t._withStripped=!0,{render:t,staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("div",{staticClass:"xm-select-demo",attrs:{id:"demo2"}})])}],mounted:function(){this.$nextTick((function(){xmSelect.render({el:"#demo2",paging:!0,pageSize:3,data:[{name:"张三",value:1},{name:"李四",value:2},{name:"王五",value:3},{name:"赵六",value:4},{name:"苹果",value:5},{name:"香蕉",value:6},{name:"凤梨",value:7},{name:"葡萄",value:8},{name:"樱桃",value:9},{name:"车厘子",value:10},{name:"火龙果",value:11}]})}))}}}(),"element-demo2":function(){var t=function(){var t=this.$createElement;this._self._c;return this._m(0)};return t._withStripped=!0,{render:t,staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("div",{staticClass:"xm-select-demo",attrs:{id:"demo3"}}),this._v(" "),e("button",{staticClass:"btn",attrs:{id:"demo3-5"}},[this._v("每页5条")]),this._v(" "),e("button",{staticClass:"btn",attrs:{id:"demo3-10"}},[this._v("每页10条")]),this._v(" "),e("button",{staticClass:"btn",attrs:{id:"demo3-20"}},[this._v("每页20条")])])}],mounted:function(){this.$nextTick((function(){for(var t=[],e=0;e<100;e++)t.push({name:"测试数据"+e,value:e});var n=xmSelect.render({el:"#demo3",paging:!0,pageSize:5,filterable:!0,data:t});document.getElementById("demo3-5").onclick=function(){n.update({pageSize:5})},document.getElementById("demo3-10").onclick=function(){n.update({pageSize:10})},document.getElementById("demo3-20").onclick=function(){n.update({pageSize:20})}}))}}}(),"element-demo3":function(){var t=function(){var t=this.$createElement;this._self._c;return this._m(0)};return t._withStripped=!0,{render:t,staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("div",{staticClass:"xm-select-demo",attrs:{id:"demo4"}})])}],mounted:function(){this.$nextTick((function(){xmSelect.render({el:"#demo4",paging:!0,pageSize:3,filterable:!0,pageEmptyShow:!1,data:[{name:"张三",value:1},{name:"李四",value:2},{name:"王五",value:3},{name:"赵六",value:4},{name:"苹果",value:5},{name:"香蕉",value:6},{name:"凤梨",value:7},{name:"葡萄",value:8},{name:"樱桃",value:9},{name:"车厘子",value:10},{name:"火龙果",value:11}]})}))}}}(),"element-demo4":function(){var t=function(){var t=this.$createElement;this._self._c;return this._m(0)};return t._withStripped=!0,{render:t,staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("div",{staticClass:"xm-select-demo",attrs:{id:"demo5"}})])}],mounted:function(){this.$nextTick((function(){xmSelect.render({el:"#demo5",paging:!0,pageRemote:!0,remoteMethod:function(t,e,n,a){axios({method:"get",url:"https://www.fastmock.site/mock/98228b1f16b7e5112d6c0c87921eabc1/xmSelect/search",params:{keyword:t+"_"+a}}).then((function(t){var n=t.data;e(n.data,10)})).catch((function(t){e([],0)}))}})}))}}}(),"element-demo5":function(){var t=function(){var t=this.$createElement;this._self._c;return this._m(0)};return t._withStripped=!0,{render:t,staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("div",{staticClass:"xm-select-demo",attrs:{id:"demo6"}})])}],mounted:function(){this.$nextTick((function(){xmSelect.render({el:"#demo6",filterable:!0,paging:!0,pageRemote:!0,remoteMethod:function(t,e,n,a){axios({method:"get",url:"https://www.fastmock.site/mock/98228b1f16b7e5112d6c0c87921eabc1/xmSelect/search",params:{keyword:t+"_"+a}}).then((function(t){var n=t.data;e(n.data,10)})).catch((function(t){e([],0)}))}})}))}}}()}},s=n(25),r=Object(s.a)(i,a,[function(){var t=this.$createElement,e=this._self._c||t;return e("h2",{attrs:{id:"fen-ye"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#fen-ye"}},[this._v("¶")]),this._v(" 分页")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h3",{attrs:{id:"qi-yong-fen-ye"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#qi-yong-fen-ye"}},[this._v("¶")]),this._v(" 启用分页")])},function(){var t=this.$createElement,e=this._self._c||t;return e("pre",[e("code",[this._v("xmSelect.render({\n\t//...\n\tpaging: true,\n})\n")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("h3",{attrs:{id:"zi-ding-yi-tiao-shu"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#zi-ding-yi-tiao-shu"}},[this._v("¶")]),this._v(" 自定义条数")])},function(){var t=this.$createElement,e=this._self._c||t;return e("pre",[e("code",[this._v("xmSelect.render({\n\t//...\n\tpaging: true,\n\tpageSize: 3,\n})\n")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("h3",{attrs:{id:"sou-suo-fen-ye"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#sou-suo-fen-ye"}},[this._v("¶")]),this._v(" 搜索+分页")])},function(){var t=this.$createElement,e=this._self._c||t;return e("pre",[e("code",[this._v("xmSelect.render({\n\t//...\n\tpaging: true,\n\tpageSize: 5,\n\tfilterable: true,\n})\n")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("h3",{attrs:{id:"sou-suo-fen-ye-wu-shu-ju-bu-zhan-shi-fen-ye"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#sou-suo-fen-ye-wu-shu-ju-bu-zhan-shi-fen-ye"}},[this._v("¶")]),this._v(" 搜索 + 分页 无数据 不展示分页")])},function(){var t=this.$createElement,e=this._self._c||t;return e("pre",[e("code",[this._v("xmSelect.render({\n\t//...\n\tpaging: true,\n\tpageSize: 3,\n\tfilterable: true,\n\tpageEmptyShow: false,\n})\n")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("h3",{attrs:{id:"yuan-cheng-fen-ye"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#yuan-cheng-fen-ye"}},[this._v("¶")]),this._v(" 远程分页")])},function(){var t=this.$createElement,e=this._self._c||t;return e("pre",[e("code",[this._v("xmSelect.render({\n    //...\n\t//开启分页\n    paging: true,\n\t//远程分页\n    pageRemote: true,\n\t//实现方法\n    remoteMethod: function(val, cb, show, pageIndex),\n})\n")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("h3",{attrs:{id:"sou-suo-yuan-cheng-fen-ye"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#sou-suo-yuan-cheng-fen-ye"}},[this._v("¶")]),this._v(" 搜索 + 远程分页")])},function(){var t=this.$createElement,e=this._self._c||t;return e("pre",[e("code",[this._v("xmSelect.render({\n    //...\n\t//开启分页\n    paging: true,\n\t//远程分页\n    pageRemote: true,\n\t//实现方法\n    remoteMethod: function(val, cb, show, pageIndex),\n})\n")])])}],!1,null,null,null);r.options.__file="docs/mds/XM08.md";e.default=r.exports},704:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this.$createElement,e=this._self._c||t;return e("section",{staticClass:"content element-doc"},[this._m(0),this._m(1),e("demo-block",[e("template",{slot:"source"},[e("element-demo0")],1),e("template",{slot:"highlight"},[e("pre",{pre:!0},[e("code",{pre:!0,attrs:{class:"html"}},[this._v("<div id=\"demo1\" class=\"xm-select-demo\"></div>\n\n<script>\nvar demo1 = xmSelect.render({\n\tel: '#demo1', \n\tradio: true,\n\ttoolbar: {show: true},\n\tdata: [\n\t\t{name: '张三', value: 1},\n\t\t{name: '李四', value: 2},\n\t\t{name: '王五', value: 3},\n\t]\n})\n<\/script>\n")])])])],2),this._m(2),e("demo-block",[e("template",{slot:"source"},[e("element-demo1")],1),e("template",{slot:"highlight"},[e("pre",{pre:!0},[e("code",{pre:!0,attrs:{class:"html"}},[this._v("<div id=\"demo2\" class=\"xm-select-demo\"></div>\n\n<script>\nvar demo2 = xmSelect.render({\n\tel: '#demo2', \n\tradio: true,\n\tclickClose: true,\n\tdata: [\n\t\t{name: '张三', value: 1},\n\t\t{name: '李四', value: 2},\n\t\t{name: '王五', value: 3},\n\t]\n})\n<\/script>\n")])])])],2),this._m(3),e("demo-block",[e("template",{slot:"source"},[e("element-demo2")],1),e("template",{slot:"highlight"},[e("pre",{pre:!0},[e("code",{pre:!0,attrs:{class:"html"}},[this._v("<div id=\"demo3\" class=\"xm-select-demo\"></div>\n\n<script>\nvar demo3 = xmSelect.render({\n\tel: '#demo3', \n\tradio: true,\n\tclickClose: true,\n\tmodel: {\n\t\tlabel: {\n\t\t\ttype: 'text',\n\t\t\ttext: {\n\t\t\t\t//左边拼接的字符\n\t\t\t\tleft: '',\n\t\t\t\t//右边拼接的字符\n\t\t\t\tright: '',\n\t\t\t\t//中间的分隔符\n\t\t\t\tseparator: ', ',\n\t\t\t},\n\t\t}\n\t},\n\tdata: [\n\t\t{name: '张三', value: 1},\n\t\t{name: '李四', value: 2},\n\t\t{name: '王五', value: 3},\n\t]\n})\n<\/script>\n")])])])],2)],1)};a._withStripped=!0;var i={name:"component-doc",components:{"element-demo0":function(){var t=function(){var t=this.$createElement;this._self._c;return this._m(0)};return t._withStripped=!0,{render:t,staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("div",{staticClass:"xm-select-demo",attrs:{id:"demo1"}})])}],mounted:function(){this.$nextTick((function(){xmSelect.render({el:"#demo1",radio:!0,toolbar:{show:!0},data:[{name:"张三",value:1},{name:"李四",value:2},{name:"王五",value:3}]})}))}}}(),"element-demo1":function(){var t=function(){var t=this.$createElement;this._self._c;return this._m(0)};return t._withStripped=!0,{render:t,staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("div",{staticClass:"xm-select-demo",attrs:{id:"demo2"}})])}],mounted:function(){this.$nextTick((function(){xmSelect.render({el:"#demo2",radio:!0,clickClose:!0,data:[{name:"张三",value:1},{name:"李四",value:2},{name:"王五",value:3}]})}))}}}(),"element-demo2":function(){var t=function(){var t=this.$createElement;this._self._c;return this._m(0)};return t._withStripped=!0,{render:t,staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("div",{staticClass:"xm-select-demo",attrs:{id:"demo3"}})])}],mounted:function(){this.$nextTick((function(){xmSelect.render({el:"#demo3",radio:!0,clickClose:!0,model:{label:{type:"text",text:{left:"",right:"",separator:", "}}},data:[{name:"张三",value:1},{name:"李四",value:2},{name:"王五",value:3}]})}))}}}()}},s=n(25),r=Object(s.a)(i,a,[function(){var t=this.$createElement,e=this._self._c||t;return e("h2",{attrs:{id:"dan-xuan"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#dan-xuan"}},[this._v("¶")]),this._v(" 单选")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h3",{attrs:{id:"kai-qi-dan-xuan"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#kai-qi-dan-xuan"}},[this._v("¶")]),this._v(" 开启单选")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h3",{attrs:{id:"dan-xuan-wan-guan-bi-xia-la"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#dan-xuan-wan-guan-bi-xia-la"}},[this._v("¶")]),this._v(" 单选完关闭下拉")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h3",{attrs:{id:"geng-huan-xian-shi-fang-shi"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#geng-huan-xian-shi-fang-shi"}},[this._v("¶")]),this._v(" 更换显示方式")])}],!1,null,null,null);r.options.__file="docs/mds/XM09.md";e.default=r.exports},705:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("section",{staticClass:"content element-doc"},[t._m(0),t._m(1),n("demo-block",[n("template",{slot:"source"},[n("element-demo0")],1),n("template",{slot:"highlight"},[n("pre",{pre:!0},[n("code",{pre:!0,attrs:{class:"html"}},[t._v("<div id=\"demo1\" class=\"xm-select-demo\"></div>\n\n<script>\nvar demo1 = xmSelect.render({\n\tel: '#demo1', \n\trepeat: true,\n\tdata: [\n\t\t{name: '张三', value: 1},\n\t\t{name: '李四', value: 2},\n\t\t{name: '王五', value: 3},\n\t]\n})\n<\/script>\n")])])])],2),t._m(2),n("demo-block",[n("template",{slot:"source"},[n("element-demo1")],1),n("template",{slot:"highlight"},[n("pre",{pre:!0},[n("code",{pre:!0,attrs...
完整源码文件,请先购买后再查看
关于我们 | 顾问团队 | 发展历程 | 联系我们 | 源码上传
联系电话(Tel):4008-010-151(免长途)
地址:北京市海淀区大恒科技大厦五层 邮编:100080
Floor 5th,Daheng Building,Zhongguancun,Beijing,China,100080
51Aspx.com 版权所有 CopyRight © 2006-2022. 京ICP备09089570号 | 京公网安备11010702000869号