text: (window["webpackJsonpVXETable"]=window["webpackJsonpVXETable"]||[]).push([["base"],{"069f":function(e,t,l){"use strict";l.r(t);var a=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("div",[l("p",{staticClass:"tip"},[e._v("通过设置 "),l("table-api-link",{attrs:{prop:"resizable"}}),e._v(" 属性启用列宽拖动功能")],1),l("vxe-table",{attrs:{resizable:"",data:e.tableData}},[l("vxe-table-column",{attrs:{type:"seq",width:"60"}}),l("vxe-table-column",{attrs:{field:"name",title:"Name"}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex"}}),l("vxe-table-column",{attrs:{field:"age",title:"Age"}}),l("vxe-table-column",{attrs:{field:"time",title:"Time"}}),l("vxe-table-column",{attrs:{field:"address",title:"Address","show-overflow":""}})],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[0]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[1]))]),e._v("\n  ")]),l("p",{staticClass:"tip"},[e._v("横向滚动条")]),l("vxe-table",{attrs:{border:"",resizable:"","highlight-hover-row":"",data:e.tableData}},[l("vxe-table-column",{attrs:{type:"seq",width:"60"}}),l("vxe-table-column",{attrs:{field:"name",title:"Name",width:"300"}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex",width:"300"}}),l("vxe-table-column",{attrs:{field:"age",title:"Age",width:"300"}}),l("vxe-table-column",{attrs:{field:"time",title:"Time",width:"300"}}),l("vxe-table-column",{attrs:{field:"address",title:"Address",width:"300","show-overflow":""}})],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[2]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[3]))]),e._v("\n  ")]),l("p",{staticClass:"tip"},[e._v("固定左列宽拖动（固定左不允许超过表格右边距）")]),l("vxe-table",{attrs:{border:"",resizable:"",data:e.tableData}},[l("vxe-table-column",{attrs:{type:"seq",width:"60",fixed:"left"}}),l("vxe-table-column",{attrs:{field:"name",title:"Name",width:"100",fixed:"left"}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex",width:"100",fixed:"left"}}),l("vxe-table-column",{attrs:{field:"age",title:"Age",width:"100",fixed:"left"}}),l("vxe-table-column",{attrs:{field:"atrr1",title:"atrr1",width:"200"}}),l("vxe-table-column",{attrs:{field:"atrr2",title:"atrr2",width:"200"}}),l("vxe-table-column",{attrs:{field:"atrr3",title:"atrr3",width:"200"}}),l("vxe-table-column",{attrs:{field:"atrr4",title:"atrr4",width:"200"}}),l("vxe-table-column",{attrs:{field:"time",title:"Time",width:"200"}}),l("vxe-table-column",{attrs:{field:"address",title:"Address",width:"200","show-overflow":""}})],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[4]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[5]))]),e._v("\n  ")]),l("p",{staticClass:"tip"},[e._v("固定右列宽拖动（固定右不允许超过表格左边距）")]),l("vxe-table",{attrs:{border:"",resizable:"",data:e.tableData}},[l("vxe-table-column",{attrs:{type:"seq",width:"60"}}),l("vxe-table-column",{attrs:{field:"name",title:"Name",width:"200"}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex",width:"200"}}),l("vxe-table-column",{attrs:{field:"age",title:"Age",width:"200"}}),l("vxe-table-column",{attrs:{field:"atrr1",title:"atrr1",width:"200"}}),l("vxe-table-column",{attrs:{field:"atrr2",title:"atrr2",width:"200"}}),l("vxe-table-column",{attrs:{field:"atrr3",title:"atrr3",width:"200"}}),l("vxe-table-column",{attrs:{field:"atrr4",title:"atrr4",width:"200"}}),l("vxe-table-column",{attrs:{field:"role",title:"Role",width:"100",fixed:"right"}}),l("vxe-table-column",{attrs:{field:"name",title:"Name",width:"100",fixed:"right"}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex",width:"100",fixed:"right"}})],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[6]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[7]))]),e._v("\n  ")]),l("p",{staticClass:"tip"},[e._v("左右固定列宽拖动（固定左不允许超过固定右，固定右不允许超过固定左）")]),l("vxe-table",{attrs:{border:"",resizable:"","show-overflow":"",data:e.tableData}},[l("vxe-table-column",{attrs:{type:"seq",width:"60",fixed:"left"}}),l("vxe-table-column",{attrs:{field:"name",title:"Name",width:"100",fixed:"left"}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex",width:"100",fixed:"left"}}),l("vxe-table-column",{attrs:{field:"age",title:"Age",width:"100",fixed:"left"}}),l("vxe-table-column",{attrs:{field:"atrr1",title:"atrr1",width:"200"}}),l("vxe-table-column",{attrs:{field:"atrr2",title:"atrr2 其他2",width:"200"}}),l("vxe-table-column",{attrs:{field:"atrr3",title:"atrr3",width:"200"}}),l("vxe-table-column",{attrs:{field:"atrr4",title:"atrr4 其他4",width:"200"}}),l("vxe-table-column",{attrs:{field:"date",title:"Date",width:"100",fixed:"right"}}),l("vxe-table-column",{attrs:{field:"time",title:"Time",width:"100",fixed:"right"}}),l("vxe-table-column",{attrs:{field:"address",title:"Address",width:"100",fixed:"right"}})],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[8]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[9]))]),e._v("\n  ")]),l("p",{staticClass:"tip"},[e._v("分组表头拖动（只允许列拖动，不允许分组标题拖动）")]),l("vxe-table",{attrs:{border:"",resizable:"",data:e.tableData}},[l("vxe-table-column",{attrs:{title:"基本信息"}},[l("vxe-table-column",{attrs:{type:"seq",width:"60"}}),l("vxe-table-column",{attrs:{field:"name",title:"Name"}})],1),l("vxe-table-column",{attrs:{title:"更多信息"}},[l("vxe-table-column",{attrs:{field:"role",title:"Role"}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex"}}),l("vxe-table-column",{attrs:{title:"详细信息"}},[l("vxe-table-column",{attrs:{field:"sex",title:"Sex"}}),l("vxe-table-column",{attrs:{field:"date",title:"Date",width:"140","show-overflow":""}})],1)],1),l("vxe-table-column",{attrs:{field:"address",title:"Address",width:"200","show-overflow":""}})],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[10]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[11]))]),e._v("\n  ")]),l("p",{staticClass:"tip"},[e._v("左右固定列的分组表头拖动（只允许列拖动，不允许分组标题拖动）")]),l("vxe-table",{attrs:{border:"",resizable:"",data:e.tableData}},[l("vxe-table-column",{attrs:{title:"基本信息"}},[l("vxe-table-column",{attrs:{type:"seq",width:"60",fixed:"left"}}),l("vxe-table-column",{attrs:{field:"name",title:"Name",fixed:"left",width:"100"}})],1),l("vxe-table-column",{attrs:{title:"更多信息"}},[l("vxe-table-column",{attrs:{field:"role",title:"Role",width:"300"}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex",width:"300"}}),l("vxe-table-column",{attrs:{title:"详细信息"}},[l("vxe-table-column",{attrs:{field:"sex",title:"Sex",width:"300"}}),l("vxe-table-column",{attrs:{field:"date",title:"Date",width:"300"}})],1)],1),l("vxe-table-column",{attrs:{title:"其他信息"}},[l("vxe-table-column",{attrs:{field:"age",title:"Age",width:"100",fixed:"right","show-overflow":""}}),l("vxe-table-column",{attrs:{field:"address",title:"Address",width:"100",fixed:"right","show-overflow":""}})],1)],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[12]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[13]))]),e._v("\n  ")])],1)},n=[],o=(l("4160"),l("a630"),l("fb6a"),l("3ca3"),l("159b"),l("1487")),i=l.n(o),s={data:function(){return{tableData:[],demoCodes:['\n        <vxe-table\n          resizable\n          :data="tableData">\n          <vxe-table-column type="seq" width="60"></vxe-table-column>\n          <vxe-table-column field="name" title="Name"></vxe-table-column>\n          <vxe-table-column field="sex" title="Sex"></vxe-table-column>\n          <vxe-table-column field="age" title="Age"></vxe-table-column>\n          <vxe-table-column field="time" title="Time"></vxe-table-column>\n          <vxe-table-column field="address" title="Address" show-overflow></vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: []\n            }\n          },\n          created () {\n            this.tableData = window.MOCK_DATA_LIST.slice(0, 3)\n          }\n        }\n        ",'\n        <vxe-table\n          border\n          resizable\n          highlight-hover-row\n          :data="tableData">\n          <vxe-table-column type="seq" width="60"></vxe-table-column>\n          <vxe-table-column field="name" title="Name" width="300"></vxe-table-column>\n          <vxe-table-column field="sex" title="Sex" width="300"></vxe-table-column>\n          <vxe-table-column field="age" title="Age" width="300"></vxe-table-column>\n          <vxe-table-column field="time" title="Time" width="300"></vxe-table-column>\n          <vxe-table-column field="address" title="Address" width="300" show-overflow></vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: []\n            }\n          },\n          created () {\n            this.tableData = window.MOCK_DATA_LIST.slice(0, 3)\n          }\n        }\n        ",'\n        <vxe-table\n          border\n          resizable\n          :data="tableData">\n          <vxe-table-column type="seq" width="60" fixed="left"></vxe-table-column>\n          <vxe-table-column field="name" title="Name" width="100" fixed="left"></vxe-table-column>\n          <vxe-table-column field="sex" title="Sex" width="100" fixed="left"></vxe-table-column>\n          <vxe-table-column field="age" title="Age" width="100" fixed="left"></vxe-table-column>\n          <vxe-table-column field="atrr1" title="atrr1" width="200"></vxe-table-column>\n          <vxe-table-column field="atrr2" title="atrr2" width="200"></vxe-table-column>\n          <vxe-table-column field="atrr3" title="atrr3" width="200"></vxe-table-column>\n          <vxe-table-column field="atrr4" title="atrr4" width="200"></vxe-table-column>\n          <vxe-table-column field="time" title="Time" width="200"></vxe-table-column>\n          <vxe-table-column field="address" title="Address" width="200" show-overflow></vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: []\n            }\n          },\n          created () {\n            this.tableData = window.MOCK_DATA_LIST.slice(0, 3)\n          }\n        }\n        ",'\n        <vxe-table\n          border\n          resizable\n          :data="tableData">\n          <vxe-table-column type="seq" width="60"></vxe-table-column>\n          <vxe-table-column field="name" title="Name" width="200"></vxe-table-column>\n          <vxe-table-column field="sex" title="Sex" width="200"></vxe-table-column>\n          <vxe-table-column field="age" title="Age" width="200"></vxe-table-column>\n          <vxe-table-column field="atrr1" title="atrr1" width="200"></vxe-table-column>\n          <vxe-table-column field="atrr2" title="atrr2" width="200"></vxe-table-column>\n          <vxe-table-column field="atrr3" title="atrr3" width="200"></vxe-table-column>\n          <vxe-table-column field="atrr4" title="atrr4" width="200"></vxe-table-column>\n          <vxe-table-column field="date" title="Date" width="100" fixed="right"></vxe-table-column>\n          <vxe-table-column field="time" title="Time" width="100" fixed="right"></vxe-table-column>\n          <vxe-table-column field="address" title="Address" width="100" fixed="right"></vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: []\n            }\n          },\n          created () {\n            this.tableData = window.MOCK_DATA_LIST.slice(0, 3)\n          }\n        }\n        ",'\n        <vxe-table\n          border\n          resizable\n          show-overflow\n          :data="tableData">\n          <vxe-table-column type="seq" width="60" fixed="left"></vxe-table-column>\n          <vxe-table-column field="name" title="Name" width="100" fixed="left"></vxe-table-column>\n          <vxe-table-column field="sex" title="Sex" width="100" fixed="left"></vxe-table-column>\n          <vxe-table-column field="age" title="Age" width="100" fixed="left"></vxe-table-column>\n          <vxe-table-column field="atrr1" title="atrr1" width="200"></vxe-table-column>\n          <vxe-table-column field="atrr2" title="atrr2 其他2" width="200"></vxe-table-column>\n          <vxe-table-column field="atrr3" title="atrr3" width="200"></vxe-table-column>\n          <vxe-table-column field="atrr4" title="atrr4 其他4" width="200"></vxe-table-column>\n          <vxe-table-column field="date" title="Date" width="100" fixed="right"></vxe-table-column>\n          <vxe-table-column field="time" title="Time" width="100" fixed="right"></vxe-table-column>\n          <vxe-table-column field="address" title="Address" width="100" fixed="right"></vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: []\n            }\n          },\n          created () {\n            this.tableData = window.MOCK_DATA_LIST.slice(0, 3)\n          }\n        }\n        ",'\n        <vxe-table\n          border\n          resizable\n          :data="tableData">\n          <vxe-table-column title="基本信息">\n            <vxe-table-column type="seq" width="60"></vxe-table-column>\n            <vxe-table-column field="name" title="Name"></vxe-table-column>\n          </vxe-table-column>\n          <vxe-table-column title="更多信息">\n            <vxe-table-column field="role" title="Role"></vxe-table-column>\n            <vxe-table-column field="sex" title="Sex"></vxe-table-column>\n            <vxe-table-column title="详细信息">\n              <vxe-table-column field="sex" title="Sex"></vxe-table-column>\n              <vxe-table-column field="date" title="Date" width="140" show-overflow></vxe-table-column>\n            </vxe-table-column>\n          </vxe-table-column>\n          <vxe-table-column field="address" title="Address" width="200" show-overflow></vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: []\n            }\n          },\n          created () {\n            this.tableData = window.MOCK_DATA_LIST.slice(0, 3)\n          }\n        }\n        ",'\n        <vxe-table\n          border\n          resizable\n          :data="tableData">\n          <vxe-table-column title="基本信息">\n            <vxe-table-column type="seq" width="60" fixed="left"></vxe-table-column>\n            <vxe-table-column field="name" title="Name" fixed="left" width="100"></vxe-table-column>\n          </vxe-table-column>\n          <vxe-table-column title="更多信息">\n            <vxe-table-column field="role" title="Role" width="300"></vxe-table-column>\n            <vxe-table-column field="sex" title="Sex" width="300"></vxe-table-column>\n            <vxe-table-column title="详细信息">\n              <vxe-table-column field="sex" title="Sex" width="300"></vxe-table-column>\n              <vxe-table-column field="date" title="Date" width="300"></vxe-table-column>\n            </vxe-table-column>\n          </vxe-table-column>\n          <vxe-table-column title="其他信息">\n            <vxe-table-column field="age" title="Age" width="100" fixed="right" show-overflow></vxe-table-column>\n            <vxe-table-column field="address" title="Address" width="100" fixed="right" show-overflow></vxe-table-column>\n          </vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: []\n            }\n          },\n          created () {\n            this.tableData = window.MOCK_DATA_LIST.slice(0, 3)\n          }\n        }\n        "]}},created:function(){this.tableData=window.MOCK_DATA_LIST.slice(0,3)},mounted:function(){Array.from(this.$el.querySelectorAll("pre code")).forEach((function(e){i.a.highlightBlock(e)}))}},r=s,d=l("2877"),c=Object(d["a"])(r,a,n,!1,null,null,null);t["default"]=c.exports},"0dc5":function(e,t,l){"use strict";l.r(t);var a=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("div",[l("p",{staticClass:"tip"},[e._v("多选表格，用户手动勾选时会触发事件 "),l("table-api-link",{attrs:{prop:"checkbox-change"}})],1),l("vxe-toolbar",{scopedSlots:e._u([{key:"buttons",fn:function(){return[l("vxe-button",{on:{click:function(t){return e.$refs.xTable1.toggleCheckboxRow(e.tableData[1])}}},[e._v("切换第二行选中")]),l("vxe-button",{on:{click:function(t){return e.$refs.xTable1.setCheckboxRow([e.tableData[2],e.tableData[3]],!0)}}},[e._v("设置第三、四行选中")]),l("vxe-button",{on:{click:function(t){return e.$refs.xTable1.setAllCheckboxRow(!0)}}},[e._v("设置所有行选中")]),l("vxe-button",{on:{click:function(t){return e.$refs.xTable1.clearCheckboxRow()}}},[e._v("清除所有行选中")]),l("vxe-button",{on:{click:e.getSelectEvent1}},[e._v("获取选中")])]},proxy:!0}])}),l("vxe-table",{ref:"xTable1",attrs:{border:"",data:e.tableData},on:{"checkbox-all":e.selectAllEvent,"checkbox-change":e.selectChangeEvent}},[l("vxe-table-column",{attrs:{type:"checkbox",width:"60"}}),l("vxe-table-column",{attrs:{field:"name",title:"Name"}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex"}}),l("vxe-table-column",{attrs:{field:"age",title:"Age"}}),l("vxe-table-column",{attrs:{field:"address",title:"Address","show-overflow":""}})],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[0]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[1]))]),e._v("\n  ")]),l("p",{staticClass:"tip"},[e._v(" 还可以通过 "),l("table-api-link",{attrs:{prop:"checkMethod"}}),e._v(" 方法控制 checkbox 是否允许用户手动勾选，还可以配置 "),l("table-api-link",{attrs:{prop:"labelField"}}),e._v(" 列显示属性"),l("br"),e._v(" 禁止用户手动勾选，但是可以通过函数式调用强制勾选，该功能对于某些场景需要强制勾选指定行时非常有用 ")],1),l("vxe-toolbar",{scopedSlots:e._u([{key:"buttons",fn:function(){return[l("vxe-button",{on:{click:function(t){return e.$refs.xTable2.toggleCheckboxRow(e.tableData[1])}}},[e._v("切换第二行选中")]),l("vxe-button",{on:{click:function(t){return e.$refs.xTable2.setCheckboxRow([e.tableData[2],e.tableData[3]],!0)}}},[e._v("设置第三、四行选中")]),l("vxe-button",{on:{click:function(t){return e.$refs.xTable2.setAllCheckboxRow(!0)}}},[e._v("设置所有行选中")]),l("vxe-button",{on:{click:function(t){return e.$refs.xTable2.clearCheckboxRow()}}},[e._v("清除所有行选中")])]},proxy:!0}])}),l("vxe-table",{ref:"xTable2",attrs:{border:"",data:e.tableData,"checkbox-config":{labelField:"name",checkMethod:e.checkMethod}}},[l("vxe-table-column",{attrs:{type:"checkbox",title:"All"}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex"}}),l("vxe-table-column",{attrs:{field:"age",title:"Age"}}),l("vxe-table-column",{attrs:{field:"address",title:"Address","show-overflow":""}})],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[2]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[3]))]),e._v("\n  ")]),l("p",{staticClass:"tip"},[e._v("多选表格，通过配置 "),l("table-api-link",{attrs:{prop:"trigger"}}),e._v(" 设置触发源，使用渲染最快的 "),l("table-api-link",{attrs:{prop:"checkField"}}),e._v(" 属性绑定方式")],1),l("vxe-toolbar",{scopedSlots:e._u([{key:"buttons",fn:function(){return[l("vxe-button",{on:{click:function(t){return e.$refs.xTable3.toggleCheckboxRow(e.tableData[1])}}},[e._v("切换第二行选中")]),l("vxe-button",{on:{click:function(t){return e.$refs.xTable3.setCheckboxRow([e.tableData[2],e.tableData[3]],!0)}}},[e._v("设置第三、四行选中")]),l("vxe-button",{on:{click:function(t){return e.$refs.xTable3.setAllCheckboxRow(!0)}}},[e._v("设置所有行选中")]),l("vxe-button",{on:{click:function(t){return e.$refs.xTable3.clearCheckboxRow()}}},[e._v("清除所有行选中")])]},proxy:!0}])}),l("vxe-table",{ref:"xTable3",staticClass:"checkbox-table",attrs:{border:"","highlight-hover-row":"",data:e.tableData,"checkbox-config":{checkField:"checked",trigger:"row"}}},[l("vxe-table-column",{attrs:{type:"checkbox",width:"60"}}),l("vxe-table-column",{attrs:{field:"name",title:"Name"}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex"}}),l("vxe-table-column",{attrs:{field:"age",title:"Age"}}),l("vxe-table-column",{attrs:{field:"address",title:"Address","show-overflow":""}})],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[4]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[5]))]),e._v("\n  ")]),l("p",{staticClass:"tip"},[e._v("默认选中，通过指定 "),l("table-api-link",{attrs:{prop:"checkRowKeys"}}),e._v(" 设置默认选中的行，指定默认值需要有 "),l("table-api-link",{attrs:{prop:"row-id"}}),e._v("，通过 "),l("table-api-link",{attrs:{prop:"highlight"}}),e._v(" 设置高亮选中行")],1),l("vxe-table",{attrs:{border:"","highlight-hover-row":"","row-id":"id",data:e.tableData,"checkbox-config":{checkRowKeys:["2","3"],highlight:!0},"radio-config":{labelField:"name"}}},[l("vxe-table-column",{attrs:{type:"checkbox",width:"60"}}),l("vxe-table-column",{attrs:{type:"radio",width:"300",title:"Name"}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex"}}),l("vxe-table-column",{attrs:{field:"age",title:"Age"}}),l("vxe-table-column",{attrs:{field:"address",title:"Address","show-overflow":""}})],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[6]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[7]))]),e._v("\n  ")]),l("p",{staticClass:"tip"},[e._v("通过 "),l("table-api-link",{attrs:{prop:"checkStrictly"}}),e._v(" 设置父子节点不互相关联，启用后 "),l("table-api-link",{attrs:{prop:"showHeader"}}),e._v(" 默认为 false")],1),l("vxe-toolbar",{scopedSlots:e._u([{key:"buttons",fn:function(){return[l("vxe-button",{on:{click:function(t){return e.$refs.xTable5.setCheckboxRow(e.tableData,!0)}}},[e._v("设置所有行选中")]),l("vxe-button",{on:{click:function(t){return e.$refs.xTable5.clearCheckboxRow()}}},[e._v("清除所有行选中")])]},proxy:!0}])}),l("vxe-table",{ref:"xTable5",attrs:{border:"","highlight-hover-row":"",data:e.tableData,"checkbox-config":{checkStrictly:!0}}},[l("vxe-table-column",{attrs:{type:"checkbox",width:"60"}}),l("vxe-table-column",{attrs:{field:"name",title:"Name"}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex"}}),l("vxe-table-column",{attrs:{field:"age",title:"Age"}}),l("vxe-table-column",{attrs:{field:"address",title:"Address","show-overflow":""}})],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[8]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[9]))]),e._v("\n  ")]),l("p",{staticClass:"tip"},[e._v("多选可单选同时使用")]),l("vxe-table",{attrs:{border:"","highlight-hover-row":"",data:e.tableData,"radio-config":{labelField:"name"}}},[l("vxe-table-column",{attrs:{type:"checkbox",width:"60"}}),l("vxe-table-column",{attrs:{type:"radio",width:"300",title:"Name"}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex"}}),l("vxe-table-column",{attrs:{field:"age",title:"Age"}}),l("vxe-table-column",{attrs:{field:"address",title:"Address","show-overflow":""}})],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[11]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[12]))]),e._v("\n  ")]),l("p",{staticClass:"tip"},[e._v("不仅如此，还可以多种方式混合使用，通过 "),l("table-api-link",{attrs:{prop:"range"}}),e._v(" 启用范围选中")],1),l("vxe-table",{attrs:{border:"",resizable:"","highlight-hover-row":"","highlight-current-row":"",data:e.tableData,"radio-config":{labelField:"role"},"checkbox-config":{labelField:"name",highlight:!0,range:!0}}},[l("vxe-table-column",{attrs:{type:"checkbox",title:"Name"}}),l("vxe-table-column",{attrs:{type:"radio",title:"Role"}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex"}}),l("vxe-table-column",{attrs:{field:"age",title:"Age"}}),l("vxe-table-column",{attrs:{field:"address",title:"Address","show-overflow":""}})],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[13]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[14]))]),e._v("\n  ")])],1)},n=[],o=(l("4160"),l("a630"),l("fb6a"),l("3ca3"),l("159b"),l("1487")),i=l.n(o),s={data:function(){return{tableData:[],demoCodes:['\n        <vxe-toolbar>\n          <template v-slot:buttons>\n            <vxe-button @click="$refs.xTable1.toggleCheckboxRow(tableData[1])">切换第二行选中</vxe-button>\n            <vxe-button @click="$refs.xTable1.setCheckboxRow([tableData[2], tableData[3]], true)">设置第三、四行选中</vxe-button>\n            <vxe-button @click="$refs.xTable1.setAllCheckboxRow(true)">设置所有行选中</vxe-button>\n            <vxe-button @click="$refs.xTable1.clearCheckboxRow()">清除所有行选中</vxe-button>\n            <vxe-button @click="getSelectEvent1">获取选中</vxe-button>\n          </template>\n        </vxe-toolbar>\n\n        <vxe-table\n          border\n          ref="xTable1"\n          :data="tableData"\n          @checkbox-all="selectAllEvent"\n          @checkbox-change="selectChangeEvent">\n          <vxe-table-column type="checkbox" width="60"></vxe-table-column>\n          <vxe-table-column field="name" title="Name"></vxe-table-column>\n          <vxe-table-column field="sex" title="Sex"></vxe-table-column>\n          <vxe-table-column field="age" title="Age"></vxe-table-column>\n          <vxe-table-column field="address" title="Address" show-overflow></vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: []\n            }\n          },\n          created () {\n            this.tableData = window.MOCK_DATA_LIST.slice(0, 5)\n          },\n          methods: {\n            selectAllEvent ({ checked, records }) {\n              console.log(checked ? '所有勾选事件' : '所有取消事件', records)\n            },\n            selectChangeEvent ({ checked, records }) {\n              console.log(checked ? '勾选事件' : '取消事件', records)\n            },\n            getSelectEvent () {\n              let selectRecords = this.$refs.xTable1.getCheckboxRecords()\n              this.$XModal.alert(selectRecords.length)\n            }\n          }\n        }\n        ",'\n        <vxe-toolbar>\n          <template v-slot:buttons>\n            <vxe-button @click="$refs.xTable2.toggleCheckboxRow(tableData[1])">切换第二行选中</vxe-button>\n            <vxe-button @click="$refs.xTable2.setCheckboxRow([tableData[2], tableData[3]], true)">设置第三、四行选中</vxe-button>\n            <vxe-button @click="$refs.xTable2.setAllCheckboxRow(true)">设置所有行选中</vxe-button>\n            <vxe-button @click="$refs.xTable2.clearCheckboxRow()">清除所有行选中</vxe-button>\n          </template>\n        </vxe-toolbar>\n\n        <vxe-table\n          border\n          ref="xTable2"\n          :data="tableData"\n          :checkbox-config="{labelField: \'name\', checkMethod}">\n          <vxe-table-column type="checkbox" title="All"></vxe-table-column>\n          <vxe-table-column field="sex" title="Sex"></vxe-table-column>\n          <vxe-table-column field="age" title="Age"></vxe-table-column>\n          <vxe-table-column field="address" title="Address" show-overflow></vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: []\n            }\n          },\n          created () {\n            this.tableData = window.MOCK_DATA_LIST.slice(0, 5)\n          },\n          methods: {\n            checkMethod ({ row }) {\n              return row.age > 26\n            }\n          }\n        }\n        ",'\n        <vxe-toolbar>\n          <template v-slot:buttons>\n            <vxe-button @click="$refs.xTable3.toggleCheckboxRow(tableData[1])">切换第二行选中</vxe-button>\n            <vxe-button @click="$refs.xTable3.setCheckboxRow([tableData[2], tableData[3]], true)">设置第三、四行选中</vxe-button>\n            <vxe-button @click="$refs.xTable3.setAllCheckboxRow(true)">设置所有行选中</vxe-button>\n            <vxe-button @click="$refs.xTable3.clearCheckboxRow()">清除所有行选中</vxe-button>\n          </template>\n        </vxe-toolbar>\n\n        <vxe-table\n          border\n          highlight-hover-row\n          class="checkbox-table"\n          ref="xTable3"\n          :data="tableData"\n          :checkbox-config="{checkField: \'checked\', trigger: \'row\'}">\n          <vxe-table-column type="checkbox" width="60"></vxe-table-column>\n          <vxe-table-column field="name" title="Name"></vxe-table-column>\n          <vxe-table-column field="sex" title="Sex"></vxe-table-column>\n          <vxe-table-column field="age" title="Age"></vxe-table-column>\n          <vxe-table-column field="address" title="Address" show-overflow></vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: []\n            }\n          },\n          created () {\n            this.tableData = window.MOCK_DATA_LIST.slice(0, 5)\n          }\n        }\n        ",'\n        <vxe-table\n          border\n          highlight-hover-row\n          row-id="id"\n          :data="tableData"\n          :checkbox-config="{checkRowKeys: [\'2\', \'3\'], highlight: true}"\n          :radio-config="{labelField: \'name\'}">\n          <vxe-table-column type="checkbox" width="60"></vxe-table-column>\n          <vxe-table-column type="radio" width="300" title="Name"></vxe-table-column>\n          <vxe-table-column field="sex" title="Sex"></vxe-table-column>\n          <vxe-table-column field="age" title="Age"></vxe-table-column>\n          <vxe-table-column field="address" title="Address" show-overflow></vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: []\n            }\n          },\n          created () {\n            this.tableData = window.MOCK_DATA_LIST.slice(0, 5)\n          }\n        }\n        ",'\n        <vxe-toolbar>\n          <template v-slot:buttons>\n            <vxe-button @click="$refs.xTable5.setCheckboxRow(tableData, true)">设置所有行选中</vxe-button>\n            <vxe-button @click="$refs.xTable5.clearCheckboxRow()">清除所有行选中</vxe-button>\n          </template>\n        </vxe-toolbar>\n\n        <vxe-table\n          border\n          highlight-hover-row\n          ref="xTable5"\n          :data="tableData"\n          :checkbox-config="{checkStrictly: true}">\n          <vxe-table-column type="checkbox" width="60"></vxe-table-column>\n          <vxe-table-column field="name" title="Name"></vxe-table-column>\n          <vxe-table-column field="sex" title="Sex"></vxe-table-column>\n          <vxe-table-column field="age" title="Age"></vxe-table-column>\n          <vxe-table-column field="address" title="Address" show-overflow></vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: []\n            }\n          },\n          created () {\n            this.tableData = window.MOCK_DATA_LIST.slice(0, 5)\n          }\n        }\n        ",'\n        <vxe-table\n          border\n          highlight-hover-row\n          :data="tableData"\n          :radio-config="{labelField: \'name\'}">\n          <vxe-table-column type="checkbox" width="60"></vxe-table-column>\n          <vxe-table-column type="radio" width="300" title="Name"></vxe-table-column>\n          <vxe-table-column field="sex" title="Sex"></vxe-table-column>\n          <vxe-table-column field="age" title="Age"></vxe-table-column>\n          <vxe-table-column field="address" title="Address" show-overflow></vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: []\n            }\n          },\n          created () {\n            this.tableData = window.MOCK_DATA_LIST.slice(0, 5)\n          }\n        }\n        ",'\n        <vxe-table\n          border\n          resizable\n          highlight-hover-row\n          highlight-current-row\n          :data="tableData"\n          :radio-config="{labelField: \'role\'}"\n          :checkbox-config="{labelField: \'name\', highlight: true, range: true}">\n          <vxe-table-column type="checkbox" title="Name"></vxe-table-column>\n          <vxe-table-column type="radio" title="Role"></vxe-table-column>\n          <vxe-table-column field="sex" title="Sex"></vxe-table-column>\n          <vxe-table-column field="age" title="Age"></vxe-table-column>\n          <vxe-table-column field="address" title="Address" show-overflow></vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: []\n            }\n          },\n          created () {\n            this.tableData = window.MOCK_DATA_LIST.slice(0, 5)\n          }\n        }\n        "]}},created:function(){this.tableData=window.MOCK_DATA_LIST.slice(0,5)},mounted:function(){Array.from(this.$el.querySelectorAll("pre code")).forEach((function(e){i.a.highlightBlock(e)}))},methods:{checkMethod:function(e){var t=e.row;return t.age>26},selectAllEvent:function(e){var t=e.checked,l=e.records;console.log(t?"所有勾选事件":"所有取消事件",l)},selectChangeEvent:function(e){var t=e.checked,l=e.records;console.log(t?"勾选事件":"取消事件",l)},getSelectEvent1:function(){var e=this.$refs.xTable1.getCheckboxRecords();this.$XModal.alert(e.length)}}},r=s,d=l("2877"),c=Object(d["a"])(r,a,n,!1,null,null,null);t["default"]=c.exports},"129a":function(e,t,l){},"14f6":function(e,t,l){"use strict";l.r(t);var a=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("div",[l("p",{staticClass:"tip"},[e._v("使用 "),l("table-api-link",{attrs:{prop:"highlight-current-row"}}),e._v(" 显示高亮行；用户操作点击选项时会触发事件 "),l("table-api-link",{attrs:{prop:"current-change"}})],1),l("vxe-toolbar",{scopedSlots:e._u([{key:"buttons",fn:function(){return[l("vxe-button",{on:{click:function(t){return e.$refs.xTable.setCurrentRow(e.tableData[1])}}},[e._v("设置第二行选中")]),l("vxe-button",{on:{click:function(t){return e.$refs.xTable.clearCurrentRow()}}},[e._v("取消选中")]),l("vxe-button",{on:{click:e.getCurrentEvent}},[e._v("获取高亮行")])]},proxy:!0}])}),l("vxe-table",{ref:"xTable",attrs:{border:"","highlight-hover-row":"","highlight-current-row":"",height:"300",data:e.tableData},on:{"current-change":e.currentChangeEvent}},[l("vxe-table-column",{attrs:{field:"name",title:"Name"}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex"}}),l("vxe-table-column",{attrs:{field:"age",title:"Age"}}),l("vxe-table-column",{attrs:{field:"address",title:"Address","show-overflow":""}})],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[0]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[1]))]),e._v("\n  ")])],1)},n=[],o=(l("4160"),l("a630"),l("fb6a"),l("3ca3"),l("159b"),l("1487")),i=l.n(o),s={data:function(){return{tableData:[],demoCodes:['\n        <vxe-toolbar>\n          <template v-slot:buttons>\n            <vxe-button @click="$refs.xTable.setCurrentRow(tableData[1])">设置第二行选中</vxe-button>\n            <vxe-button @click="$refs.xTable.clearCurrentRow()">取消选中</vxe-button>\n            <vxe-button @click="getCurrentEvent">获取高亮行</vxe-button>\n          </template>\n        </vxe-toolbar>\n\n        <vxe-table\n          border\n          highlight-hover-row\n          highlight-current-row\n          ref="xTable"\n          height="300"\n          :data="tableData"\n          @current-change="currentChangeEvent">\n          <vxe-table-column field="name" title="Name"></vxe-table-column>\n          <vxe-table-column field="sex" title="Sex"></vxe-table-column>\n          <vxe-table-column field="age" title="Age"></vxe-table-column>\n          <vxe-table-column field="address" title="Address" show-overflow></vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: []\n            }\n          },\n          created () {\n            this.tableData = window.MOCK_DATA_LIST.slice(0, 6)\n          },\n          methods: {\n            currentChangeEvent ({ row }) {\n              console.log('行选中事件')\n            },\n            getCurrentEvent () {\n              this.$XModal.alert(JSON.stringify(this.$refs.xTable.getCurrentRecord()))\n            }\n          }\n        }\n        "]}},mounted:function(){Array.from(this.$el.querySelectorAll("pre code")).forEach((function(e){i.a.highlightBlock(e)}))},created:function(){this.tableData=window.MOCK_DATA_LIST.slice(0,6)},methods:{currentChangeEvent:function(e){var t=e.rowIndex;console.log("行选中事件 ".concat(t))},getCurrentEvent:function(){this.$XModal.alert(JSON.stringify(this.$refs.xTable.getCurrentRecord()))}}},r=s,d=l("2877"),c=Object(d["a"])(r,a,n,!1,null,null,null);t["default"]=c.exports},"18f6":function(e,t,l){"use strict";l.r(t);var a=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("div",[l("p",{staticClass:"tip"},[e._v(" 行的动态样色、单元格动态样式，表头的动态样式、表尾的动态样式、全部都可以完全自定义，通过设置 "),l("table-api-link",{attrs:{prop:"cell-style"}}),e._v("、"),l("table-api-link",{attrs:{prop:"header-cell-style"}}),e._v("、"),l("table-api-link",{attrs:{prop:"row-style"}}),e._v(" ...等参数"),l("br"),l("span",{staticClass:"red"},[e._v("（注：当自定义样式之后可能会覆盖表格的样式，比如选中行..等，记得自行处理好相关样式）")])],1),l("vxe-table",{attrs:{border:"","header-cell-style":e.headerCellStyle,"row-style":e.rowStyle,"cell-style":e.cellStyle,data:e.tableData}},[l("vxe-table-column",{attrs:{type:"seq",width:"60"}}),l("vxe-table-column",{attrs:{field:"name",title:"Name"}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex"}}),l("vxe-table-column",{attrs:{field:"age",title:"Age"}}),l("vxe-table-column",{attrs:{field:"age",title:"Age"}}),l("vxe-table-column",{attrs:{field:"address",title:"Address","show-overflow":""}})],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[0]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[1]))]),e._v("\n    "),l("code",{staticClass:"scss"},[e._v(e._s(e.demoCodes[2]))]),e._v("\n  ")])],1)},n=[],o=(l("4160"),l("a630"),l("caad"),l("fb6a"),l("3ca3"),l("159b"),l("1487")),i=l.n(o),s={data:function(){return{tableData:[],demoCodes:['\n        <vxe-table\n          border\n          :header-cell-style="headerCellStyle"\n          :row-style="rowStyle"\n          :cell-style="cellStyle"\n          :data="tableData">\n          <vxe-table-column type="seq" width="60"></vxe-table-column>\n          <vxe-table-column field="name" title="Name"></vxe-table-column>\n          <vxe-table-column field="sex" title="Sex"></vxe-table-column>\n          <vxe-table-column field="age" title="Age"></vxe-table-column>\n          <vxe-table-column field="age" title="Age"></vxe-table-column>\n          <vxe-table-column field="address" title="Address" show-overflow></vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: []\n            }\n          },\n          created () {\n            this.tableData = window.MOCK_DATA_LIST.slice(0, 6)\n          },\n          methods: {\n            headerCellStyle ({ column, columnIndex }) {\n              if (column.property === 'name') {\n                return {\n                  backgroundColor: '#f60',\n                  color: '#ffffff'\n                }\n              }\n            },\n            rowStyle ({ row, rowIndex }) {\n              if ([2, 3, 5].includes(rowIndex)) {\n                return {\n                  backgroundColor: 'red',\n                  color: '#ffffff'\n                }\n              }\n            },\n            cellStyle ({ row, rowIndex, column, columnIndex }) {\n              if (column.property === 'sex') {\n                if (row.sex >= '1') {\n                  return {\n                    backgroundColor: '#187'\n                  }\n                } else if (row.age === 26) {\n                  return {\n                    backgroundColor: '#2db7f5'\n                  }\n                }\n              }\n            }\n          }\n        }\n        "]}},created:function(){this.tableData=window.MOCK_DATA_LIST.slice(0,6)},mounted:function(){Array.from(this.$el.querySelectorAll("pre code")).forEach((function(e){i.a.highlightBlock(e)}))},methods:{headerCellStyle:function(e){var t=e.column;if("name"===t.property)return{backgroundColor:"#f60",color:"#ffffff"}},rowStyle:function(e){var t=e.rowIndex;if([2,3,5].includes(t))return{backgroundColor:"red",color:"#ffffff"}},cellStyle:function(e){var t=e.row,l=e.column;if("sex"===l.property){if(t.sex>="1")return{backgroundColor:"#187"};if(26===t.age)return{backgroundColor:"#2db7f5"}}}}},r=s,d=l("2877"),c=Object(d["a"])(r,a,n,!1,null,null,null);t["default"]=c.exports},"300b":function(e,t,l){"use strict";var a=l("129a"),n=l.n(a);n.a},"31d8":function(e,t,l){"use strict";l.r(t);var a=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("div",[l("p",{staticClass:"tip"},[e._v("基础使用，可以使用 "),l("router-link",{staticClass:"link",attrs:{to:{name:"RendererEmpty"}}},[e._v("渲染器")]),e._v(" 实现全局复用")],1),l("vxe-table",{attrs:{data:e.tableData}},[l("vxe-table-column",{attrs:{type:"seq",width:"60"}}),l("vxe-table-column",{attrs:{field:"name",title:"Name"}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex"}}),l("vxe-table-column",{attrs:{field:"age",title:"Age"}})],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[0]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[1]))]),e._v("\n  ")]),l("p",{staticClass:"tip"},[e._v("可以通过 slot="),l("table-api-link",{attrs:{prop:"empty"}}),e._v(" 自定义提示语")],1),l("vxe-table",{attrs:{border:"",loading:e.loading,data:e.tableData},scopedSlots:e._u([{key:"empty",fn:function(){return[l("span",{staticStyle:{color:"red"}},[l("img",{attrs:{src:"static/other/img2.gif"}}),l("p",[e._v("没有更多数据了！")])])]},proxy:!0}])},[l("vxe-table-column",{attrs:{type:"seq",width:"60"}}),l("vxe-table-column",{attrs:{field:"name",title:"Name"}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex"}}),l("vxe-table-column",{attrs:{field:"age",title:"Age"}}),l("vxe-table-column",{attrs:{field:"address",title:"Address","show-overflow":""}})],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[2]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[3]))]),e._v("\n  ")]),l("p",{staticClass:"tip"},[e._v("出现滚动条")]),l("vxe-table",{attrs:{border:"",height:"300",loading:e.loading,data:e.tableData},scopedSlots:e._u([{key:"empty",fn:function(){return[l("span",{staticStyle:{color:"red"}},[l("img",{attrs:{src:"static/other/img1.gif"}}),l("p",[e._v("不用再看了，没有更多数据了！")])])]},proxy:!0}])},[l("vxe-table-column",{attrs:{type:"seq",width:"60"}}),l("vxe-table-column",{attrs:{field:"name",title:"Name",width:"300"}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex",width:"300"}}),l("vxe-table-column",{attrs:{field:"age",title:"Age",width:"300"}}),l("vxe-table-column",{attrs:{field:"date12",title:"Date",width:"300"}}),l("vxe-table-column",{attrs:{field:"address",title:"Address",width:"300","show-overflow":""}})],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[4]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[5]))]),e._v("\n  ")])],1)},n=[],o=(l("4160"),l("a630"),l("3ca3"),l("159b"),l("1487")),i=l.n(o),s={data:function(){return{loading:!1,tableData:[],tableData2:[],demoCodes:['\n        <vxe-table\n          :data="tableData">\n          <vxe-table-column type="seq" width="60"></vxe-table-column>\n          <vxe-table-column field="name" title="Name"></vxe-table-column>\n          <vxe-table-column field="sex" title="Sex"></vxe-table-column>\n          <vxe-table-column field="age" title="Age"></vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: []\n            }\n          },\n          created () {\n            setTimeout(() => {\n              this.tableData = []\n            }, 1000)\n          }\n        }\n        ",'\n        <vxe-table\n          border\n          :loading="loading"\n          :data="tableData">\n          <vxe-table-column type="seq" width="60"></vxe-table-column>\n          <vxe-table-column field="name" title="Name"></vxe-table-column>\n          <vxe-table-column field="sex" title="Sex"></vxe-table-column>\n          <vxe-table-column field="age" title="Age"></vxe-table-column>\n          <vxe-table-column field="address" title="Address" show-overflow></vxe-table-column>\n          <template v-slot:empty>\n            <span style="color: red;">\n              <img src="static/other/img2.gif">\n              <p>没有更多数据了！</p>\n            </span>\n          </template>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              loading: false,\n              tableData: []\n            }\n          },\n          created () {\n            this.loading = true\n            setTimeout(() => {\n              this.tableData = []\n              this.loading = false\n            }, 1000)\n          }\n        }\n        ",'\n        <vxe-table\n          border\n          height="300"\n          :loading="loading"\n          :data="tableData">\n          <vxe-table-column type="seq" width="60"></vxe-table-column>\n          <vxe-table-column field="name" title="Name" width="300"></vxe-table-column>\n          <vxe-table-column field="sex" title="Sex" width="300"></vxe-table-column>\n          <vxe-table-column field="age" title="Age" width="300"></vxe-table-column>\n          <vxe-table-column field="date12" title="Date" width="300"></vxe-table-column>\n          <vxe-table-column field="address" title="Address" width="300" show-overflow></vxe-table-column>\n          <template v-slot:empty>\n            <span style="color: red;">\n              <img src="static/other/img1.gif">\n              <p>不用再看了，没有更多数据了！</p>\n            </span>\n          </template>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              loading: false,\n              tableData: []\n            }\n          },\n          created () {\n            this.loading = true\n            setTimeout(() => {\n              this.tableData = []\n              this.loading = false\n            }, 1000)\n          }\n        }\n        "]}},created:function(){var e=this;this.loading=!0,setTimeout((function(){e.tableData=[],e.loading=!1}),1e3)},mounted:function(){Array.from(this.$el.querySelectorAll("pre code")).forEach((function(e){i.a.highlightBlock(e)}))}},r=s,d=l("2877"),c=Object(d["a"])(r,a,n,!1,null,null,null);t["default"]=c.exports},3617:function(e,t,l){"use strict";l.r(t);var a=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("div",[l("p",{staticClass:"tip"},[l("table-api-link",{attrs:{name:"vxe-table"}}),e._v(" 基础表格，基于模板方式使用简单、便捷")],1),l("vxe-toolbar",{scopedSlots:e._u([{key:"buttons",fn:function(){return[l("vxe-button",{on:{click:function(t){e.allAlign="left"}}},[e._v("居左")]),l("vxe-button",{on:{click:function(t){e.allAlign="center"}}},[e._v("居中")]),l("vxe-button",{on:{click:function(t){e.allAlign="right"}}},[e._v("居右")])]},proxy:!0}])}),l("vxe-table",{attrs:{border:"inner",align:e.allAlign,data:e.tableData}},[l("vxe-table-column",{attrs:{type:"seq",width:"60"}}),l("vxe-table-column",{attrs:{field:"name",title:"app.body.label.name"}}),l("vxe-table-column",{attrs:{field:"sex",title:"app.body.label.sex"}}),l("vxe-table-column",{attrs:{field:"age",title:"app.body.label.age"}})],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[0]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[1]))]),e._v("\n  ")]),l("p",{staticClass:"tip"},[e._v("使用 "),l("table-api-link",{attrs:{prop:"highlight-hover-row"}}),e._v(" 属性启用 hover 行高亮")],1),l("vxe-table",{attrs:{border:"","show-header-overflow":"","show-overflow":"","highlight-hover-row":"",align:e.allAlign,data:e.tableData}},[l("vxe-table-column",{attrs:{type:"seq",title:"序号",width:"60"}}),l("vxe-table-column",{attrs:{field:"name",title:"Name"}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex"}}),l("vxe-table-column",{attrs:{field:"age",title:"Age"}}),l("vxe-table-column",{attrs:{field:"address",title:"Address"}})],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[2]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[3]))]),e._v("\n  ")])],1)},n=[],o=(l("4160"),l("a630"),l("fb6a"),l("3ca3"),l("159b"),l("1487")),i=l.n(o),s={data:function(){return{allAlign:null,tableData:[],demoCodes:['\n        <vxe-toolbar>\n          <template v-slot:buttons>\n            <vxe-button @click="allAlign = \'left\'">居左</vxe-button>\n            <vxe-button @click="allAlign = \'center\'">居中</vxe-button>\n            <vxe-button @click="allAlign = \'right\'">居右</vxe-button>\n          </template>\n        </vxe-toolbar>\n\n        <vxe-table\n          border="inner"\n          :align="allAlign"\n          :data="tableData">\n          <vxe-table-column type="seq" width="60"></vxe-table-column>\n          <vxe-table-column field="name" title="app.body.label.name"></vxe-table-column>\n          <vxe-table-column field="sex" title="app.body.label.sex"></vxe-table-column>\n          <vxe-table-column field="age" title="app.body.label.age"></vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              allAlign: null,\n              tableData: []\n            }\n          },\n          created () {\n            this.tableData = window.MOCK_DATA_LIST.slice(0, 4)\n          }\n        }\n        ",'\n        <vxe-table\n          border\n          show-header-overflow\n          show-overflow\n          highlight-hover-row\n          :align="allAlign"\n          :data="tableData">\n          <vxe-table-column type="seq" title="序号" width="60"></vxe-table-column>\n          <vxe-table-column field="name" title="Name"></vxe-table-column>\n          <vxe-table-column field="sex" title="Sex"></vxe-table-column>\n          <vxe-table-column field="age" title="Age"></vxe-table-column>\n          <vxe-table-column field="address" title="Address"></vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              allAlign: null,\n              tableData: []\n            }\n          },\n          created () {\n            this.tableData = window.MOCK_DATA_LIST.slice(0, 4)\n          }\n        }\n        "]}},created:function(){this.tableData=window.MOCK_DATA_LIST.slice(0,4)},mounted:function(){Array.from(this.$el.querySelectorAll("pre code")).forEach((function(e){i.a.highlightBlock(e)}))}},r=s,d=l("2877"),c=Object(d["a"])(r,a,n,!1,null,null,null);t["default"]=c.exports},"3c8d":function(e,t,l){"use strict";l.r(t);var a=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("div",[l("p",{staticClass:"tip"},[e._v(" 通过设置 "),l("table-column-api-link",{attrs:{prop:"filters"}}),e._v(" 属性和 "),l("table-column-api-link",{attrs:{prop:"filter-method"}}),e._v(" 方法可以支持列筛选功能，可以通过 "),l("table-column-api-link",{attrs:{prop:"filter-multiple"}}),e._v("=false 设置为单选"),l("br"),e._v(" 如果是服务端筛选，只需加上 "),l("table-api-link",{attrs:{prop:"filter-config"}}),e._v("={"),l("table-api-link",{attrs:{prop:"remote"}}),e._v(": true} 和 "),l("table-api-link",{attrs:{prop:"filter-change"}}),e._v(" 事件就可以实现"),l("br"),e._v(" 如果是动态数据请配合 "),l("table-api-link",{attrs:{prop:"filter"}}),e._v(" 方法，参数 "),l("table-column-api-link",{attrs:{prop:"filters"}}),e._v(" 不支持动态数据"),l("br"),e._v(" context 对象（"),l("router-link",{staticClass:"link",attrs:{to:{name:"TableManualFilter"}}},[e._v("查看高级用法")]),e._v("）:"),l("br"),e._v(" "),l("span",{staticClass:"orange"},[e._v("changeOption(event, checked, option) 更新选项的状态")]),l("br"),e._v(" "),l("span",{staticClass:"orange"},[e._v("confirmFilter() 确认筛选")]),l("br"),e._v(" "),l("span",{staticClass:"orange"},[e._v("resetFilter() 清除筛选条件")])],1),l("vxe-table",{attrs:{border:"","highlight-hover-row":"",height:"400",data:e.tableData}},[l("vxe-table-column",{attrs:{type:"seq",width:"60"}}),l("vxe-table-column",{attrs:{field:"name",title:"Name",sortable:"",filters:[{label:"id大于10",value:10},{label:"id大于40",value:40}],"filter-method":e.filterNameMethod}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex",sortable:"",filters:[{label:"Man",value:"1"},{label:"Woman",value:"0"}],"filter-multiple":!1}}),l("vxe-table-column",{attrs:{field:"age",title:"Age",filters:[{data:""}],"filter-method":e.filterAgeMethod},scopedSlots:e._u([{key:"filter",fn:function(t){var a=t.$panel,n=t.column;return e._l(n.filters,(function(t,n){return l("input",{directives:[{name:"model",rawName:"v-model",value:t.data,expression:"option.data"}],key:n,attrs:{type:"type"},domProps:{value:t.data},on:{input:[function(l){l.target.composing||e.$set(t,"data",l.target.value)},function(e){return a.changeOption(e,!!t.data,t)}]}})}))}}])}),l("vxe-table-column",{attrs:{field:"time",title:"Time",sortable:"",filters:[{label:"本周",value:"1"},{label:"上周",value:"2"}]}})],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[0]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[1]))]),e._v("\n  ")]),l("p",{staticClass:"tip"},[e._v("默认的筛选，通过 "),l("table-column-api-link",{attrs:{prop:"checked"}}),e._v(" 属性设置默认的选中的选项")],1),l("vxe-table",{attrs:{border:"","highlight-hover-row":"",height:"400",data:e.tableData}},[l("vxe-table-column",{attrs:{type:"seq",width:"60"}}),l("vxe-table-column",{attrs:{title:"基本信息"}},[l("vxe-table-column",{attrs:{field:"name",title:"Name",sortable:"",filters:[{label:"id大于10",value:10},{label:"id大于40",value:40,checked:!0}],"filter-method":e.filterNameMethod}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex",sortable:"",filters:[{label:"Man",value:"1"},{label:"Woman",value:"0"}]}})],1),l("vxe-table-column",{attrs:{title:"其他"}},[l("vxe-table-column",{attrs:{title:"详细信息"}},[l("vxe-table-column",{attrs:{field:"age",title:"Age",filters:[{data:"30",checked:!0}],"filter-method":e.filterAgeMethod},scopedSlots:e._u([{key:"filter",fn:function(t){var a=t.$panel,n=t.column;return e._l(n.filters,(function(t,n){return l("input",{directives:[{name:"model",rawName:"v-model",value:t.data,expression:"option.data"}],key:n,attrs:{type:"type"},domProps:{value:t.data},on:{input:[function(l){l.target.composing||e.$set(t,"data",l.target.value)},function(e){return a.changeOption(e,!!t.data,t)}]}})}))}}])})],1)],1),l("vxe-table-column",{attrs:{field:"time",title:"Time",sortable:"",filters:[{label:"本周",value:"1"},{label:"上周",value:"2"}]}})],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[2]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[3]))]),e._v("\n  ")])],1)},n=[],o=(l("4160"),l("a630"),l("fb6a"),l("a9e3"),l("3ca3"),l("159b"),l("1487")),i=l.n(o),s={data:function(){return{tableData:[],demoCodes:['\n        <vxe-table\n          border\n          highlight-hover-row\n          height="400"\n          :data="tableData">\n          <vxe-table-column type="seq" width="60"></vxe-table-column>\n          <vxe-table-column field="name" title="Name" sortable :filters="[{label: \'id大于10\', value: 10}, {label: \'id大于40\', value: 40}]" :filter-method="filterNameMethod"></vxe-table-column>\n          <vxe-table-column field="sex" title="Sex" sortable :filters="[{label: \'Man\', value: \'1\'}, {label: \'Woman\', value: \'0\'}]" :filter-multiple="false"></vxe-table-column>\n          <vxe-table-column field="age" title="Age" :filters="[{ data: \'\' }]" :filter-method="filterAgeMethod">\n            <template v-slot:filter="{ $panel, column }">\n              <input type="type" v-for="(option, index) in column.filters" :key="index" v-model="option.data" @input="$panel.changeOption($event, !!option.data, option)">\n            </template>\n          </vxe-table-column>\n          <vxe-table-column field="time" title="Time" sortable :filters="[{label: \'本周\', value: \'1\'}, {label: \'上周\', value: \'2\'}]"></vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: []\n            }\n          },\n          created () {\n            this.tableData = window.MOCK_DATA_LIST.slice(0, 50)\n          },\n          methods: {\n            filterNameMethod ({ value, row, column }) {\n              return row.id >= value\n            },\n            filterAgeMethod ({ option, row }) {\n              return row.age === Number(option.data)\n            }\n          }\n        }\n        ",'\n        <vxe-table\n          border\n          highlight-hover-row\n          height="400"\n          :data="tableData">\n          <vxe-table-column type="seq" width="60"></vxe-table-column>\n          <vxe-table-column title="基本信息">\n            <vxe-table-column field="name" title="Name" sortable :filters="[{label: \'id大于10\', value: 10}, {label: \'id大于40\', value: 40, checked: true}]" :filter-method="filterNameMethod"></vxe-table-column>\n            <vxe-table-column field="sex" title="Sex" sortable :filters="[{label: \'Man\', value: \'1\'}, {label: \'Woman\', value: \'0\'}]"></vxe-table-column>\n          </vxe-table-column>\n          <vxe-table-column title="其他">\n            <vxe-table-column title="详细信息">\n              <vxe-table-column field="age" title="Age" :filters="[{ data: \'30\', checked: true }]" :filter-method="filterAgeMethod">\n                <template v-slot:filter="{ $panel, column }">\n                  <input type="type" v-for="(option, index) in column.filters" :key="index" v-model="option.data" @input="$panel.changeOption($event, !!option.data, option)">\n                </template>\n              </vxe-table-column>\n            </vxe-table-column>\n          </vxe-table-column>\n          <vxe-table-column field="time" title="Time" sortable :filters="[{label: \'本周\', value: \'1\'}, {label: \'上周\', value: \'2\'}]"></vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: []\n            }\n          },\n          created () {\n            this.tableData = window.MOCK_DATA_LIST.slice(0, 50)\n          },\n          methods: {\n            filterNameMethod ({ value, row, column }) {\n              return row.id >= value\n            },\n            filterAgeMethod ({ option, row }) {\n              return row.age === Number(option.data)\n            }\n          }\n        }\n        "]}},created:function(){this.tableData=window.MOCK_DATA_LIST.slice(0,50)},mounted:function(){Array.from(this.$el.querySelectorAll("pre code")).forEach((function(e){i.a.highlightBlock(e)}))},methods:{filterNameMethod:function(e){var t=e.value,l=e.row;return l.id>=t},filterAgeMethod:function(e){var t=e.option,l=e.row;return l.age===Number(t.data)}}},r=s,d=l("2877"),c=Object(d["a"])(r,a,n,!1,null,null,null);t["default"]=c.exports},4308:function(e,t,l){"use strict";l.r(t);var a=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("div",[l("p",{staticClass:"tip"},[e._v(" 当一个表格需要铺满父容器时，这个功能将非常有用"),l("br"),e._v(" 通过设置 "),l("table-api-link",{attrs:{prop:"height"}}),e._v("=auto表格会相对于父容器的高度去铺满，但是只会在数据重新加载时才会计算"),l("br"),e._v(" 还可以根据不同场景添加 "),l("table-api-link",{attrs:{prop:"sync-resize"}}),e._v("（属性监听） 或 "),l("table-api-link",{attrs:{prop:"auto-resize"}}),e._v("（父元素监听），这样就只需要通过样式控制父容器高度就可以实现响应式表格 ")],1),l("div",{staticStyle:{height:"300px"}},[l("vxe-table",{attrs:{border:"",height:"auto",data:e.tableData}},[l("vxe-table-column",{attrs:{type:"seq",width:"60"}}),l("vxe-table-column",{attrs:{field:"name",title:"Name"}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex"}}),l("vxe-table-column",{attrs:{field:"age",title:"Age"}}),l("vxe-table-column",{attrs:{field:"address",title:"Address","show-overflow":""}})],1)],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[0]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[1]))]),e._v("\n  ")]),l("p",{staticClass:"tip"},[e._v("也可以设置相对于父容器的百分比")]),l("div",{staticStyle:{height:"500px"}},[l("vxe-table",{attrs:{border:"",height:"40%",data:e.tableData}},[l("vxe-table-column",{attrs:{type:"seq",width:"60"}}),l("vxe-table-column",{attrs:{field:"name",title:"Name"}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex"}}),l("vxe-table-column",{attrs:{field:"age",title:"Age"}}),l("vxe-table-column",{attrs:{field:"address",title:"Address","show-overflow":""}})],1),l("vxe-table",{attrs:{border:"",height:"60%",data:e.tableData}},[l("vxe-table-column",{attrs:{type:"seq",width:"60"}}),l("vxe-table-column",{attrs:{field:"name",title:"Name"}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex"}}),l("vxe-table-column",{attrs:{field:"age",title:"Age"}}),l("vxe-table-column",{attrs:{field:"address",title:"Address","show-overflow":""}})],1)],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[2]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[3]))]),e._v("\n  ")]),l("p",{staticClass:"tip"},[e._v("设置为 "),l("table-api-link",{attrs:{prop:"auto-resize"}}),e._v(" 响应式就可以自动跟随父容器高度")],1),l("vxe-toolbar",{scopedSlots:e._u([{key:"buttons",fn:function(){return[l("vxe-button",{on:{click:function(t){e.tableHeight=200}}},[e._v("修改200px")]),l("vxe-button",{on:{click:function(t){e.tableHeight=400}}},[e._v("修改400px")]),l("vxe-button",{on:{click:function(t){e.tableHeight=600}}},[e._v("修改600px")])]},proxy:!0}])}),l("div",{style:{height:e.tableHeight+"px"}},[l("vxe-table",{attrs:{border:"","auto-resize":"",height:"auto",data:e.tableData}},[l("vxe-table-column",{attrs:{type:"seq",width:"60"}}),l("vxe-table-column",{attrs:{field:"name",title:"Name"}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex"}}),l("vxe-table-column",{attrs:{field:"age",title:"Age"}}),l("vxe-table-column",{attrs:{field:"address",title:"Address","show-overflow":""}})],1)],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[4]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[5]))]),e._v("\n  ")])],1)},n=[],o=(l("4160"),l("a630"),l("fb6a"),l("3ca3"),l("159b"),l("1487")),i=l.n(o),s={data:function(){return{tableHeight:200,tableData:[],demoCodes:['\n        <div style="height: 600px">\n          <vxe-table\n            border\n            height="auto"\n            :data="tableData">\n            <vxe-table-column type="seq" width="60"></vxe-table-column>\n            <vxe-table-column field="name" title="Name"></vxe-table-column>\n            <vxe-table-column field="sex" title="Sex"></vxe-table-column>\n            <vxe-table-column field="age" title="Age"></vxe-table-column>\n            <vxe-table-column field="address" title="Address" show-overflow></vxe-table-column>\n          </vxe-table>\n        </div>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: []\n            }\n          },\n          created () {\n            this.tableData = window.MOCK_DATA_LIST.slice(0, 20)\n          }\n        }\n        ",'\n        <div style="height: 600px">\n          <vxe-table\n            border\n            height="40%"\n            :data="tableData">\n            <vxe-table-column type="seq" width="60"></vxe-table-column>\n            <vxe-table-column field="name" title="Name"></vxe-table-column>\n            <vxe-table-column field="sex" title="Sex"></vxe-table-column>\n            <vxe-table-column field="age" title="Age"></vxe-table-column>\n            <vxe-table-column field="address" title="Address" show-overflow></vxe-table-column>\n          </vxe-table>\n          <vxe-table\n            border\n            height="60%"\n            :data="tableData">\n            <vxe-table-column type="seq" width="60"></vxe-table-column>\n            <vxe-table-column field="name" title="Name"></vxe-table-column>\n            <vxe-table-column field="sex" title="Sex"></vxe-table-column>\n            <vxe-table-column field="age" title="Age"></vxe-table-column>\n            <vxe-table-column field="address" title="Address" show-overflow></vxe-table-column>\n          </vxe-table>\n        </div>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: []\n            }\n          },\n          created () {\n            this.tableData = window.MOCK_DATA_LIST.slice(0, 20)\n          }\n        }\n        ",'\n        <vxe-toolbar>\n          <template v-slot:buttons>\n            <vxe-button @click="tableHeight = 200">修改200px</vxe-button>\n            <vxe-button @click="tableHeight = 400">修改400px</vxe-button>\n            <vxe-button @click="tableHeight = 600">修改600px</vxe-button>\n          </template>\n        </vxe-toolbar>\n\n        <div :style="{height: `${tableHeight}px`}">\n          <vxe-table\n            border\n            auto-resize\n            height="auto"\n            :data="tableData">\n            <vxe-table-column type="seq" width="60"></vxe-table-column>\n            <vxe-table-column field="name" title="Name"></vxe-table-column>\n            <vxe-table-column field="sex" title="Sex"></vxe-table-column>\n            <vxe-table-column field="age" title="Age"></vxe-table-column>\n            <vxe-table-column field="address" title="Address" show-overflow></vxe-table-column>\n          </vxe-table>\n        </div>\n        ',"\n        export default {\n          data () {\n            return {\n              tableHeight: 200,\n              tableData: []\n            }\n          },\n          created () {\n            this.tableData = window.MOCK_DATA_LIST.slice(0, 20)\n          }\n        }\n        "]}},created:function(){this.tableData=window.MOCK_DATA_LIST.slice(0,20)},mounted:function(){Array.from(this.$el.querySelectorAll("pre code")).forEach((function(e){i.a.highlightBlock(e)}))}},r=s,d=l("2877"),c=Object(d["a"])(r,a,n,!1,null,null,null);t["default"]=c.exports},"43ce":function(e,t,l){"use strict";l.r(t);var a=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("div",[l("p",{staticClass:"tip"},[e._v(" 当内容或表头超过隐藏时显示为省略号，"),l("table-column-api-link",{attrs:{prop:"show-overflow"}}),e._v(" 和 "),l("table-api-link",{attrs:{prop:"show-header-overflow"}}),e._v(" 和 "),l("table-api-link",{attrs:{prop:"show-footer-overflow"}}),l("br"),l("table-column-api-link",{attrs:{prop:"ellipsis"}}),e._v(" 当内容超过时显示为省略号"),l("br"),l("table-column-api-link",{attrs:{prop:"title"}}),e._v(" 当内容超过时显示为省略号并用原生 title 显示"),l("br"),l("table-column-api-link",{attrs:{prop:"tooltip"}}),e._v(" 当内容超过隐藏时显示为省略号并用 tooltip 显示"),l("br"),e._v(" 还可以通过 "),l("table-api-link",{attrs:{prop:"enterable"}}),e._v(" 开启鼠标是否可进入到 tooltip 中 ")],1),l("vxe-table",{attrs:{"show-footer":"","highlight-hover-row":"","footer-method":e.footerMethod,data:e.tableData}},[l("vxe-table-column",{attrs:{type:"seq",width:"60"}}),l("vxe-table-column",{attrs:{field:"name",title:"名称"}}),l("vxe-table-column",{attrs:{field:"address",title:"超过隐藏时显示为省略号————————————",width:"160","show-header-overflow":"ellipsis","show-overflow":"ellipsis"}}),l("vxe-table-column",{attrs:{field:"date",title:"内容超过隐藏时显示为省略号并用原生 title 显示","show-overflow":"title","show-footer-overflow":""}},[[l("span",[e._v("111111111111 111111111111111111 22222222222222222222222222222222222")])]],2),l("vxe-table-column",{attrs:{field:"rate",title:"表头超过隐藏时显示为省略号并用原生 title 显示","show-header-overflow":"title"},scopedSlots:e._u([{key:"header",fn:function(){return[l("span",[e._v("33333333333333333333333333 5555555555555555555555555555555555555555555555")])]},proxy:!0}])}),l("vxe-table-column",{attrs:{field:"address",title:"Address",width:"160","show-overflow":""}})],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[0]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[1]))]),e._v("\n  ")]),l("p",{staticClass:"tip"},[e._v("使用 light 主题，通过 "),l("table-api-link",{attrs:{prop:"tooltip-config"}}),e._v(" 参数配置")],1),l("vxe-table",{attrs:{border:"","show-footer":"","show-header-overflow":"","highlight-hover-row":"","footer-method":e.footerMethod,data:e.tableData,"tooltip-config":{theme:"light"}}},[l("vxe-table-column",{attrs:{type:"seq",width:"60"}}),l("vxe-table-column",{attrs:{field:"name",title:"名称"}}),l("vxe-table-column",{attrs:{field:"address",title:"超过隐藏时显示为省略号————————————",width:"160","show-overflow":"ellipsis"}}),l("vxe-table-column",{attrs:{field:"date",title:"内容超过隐藏时显示为省略号并用原生 title 显示","show-overflow":"title","show-footer-overflow":""}},[[l("span",[e._v("111111111111 111111111111111111 22222222222222222222222222222222222")])]],2),l("vxe-table-column",{attrs:{title:"基本信息"}},[l("vxe-table-column",{attrs:{field:"rate",title:"表头超过隐藏时显示为省略号并用原生 title 显示","show-header-overflow":"title"},scopedSlots:e._u([{key:"header",fn:function(){return[l("span",[e._v("33333333333333333333333333 5555555555555555555555555555555555555555555555")])]},proxy:!0}])}),l("vxe-table-column",{attrs:{title:"详细信息"}},[l("vxe-table-column",{attrs:{field:"address",title:"Address",width:"160","show-overflow":""}})],1)],1)],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[2]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[3]))]),e._v("\n  ")])],1)},n=[],o=(l("4160"),l("a630"),l("caad"),l("d81d"),l("fb6a"),l("3ca3"),l("159b"),l("c695")),i=l.n(o),s=l("1487"),r=l.n(s),d={data:function(){return{tableData:[],demoCodes:['\n        <vxe-table\n          show-footer\n          highlight-hover-row\n          :footer-method="footerMethod"\n          :data="tableData">\n          <vxe-table-column type="seq" width="60"></vxe-table-column>\n          <vxe-table-column field="address" title="超过隐藏时显示为省略号————————————" show-header-overflow show-overflow></vxe-table-column>\n          <vxe-table-column field="date" title="内容超过隐藏时显示为省略号并用原生 title 显示" show-overflow="title">\n            <template>\n              <span>111111111111 111111111111111111 22222222222222222222222222222222222</span>\n            </template>\n          </vxe-table-column>\n          <vxe-table-column field="rate" title="表头超过隐藏时显示为省略号并用原生 title 显示" show-header-overflow="title">\n            <template v-slot:header>\n              <span>33333333333333333333333333 5555555555555555555555555555555555555555555555</span>\n            </template>\n          </vxe-table-column>\n          <vxe-table-column field="address" title="Address" show-overflow></vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: []\n            }\n          },\n          created () {\n            this.tableData = window.MOCK_DATA_LIST.slice(0, 6)\n          },\n          methods:{\n            footerMethod ({ columns, data }) {\n              const footerData = [\n                columns.map((column, columnIndex) => {\n                  if (columnIndex === 0) {\n                    return '合计'\n                  }\n                  if (['date'].includes(column.property)) {\n                    return '说明 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'\n                  }\n                  if (['rate'].includes(column.property)) {\n                    return XEUtils.sum(data, column.property)\n                  }\n                  return null\n                })\n              ]\n              return footerData\n            }\n          }\n        }\n        ",'\n        <vxe-table\n          border\n          show-footer\n          show-header-overflow\n          highlight-hover-row\n          :footer-method="footerMethod"\n          :data="tableData"\n          :tooltip-config="{theme: \'light\'}">\n          <vxe-table-column type="seq" width="60"></vxe-table-column>\n          <vxe-table-column field="address" title="超过隐藏时显示为省略号————————————" show-overflow></vxe-table-column>\n          <vxe-table-column field="date" title="内容超过隐藏时显示为省略号并用原生 title 显示" show-overflow="title">\n            <template>\n              <span>111111111111 111111111111111111 22222222222222222222222222222222222</span>\n            </template>\n          </vxe-table-column>\n          <vxe-table-column title="基本信息">\n            <vxe-table-column field="rate" title="表头超过隐藏时显示为省略号并用原生 title 显示" show-header-overflow="title" show-footer-overflow>\n              <template v-slot:header>\n                <span>33333333333333333333333333 5555555555555555555555555555555555555555555555</span>\n              </template>\n            </vxe-table-column>\n            <vxe-table-column title="详细信息">\n              <vxe-table-column field="address" title="Address" show-overflow></vxe-table-column>\n            </vxe-table-column>\n          </vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: []\n            }\n          },\n          created () {\n            this.tableData = window.MOCK_DATA_LIST.slice(0, 6)\n          },\n          methods:{\n            footerMethod ({ columns, data }) {\n              const footerData = [\n                columns.map((column, columnIndex) => {\n                  if (columnIndex === 0) {\n                    return '合计'\n                  }\n                  if (['date'].includes(column.property)) {\n                    return '说明 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'\n                  }\n                  if (['rate'].includes(column.property)) {\n                    return XEUtils.sum(data, column.property)\n                  }\n                  return null\n                })\n              ]\n              return footerData\n            }\n          }\n        }\n        "]}},created:function(){this.tableData=window.MOCK_DATA_LIST.slice(0,6)},mounted:function(){Array.from(this.$el.querySelectorAll("pre code")).forEach((function(e){r.a.highlightBlock(e)}))},methods:{footerMethod:function(e){var t=e.columns,l=e.data,a=[t.map((function(e,t){return 0===t?"合计":["date"].includes(e.property)?"说明 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx":["rate"].includes(e.property)?i.a.sum(l,e.property):null}))];return a}}},c=d,b=l("2877"),v=Object(b["a"])(c,a,n,!1,null,null,null);t["default"]=v.exports},"447e":function(e,t,l){"use strict";l.r(t);var a=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("div",[l("p",{staticClass:"tip"},[e._v("单选表格，用户手动选中时会触发事件 "),l("table-api-link",{attrs:{prop:"radio-change"}}),e._v("，还通过 "),l("table-api-link",{attrs:{prop:"highlight"}}),e._v(" 设置高亮选中行")],1),l("vxe-toolbar",{scopedSlots:e._u([{key:"buttons",fn:function(){return[l("vxe-button",{on:{click:function(t){return e.$refs.xTable1.setRadioRow(e.tableData[1])}}},[e._v("设置第二行选中")]),l("vxe-button",{on:{click:e.clearRadioRowEevnt}},[e._v("取消选中")]),l("vxe-button",{on:{click:e.getRadioEvent1}},[e._v("获取选中")])]},proxy:!0}])}),l("vxe-table",{ref:"xTable1",staticClass:"radio-table",attrs:{border:"",height:"300",data:e.tableData,"radio-config":{highlight:!0}},on:{"cell-click":e.cellClickEvent,"radio-change":e.radioChangeEvent}},[l("vxe-table-column",{attrs:{type:"radio",width:"60"},scopedSlots:e._u([{key:"header",fn:function(){return[l("vxe-button",{attrs:{type:"text",disabled:!e.selectRow},on:{click:e.clearRadioRowEevnt}},[e._v("取消")])]},proxy:!0}])}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex"}}),l("vxe-table-column",{attrs:{field:"age",title:"Age"}}),l("vxe-table-column",{attrs:{field:"address",title:"Address","show-overflow":""}})],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[0]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[1]))]),e._v("\n  ")]),l("p",{staticClass:"tip"},[e._v(" 还可以通过 "),l("table-api-link",{attrs:{prop:"checkMethod"}}),e._v(" 方法控制 checkbox 是否允许用户手动选中，还可以配置 "),l("table-api-link",{attrs:{prop:"labelField"}}),e._v(" 列显示属性"),l("br"),e._v(" 禁止用户手动选中，但是可以通过函数式调用强制选中，该功能对于某些场景需要强制选中指定行时非常有用 ")],1),l("vxe-toolbar",{scopedSlots:e._u([{key:"buttons",fn:function(){return[l("vxe-button",{on:{click:function(t){return e.$refs.xTable2.setRadioRow(e.tableData[0],!0)}}},[e._v("设置第一行选中")]),l("vxe-button",{on:{click:function(t){return e.$refs.xTable2.clearRadioRow()}}},[e._v("清除所有行选中")])]},proxy:!0}])}),l("vxe-table",{ref:"xTable2",attrs:{border:"",height:"300","radio-config":{labelField:"name",checkMethod:e.checkMethod},data:e.tableData}},[l("vxe-table-column",{attrs:{type:"radio",title:"请选择",width:"100"}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex"}}),l("vxe-table-column",{attrs:{field:"age",title:"Age"}}),l("vxe-table-column",{attrs:{field:"address",title:"Address","show-overflow":""}})],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[2]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[3]))]),e._v("\n  ")]),l("p",{staticClass:"tip"},[e._v("默认选中，通过指定 "),l("table-api-link",{attrs:{prop:"checkRowKey"}}),e._v(" 设置默认选中的行，指定默认值需要有 "),l("table-api-link",{attrs:{prop:"row-id"}})],1),l("vxe-table",{attrs:{border:"",height:"300","row-id":"id",data:e.tableData,"radio-config":{checkRowKey:"2"}}},[l("vxe-table-column",{attrs:{type:"radio",width:"60"}}),l("vxe-table-column",{attrs:{field:"name",title:"Name"}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex"}}),l("vxe-table-column",{attrs:{field:"address",title:"Address","show-overflow":""}})],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[4]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[5]))]),e._v("\n  ")]),l("p",{staticClass:"tip"},[e._v("使用 "),l("table-api-link",{attrs:{prop:"highlight-current-row"}}),e._v(" 高亮方式")],1),l("vxe-table",{attrs:{border:"","highlight-current-row":"",height:"300",data:e.tableData},on:{"current-change":e.currentChangeEvent}},[l("vxe-table-column",{attrs:{field:"name",title:"Name"}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex"}}),l("vxe-table-column",{attrs:{field:"age",title:"Age"}}),l("vxe-table-column",{attrs:{field:"address",title:"Address","show-overflow":""}})],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[6]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[7]))]),e._v("\n  ")]),l("p",{staticClass:"tip"},[e._v("两种方式混合使用")]),l("vxe-table",{attrs:{border:"","highlight-current-row":"",height:"300","radio-config":{labelField:"name"},data:e.tableData}},[l("vxe-table-column",{attrs:{type:"radio",title:"还可以这样",width:"120"}}),l("vxe-table-column",{attrs:{field:"name",title:"Name"}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex"}}),l("vxe-table-column",{attrs:{field:"age",title:"Age"}}),l("vxe-table-column",{attrs:{field:"address",title:"Address","show-overflow":""}})],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[8]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[9]))]),e._v("\n  ")]),l("p",{staticClass:"tip"},[e._v("当然也可以两种方式同时使用")]),l("vxe-table",{attrs:{border:"","highlight-hover-row":"","highlight-current-row":"",height:"300","radio-config":{labelField:"name",trigger:"row"},data:e.tableData}},[l("vxe-table-column",{attrs:{type:"radio",title:"还可以这样",width:"120"}}),l("vxe-table-column",{attrs:{field:"name",title:"Name"}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex"}}),l("vxe-table-column",{attrs:{field:"age",title:"Age"}}),l("vxe-table-column",{attrs:{field:"address",title:"Address","show-overflow":""}})],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[10]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[11]))]),e._v("\n  ")])],1)},n=[],o=(l("4160"),l("a630"),l("fb6a"),l("3ca3"),l("159b"),l("1487")),i=l.n(o),s={data:function(){return{tableData:[],selectRow:null,demoCodes:['\n        <vxe-toolbar>\n          <template v-slot:buttons>\n            <vxe-button @click="$refs.xTable1.setRadioRow(tableData[1])">设置第二行选中</vxe-button>\n            <vxe-button @click="clearRadioRowEevnt">取消选中</vxe-button>\n            <vxe-button @click="getRadioEvent1">获取选中</vxe-button>\n          </template>\n        </vxe-toolbar>\n\n        <vxe-table\n          border\n          ref="xTable1"\n          class="radio-table"\n          height="300"\n          :data="tableData"\n          :radio-config="{highlight: true}"\n          @cell-click="cellClickEvent"\n          @radio-change="radioChangeEvent">\n          <vxe-table-column type="radio" width="60">\n            <template v-slot:header>\n              <vxe-button type="text" @click="clearRadioRowEevnt" :disabled="!selectRow">取消</vxe-button>\n            </template>\n          </vxe-table-column>\n          <vxe-table-column field="sex" title="Sex"></vxe-table-column>\n          <vxe-table-column field="age" title="Age"></vxe-table-column>\n          <vxe-table-column field="address" title="Address" show-overflow></vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: [],\n              selectRow: null\n            }\n          },\n          created () {\n            this.tableData = window.MOCK_DATA_LIST.slice(0, 6)\n          },\n          methods: {\n            cellClickEvent () {\n              console.log('单元格点击事件')\n            },\n            radioChangeEvent ({ row }) {\n              this.selectRow = row\n              console.log('单选事件')\n            },\n            clearRadioRowEevnt () {\n              this.selectRow = null\n              this.$refs.xTable1.clearRadioRow()\n            },\n            getRadioEvent1 () {\n              this.$XModal.alert(JSON.stringify(this.$refs.xTable1.getRadioRecord()))\n            }\n          }\n        }\n        ",'\n        <vxe-toolbar>\n          <template v-slot:buttons>\n            <vxe-button @click="$refs.xTable2.setRadioRow(tableData[0], true)">设置第一行选中</vxe-button>\n            <vxe-button @click="$refs.xTable2.clearRadioRow()">清除所有行选中</vxe-button>\n          </template>\n        </vxe-toolbar>\n\n        <vxe-table\n          border\n          ref="xTable2"\n          height="300"\n          :radio-config="{labelField: \'name\', checkMethod}"\n          :data="tableData">\n          <vxe-table-column type="radio" title="请选择" width="100"></vxe-table-column>\n          <vxe-table-column field="sex" title="Sex"></vxe-table-column>\n          <vxe-table-column field="age" title="Age"></vxe-table-column>\n          <vxe-table-column field="address" title="Address" show-overflow></vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: []\n            }\n          },\n          created () {\n            this.tableData = window.MOCK_DATA_LIST.slice(0, 6)\n          },\n          methods: {\n            checkMethod ({ row }) {\n              return row.age > 26\n            }\n          }\n        }\n        ",'\n        <vxe-table\n          border\n          height="300"\n          row-id="id"\n          :data="tableData"\n          :radio-config="{checkRowKey: \'2\'}">\n          <vxe-table-column type="radio" width="60"></vxe-table-column>\n          <vxe-table-column field="name" title="Name"></vxe-table-column>\n          <vxe-table-column field="sex" title="Sex"></vxe-table-column>\n          <vxe-table-column field="address" title="Address" show-overflow></vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: []\n            }\n          },\n          created () {\n            this.tableData = window.MOCK_DATA_LIST.slice(0, 6)\n          }\n        }\n        ",'\n        <vxe-table\n          border\n          highlight-current-row\n          height="300"\n          :data="tableData"\n          @current-change="currentChangeEvent">\n          <vxe-table-column field="name" title="Name"></vxe-table-column>\n          <vxe-table-column field="sex" title="Sex"></vxe-table-column>\n          <vxe-table-column field="age" title="Age"></vxe-table-column>\n          <vxe-table-column field="address" title="Address" show-overflow></vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: []\n            }\n          },\n          created () {\n            this.tableData = window.MOCK_DATA_LIST.slice(0, 6)\n          },\n          methods: {\n            currentChangeEvent ({ row }) {\n              console.log('行选中事件')\n            }\n          }\n        }\n        ",'\n        <vxe-table\n          border\n          highlight-current-row\n          height="300"\n          :radio-config="{labelField: \'name\'}"\n          :data="tableData">\n          <vxe-table-column type="radio" title="还可以这样" width="120"></vxe-table-column>\n          <vxe-table-column field="name" title="Name"></vxe-table-column>\n          <vxe-table-column field="sex" title="Sex"></vxe-table-column>\n          <vxe-table-column field="age" title="Age"></vxe-table-column>\n          <vxe-table-column field="address" title="Address" show-overflow></vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: []\n            }\n          },\n          created () {\n            this.tableData = window.MOCK_DATA_LIST.slice(0, 6)\n          }\n        }\n        ",'\n        <vxe-table\n          border\n          highlight-hover-row\n          highlight-current-row\n          height="300"\n          :radio-config="{labelField: \'name\', trigger: \'row\'}"\n          :data="tableData">\n          <vxe-table-column type="radio" title="还可以这样" width="120"></vxe-table-column>\n          <vxe-table-column field="name" title="Name"></vxe-table-column>\n          <vxe-table-column field="sex" title="Sex"></vxe-table-column>\n          <vxe-table-column field="age" title="Age"></vxe-table-column>\n          <vxe-table-column field="address" title="Address" show-overflow></vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: []\n            }\n          },\n          created () {\n            this.tableData = window.MOCK_DATA_LIST.slice(0, 6)\n          }\n        }\n        "]}},mounted:function(){Array.from(this.$el.querySelectorAll("pre code")).forEach((function(e){i.a.highlightBlock(e)}))},created:function(){this.tableData=window.MOCK_DATA_LIST.slice(0,6)},methods:{checkMethod:function(e){var t=e.row;return t.age>26},cellClickEvent:function(){console.log("单元格点击事件")},currentChangeEvent:function(e){var t=e.rowIndex;console.log("行选中事件 ".concat(t))},radioChangeEvent:function(e){var t=e.row;this.selectRow=t,console.log("单选事件")},clearRadioRowEevnt:function(){this.selectRow=null,this.$refs.xTable1.clearRadioRow()},getRadioEvent1:function(){this.$XModal.alert(JSON.stringify(this.$refs.xTable1.getRadioRecord()))}}},r=s,d=l("2877"),c=Object(d["a"])(r,a,n,!1,null,null,null);t["default"]=c.exports},"4ce9":function(e,t,l){"use strict";l.r(t);var a=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("div",[l("p",{staticClass:"tip"},[e._v(" 行的样色、单元格样式，表头的样式、表尾的样式、全部都可以完全自定义，通过设置 "),l("table-api-link",{attrs:{prop:"cell-class-name"}}),e._v("、"),l("table-api-link",{attrs:{prop:"header-cell-class-name"}}),e._v("、"),l("table-api-link",{attrs:{prop:"row-class-name"}}),e._v(" ...等参数"),l("br"),l("span",{staticClass:"red"},[e._v("（注：当自定义样式之后可能会覆盖表格的样式，比如选中行..等，记得自行处理好相关样式）")])],1),l("vxe-table",{staticClass:"mytable-style",attrs:{border:"","header-cell-class-name":e.headerCellClassName,"row-class-name":e.rowClassName,"cell-class-name":e.cellClassName,data:e.tableData}},[l("vxe-table-column",{attrs:{type:"seq",width:"60"}}),l("vxe-table-column",{attrs:{field:"name",title:"Name"}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex"}}),l("vxe-table-column",{attrs:{field:"age",title:"Age"}}),l("vxe-table-column",{attrs:{field:"age",title:"Age"}}),l("vxe-table-column",{attrs:{field:"address",title:"Address","show-overflow":""}})],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[0]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[1]))]),e._v("\n    "),l("code",{staticClass:"scss"},[e._v(e._s(e.demoCodes[2]))]),e._v("\n  ")]),l("p",{staticClass:"tip"},[e._v("通过 "),l("table-api-link",{attrs:{prop:"cell-click"}}),e._v(" 事件点击改变颜色")],1),l("vxe-table",{staticClass:"mytable-style",attrs:{border:"","cell-class-name":e.cellClassName2,data:e.tableData},on:{"cell-click":e.cellClickEvent2}},[l("vxe-table-column",{attrs:{type:"seq",width:"60"}}),l("vxe-table-column",{attrs:{field:"name",title:"Name"}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex"}}),l("vxe-table-column",{attrs:{field:"age",title:"Age"}}),l("vxe-table-column",{attrs:{field:"age",title:"Age"}}),l("vxe-table-column",{attrs:{field:"address",title:"Address","show-overflow":""}})],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[3]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[4]))]),e._v("\n    "),l("code",{staticClass:"scss"},[e._v(e._s(e.demoCodes[5]))]),e._v("\n  ")])],1)},n=[],o=(l("4160"),l("a630"),l("caad"),l("fb6a"),l("3ca3"),l("159b"),l("1487")),i=l.n(o),s={data:function(){return{tableData:[],selectRow:null,selectColumn:null,demoCodes:['\n        <vxe-table\n          border\n          class="mytable-style"\n          :header-cell-class-name="headerCellClassName"\n          :row-class-name="rowClassName"\n          :cell-class-name="cellClassName"\n          :data="tableData">\n          <vxe-table-column type="seq" width="60"></vxe-table-column>\n          <vxe-table-column field="name" title="Name"></vxe-table-column>\n          <vxe-table-column field="sex" title="Sex"></vxe-table-column>\n          <vxe-table-column field="age" title="Age"></vxe-table-column>\n          <vxe-table-column field="age" title="Age"></vxe-table-column>\n          <vxe-table-column field="address" title="Address" show-overflow></vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: [],\n              selectRow: null,\n              selectColumn: null\n            }\n          },\n          created () {\n            this.tableData = window.MOCK_DATA_LIST.slice(0, 6)\n          },\n          methods: {\n            headerCellClassName ({ column, columnIndex }) {\n              if (column.property === 'name') {\n                return 'col-blue'\n              }\n            },\n            rowClassName ({ row, rowIndex }) {\n              if ([2, 3, 5].includes(rowIndex)) {\n                return 'row-green'\n              }\n            },\n            cellClassName ({ row, rowIndex, column, columnIndex }) {\n              if (column.property === 'sex') {\n                if (row.sex >= '1') {\n                  return 'col-red'\n                } else if (row.age === 26) {\n                  return 'col-orange'\n                }\n              }\n            }\n          }\n        }\n        ","\n        .mytable-style .vxe-body--row.row-green {\n          background-color: #187;\n          color: #fff;\n        }\n        .mytable-style .vxe-header--column.col-blue {\n          background-color: #2db7f5;\n          color: #fff;\n        }\n        .mytable-style .vxe-body--column.col-red {\n          background-color: red;\n          color: #fff;\n        }\n        .mytable-style .vxe-body--column.col-orange {\n          background-color: #f60;\n          color: #fff;\n        }\n        ",'\n        <vxe-table\n          border\n          class="mytable-style"\n          :cell-class-name="cellClassName"\n          :data="tableData"\n          @cell-click="cellClickEvent">\n          <vxe-table-column type="seq" width="60"></vxe-table-column>\n          <vxe-table-column field="name" title="Name"></vxe-table-column>\n          <vxe-table-column field="sex" title="Sex"></vxe-table-column>\n          <vxe-table-column field="age" title="Age"></vxe-table-column>\n          <vxe-table-column field="age" title="Age"></vxe-table-column>\n          <vxe-table-column field="address" title="Address" show-overflow></vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: [],\n              selectRow: null,\n              selectColumn: null\n            }\n          },\n          created () {\n            this.tableData = window.MOCK_DATA_LIST.slice(0, 6)\n          },\n          methods: {\n            cellClassName ({ row, column }) {\n              if (row === this.selectRow & column === this.selectColumn) {\n                return 'col-orange'\n              }\n            },\n            cellClickEvent ({ row, column }) {\n              this.selectRow = row\n              this.selectColumn = column\n            }\n          }\n        }\n        ","\n        .mytable-style.vxe-table .vxe-body--row.row-green {\n          background-color: #187;\n          color: #fff;\n        }\n        .mytable-style.vxe-table .vxe-header--column.col-blue {\n          background-color: #2db7f5;\n          color: #fff;\n        }\n        .mytable-style.vxe-table .vxe-body--column.col-red {\n          background-color: red;\n          color: #fff;\n        }\n        .mytable-style.vxe-table .vxe-body--column.col-orange {\n          background-color: #f60;\n          color: #fff;\n        }\n        "]}},created:function(){this.tableData=window.MOCK_DATA_LIST.slice(0,6)},mounted:function(){Array.from(this.$el.querySelectorAll("pre code")).forEach((function(e){i.a.highlightBlock(e)}))},methods:{headerCellClassName:function(e){var t=e.column;if("name"===t.property)return"col-blue"},rowClassName:function(e){var t=e.rowIndex;if([2,3,5].includes(t))return"row-green"},cellClassName:function(e){var t=e.row,l=e.column;if("sex"===l.property){if(t.sex>="1")return"col-red";if(26===t.age)return"col-orange"}},cellClassName2:function(e){var t=e.row,l=e.column;if(t===this.selectRow&l===this.selectColumn)return"col-orange"},cellClickEvent2:function(e){var t=e.row,l=e.column;this.selectRow=t,this.selectColumn=l}}},r=s,d=(l("300b"),l("2877")),c=Object(d["a"])(r,a,n,!1,null,null,null);t["default"]=c.exports},"4eb9":function(e,t,l){"use strict";l.r(t);var a=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("div",[l("p",{staticClass:"tip"},[e._v("重写默认的滚动条样式，可以自行根据不同浏览器的特性去做修改，简单示例如下：")]),l("vxe-table",{staticClass:"mytable-scrollbar",attrs:{border:"","show-footer":"",height:"400","footer-method":e.footerMethod,data:e.tableData}},[l("vxe-table-column",{attrs:{type:"seq",width:"60",fixed:"left"}}),l("vxe-table-column",{attrs:{field:"name",title:"Name",width:"300"}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex",width:"250"}}),l("vxe-table-column",{attrs:{field:"age",title:"Age",width:"250"}}),l("vxe-table-column",{attrs:{field:"role",title:"Role",width:"300"}}),l("vxe-table-column",{attrs:{field:"address",title:"Address",width:"350","show-overflow":""}})],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[0]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[1]))]),e._v("\n    "),l("code",{staticClass:"scss"},[e._v(e._s(e.demoCodes[2]))]),e._v("\n  ")])],1)},n=[],o=(l("4160"),l("a630"),l("caad"),l("d81d"),l("fb6a"),l("3ca3"),l("159b"),l("c695")),i=l.n(o),s=l("1487"),r=l.n(s),d={data:function(){return{tableData:[],demoCodes:['\n        <vxe-table\n          border\n          show-footer\n          class="mytable-scrollbar"\n          height="400"\n          :footer-method="footerMethod"\n          :data="tableData">\n          <vxe-table-column type="seq" width="60" fixed="left"></vxe-table-column>\n          <vxe-table-column field="name" title="Name" width="300"></vxe-table-column>\n          <vxe-table-column field="sex" title="Sex" width="250"></vxe-table-column>\n          <vxe-table-column field="age" title="Age" width="250"></vxe-table-column>\n          <vxe-table-column field="role" title="Role" width="300"></vxe-table-column>\n          <vxe-table-column field="address" title="Address" width="350" show-overflow></vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: []\n            }\n          },\n          created () {\n            this.tableData = window.MOCK_DATA_LIST.slice(0, 50)\n          },\n          methods: {\n            footerMethod ({ columns, data }) {\n              return [\n                columns.map((column, columnIndex) => {\n                  if (columnIndex === 0) {\n                    return '平均'\n                  }\n                  if (['age'].includes(column.property)) {\n                    return parseInt(XEUtils.sum(data, column.property))\n                  }\n                  return '-'\n                })\n              ]\n            }\n          }\n        }\n        ","\n        /*滚动条整体部分*/\n        .mytable-scrollbar div::-webkit-scrollbar {\n          width: 10px;\n          height: 10px;\n        }\n        /*滚动条的轨道*/\n        .mytable-scrollbar div::-webkit-scrollbar-track {\n          background-color: #FFFFFF;\n        }\n        /*滚动条里面的小方块，能向上向下移动*/\n        .mytable-scrollbar div::-webkit-scrollbar-thumb {\n          background-color: #bfbfbf;\n          border-radius: 5px;\n          border: 1px solid #F1F1F1;\n          box-shadow: inset 0 0 6px rgba(0,0,0,.3);\n        }\n        .mytable-scrollbar div::-webkit-scrollbar-thumb:hover {\n          background-color: #A8A8A8;\n        }\n        .mytable-scrollbar div::-webkit-scrollbar-thumb:active {\n          background-color: #787878;\n        }\n        /*边角，即两个滚动条的交汇处*/\n        .mytable-scrollbar div::-webkit-scrollbar-corner {\n          background-color: #FFFFFF;\n        }\n        "]}},created:function(){this.tableData=window.MOCK_DATA_LIST.slice(0,50)},mounted:function(){Array.from(this.$el.querySelectorAll("pre code")).forEach((function(e){r.a.highlightBlock(e)}))},methods:{footerMethod:function(e){var t=e.columns,l=e.data;return[t.map((function(e,t){return 0===t?"平均":["age"].includes(e.property)?parseInt(i.a.sum(l,e.property)):"-"}))]}}},c=d,b=(l("6eff"),l("2877")),v=Object(b["a"])(c,a,n,!1,null,null,null);t["default"]=v.exports},5029:function(e,t,l){"use strict";l.r(t);var a=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("div",[l("p",{staticClass:"tip"},[e._v(" 通过给需要排序功能的列加上 "),l("table-api-link",{attrs:{prop:"sortable"}}),e._v(" 属性可以支持排序，还可以通过设置 "),l("table-api-link",{attrs:{prop:"sort-by"}}),e._v(" 多字段进行排序"),l("br"),e._v(" 如果是服务端排序，只需加上 "),l("table-column-api-link",{attrs:{prop:"remote-sort"}}),e._v(" 和 "),l("table-api-link",{attrs:{prop:"sort-change"}}),e._v(" 事件就可以实现"),l("br"),e._v(" 还可以通过调用 "),l("table-api-link",{attrs:{prop:"sort"}}),e._v(" 方法实现手动排序 ")],1),l("vxe-toolbar",{scopedSlots:e._u([{key:"buttons",fn:function(){return[l("vxe-button",{on:{click:function(t){return e.$refs.xTable.sort("name","asc")}}},[e._v("Name 升序")]),l("vxe-button",{on:{click:function(t){return e.$refs.xTable.sort("name","desc")}}},[e._v("Name 降序")]),l("vxe-button",{on:{click:function(t){return e.$refs.xTable.clearSort()}}},[e._v("清除排序")])]},proxy:!0}])}),l("vxe-table",{ref:"xTable",attrs:{border:"","highlight-hover-row":"",height:"300",data:e.tableData}},[l("vxe-table-column",{attrs:{type:"seq",width:"60"}}),l("vxe-table-column",{attrs:{field:"name",title:"Name",sortable:""}}),l("vxe-table-column",{attrs:{field:"nickname",title:"Nickname",sortable:""}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex",sortable:""}}),l("vxe-table-column",{attrs:{field:"age",title:"Age",sortable:""}}),l("vxe-table-column",{attrs:{field:"time",title:"Time",sortable:""}})],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[0]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[1]))]),e._v("\n  ")]),l("p",{staticClass:"tip"},[e._v("配置 "),l("table-column-api-link",{attrs:{prop:"sort-by"}}),e._v(" 多个字段组合排序")],1),l("vxe-table",{attrs:{border:"","highlight-hover-row":"",height:"300",data:e.tableData}},[l("vxe-table-column",{attrs:{type:"seq",width:"60"}}),l("vxe-table-column",{attrs:{field:"name",title:"Name",sortable:""}}),l("vxe-table-column",{attrs:{field:"nickname",title:"Nickname",sortable:""}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex",sortable:""}}),l("vxe-table-column",{attrs:{field:"age",title:"Age",sortable:""}}),l("vxe-table-column",{attrs:{field:"time",title:"Time",sortable:"","sort-by":["time","name"]}})],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[2]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[3]))]),e._v("\n  ")]),l("p",{staticClass:"tip"},[e._v("配置 "),l("table-column-api-link",{attrs:{prop:"sort-method"}}),e._v(" 自定义排序")],1),l("vxe-table",{attrs:{border:"","highlight-hover-row":"",height:"300",data:e.tableData},on:{"sort-change":e.sortChangeEvent}},[l("vxe-table-column",{attrs:{type:"seq",width:"60"}}),l("vxe-table-column",{attrs:{field:"name",title:"Name",sortable:"","sort-method":e.sortNameMethod}}),l("vxe-table-column",{attrs:{field:"nickname",title:"Nickname",sortable:""}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex",sortable:""}}),l("vxe-table-column",{attrs:{field:"age",title:"Age",sortable:""}}),l("vxe-table-column",{attrs:{field:"time",title:"Time",sortable:""}})],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[4]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[5]))]),e._v("\n  ")]),l("p",{staticClass:"tip"},[e._v("点击表头排序，通过 "),l("table-api-link",{attrs:{prop:"defaultSort"}}),e._v(" 默认排序、通过配置 "),l("table-api-link",{attrs:{prop:"trigger"}}),e._v(" 设置触发源")],1),l("vxe-table",{attrs:{border:"","highlight-hover-row":"","highlight-hover-column":"",height:"300",data:e.tableData,"sort-config":{trigger:"cell",defaultSort:{field:"age",order:"desc"}}},on:{"sort-change":e.sortChangeEvent}},[l("vxe-table-column",{attrs:{type:"seq",width:"60"}}),l("vxe-table-column",{attrs:{field:"name",title:"Name"}}),l("vxe-table-column",{attrs:{field:"nickname",title:"Nickname",sortable:""}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex",sortable:""}}),l("vxe-table-column",{attrs:{field:"age",title:"Age",sortable:""}}),l("vxe-table-column",{attrs:{field:"time",title:"Time",sortable:""}})],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[6]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[7]))]),e._v("\n  ")])],1)},n=[],o=(l("4160"),l("a630"),l("fb6a"),l("b0c0"),l("3ca3"),l("159b"),l("1487")),i=l.n(o),s={data:function(){return{tableData:[],demoCodes:['\n        <vxe-toolbar>\n          <template v-slot:buttons>\n            <vxe-button @click="$refs.xTable.sort(\'name\', \'asc\')">Name 升序</vxe-button>\n            <vxe-button @click="$refs.xTable.sort(\'name\', \'desc\')">Name 降序</vxe-button>\n            <vxe-button @click="$refs.xTable.clearSort()">清除排序</vxe-button>\n          </template>\n        </vxe-toolbar>\n\n        <vxe-table\n          border\n          highlight-hover-row\n          ref="xTable"\n          height="300"\n          :data="tableData">\n          <vxe-table-column type="seq" width="60"></vxe-table-column>\n          <vxe-table-column field="name" title="Name" sortable></vxe-table-column>\n          <vxe-table-column field="nickname" title="Nickname" sortable></vxe-table-column>\n          <vxe-table-column field="sex" title="Sex" sortable></vxe-table-column>\n          <vxe-table-column field="age" title="Age" sortable></vxe-table-column>\n          <vxe-table-column field="time" title="Time" sortable></vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: []\n            }\n          },\n          created () {\n            this.tableData = window.MOCK_DATA_LIST.slice(0, 50)\n          }\n        }\n        ",'\n        <vxe-table\n          border\n          highlight-hover-row\n          height="300"\n          :data="tableData">\n          <vxe-table-column type="seq" width="60"></vxe-table-column>\n          <vxe-table-column field="name" title="Name" sortable></vxe-table-column>\n          <vxe-table-column field="nickname" title="Nickname" sortable></vxe-table-column>\n          <vxe-table-column field="sex" title="Sex" sortable></vxe-table-column>\n          <vxe-table-column field="age" title="Age" sortable></vxe-table-column>\n          <vxe-table-column field="time" title="Time" sortable :sort-by="[\'time\', \'name\']"></vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: []\n            }\n          },\n          created () {\n            this.tableData = window.MOCK_DATA_LIST.slice(0, 50)\n          }\n        }\n        ",'\n        <vxe-table\n          border\n          highlight-hover-row\n          height="300"\n          :data="tableData"\n          @sort-change="sortChangeEvent">\n          <vxe-table-column type="seq" width="60"></vxe-table-column>\n          <vxe-table-column field="name" title="Name" sortable :sort-method="sortNameMethod"></vxe-table-column>\n          <vxe-table-column field="nickname" title="Nickname" sortable></vxe-table-column>\n          <vxe-table-column field="sex" title="Sex" sortable></vxe-table-column>\n          <vxe-table-column field="age" title="Age" sortable></vxe-table-column>\n          <vxe-table-column field="time" title="Time" sortable></vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: []\n            }\n          },\n          created () {\n            this.tableData = window.MOCK_DATA_LIST.slice(0, 50)\n          },\n          methods: {\n            sortNameMethod (a, b) {\n              // 例如：名称不区分大小写的排序\n              var v1 = (a.name || '').toLowerCase()\n              var v2 = (b.name || '').toLowerCase()\n              return v1 < v2 ? -1 : v1 > v2 ? 1 : 0\n            },\n            sortChangeEvent ({ column, property, order }) {\n              console.info(property, order)\n            }\n          }\n        }\n        ",'\n        <vxe-table\n          border\n          highlight-hover-row\n          highlight-hover-column\n          height="300"\n          :data="tableData"\n          :sort-config="{trigger: \'cell\', defaultSort: {field: \'age\', order: \'desc\'}}"\n          @sort-change="sortChangeEvent">\n          <vxe-table-column type="seq" width="60"></vxe-table-column>\n          <vxe-table-column field="name" title="Name"></vxe-table-column>\n          <vxe-table-column field="nickname" title="Nickname" sortable></vxe-table-column>\n          <vxe-table-column field="sex" title="Sex" sortable></vxe-table-column>\n          <vxe-table-column field="age" title="Age" sortable></vxe-table-column>\n          <vxe-table-column field="time" title="Time" sortable></vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: []\n            }\n          },\n          created () {\n            this.tableData = window.MOCK_DATA_LIST.slice(0, 50)\n          },\n          methods: {\n            sortChangeEvent ({ column, property, order }) {\n              console.info(property, order)\n            }\n          }\n        }\n        "]}},created:function(){this.tableData=window.MOCK_DATA_LIST.slice(0,50)},mounted:function(){Array.from(this.$el.querySelectorAll("pre code")).forEach((function(e){i.a.highlightBlock(e)}))},methods:{sortNameMethod:function(e,t){var l=(e.name||"").toLowerCase(),a=(t.name||"").toLowerCase();return l<a?-1:l>a?1:0},sortChangeEvent:function(e){var t=e.property,l=e.order;console.info(t,l)}}},r=s,d=l("2877"),c=Object(d["a"])(r,a,n,!1,null,null,null);t["default"]=c.exports},"5c3a0":function(e,t,l){"use strict";l.r(t);var a=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("div",[e._m(0),l("vxe-toolbar",{scopedSlots:e._u([{key:"buttons",fn:function(){return[l("vxe-button",{on:{click:function(t){e.allAlign="left"}}},[e._v("居左")]),l("vxe-button",{on:{click:function(t){e.allAlign="center"}}},[e._v("居中")]),l("vxe-button",{on:{click:function(t){e.allAlign="right"}}},[e._v("居右")])]},proxy:!0}])}),l("vxe-form",{attrs:{data:e.formData}},[l("vxe-form-item",{attrs:{title:"输入框",field:"iVal"}},[l("vxe-input",{attrs:{placeholder:"请输入名称",clearable:""},model:{value:e.formData.iVal,callback:function(t){e.$set(e.formData,"iVal",t)},expression:"formData.iVal"}})],1),l("vxe-form-item",{attrs:{title:"下拉框",field:"sVal"}},[l("vxe-select",{model:{value:e.formData.sVal,callback:function(t){e.$set(e.formData,"sVal",t)},expression:"formData.sVal"}},[l("vxe-option",{attrs:{value:"0",label:"女"}}),l("vxe-option",{attrs:{value:"1",label:"男"}})],1)],1),l("vxe-form-item",{attrs:{title:"复选框",field:"cVal"}},[l("vxe-checkbox",{model:{value:e.formData.cVal,callback:function(t){e.$set(e.formData,"cVal",t)},expression:"formData.cVal"}},[e._v("选项1")]),l("vxe-checkbox",{attrs:{indeterminate:e.formData.ciVal}},[e._v("半选")])],1),l("vxe-form-item",{attrs:{title:"单选框",field:"rVal"}},[l("vxe-radio-group",{model:{value:e.formData.rVal,callback:function(t){e.$set(e.formData,"rVal",t)},expression:"formData.rVal"}},[l("vxe-radio",{attrs:{label:"1"}},[e._v("选项1")]),l("vxe-radio",{attrs:{label:"2"}},[e._v("选项2")])],1)],1),l("vxe-form-item",[l("vxe-button",{attrs:{type:"submit",status:"primary"}},[e._v("查询")]),l("vxe-button",{attrs:{type:"reset"}},[e._v("重置")])],1)],1),l("vxe-toolbar",{attrs:{export:"",custom:""},scopedSlots:e._u([{key:"buttons",fn:function(){return[l("vxe-input",{attrs:{placeholder:"请输入名称",clearable:""},model:{value:e.formData.name,callback:function(t){e.$set(e.formData,"name",t)},expression:"formData.name"}}),l("vxe-button",{attrs:{status:"primary"}},[e._v("查询")])]},proxy:!0}])}),l("vxe-table",{attrs:{border:"","export-config":"",align:e.allAlign,data:e.tableData}},[l("vxe-table-column",{attrs:{type:"seq",width:"60"}}),l("vxe-table-column",{attrs:{type:"radio",width:"60"}}),l("vxe-table-column",{attrs:{type:"checkbox",width:"60"}}),l("vxe-table-column",{attrs:{field:"name",title:"Name"}}),l("vxe-table-column",{attrs:{field:"age",title:"Age",sortable:""}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex",filters:[{value:"0",label:"女"},{value:"1",label:"男"}]}}),l("vxe-table-column",{attrs:{field:"sex2",title:"Sex2",sortable:"",filters:[{value:"0",label:"女"},{value:"1",label:"男"}],"filter-multiple":!1}}),l("vxe-table-column",{attrs:{field:"address",title:"Address","show-overflow":""}})],1),l("vxe-pager",{attrs:{perfect:"","current-page":e.tablePage.currentPage,"page-size":e.tablePage.pageSize,total:e.tablePage.total,"page-sizes":e.tablePage.pageSizes,layouts:e.tablePage.layouts},on:{"update:currentPage":function(t){return e.$set(e.tablePage,"currentPage",t)},"update:current-page":function(t){return e.$set(e.tablePage,"currentPage",t)},"update:pageSize":function(t){return e.$set(e.tablePage,"pageSize",t)},"update:page-size":function(t){return e.$set(e.tablePage,"pageSize",t)}}}),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[0]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[1]))]),e._v("\n  ")]),l("p",{staticClass:"tip"},[e._v("设置大小为 medium，默认大小：Table 44px 、Button 32px、Input 32px、Checkbox 15px、Radio 15px")]),l("vxe-form",{attrs:{data:e.formData,size:"medium"}},[l("vxe-form-item",{attrs:{title:"输入框",field:"iVal"}},[l("vxe-input",{attrs:{placeholder:"请输入名称",clearable:""},model:{value:e.formData.iVal,callback:function(t){e.$set(e.formData,"iVal",t)},expression:"formData.iVal"}})],1),l("vxe-form-item",{attrs:{title:"下拉框",field:"sVal"}},[l("vxe-select",{model:{value:e.formData.sVal,callback:function(t){e.$set(e.formData,"sVal",t)},expression:"formData.sVal"}},[l("vxe-option",{attrs:{value:"0",label:"女"}}),l("vxe-option",{attrs:{value:"1",label:"男"}})],1)],1),l("vxe-form-item",{attrs:{title:"复选框",field:"cVal"}},[l("vxe-checkbox",{model:{value:e.formData.cVal,callback:function(t){e.$set(e.formData,"cVal",t)},expression:"formData.cVal"}},[e._v("选项1")]),l("vxe-checkbox",{attrs:{indeterminate:e.formData.ciVal}},[e._v("半选")])],1),l("vxe-form-item",{attrs:{title:"单选框",field:"rVal"}},[l("vxe-radio-group",{model:{value:e.formData.rVal,callback:function(t){e.$set(e.formData,"rVal",t)},expression:"formData.rVal"}},[l("vxe-radio",{attrs:{label:"1"}},[e._v("选项1")]),l("vxe-radio",{attrs:{label:"2"}},[e._v("选项2")])],1)],1),l("vxe-form-item",[l("vxe-button",{attrs:{type:"submit",status:"primary"}},[e._v("查询")]),l("vxe-button",{attrs:{type:"reset"}},[e._v("重置")])],1)],1),l("vxe-toolbar",{attrs:{size:"medium",export:"",custom:""},scopedSlots:e._u([{key:"buttons",fn:function(){return[l("vxe-input",{attrs:{placeholder:"请输入名称",clearable:""},model:{value:e.formData.name,callback:function(t){e.$set(e.formData,"name",t)},expression:"formData.name"}}),l("vxe-button",{attrs:{status:"primary"}},[e._v("查询")])]},proxy:!0}])}),l("vxe-table",{attrs:{border:"","export-config":"",size:"medium",align:e.allAlign,data:e.tableData}},[l("vxe-table-column",{attrs:{type:"seq",width:"60"}}),l("vxe-table-column",{attrs:{type:"radio",width:"60"}}),l("vxe-table-column",{attrs:{type:"checkbox",width:"60"}}),l("vxe-table-column",{attrs:{field:"name",title:"Name"}}),l("vxe-table-column",{attrs:{field:"age",title:"Age",sortable:""}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex",filters:[{value:"0",label:"女"},{value:"1",label:"男"}]}}),l("vxe-table-column",{attrs:{field:"sex2",title:"Sex2",sortable:"",filters:[{value:"0",label:"女"},{value:"1",label:"男"}],"filter-multiple":!1}}),l("vxe-table-column",{attrs:{field:"address",title:"Address","show-overflow":""}})],1),l("vxe-pager",{attrs:{perfect:"",size:"medium","current-page":e.tablePage.currentPage,"page-size":e.tablePage.pageSize,total:e.tablePage.total,"page-sizes":e.tablePage.pageSizes,layouts:e.tablePage.layouts},on:{"update:currentPage":function(t){return e.$set(e.tablePage,"currentPage",t)},"update:current-page":function(t){return e.$set(e.tablePage,"currentPage",t)},"update:pageSize":function(t){return e.$set(e.tablePage,"pageSize",t)},"update:page-size":function(t){return e.$set(e.tablePage,"pageSize",t)}}}),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[2]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[3]))]),e._v("\n  ")]),l("p",{staticClass:"tip"},[e._v("设置大小为 small，默认大小：Table 40px 、Button 30px、Input 30px、Checkbox 14px、Radio 14px")]),l("vxe-form",{attrs:{data:e.formData,size:"small"}},[l("vxe-form-item",{attrs:{title:"输入框",field:"iVal"}},[l("vxe-input",{attrs:{placeholder:"请输入名称",clearable:""},model:{value:e.formData.iVal,callback:function(t){e.$set(e.formData,"iVal",t)},expression:"formData.iVal"}})],1),l("vxe-form-item",{attrs:{title:"下拉框",field:"sVal"}},[l("vxe-select",{model:{value:e.formData.sVal,callback:function(t){e.$set(e.formData,"sVal",t)},expression:"formData.sVal"}},[l("vxe-option",{attrs:{value:"0",label:"女"}}),l("vxe-option",{attrs:{value:"1",label:"男"}})],1)],1),l("vxe-form-item",{attrs:{title:"复选框",field:"cVal"}},[l("vxe-checkbox",{model:{value:e.formData.cVal,callback:function(t){e.$set(e.formData,"cVal",t)},expression:"formData.cVal"}},[e._v("选项1")]),l("vxe-checkbox",{attrs:{indeterminate:e.formData.ciVal}},[e._v("半选")])],1),l("vxe-form-item",{attrs:{title:"单选框",field:"rVal"}},[l("vxe-radio-group",{model:{value:e.formData.rVal,callback:function(t){e.$set(e.formData,"rVal",t)},expression:"formData.rVal"}},[l("vxe-radio",{attrs:{label:"1"}},[e._v("选项1")]),l("vxe-radio",{attrs:{label:"2"}},[e._v("选项2")])],1)],1),l("vxe-form-item",[l("vxe-button",{attrs:{type:"submit",status:"primary"}},[e._v("查询")]),l("vxe-button",{attrs:{type:"reset"}},[e._v("重置")])],1)],1),l("vxe-toolbar",{attrs:{size:"small",export:"",custom:""},scopedSlots:e._u([{key:"buttons",fn:function(){return[l("vxe-input",{attrs:{placeholder:"请输入名称",clearable:""},model:{value:e.formData.name,callback:function(t){e.$set(e.formData,"name",t)},expression:"formData.name"}}),l("vxe-button",{attrs:{status:"primary"}},[e._v("查询")])]},proxy:!0}])}),l("vxe-table",{attrs:{border:"","export-config":"",size:"small",align:e.allAlign,data:e.tableData}},[l("vxe-table-column",{attrs:{type:"seq",width:"60"}}),l("vxe-table-column",{attrs:{type:"radio",width:"60"}}),l("vxe-table-column",{attrs:{type:"checkbox",width:"60"}}),l("vxe-table-column",{attrs:{field:"name",title:"Name"}}),l("vxe-table-column",{attrs:{field:"age",title:"Age",sortable:""}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex",filters:[{value:"0",label:"女"},{value:"1",label:"男"}]}}),l("vxe-table-column",{attrs:{field:"sex2",title:"Sex2",sortable:"",filters:[{value:"0",label:"女"},{value:"1",label:"男"}],"filter-multiple":!1}}),l("vxe-table-column",{attrs:{field:"address",title:"Address","show-overflow":""}})],1),l("vxe-pager",{attrs:{perfect:"",size:"small","current-page":e.tablePage.currentPage,"page-size":e.tablePage.pageSize,total:e.tablePage.total,"page-sizes":e.tablePage.pageSizes,layouts:e.tablePage.layouts},on:{"update:currentPage":function(t){return e.$set(e.tablePage,"currentPage",t)},"update:current-page":function(t){return e.$set(e.tablePage,"currentPage",t)},"update:pageSize":function(t){return e.$set(e.tablePage,"pageSize",t)},"update:page-size":function(t){return e.$set(e.tablePage,"pageSize",t)}}}),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[4]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[5]))]),e._v("\n  ")]),l("p",{staticClass:"tip"},[e._v("设置大小为 mini，默认大小：Table 36px 、Button 28px、Input 28px、Checkbox 14px、Radio 14px")]),l("vxe-form",{attrs:{data:e.formData,size:"mini"}},[l("vxe-form-item",{attrs:{title:"输入框",field:"iVal"}},[l("vxe-input",{attrs:{placeholder:"请输入名称",clearable:""},model:{value:e.formData.iVal,callback:function(t){e.$set(e.formData,"iVal",t)},expression:"formData.iVal"}})],1),l("vxe-form-item",{attrs:{title:"下拉框",field:"sVal"}},[l("vxe-select",{model:{value:e.formData.sVal,callback:function(t){e.$set(e.formData,"sVal",t)},expression:"formData.sVal"}},[l("vxe-option",{attrs:{value:"0",label:"女"}}),l("vxe-option",{attrs:{value:"1",label:"男"}})],1)],1),l("vxe-form-item",{attrs:{title:"复选框",field:"cVal"}},[l("vxe-checkbox",{model:{value:e.formData.cVal,callback:function(t){e.$set(e.formData,"cVal",t)},expression:"formData.cVal"}},[e._v("选项1")]),l("vxe-checkbox",{attrs:{indeterminate:e.formData.ciVal}},[e._v("半选")])],1),l("vxe-form-item",{attrs:{title:"单选框",field:"rVal"}},[l("vxe-radio-group",{model:{value:e.formData.rVal,callback:function(t){e.$set(e.formData,"rVal",t)},expression:"formData.rVal"}},[l("vxe-radio",{attrs:{label:"1"}},[e._v("选项1")]),l("vxe-radio",{attrs:{label:"2"}},[e._v("选项2")])],1)],1),l("vxe-form-item",[l("vxe-button",{attrs:{type:"submit",status:"primary"}},[e._v("查询")]),l("vxe-button",{attrs:{type:"reset"}},[e._v("重置")])],1)],1),l("vxe-toolbar",{attrs:{size:"mini",export:"",custom:""},scopedSlots:e._u([{key:"buttons",fn:function(){return[l("vxe-input",{attrs:{placeholder:"请输入名称",clearable:""},model:{value:e.formData.name,callback:function(t){e.$set(e.formData,"name",t)},expression:"formData.name"}}),l("vxe-button",{attrs:{status:"primary"}},[e._v("查询")])]},proxy:!0}])}),l("vxe-table",{attrs:{border:"","export-config":"",size:"mini",align:e.allAlign,data:e.tableData}},[l("vxe-table-column",{attrs:{type:"seq",width:"60"}}),l("vxe-table-column",{attrs:{type:"radio",width:"60"}}),l("vxe-table-column",{attrs:{type:"checkbox",width:"60"}}),l("vxe-table-column",{attrs:{field:"name",title:"Name"}}),l("vxe-table-column",{attrs:{field:"age",title:"Age",sortable:""}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex",filters:[{value:"0",label:"女"},{value:"1",label:"男"}]}}),l("vxe-table-column",{attrs:{field:"sex2",title:"Sex2",sortable:"",filters:[{value:"0",label:"女"},{value:"1",label:"男"}],"filter-multiple":!1}}),l("vxe-table-column",{attrs:{field:"address",title:"Address","show-overflow":""}})],1),l("vxe-pager",{attrs:{perfect:"",size:"mini","current-page":e.tablePage.currentPage,"page-size":e.tablePage.pageSize,total:e.tablePage.total,"page-sizes":e.tablePage.pageSizes,layouts:e.tablePage.layouts},on:{"update:currentPage":function(t){return e.$set(e.tablePage,"currentPage",t)},"update:current-page":function(t){return e.$set(e.tablePage,"currentPage",t)},"update:pageSize":function(t){return e.$set(e.tablePage,"pageSize",t)},"update:page-size":function(t){return e.$set(e.tablePage,"pageSize",t)}}}),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[6]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[7]))]),e._v("\n  ")])],1)},n=[function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("p",{staticClass:"tip"},[e._v(" 可以设置大小尺寸：medium / small / mini"),l("br"),e._v(" 默认大小：Table 48px 、Button 34px、Input 34px、Checkbox 16px、Radio 16px，可以通过 scss 变量修改，"),l("a",{staticClass:"link",attrs:{href:"https://github.com/xuliangzhan/vxe-table/blob/master/styles/variable.scss",target:"_blank"}},[e._v("查看所有变量")]),l("br"),l("a",{staticClass:"link",attrs:{href:"https://github.com/xuliangzhan/vxe-table-demo/tree/master/vxe-table-by-vue-custom-theme",target:"_blank"}},[e._v("（项目示例）")])])}],o=(l("4160"),l("a630"),l("fb6a"),l("3ca3"),l("159b"),l("1487")),i=l.n(o),s={data:function(){return{allAlign:null,formData:{iVal:"",sVal:"",cVal:!0,ciVal:!0,rVal:"1"},tablePage:{total:500,currentPage:1,pageSize:10,pageSizes:[10,15,20,50,100],layouts:["PrevJump","PrevPage","JumpNumber","NextPage","NextJump","FullJump","Sizes","Total"]},tableData:[],demoCodes:['\n        <vxe-table\n          :data="tableData">\n          <vxe-table-column type="seq" width="60"></vxe-table-column>\n          <vxe-table-column type="radio" width="60"></vxe-table-column>\n          <vxe-table-column type="checkbox" width="60"></vxe-table-column>\n          <vxe-table-column field="name" title="Name"></vxe-table-column>\n          <vxe-table-column field="age" title="Age" sortable></vxe-table-column>\n          <vxe-table-column field="sex" title="Sex" :filters="[{value:\'0\',label:\'女\'},{value:\'1\',label:\'男\'}]"></vxe-table-column>\n          <vxe-table-column field="sex2" title="Sex2" sortable :filters="[{value:\'0\',label:\'女\'},{value:\'1\',label:\'男\'}]" :filter-multiple="false"></vxe-table-column>\n          <vxe-table-column field="address" title="Address" show-overflow></vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: []\n            }\n          },\n          created () {\n            this.tableData = window.MOCK_DATA_LIST.slice(0, 3)\n          }\n        }\n        ",'\n        <vxe-table\n          size="medium"\n          :data="tableData">\n          <vxe-table-column type="seq" width="60"></vxe-table-column>\n          <vxe-table-column type="radio" width="60"></vxe-table-column>\n          <vxe-table-column type="checkbox" width="60"></vxe-table-column>\n          <vxe-table-column field="name" title="Name"></vxe-table-column>\n          <vxe-table-column field="age" title="Age" sortable></vxe-table-column>\n          <vxe-table-column field="sex" title="Sex" :filters="[{value:\'0\',label:\'女\'},{value:\'1\',label:\'男\'}]"></vxe-table-column>\n          <vxe-table-column field="sex2" title="Sex2" sortable :filters="[{value:\'0\',label:\'女\'},{value:\'1\',label:\'男\'}]" :filter-multiple="false"></vxe-table-column>\n          <vxe-table-column field="address" title="Address" show-overflow></vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: []\n            }\n          },\n          created () {\n            this.tableData = window.MOCK_DATA_LIST.slice(0, 3)\n          }\n        }\n        ",'\n        <vxe-table\n          size="small"\n          :data="tableData">\n          <vxe-table-column type="seq" width="60"></vxe-table-column>\n          <vxe-table-column type="radio" width="60"></vxe-table-column>\n          <vxe-table-column type="checkbox" width="60"></vxe-table-column>\n          <vxe-table-column field="name" title="Name"></vxe-table-column>\n          <vxe-table-column field="age" title="Age" sortable></vxe-table-column>\n          <vxe-table-column field="sex" title="Sex" :filters="[{value:\'0\',label:\'女\'},{value:\'1\',label:\'男\'}]"></vxe-table-column>\n          <vxe-table-column field="sex2" title="Sex2" sortable :filters="[{value:\'0\',label:\'女\'},{value:\'1\',label:\'男\'}]" :filter-multiple="false"></vxe-table-column>\n          <vxe-table-column field="address" title="Address" show-overflow></vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: []\n            }\n          },\n          created () {\n            this.tableData = window.MOCK_DATA_LIST.slice(0, 3)\n          }\n        }\n        ",'\n        <vxe-table\n          size="mini"\n          :data="tableData">\n          <<vxe-table-column type="seq" width="60"></vxe-table-column>\n          <vxe-table-column type="radio" width="60"></vxe-table-column>\n          <vxe-table-column type="checkbox" width="60"></vxe-table-column>\n          <vxe-table-column field="name" title="Name"></vxe-table-column>\n          <vxe-table-column field="age" title="Age" sortable></vxe-table-column>\n          <vxe-table-column field="sex" title="Sex" :filters="[{value:\'0\',label:\'女\'},{value:\'1\',label:\'男\'}]"></vxe-table-column>\n          <vxe-table-column field="sex2" title="Sex2" sortable :filters="[{value:\'0\',label:\'女\'},{value:\'1\',label:\'男\'}]" :filter-multiple="false"></vxe-table-column>\n          <vxe-table-column field="address" title="Address" show-overflow></vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: []\n            }\n          },\n          created () {\n            this.tableData = window.MOCK_DATA_LIST.slice(0, 3)\n          }\n        }\n        "]}},created:function(){this.tableData=window.MOCK_DATA_LIST.slice(0,3)},mounted:function(){Array.from(this.$el.querySelectorAll("pre code")).forEach((function(e){i.a.highlightBlock(e)}))}},r=s,d=l("2877"),c=Object(d["a"])(r,a,n,!1,null,null,null);t["default"]=c.exports},"6dcda":function(e,t,l){"use strict";l.r(t);var a=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("div",[l("p",{staticClass:"tip"},[e._v("斑马线条纹，通过设置 "),l("table-api-link",{attrs:{prop:"stripe"}}),e._v(" 参数"),l("br"),l("span",{staticClass:"red"},[e._v("（注：在可编辑表格场景下，临时插入的数据不会有斑马纹样式）")])],1),l("vxe-table",{attrs:{stripe:"",data:e.tableData}},[l("vxe-table-column",{attrs:{type:"seq",width:"60"}}),l("vxe-table-column",{attrs:{field:"name",title:"Name"}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex"}}),l("vxe-table-column",{attrs:{field:"age",title:"Age"}}),l("vxe-table-column",{attrs:{field:"address",title:"Address","show-overflow":""}})],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[0]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[1]))]),e._v("\n  ")]),l("p",{staticClass:"tip"},[e._v("使用 "),l("table-api-link",{attrs:{prop:"highlight-hover-row"}}),e._v(" 属性启用 hover 行高亮")],1),l("vxe-table",{attrs:{stripe:"","highlight-current-row":"","highlight-hover-row":"",data:e.tableData}},[l("vxe-table-column",{attrs:{type:"seq",width:"60"}}),l("vxe-table-column",{attrs:{field:"name",title:"Name"}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex"}}),l("vxe-table-column",{attrs:{field:"age",title:"Age"}}),l("vxe-table-column",{attrs:{field:"address",title:"Address","show-overflow":""}})],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[2]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[3]))]),e._v("\n  ")])],1)},n=[],o=(l("4160"),l("a630"),l("fb6a"),l("3ca3"),l("159b"),l("1487")),i=l.n(o),s={data:function(){return{tableData:[],demoCodes:['\n        <vxe-table\n          stripe\n          :data="tableData">\n          <vxe-table-column type="seq" width="60"></vxe-table-column>\n          <vxe-table-column field="name" title="Name"></vxe-table-column>\n          <vxe-table-column field="sex" title="Sex"></vxe-table-column>\n          <vxe-table-column field="age" title="Age"></vxe-table-column>\n          <vxe-table-column field="address" title="Address" show-overflow></vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: []\n            }\n          },\n          created () {\n            this.tableData = window.MOCK_DATA_LIST.slice(0, 6)\n          }\n        }\n        ",'\n        <vxe-table\n          stripe\n          highlight-current-row\n          highlight-hover-row\n          :data="tableData">\n          <vxe-table-column type="seq" width="60"></vxe-table-column>\n          <vxe-table-column field="name" title="Name"></vxe-table-column>\n          <vxe-table-column field="sex" title="Sex"></vxe-table-column>\n          <vxe-table-column field="age" title="Age"></vxe-table-column>\n          <vxe-table-column field="address" title="Address" show-overflow></vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: []\n            }\n          },\n          created () {\n            this.tableData = window.MOCK_DATA_LIST.slice(0, 6)\n          }\n        }\n        "]}},created:function(){this.tableData=window.MOCK_DATA_LIST.slice(0,6)},mounted:function(){Array.from(this.$el.querySelectorAll("pre code")).forEach((function(e){i.a.highlightBlock(e)}))}},r=s,d=l("2877"),c=Object(d["a"])(r,a,n,!1,null,null,null);t["default"]=c.exports},"6eff":function(e,t,l){"use strict";var a=l("e6ab"),n=l.n(a);n.a},"739d":function(e,t,l){"use strict";l.r(t);var a=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("div",[l("p",{staticClass:"tip"},[e._v(" 设置 "),l("table-column-api-link",{attrs:{prop:"type"}}),e._v("="),l("table-column-api-link",{attrs:{prop:"html"}}),e._v(" 显示为 HTML 标签，不支持和其他功能列共存"),l("br"),e._m(0)],1),l("vxe-table",{attrs:{border:"",data:e.tableData}},[l("vxe-table-column",{attrs:{type:"seq",width:"60"}}),l("vxe-table-column",{attrs:{field:"name",title:"Name",sortable:""}}),l("vxe-table-column",{attrs:{field:"describeHtml",title:"HTML 标签与筛选",type:"html",sortable:"",filters:[{label:"包含 aa",value:"aa"},{label:"包含 bb",value:"bb"}],"filter-method":e.filterDescribeMethod,"sort-method":e.sortDescribeMethod}}),l("vxe-table-column",{attrs:{field:"role",type:"html",title:"HTML 标签与格式化",formatter:e.formatRole}})],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[0]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[1]))]),e._v("\n  ")])],1)},n=[function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("span",{staticClass:"red"},[e._v("（动态渲染任意 HTML 是非常危险的，很容易导致 "),l("a",{staticClass:"link",attrs:{href:"https://zh.wikipedia.org/wiki/%E8%B7%A8%E7%B6%B2%E7%AB%99%E6%8C%87%E4%BB%A4%E7%A2%BC"}},[e._v("XSS")]),e._v(" 攻击，请确保内容是可信的）")])}],o=(l("4160"),l("a630"),l("c975"),l("d3b7"),l("25f0"),l("3ca3"),l("159b"),l("c695")),i=l.n(o),s=l("1487"),r=l.n(s),d={data:function(){return{tableData:[{name:"xx1",describe:"字母 aa -1",describeHtml:'<span style="color: red">字母 <span style="color: blue">aa</span> -1</span>',role:"oo1"},{name:"xx2",describe:"字母 bb -2",describeHtml:'<span style="color: blue">字母 <span style="color: green">bb</span> -2</span>',role:"oo2"},{name:"xx3",describe:"字母 cc -3",describeHtml:'<span style="color: green">字母 <span style="color: red">cc</span> -3</span>',role:"oo3"},{name:"xx4",describe:"字母 dd -4",describeHtml:'<span style="color: blue">字母 <span style="color: green">dd</span> -4</span>',role:"oo4"}],demoCodes:['\n        <vxe-table\n          border\n          :data="tableData">\n          <vxe-table-column type="seq" width="60"></vxe-table-column>\n          <vxe-table-column field="name" title="Name" sortable></vxe-table-column>\n          <vxe-table-column field="describeHtml" type="html" title="HTML 标签"></vxe-table-column>\n          <vxe-table-column\n            field="describeHtml"\n            title="HTML 标签与筛选"\n            type="html"\n            sortable\n            :filters="[{label:\'包含 aa\', value: \'aa\'}, {label:\'包含 bb\', value: \'bb\'}]"\n            :filter-method="filterDescribeMethod"\n            :sort-method="sortDescribeMethod"></vxe-table-column>\n          <vxe-table-column field="role" type="html" title="HTML 标签与格式化" :formatter="formatRole"></vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: [\n                { name: 'xx1', describe: '字母 aa -1', describeHtml: '<span style=\"color: red\">字母 <span style=\"color: blue\">aa</span> -1</span>', role: 'oo1' },\n                { name: 'xx2', describe: '字母 bb -2', describeHtml: '<span style=\"color: blue\">字母 <span style=\"color: green\">bb</span> -2</span>', role: 'oo2' },\n                { name: 'xx3', describe: '字母 cc -3', describeHtml: '<span style=\"color: green\">字母 <span style=\"color: red\">cc</span> -3</span>', role: 'oo3' },\n                { name: 'xx4', describe: '字母 dd -4', describeHtml: '<span style=\"color: blue\">字母 <span style=\"color: green\">dd</span> -4</span>', role: 'oo4' }\n              ]\n            }\n          },\n          methods: {\n            formatRole ({ cellValue }) {\n              return `<a href=\"https://github.com/xuliangzhan/vxe-table\" class=\"link\" target=\"_black\" style=\"color: orange\">链接 ${cellValue}</a>`\n            },\n            sortDescribeMethod (a, b) {\n              // 由于 HTML 是无法排序的，使用自定义排序\n              var v1 = a.describe\n              var v2 = b.describe\n              return v1 < v2 ? -1 : v1 > v2 ? 1 : 0\n            },\n            filterDescribeMethod ({ value, row, column }) {\n              return XEUtils.toString(row.html1).indexOf(value) > -1\n            }\n          }\n        }\n        "]}},mounted:function(){Array.from(this.$el.querySelectorAll("pre code")).forEach((function(e){r.a.highlightBlock(e)}))},methods:{formatRole:function(e){var t=e.cellValue;return'<a href="https://github.com/xuliangzhan/vxe-table" class="link" target="_black" style="color: orange">链接 '.concat(t,"</a>")},sortDescribeMethod:function(e,t){var l=e.describe,a=t.describe;return l<a?-1:l>a?1:0},filterDescribeMethod:function(e){var t=e.value,l=e.row;return i.a.toString(l.html1).indexOf(t)>-1}}},c=d,b=l("2877"),v=Object(b["a"])(c,a,n,!1,null,null,null);t["default"]=v.exports},"8b2b":function(e,t,l){"use strict";l.r(t);var a=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("div",[l("p",{staticClass:"tip"},[e._v("通过设置 "),l("table-api-link",{attrs:{prop:"loading"}}),e._v(" 属性可以使用自带的加载效果")],1),l("vxe-table",{attrs:{border:"","highlight-hover-row":"",height:"300",data:e.tableData}},[l("vxe-table-column",{attrs:{type:"seq",width:"60"}}),l("vxe-table-column",{attrs:{field:"name",title:"Name",sortable:""}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex"}}),l("vxe-table-column",{attrs:{field:"age",title:"Age"}}),l("vxe-table-column",{attrs:{field:"address",title:"Address","show-overflow":""}})],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[0]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[1]))]),e._v("\n  ")]),l("p",{staticClass:"tip"},[e._v("加载中")]),l("vxe-table",{attrs:{border:"","highlight-hover-row":"",height:"300",loading:e.loading,data:e.tableData}},[l("vxe-table-column",{attrs:{type:"seq",width:"60"}}),l("vxe-table-column",{attrs:{field:"name",title:"Name",sortable:""}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex"}}),l("vxe-table-column",{attrs:{field:"age",title:"Age"}}),l("vxe-table-column",{attrs:{field:"address",title:"Address","show-overflow":""}})],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[2]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[3]))]),e._v("\n  ")])],1)},n=[],o=(l("4160"),l("a630"),l("fb6a"),l("3ca3"),l("159b"),l("1487")),i=l.n(o),s={data:function(){return{tableData:[],demoCodes:['\n        <vxe-table\n          border\n          highlight-hover-row\n          height="300"\n          :data="tableData">\n          <vxe-table-column type="seq" width="60"></vxe-table-column>\n          <vxe-table-column field="name" title="Name" sortable></vxe-table-column>\n          <vxe-table-column field="sex" title="Sex"></vxe-table-column>\n          <vxe-table-column field="age" title="Age"></vxe-table-column>\n          <vxe-table-column field="address" title="Address" show-overflow></vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: []\n            }\n          },\n          created () {\n            setTimeout(() => {\n              this.tableData = window.MOCK_DATA_LIST.slice(0, 50)\n            }, 3000)\n          }\n        }\n        ",'\n        <vxe-table\n          border\n          highlight-hover-row\n          height="300"\n          :loading="loading"\n          :data="tableData">\n          <vxe-table-column type="seq" width="60"></vxe-table-column>\n          <vxe-table-column field="name" title="Name" sortable></vxe-table-column>\n          <vxe-table-column field="sex" title="Sex"></vxe-table-column>\n          <vxe-table-column field="age" title="Age"></vxe-table-column>\n          <vxe-table-column field="address" title="Address" show-overflow></vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: []\n            }\n          },\n          created () {\n            this.loading = true\n            setTimeout(() => {\n              this.tableData = window.MOCK_DATA_LIST.slice(0, 50)\n              this.loading = false\n            }, 3000)\n          }\n        }\n        "]}},created:function(){var e=this;this.loading=!0,setTimeout((function(){e.tableData=window.MOCK_DATA_LIST.slice(0,50),e.loading=!1}),3e3)},mounted:function(){Array.from(this.$el.querySelectorAll("pre code")).forEach((function(e){i.a.highlightBlock(e)}))}},r=s,d=l("2877"),c=Object(d["a"])(r,a,n,!1,null,null,null);t["default"]=c.exports},"8bd2":function(e,t,l){"use strict";l.r(t);var a=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("div",[l("p",{staticClass:"tip"},[e._v("隐藏头部，通过设置 "),l("table-column-api-link",{attrs:{prop:"show-header"}}),e._v(" 参数")],1),l("vxe-table",{attrs:{"show-header":!1,data:e.tableData}},[l("vxe-table-column",{attrs:{type:"seq",width:"60"}}),l("vxe-table-column",{attrs:{field:"name",title:"Name"}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex"}}),l("vxe-table-column",{attrs:{field:"age",title:"Age"}}),l("vxe-table-column",{attrs:{field:"address",title:"Address","show-overflow":""}})],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[0]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[1]))]),e._v("\n  ")]),l("p",{staticClass:"tip"},[e._v("当纵向或横向内容过多时，自动出现滚动条")]),l("vxe-table",{attrs:{height:"400","show-header":!1,data:e.tableData2}},[l("vxe-table-column",{attrs:{type:"seq",width:"60"}}),l("vxe-table-column",{attrs:{field:"name",title:"Name"}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex"}}),l("vxe-table-column",{attrs:{field:"age",title:"Age"}}),l("vxe-table-column",{attrs:{field:"address",title:"Address","show-overflow":""}})],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[2]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[3]))]),e._v("\n  ")])],1)},n=[],o=(l("4160"),l("a630"),l("fb6a"),l("3ca3"),l("159b"),l("1487")),i=l.n(o),s={data:function(){return{tableData:[],demoCodes:['\n        <vxe-table\n          :show-header="false"\n          :data="tableData">\n          <vxe-table-column type="seq" width="60"></vxe-table-column>\n          <vxe-table-column field="name" title="Name"></vxe-table-column>\n          <vxe-table-column field="sex" title="Sex"></vxe-table-column>\n          <vxe-table-column field="age" title="Age"></vxe-table-column>\n          <vxe-table-column field="address" title="Address" show-overflow></vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: []\n            }\n          },\n          created () {\n            this.tableData = window.MOCK_DATA_LIST.slice(0, 6)\n          }\n        }\n        ",'\n        <vxe-table\n          height="400"\n          :show-header="false"\n          :data="tableData2">\n          <vxe-table-column type="seq" width="60"></vxe-table-column>\n          <vxe-table-column field="name" title="Name"></vxe-table-column>\n          <vxe-table-column field="sex" title="Sex"></vxe-table-column>\n          <vxe-table-column field="age" title="Age"></vxe-table-column>\n          <vxe-table-column field="address" title="Address" show-overflow></vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData2: []\n            }\n          },\n          created () {\n            this.tableData2 = window.MOCK_DATA_LIST.slice(0, 50)\n          }\n        }\n        "]}},created:function(){this.tableData=window.MOCK_DATA_LIST.slice(0,6),this.tableData2=window.MOCK_DATA_LIST.slice(0,50)},mounted:function(){Array.from(this.$el.querySelectorAll("pre code")).forEach((function(e){i.a.highlightBlock(e)}))}},r=s,d=l("2877"),c=Object(d["a"])(r,a,n,!1,null,null,null);t["default"]=c.exports},"8c9e":function(e,t,l){"use strict";l.r(t);var a=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("div",[l("p",{staticClass:"tip"},[e._v("当一个表格高度需要自适应的时候可以设置为最大高度，通过设置 "),l("table-api-link",{attrs:{prop:"max-height"}}),e._v(" 参数")],1),l("vxe-table",{attrs:{border:"","highlight-hover-row":"","max-height":"200",data:e.tableData}},[l("vxe-table-column",{attrs:{type:"seq",width:"60"}}),l("vxe-table-column",{attrs:{field:"name",title:"Name",sortable:""}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex",align:"center"}}),l("vxe-table-column",{attrs:{field:"age",title:"Age"}}),l("vxe-table-column",{attrs:{field:"address",title:"Address","show-overflow":""}})],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[0]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[1]))]),e._v("\n  ")]),l("p",{staticClass:"tip"},[e._v("如果设置 "),l("table-api-link",{attrs:{prop:"max-height"}}),e._v("，当内容为达到最大高度时会自适应")],1),l("vxe-table",{attrs:{border:"","highlight-hover-row":"","max-height":"200",data:e.tableData2}},[l("vxe-table-column",{attrs:{type:"seq",width:"60"}}),l("vxe-table-column",{attrs:{field:"name",title:"Name",sortable:""}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex"}}),l("vxe-table-column",{attrs:{field:"age",title:"Age"}}),l("vxe-table-column",{attrs:{field:"address",title:"Address","show-overflow":""}})],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[2]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[3]))]),e._v("\n  ")]),l("p",{staticClass:"tip"},[e._v("也可以设置相对于父容器的百分比")]),l("div",{staticStyle:{height:"500px"}},[l("vxe-table",{attrs:{border:"","highlight-hover-row":"","max-height":"100%",data:e.tableData}},[l("vxe-table-column",{attrs:{type:"seq",width:"60"}}),l("vxe-table-column",{attrs:{field:"name",title:"Name",sortable:""}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex"}}),l("vxe-table-column",{attrs:{field:"age",title:"Age"}}),l("vxe-table-column",{attrs:{field:"address",title:"Address","show-overflow":""}})],1)],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[4]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[5]))]),e._v("\n  ")])],1)},n=[],o=(l("4160"),l("a630"),l("fb6a"),l("3ca3"),l("159b"),l("1487")),i=l.n(o),s={data:function(){return{tableData:[],tableData2:[],demoCodes:['\n        <vxe-table\n          border\n          highlight-hover-row\n          max-height="200"\n          :data="tableData">\n          <vxe-table-column type="seq" width="60"></vxe-table-column>\n          <vxe-table-column field="name" title="Name" sortable></vxe-table-column>\n          <vxe-table-column field="sex" title="Sex" align="center"></vxe-table-column>\n          <vxe-table-column field="age" title="Age"></vxe-table-column>\n          <vxe-table-column field="address" title="Address" show-overflow></vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: []\n            }\n          },\n          created () {\n            this.tableData = window.MOCK_DATA_LIST.slice(0, 50)\n          }\n        }\n        ",'\n        <vxe-table\n          border\n          highlight-hover-row\n          max-height="200"\n          :data="tableData2">\n          <vxe-table-column type="seq" width="60"></vxe-table-column>\n          <vxe-table-column field="name" title="Name" sortable></vxe-table-column>\n          <vxe-table-column field="sex" title="Sex"></vxe-table-column>\n          <vxe-table-column field="age" title="Age"></vxe-table-column>\n          <vxe-table-column field="address" title="Address" show-overflow></vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData2: []\n            }\n          },\n          created () {\n            this.tableData2 = window.MOCK_DATA_LIST.slice(0, 2)\n          }\n        }\n        ",'\n        <div style="height: 500px;">\n          <vxe-table\n            border\n            highlight-hover-row\n            max-height="100%"\n            :data="tableData">\n            <vxe-table-column type="seq" width="60"></vxe-table-column>\n            <vxe-table-column field="name" title="Name" sortable></vxe-table-column>\n            <vxe-table-column field="sex" title="Sex"></vxe-table-column>\n            <vxe-table-column field="age" title="Age"></vxe-table-column>\n            <vxe-table-column field="address" title="Address" show-overflow></vxe-table-column>\n          </vxe-table>\n        </div>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: []\n            }\n          },\n          created () {\n            this.tableData = window.MOCK_DATA_LIST.slice(0, 50)\n          }\n        }\n        "]}},created:function(){this.tableData=window.MOCK_DATA_LIST.slice(0,50),this.tableData2=window.MOCK_DATA_LIST.slice(0,2)},mounted:function(){Array.from(this.$el.querySelectorAll("pre code")).forEach((function(e){i.a.highlightBlock(e)}))}},r=s,d=l("2877"),c=Object(d["a"])(r,a,n,!1,null,null,null);t["default"]=c.exports},a5bb:function(e,t,l){"use strict";l.r(t);var a=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("div",[l("p",{staticClass:"tip"},[e._v(" 局部自定义 "),l("table-column-api-link",{attrs:{prop:"formatter"}}),e._v(" 格式化内容"),l("br"),l("span",{staticClass:"red"},[e._v("（注："),l("table-column-api-link",{attrs:{prop:"formatter"}}),e._v(" 只会在指定的 "),l("table-column-api-link",{attrs:{prop:"field"}}),e._v(" 值发生改变时触发格式化，如果想要多字段关联变化请使用"),l("router-link",{staticClass:"nav-link",attrs:{to:{name:"TableTemplate"}}},[e._v("自定义模板")]),e._v("）")],1)],1),l("vxe-table",{attrs:{border:"",data:e.tableData}},[l("vxe-table-column",{attrs:{type:"seq",width:"60"}}),l("vxe-table-column",{attrs:{field:"name",title:"Name",sortable:""}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex",formatter:e.formatterSex}}),l("vxe-table-column",{attrs:{field:"time",title:"Time",formatter:e.formatTime}}),l("vxe-table-column",{attrs:{field:"address",title:"Address","show-overflow":""}})],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[0]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[1]))]),e._v("\n  ")]),l("p",{staticClass:"tip"},[e._v(" 全局格式化内容，使用 "),l("router-link",{staticClass:"link",attrs:{to:{name:"FormatsAPI"}}},[e._v("formats")]),e._v(" 添加格式函数，单元格会在渲染的时候自动调用"),l("br"),l("span",{staticClass:"green"},[e._v("（用于实现业务中统一的格式化处理，这对于很多场景非常有用，减少很多不必要的重复代码）")])],1),l("vxe-table",{attrs:{border:"",data:e.tableData}},[l("vxe-table-column",{attrs:{type:"seq",width:"60"}}),l("vxe-table-column",{attrs:{field:"date",title:"转日期",width:"180",formatter:"formatDate"}}),l("vxe-table-column",{attrs:{field:"time",title:"转日期格式",width:"140",formatter:["formatDate","yyyy-MM-dd"]}}),l("vxe-table-column",{attrs:{field:"amount",title:"格式化金额",formatter:"formatAmount"}}),l("vxe-table-column",{attrs:{field:"bankCard",title:"银行卡",width:"180",formatter:"formatBankcard"}}),l("vxe-table-column",{attrs:{field:"num7",title:"数值"}}),l("vxe-table-column",{attrs:{field:"num7",title:"截取2位数",formatter:"formatCutNumber"}}),l("vxe-table-column",{attrs:{field:"num7",title:"四舍五入2位数",formatter:"formatFixedNumber"}}),l("vxe-table-column",{attrs:{field:"sex",title:"格式化性别",formatter:"formatSex"}})],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[2]))]),e._v("\n    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[3]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[4]))]),e._v("\n  ")])],1)},n=[],o=(l("7db0"),l("4160"),l("a630"),l("fb6a"),l("3ca3"),l("159b"),l("1487")),i=l.n(o),s=l("c695"),r=l.n(s),d={data:function(){return{tableData:[],sexList:[{label:"女",value:"0"},{label:"男",value:"1"}],demoCodes:['\n        <vxe-table\n          border\n          :data="tableData">\n          <vxe-table-column type="seq" width="60"></vxe-table-column>\n          <vxe-table-column field="name" title="Name" sortable></vxe-table-column>\n          <vxe-table-column field="sex" title="Sex" :formatter="formatterSex"></vxe-table-column>\n          <vxe-table-column field="time" title="Time" :formatter="formatTime"></vxe-table-column>\n          <vxe-table-column field="address" title="Address" show-overflow></vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: [],\n              sexList: [\n                {\n                  label: '女',\n                  value: '0'\n                },\n                {\n                  label: '男',\n                  value: '1'\n                }\n              ]\n            }\n          },\n          created () {\n            this.tableData = window.MOCK_DATA_LIST.slice(0, 6)\n          },\n          methods: {\n            formatterSex ({ cellValue }) {\n              let item = this.sexList.find(item => item.value === cellValue)\n              return item ? item.label : ''\n            },\n            formatTime ({ cellValue, row, column }) {\n              return XEUtils.toDateString(cellValue, 'yyyy-MM-dd HH:ss:mm')\n            }\n          }\n        }\n        ","\n        // 自定义全局的格式化处理函数\n        VXETable.formats.mixin({\n          // 格式化性别\n          formatSex (cellValue) {\n            return cellValue ? (cellValue === '1' ? '男' : '女') : ''\n          },\n          // 格式化下拉选项\n          formatSelect (cellValue, list) {\n            const item = list.find(item => item.value === cellValue)\n            return item ? item.label : ''\n          },\n          // 格式化日期，默认 yyyy-MM-dd HH:mm:ss\n          formatDate (cellValue, format) {\n            return XEUtils.toDateString(cellValue, format || 'yyyy-MM-dd HH:mm:ss')\n          },\n          // 格式金额，默认2位数\n          formatAmount (cellValue, digits) {\n            return XEUtils.commafy(cellValue, { digits: digits || 2 })\n          },\n          // 格式化银行卡，默认每4位隔开\n          formatBankcard (cellValue) {\n            return XEUtils.commafy(cellValue, { spaceNumber: 4, separator: ' ' })\n          },\n          // 四舍五入,默认两位数\n          formatFixedNumber (cellValue, digits) {\n            return XEUtils.toNumber(cellValue).toFixed(digits || 2)\n          },\n          // 截取小数,默认两位数\n          formatCutNumber (cellValue, digits) {\n            return XEUtils.toFixedString(cellValue, digits || 2)\n          }\n        })\n        ",'\n        <vxe-table\n          border\n          :data="tableData">\n          <vxe-table-column type="seq" width="60"></vxe-table-column>\n          <vxe-table-column field="date" title="转日期" width="180" formatter="formatDate"></vxe-table-column>\n          <vxe-table-column field="time" title="转日期格式" width="140" :formatter="[\'formatDate\', \'yyyy-MM-dd\']"></vxe-table-column>\n          <vxe-table-column field="amount" title="格式化金额" formatter="formatAmount"></vxe-table-column>\n          <vxe-table-column field="bankCard" title="银行卡" width="180" formatter="formatBankcard"></vxe-table-column>\n          <vxe-table-column field="num7" title="数值"></vxe-table-column>\n          <vxe-table-column field="num7" title="截取2位数" formatter="formatCutNumber"></vxe-table-column>\n          <vxe-table-column field="num7" title="四舍五入2位数" formatter="formatFixedNumber"></vxe-table-column>\n          <vxe-table-column field="sex" title="格式化性别" formatter="formatSex"></vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: []\n            }\n          },\n          created () {\n            this.tableData = window.MOCK_DATA_LIST.slice(0, 6)\n          }\n        }\n        "]}},created:function(){this.tableData=window.MOCK_DATA_LIST.slice(0,6)},mounted:function(){Array.from(this.$el.querySelectorAll("pre code")).forEach((function(e){i.a.highlightBlock(e)}))},methods:{formatterSex:function(e){var t=e.cellValue,l=this.sexList.find((function(e){return e.value===t}));return l?l.label:""},formatTime:function(e){var t=e.cellValue;return r.a.toDateString(t,"yyyy-MM-dd HH:ss:mm")}}},c=d,b=l("2877"),v=Object(b["a"])(c,a,n,!1,null,null,null);t["default"]=v.exports},ad46:function(e,t,l){"use strict";l.r(t);var a=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("div",[l("p",{staticClass:"tip"},[e._v("设置 "),l("table-column-api-link",{attrs:{prop:"type"}}),e._v("="),l("table-column-api-link",{attrs:{prop:"seq"}}),e._v(" 开启序号列")],1),l("vxe-table",{attrs:{border:"",height:"300",data:e.tableData}},[l("vxe-table-column",{attrs:{type:"seq",width:"60"}}),l("vxe-table-column",{attrs:{field:"name",title:"Name",sortable:""}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex"}}),l("vxe-table-column",{attrs:{field:"age",title:"Age"}}),l("vxe-table-column",{attrs:{field:"address",title:"Address","show-overflow":""}})],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[0]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[1]))]),e._v("\n  ")]),l("p",{staticClass:"tip"},[e._v("使用 "),l("table-api-link",{attrs:{prop:"seq-config"}}),e._v("={"),l("table-api-link",{attrs:{prop:"startIndex"}}),e._v("} 自定义起始序号")],1),l("vxe-table",{attrs:{border:"","highlight-hover-row":"",height:"300","seq-config":{startIndex:100},data:e.tableData}},[l("vxe-table-column",{attrs:{type:"seq",title:"序号",width:"60"}}),l("vxe-table-column",{attrs:{field:"name",title:"Name",sortable:""}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex"}}),l("vxe-table-column",{attrs:{field:"age",title:"Age"}}),l("vxe-table-column",{attrs:{field:"address",title:"Address","show-overflow":""}})],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[2]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[3]))]),e._v("\n  ")]),l("p",{staticClass:"tip"},[e._v("使用 "),l("table-api-link",{attrs:{prop:"seq-config"}}),e._v("={"),l("table-api-link",{attrs:{prop:"seqMethod"}}),e._v("} 自定义方法")],1),l("vxe-table",{attrs:{border:"","highlight-hover-row":"",height:"300","seq-config":{seqMethod:e.seqMethod},data:e.tableData}},[l("vxe-table-column",{attrs:{type:"seq",title:"序号",width:"60"}}),l("vxe-table-column",{attrs:{field:"name",title:"Name",sortable:""}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex"}}),l("vxe-table-column",{attrs:{field:"age",title:"Age"}}),l("vxe-table-column",{attrs:{field:"address",title:"Address","show-overflow":""}})],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[4]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[5]))]),e._v("\n  ")])],1)},n=[],o=(l("4160"),l("a630"),l("fb6a"),l("3ca3"),l("159b"),l("1487")),i=l.n(o),s={data:function(){return{tableData:[],demoCodes:['\n        <vxe-table\n          border\n          height="300"\n          :data="tableData">\n          <vxe-table-column type="seq" width="60"></vxe-table-column>\n          <vxe-table-column field="name" title="Name" sortable></vxe-table-column>\n          <vxe-table-column field="sex" title="Sex"></vxe-table-column>\n          <vxe-table-column field="age" title="Age"></vxe-table-column>\n          <vxe-table-column field="address" title="Address" show-overflow></vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: []\n            }\n          },\n          created () {\n            this.tableData = window.MOCK_DATA_LIST.slice(0, 50)\n          }\n        }\n        ",'\n        <vxe-table\n          border\n          highlight-hover-row\n          height="300"\n          :seq-config="{startIndex: 100}"\n          :data="tableData">\n          <vxe-table-column type="seq" title="序号" width="60"></vxe-table-column>\n          <vxe-table-column field="name" title="Name" sortable></vxe-table-column>\n          <vxe-table-column field="sex" title="Sex"></vxe-table-column>\n          <vxe-table-column field="age" title="Age"></vxe-table-column>\n          <vxe-table-column field="address" title="Address" show-overflow></vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: []\n            }\n          },\n          created () {\n            this.tableData = window.MOCK_DATA_LIST.slice(0, 50)\n          }\n        }\n        ",'\n        <vxe-table\n          border\n          highlight-hover-row\n          height="300"\n          :seq-config="{seqMethod: seqMethod}"\n          :data="tableData">\n          <vxe-table-column type="seq" title="序号" width="60"></vxe-table-column>\n          <vxe-table-column field="name" title="Name" sortable></vxe-table-column>\n          <vxe-table-column field="sex" title="Sex"></vxe-table-column>\n          <vxe-table-column field="age" title="Age"></vxe-table-column>\n          <vxe-table-column field="address" title="Address" show-overflow></vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: []\n            }\n          },\n          created () {\n            this.tableData = window.MOCK_DATA_LIST.slice(0, 50)\n          }\n        }\n        "]}},created:function(){this.tableData=window.MOCK_DATA_LIST.slice(0,50)},mounted:function(){Array.from(this.$el.querySelectorAll("pre code")).forEach((function(e){i.a.highlightBlock(e)}))},methods:{seqMethod:function(e){var t=e.rowIndex;return 2*t}}},r=s,d=l("2877"),c=Object(d["a"])(r,a,n,!1,null,null,null);t["default"]=c.exports},b369:function(e,t,l){"use strict";l.r(t);var a=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("div",[l("p",{staticClass:"tip"},[e._v("列选中高亮，通过设置 "),l("table-api-link",{attrs:{prop:"highlight-current-column"}}),e._v(" 参数")],1),l("vxe-table",{attrs:{border:"","highlight-hover-column":"","highlight-current-column":"",data:e.tableData}},[l("vxe-table-column",{attrs:{type:"seq",width:"60"}}),l("vxe-table-column",{attrs:{field:"name",title:"Name"}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex"}}),l("vxe-table-column",{attrs:{field:"age",title:"Age"}}),l("vxe-table-column",{attrs:{field:"address",title:"Address","show-overflow":""}})],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[0]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[1]))]),e._v("\n  ")]),l("p",{staticClass:"tip"},[e._v("列和行选中高亮，通过设置 "),l("table-api-link",{attrs:{prop:"highlight-hover-row"}}),e._v("、"),l("table-api-link",{attrs:{prop:"highlight-hover-column"}}),e._v(" 参数")],1),l("vxe-table",{attrs:{border:"","highlight-hover-row":"","highlight-current-row":"","highlight-hover-column":"","highlight-current-column":"",data:e.tableData}},[l("vxe-table-column",{attrs:{type:"seq",width:"60"}}),l("vxe-table-column",{attrs:{field:"name",title:"Name"}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex"}}),l("vxe-table-column",{attrs:{field:"age",title:"Age"}}),l("vxe-table-column",{attrs:{field:"address",title:"Address","show-overflow":""}})],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[2]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[3]))]),e._v("\n  ")])],1)},n=[],o=(l("4160"),l("a630"),l("fb6a"),l("3ca3"),l("159b"),l("1487")),i=l.n(o),s={data:function(){return{tableData:[],demoCodes:['\n        <vxe-table\n          border\n          highlight-hover-column\n          highlight-current-column\n          :data="tableData">\n          <vxe-table-column type="seq" width="60"></vxe-table-column>\n          <vxe-table-column field="name" title="Name"></vxe-table-column>\n          <vxe-table-column field="sex" title="Sex"></vxe-table-column>\n          <vxe-table-column field="age" title="Age"></vxe-table-column>\n          <vxe-table-column field="address" title="Address" show-overflow></vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: []\n            }\n          },\n          created () {\n            this.tableData = window.MOCK_DATA_LIST.slice(0, 5)\n          }\n        }\n        ",'\n        <vxe-table\n          border\n          highlight-hover-row\n          highlight-current-row\n          highlight-hover-column\n          highlight-current-column\n          :data="tableData">\n          <vxe-table-column type="seq" width="60"></vxe-table-column>\n          <vxe-table-column field="name" title="Name"></vxe-table-column>\n          <vxe-table-column field="sex" title="Sex"></vxe-table-column>\n          <vxe-table-column field="age" title="Age"></vxe-table-column>\n          <vxe-table-column field="address" title="Address" show-overflow></vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: []\n            }\n          },\n          created () {\n            this.tableData = window.MOCK_DATA_LIST.slice(0, 5)\n          }\n        }\n        "]}},created:function(){this.tableData=window.MOCK_DATA_LIST.slice(0,5)},mounted:function(){Array.from(this.$el.querySelectorAll("pre code")).forEach((function(e){i.a.highlightBlock(e)}))}},r=s,d=l("2877"),c=Object(d["a"])(r,a,n,!1,null,null,null);t["default"]=c.exports},b683:function(e,t,l){"use strict";l.r(t);var a=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("div",[l("p",{staticClass:"tip"},[e._v(" 列宽，通过设置 "),l("table-column-api-link",{attrs:{prop:"width"}}),e._v(" 参数，支持固定像素、百分比、自适应等，如果不设置则全部均匀分配"),l("br"),l("span",{staticClass:"red"},[e._v('(注：不应该全部都使用固定像素，应该当所有列加起来的宽度小于表格宽度时，就会出现空白区，可以配合 "%" 或 "'),l("table-column-api-link",{attrs:{prop:"min-width"}}),e._v('" 实现等比例缩放)')],1)],1),l("vxe-table",{attrs:{border:"",data:e.tableData}},[l("vxe-table-column",{attrs:{type:"seq"}}),l("vxe-table-column",{attrs:{field:"name",title:"Name"}}),l("vxe-table-column",{attrs:{field:"role",title:"Role"}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex"}}),l("vxe-table-column",{attrs:{field:"date",title:"Date"}})],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[0]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[1]))]),e._v("\n  ")]),l("p",{staticClass:"tip"},[e._v("部分固定列宽，其余自适应")]),l("vxe-table",{attrs:{border:"",data:e.tableData}},[l("vxe-table-column",{attrs:{type:"seq",width:"80"}}),l("vxe-table-column",{attrs:{field:"name",title:"Name",width:"200"}}),l("vxe-table-column",{attrs:{field:"role",title:"Role"}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex",width:"140"}}),l("vxe-table-column",{attrs:{field:"age",title:"Age"}})],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[2]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[3]))]),e._v("\n  ")]),l("p",{staticClass:"tip"},[e._v("设置固定和最小宽，实现等比例放大")]),l("vxe-table",{attrs:{border:"",data:e.tableData}},[l("vxe-table-column",{attrs:{type:"seq",width:"80"}}),l("vxe-table-column",{attrs:{field:"name",title:"Name","min-width":"200"}}),l("vxe-table-column",{attrs:{field:"role",title:"Role","min-width":"140"}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex","min-width":"120"}}),l("vxe-table-column",{attrs:{field:"age",title:"Age","min-width":"120"}})],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[4]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[5]))]),e._v("\n  ")]),l("p",{staticClass:"tip"},[e._v("设置百分比")]),l("vxe-table",{attrs:{border:"",data:e.tableData}},[l("vxe-table-column",{attrs:{type:"seq",width:"10%"}}),l("vxe-table-column",{attrs:{field:"name",title:"Name",width:"30%"}}),l("vxe-table-column",{attrs:{field:"role",title:"Role",width:"20%"}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex",width:"20%"}}),l("vxe-table-column",{attrs:{field:"age",title:"Age",width:"20%"}})],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[6]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[7]))]),e._v("\n  ")])],1)},n=[],o=(l("4160"),l("a630"),l("fb6a"),l("3ca3"),l("159b"),l("1487")),i=l.n(o),s={data:function(){return{tableData:[],demoCodes:['\n        <vxe-table\n          border\n          :data="tableData">\n          <vxe-table-column type="seq"></vxe-table-column>\n          <vxe-table-column field="name" title="Name"></vxe-table-column>\n          <vxe-table-column field="role" title="Role"></vxe-table-column>\n          <vxe-table-column field="sex" title="Sex"></vxe-table-column>\n          <vxe-table-column field="date" title="Date"></vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: []\n            }\n          },\n          created () {\n            this.tableData = window.MOCK_DATA_LIST.slice(0, 4)\n          }\n        }\n        ",'\n        <vxe-table\n          border\n          :data="tableData">\n          <vxe-table-column type="seq" width="80"></vxe-table-column>\n          <vxe-table-column field="name" title="Name" width="200"></vxe-table-column>\n          <vxe-table-column field="role" title="Role"></vxe-table-column>\n          <vxe-table-column field="sex" title="Sex" width="140"></vxe-table-column>\n          <vxe-table-column field="age" title="Age"></vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: []\n            }\n          },\n          created () {\n            this.tableData = window.MOCK_DATA_LIST.slice(0, 4)\n          }\n        }\n        ",'\n        <vxe-table\n          border\n          :data="tableData">\n          <vxe-table-column type="seq" width="80"></vxe-table-column>\n          <vxe-table-column field="name" title="Name" min-width="200"></vxe-table-column>\n          <vxe-table-column field="role" title="Role" min-width="140"></vxe-table-column>\n          <vxe-table-column field="sex" title="Sex" min-width="120"></vxe-table-column>\n          <vxe-table-column field="age" title="Age" min-width="120"></vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: []\n            }\n          },\n          created () {\n            this.tableData = window.MOCK_DATA_LIST.slice(0, 4)\n          }\n        }\n        ",'\n        <vxe-table\n          border\n          :data="tableData">\n          <vxe-table-column type="seq" width="10%"></vxe-table-column>\n          <vxe-table-column field="name" title="Name" width="30%"></vxe-table-column>\n          <vxe-table-column field="role" title="Role" width="20%"></vxe-table-column>\n          <vxe-table-column field="sex" title="Sex" width="20%"></vxe-table-column>\n          <vxe-table-column field="age" title="Age" width="20%"></vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: []\n            }\n          },\n          created () {\n            this.tableData = window.MOCK_DATA_LIST.slice(0, 4)\n          }\n        }\n        "]}},created:function(){this.tableData=window.MOCK_DATA_LIST.slice(0,4)},mounted:function(){Array.from(this.$el.querySelectorAll("pre code")).forEach((function(e){i.a.highlightBlock(e)}))}},r=s,d=l("2877"),c=Object(d["a"])(r,a,n,!1,null,null,null);t["default"]=c.exports},b811:function(e,t,l){"use strict";l.r(t);var a=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("div",[l("p",{staticClass:"tip"},[e._v("当数据结构比较复杂的时候，可以使用多级表头显示更加直观")]),l("vxe-table",{attrs:{border:"",height:"400",data:e.tableData}},[l("vxe-table-column",{attrs:{title:"基本信息"}},[l("vxe-table-column",{attrs:{type:"seq",width:"60"}}),l("vxe-table-column",{attrs:{field:"name",title:"Name"}})],1),l("vxe-table-column",{attrs:{title:"更多信息"}},[l("vxe-table-column",{attrs:{field:"role",title:"Role"}}),l("vxe-table-column",{attrs:{title:"详细信息"}},[l("vxe-table-column",{attrs:{field:"sex",title:"Sex"}}),l("vxe-table-column",{attrs:{field:"age",title:"Age"}})],1)],1),l("vxe-table-column",{attrs:{field:"address",title:"Address","show-overflow":""}})],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[0]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[1]))]),e._v("\n  ")]),e._m(0),l("vxe-table",{attrs:{border:"",height:"400",data:e.tableData}},[l("vxe-table-column",{attrs:{title:"基本信息"}},[l("vxe-table-column",{attrs:{type:"seq",width:"60",fixed:"left"}}),l("vxe-table-column",{attrs:{field:"name",title:"Name",fixed:"left",width:"180"}})],1),l("vxe-table-column",{attrs:{title:"更多信息"}},[l("vxe-table-column",{attrs:{field:"role",title:"Role",width:"300"}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex",width:"200"}}),l("vxe-table-column",{attrs:{title:"详细信息"}},[l("vxe-table-column",{attrs:{field:"sex",title:"Sex",width:"200"}}),l("vxe-table-column",{attrs:{field:"num",title:"Num",width:"200"}})],1)],1),l("vxe-table-column",{attrs:{title:"额外信息"}},[l("vxe-table-column",{attrs:{field:"date3",title:"Date",fixed:"right",width:"140"}}),l("vxe-table-column",{attrs:{field:"address",title:"Address",fixed:"right",width:"200","show-overflow":""}})],1)],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[2]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[3]))]),e._v("\n  ")])],1)},n=[function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("p",{staticClass:"tip"},[l("span",{staticClass:"red"},[e._v("注：如果使用了分组表头，则需要按组来设置固定列，且固定列必须是在左右两侧位置，不允许跨列")])])}],o=(l("4160"),l("a630"),l("fb6a"),l("3ca3"),l("159b"),l("1487")),i=l.n(o),s={data:function(){return{tableData:[],demoCodes:['\n        <vxe-table\n          border\n          height="400"\n          :data="tableData">\n          <vxe-table-column title="基本信息">\n            <vxe-table-column type="seq" width="60"></vxe-table-column>\n            <vxe-table-column field="name" title="Name"></vxe-table-column>\n          </vxe-table-column>\n          <vxe-table-column title="更多信息">\n            <vxe-table-column field="role" title="Role"></vxe-table-column>\n            <vxe-table-column title="详细信息">\n              <vxe-table-column field="sex" title="Sex"></vxe-table-column>\n              <vxe-table-column field="age" title="Age"></vxe-table-column>\n            </vxe-table-column>\n          </vxe-table-column>\n          <vxe-table-column field="address" title="Address" show-overflow></vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: []\n            }\n          },\n          created () {\n            this.tableData = window.MOCK_DATA_LIST.slice(0, 20)\n          }\n        }\n        ",'\n        <vxe-table\n          border\n          height="400"\n          :data="tableData">\n          <vxe-table-column title="基本信息">\n            <vxe-table-column type="seq" width="60" fixed="left"></vxe-table-column>\n            <vxe-table-column field="name" title="Name" fixed="left" width="180"></vxe-table-column>\n          </vxe-table-column>\n          <vxe-table-column title="更多信息">\n            <vxe-table-column field="role" title="Role" width="300"></vxe-table-column>\n            <vxe-table-column field="sex" title="Sex" width="200"></vxe-table-column>\n            <vxe-table-column title="详细信息">\n              <vxe-table-column field="sex" title="Sex" width="200"></vxe-table-column>\n              <vxe-table-column field="num" title="Num" width="200"></vxe-table-column>\n            </vxe-table-column>\n          </vxe-table-column>\n          <vxe-table-column title="额外信息">\n            <vxe-table-column field="date3" title="Date" fixed="right" width="140"></vxe-table-column>\n            <vxe-table-column field="address" title="Address" fixed="right" width="200" show-overflow></vxe-table-column>\n          </vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: []\n            }\n          },\n          created () {\n            this.tableData = window.MOCK_DATA_LIST.slice(0, 20)\n          }\n        }\n        "]}},created:function(){this.tableData=window.MOCK_DATA_LIST.slice(0,20)},mounted:function(){Array.from(this.$el.querySelectorAll("pre code")).forEach((function(e){i.a.highlightBlock(e)}))}},r=s,d=l("2877"),c=Object(d["a"])(r,a,n,!1,null,null,null);t["default"]=c.exports},c7b5:function(e,t,l){"use strict";l.r(t);var a=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("div",[l("p",{staticClass:"tip"},[e._v("通过设置 "),l("table-api-link",{attrs:{prop:"border"}}),e._v("=false|default 默认显示边框")],1),l("vxe-table",{attrs:{data:e.tableData}},[l("vxe-table-column",{attrs:{type:"seq",width:"60"}}),l("vxe-table-column",{attrs:{field:"name",title:"Name"}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex"}}),l("vxe-table-column",{attrs:{field:"age",title:"Age"}}),l("vxe-table-column",{attrs:{field:"address",title:"Address","show-overflow":""}})],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[0]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[1]))]),e._v("\n  ")]),l("p",{staticClass:"tip"},[e._v("通过设置 "),l("table-api-link",{attrs:{prop:"border"}}),e._v("=true|full 显示完整边框")],1),l("vxe-table",{attrs:{border:"",data:e.tableData}},[l("vxe-table-column",{attrs:{type:"seq",width:"60"}}),l("vxe-table-column",{attrs:{field:"name",title:"Name"}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex"}}),l("vxe-table-column",{attrs:{field:"age",title:"Age"}}),l("vxe-table-column",{attrs:{field:"address",title:"Address","show-overflow":""}})],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[2]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[3]))]),e._v("\n  ")]),l("p",{staticClass:"tip"},[e._v("通过设置 "),l("table-api-link",{attrs:{prop:"border"}}),e._v("=outer 显示外边框")],1),l("vxe-table",{attrs:{border:"outer",data:e.tableData}},[l("vxe-table-column",{attrs:{type:"seq",width:"60"}}),l("vxe-table-column",{attrs:{field:"name",title:"Name"}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex"}}),l("vxe-table-column",{attrs:{field:"age",title:"Age"}}),l("vxe-table-column",{attrs:{field:"address",title:"Address","show-overflow":""}})],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[4]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[5]))]),e._v("\n  ")]),l("p",{staticClass:"tip"},[e._v("通过设置 "),l("table-api-link",{attrs:{prop:"border"}}),e._v("=inner 显示内边框")],1),l("vxe-table",{attrs:{border:"inner",data:e.tableData}},[l("vxe-table-column",{attrs:{type:"seq",width:"60"}}),l("vxe-table-column",{attrs:{field:"name",title:"Name"}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex"}}),l("vxe-table-column",{attrs:{field:"age",title:"Age"}}),l("vxe-table-column",{attrs:{field:"address",title:"Address","show-overflow":""}})],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[6]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[7]))]),e._v("\n  ")]),l("p",{staticClass:"tip"},[e._v("通过设置 "),l("table-api-link",{attrs:{prop:"border"}}),e._v("=none 去掉所有边框")],1),l("vxe-table",{attrs:{border:"none",data:e.tableData}},[l("vxe-table-column",{attrs:{type:"seq",width:"60"}}),l("vxe-table-column",{attrs:{field:"name",title:"Name"}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex"}}),l("vxe-table-column",{attrs:{field:"age",title:"Age"}}),l("vxe-table-column",{attrs:{field:"address",title:"Address","show-overflow":""}})],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[8]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[9]))]),e._v("\n  ")])],1)},n=[],o=(l("4160"),l("a630"),l("fb6a"),l("3ca3"),l("159b"),l("1487")),i=l.n(o),s={data:function(){return{tableData:[],demoCodes:['\n        <vxe-table\n          :data="tableData">\n          <vxe-table-column type="seq" width="60"></vxe-table-column>\n          <vxe-table-column field="name" title="Name"></vxe-table-column>\n          <vxe-table-column field="sex" title="Sex"></vxe-table-column>\n          <vxe-table-column field="age" title="Age"></vxe-table-column>\n          <vxe-table-column field="address" title="Address" show-overflow></vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: []\n            }\n          },\n          created () {\n            this.tableData = window.MOCK_DATA_LIST.slice(0, 3)\n          }\n        }\n        ",'\n        <vxe-table\n          border\n          :data="tableData">\n          <vxe-table-column type="seq" width="60"></vxe-table-column>\n          <vxe-table-column field="name" title="Name"></vxe-table-column>\n          <vxe-table-column field="sex" title="Sex"></vxe-table-column>\n          <vxe-table-column field="age" title="Age"></vxe-table-column>\n          <vxe-table-column field="address" title="Address" show-overflow></vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: []\n            }\n          },\n          created () {\n            this.tableData = window.MOCK_DATA_LIST.slice(0, 3)\n          }\n        }\n        ",'\n        <vxe-table\n          border="outer"\n          :data="tableData">\n          <vxe-table-column type="seq" width="60"></vxe-table-column>\n          <vxe-table-column field="name" title="Name"></vxe-table-column>\n          <vxe-table-column field="sex" title="Sex"></vxe-table-column>\n          <vxe-table-column field="age" title="Age"></vxe-table-column>\n          <vxe-table-column field="address" title="Address" show-overflow></vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: []\n            }\n          },\n          created () {\n            this.tableData = window.MOCK_DATA_LIST.slice(0, 3)\n          }\n        }\n        ",'\n        <vxe-table\n          border="inner"\n          :data="tableData">\n          <vxe-table-column type="seq" width="60"></vxe-table-column>\n          <vxe-table-column field="name" title="Name"></vxe-table-column>\n          <vxe-table-column field="sex" title="Sex"></vxe-table-column>\n          <vxe-table-column field="age" title="Age"></vxe-table-column>\n          <vxe-table-column field="address" title="Address" show-overflow></vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: []\n            }\n          },\n          created () {\n            this.tableData = window.MOCK_DATA_LIST.slice(0, 3)\n          }\n        }\n        ",'\n        <vxe-table\n          border="none"\n          :data="tableData">\n          <vxe-table-column type="seq" width="60"></vxe-table-column>\n          <vxe-table-column field="name" title="Name"></vxe-table-column>\n          <vxe-table-column field="sex" title="Sex"></vxe-table-column>\n          <vxe-table-column field="age" title="Age"></vxe-table-column>\n          <vxe-table-column field="address" title="Address" show-overflow></vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: []\n            }\n          },\n          created () {\n            this.tableData = window.MOCK_DATA_LIST.slice(0, 3)\n          }\n        }\n        "]}},created:function(){this.tableData=window.MOCK_DATA_LIST.slice(0,3)},mounted:function(){Array.from(this.$el.querySelectorAll("pre code")).forEach((function(e){i.a.highlightBlock(e)}))}},r=s,d=l("2877"),c=Object(d["a"])(r,a,n,!1,null,null,null);t["default"]=c.exports},db47:function(e,t,l){"use strict";l.r(t);var a=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("div",[l("p",{staticClass:"tip"},[e._v("当纵向内容过多时，固定表头就非常有用了，通过设置 "),l("table-api-link",{attrs:{prop:"height"}}),e._v(" 参数")],1),l("vxe-table",{attrs:{border:"",height:"400",data:e.tableData}},[l("vxe-table-column",{attrs:{type:"seq",width:"60"}}),l("vxe-table-column",{attrs:{field:"name",title:"Name"}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex"}}),l("vxe-table-column",{attrs:{field:"age",title:"Age"}}),l("vxe-table-column",{attrs:{field:"address",title:"Address","show-overflow":""}})],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[0]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[1]))]),e._v("\n  ")])],1)},n=[],o=(l("4160"),l("a630"),l("fb6a"),l("3ca3"),l("159b"),l("1487")),i=l.n(o),s={data:function(){return{tableData:[],demoCodes:['\n        <vxe-table\n          border\n          height="400"\n          :data="tableData">\n          <vxe-table-column type="seq" width="60"></vxe-table-column>\n          <vxe-table-column field="name" title="Name"></vxe-table-column>\n          <vxe-table-column field="sex" title="Sex"></vxe-table-column>\n          <vxe-table-column field="age" title="Age"></vxe-table-column>\n          <vxe-table-column field="address" title="Address" show-overflow></vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: []\n            }\n          },\n          created () {\n            this.tableData = window.MOCK_DATA_LIST.slice(0, 50)\n          }\n        }\n        "]}},created:function(){this.tableData=window.MOCK_DATA_LIST.slice(0,50)},mounted:function(){Array.from(this.$el.querySelectorAll("pre code")).forEach((function(e){i.a.highlightBlock(e)}))}},r=s,d=l("2877"),c=Object(d["a"])(r,a,n,!1,null,null,null);t["default"]=c.exports},df8c:function(e,t,l){"use strict";l.r(t);var a=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("div",[l("p",{staticClass:"tip"},[e._v("完整示例")]),l("vxe-table",{attrs:{border:"",stripe:"",resizable:"","highlight-hover-row":"",height:"500",loading:e.loading,"checkbox-config":{labelField:"id",highlight:!0,range:!0},data:e.tableData}},[l("vxe-table-column",{attrs:{type:"seq",width:"60"}}),l("vxe-table-column",{attrs:{type:"checkbox",title:"ID",width:"140"}}),l("vxe-table-column",{attrs:{field:"name",title:"Name",sortable:""}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex",filters:e.sexList,"filter-multiple":!1,formatter:e.formatterSex}}),l("vxe-table-column",{attrs:{field:"age",title:"Age",sortable:"",filters:[{label:"大于16岁",value:16},{label:"大于26岁",value:26},{label:"大于30岁",value:30}],"filter-method":e.filterAgeMethod}}),l("vxe-table-column",{attrs:{field:"address",title:"Address","show-overflow":""}})],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[0]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[1]))]),e._v("\n  ")])],1)},n=[],o=(l("7db0"),l("4160"),l("a630"),l("fb6a"),l("3ca3"),l("159b"),l("1487")),i=l.n(o),s={data:function(){return{loading:!1,tableData:[],sexList:[{label:"女",value:"0"},{label:"男",value:"1"}],demoCodes:['\n        <vxe-table\n          border\n          stripe\n          resizable\n          highlight-hover-row\n          height="500"\n          :loading="loading"\n          :checkbox-config="{labelField: \'id\', highlight: true, range: true}"\n          :data="tableData">\n          <vxe-table-column type="seq" width="60"></vxe-table-column>\n          <vxe-table-column type="checkbox" title="ID" width="140"></vxe-table-column>\n          <vxe-table-column field="name" title="Name" sortable></vxe-table-column>\n          <vxe-table-column field="sex" title="Sex" :filters="sexList" :filter-multiple="false" :formatter="formatterSex"></vxe-table-column>\n          <vxe-table-column\n            field="age"\n            title="Age"\n            sortable\n            :filters="[{label: \'大于16岁\', value: 16}, {label: \'大于26岁\', value: 26}, {label: \'大于30岁\', value: 30}]"\n            :filter-method="filterAgeMethod"></vxe-table-column>\n          <vxe-table-column field="address" title="Address" show-overflow></vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              loading: false,\n              tableData: [],\n              sexList: [\n                {\n                  label: '女',\n                  value: '0'\n                },\n                {\n                  label: '男',\n                  value: '1'\n                }\n              ]\n            }\n          },\n          created () {\n            this.loading = true\n            setTimeout(() => {\n              this.tableData = window.MOCK_DATA_LIST.slice(0, 15)\n              this.loading = false\n            }, 500)\n          },\n          methods: {\n            formatterSex ({ cellValue }) {\n              let item = this.sexList.find(item => item.value === cellValue)\n              return item ? item.label : ''\n            },\n            filterAgeMethod ({ value, row, column }) {\n              return row.age >= value\n            }\n          }\n        }\n        "]}},created:function(){var e=this;this.loading=!0,setTimeout((function(){e.tableData=window.MOCK_DATA_LIST.slice(0,15),e.loading=!1}),500)},mounted:function(){Array.from(this.$el.querySelectorAll("pre code")).forEach((function(e){i.a.highlightBlock(e)}))},methods:{formatterSex:function(e){var t=e.cellValue,l=this.sexList.find((function(e){return e.value===t}));return l?l.label:""},filterAgeMethod:function(e){var t=e.value,l=e.row;return l.age>=t}}},r=s,d=l("2877"),c=Object(d["a"])(r,a,n,!1,null,null,null);t["default"]=c.exports},e6ab:function(e,t,l){},e7ab:function(e,t,l){"use strict";l.r(t);var a=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("div",[l("p",{staticClass:"tip"},[e._v("横纵内容过多时，同时固定列和表头")]),l("vxe-table",{attrs:{border:"",resizable:"",height:"300","highlight-hover-row":"",data:e.tableData}},[l("vxe-table-column",{attrs:{type:"seq",width:"60",fixed:"left"}}),l("vxe-table-column",{attrs:{field:"name",title:"Name",width:"300"}}),l("vxe-table-column",{attrs:{field:"role",title:"Role",width:"300"}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex",width:"300"}}),l("vxe-table-column",{attrs:{field:"date",title:"Date",width:"300"}}),l("vxe-table-column",{attrs:{title:"操作",fixed:"right",width:"200"}},[[l("vxe-button",{attrs:{type:"text"}},[e._v("按钮1")]),l("vxe-button",{attrs:{type:"text"}},[e._v("按钮2")])]],2)],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[0]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[1]))]),e._v("\n  ")]),l("p",{staticClass:"tip"},[e._v("固定列建议设置 "),l("table-api-link",{attrs:{prop:"show-overflow"}}),e._v(" 该值，禁用自动换行，大幅提升渲染速度")],1),l("vxe-table",{attrs:{border:"",height:"300","highlight-hover-row":"","show-overflow":"",data:e.tableData}},[l("vxe-table-column",{attrs:{type:"seq",width:"60",fixed:"left"}}),l("vxe-table-column",{attrs:{field:"name",title:"Name",width:"300"}}),l("vxe-table-column",{attrs:{field:"role",title:"Role",width:"300"}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex",width:"300"}}),l("vxe-table-column",{attrs:{field:"date",title:"Date",width:"300"}}),l("vxe-table-column",{attrs:{title:"操作",fixed:"right",width:"200"}},[[l("vxe-button",{attrs:{status:"primary"}},[e._v("按钮1")]),l("vxe-button",[e._v("按钮2")])]],2)],1),e._m(0),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[2]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[3]))]),e._v("\n  ")]),e._m(1),l("vxe-table",{attrs:{border:"",height:"400",data:e.tableData}},[l("vxe-table-column",{attrs:{title:"基本信息"}},[l("vxe-table-column",{attrs:{type:"seq",width:"60",fixed:"left"}}),l("vxe-table-column",{attrs:{field:"name",title:"Name",fixed:"left",width:"180"}})],1),l("vxe-table-column",{attrs:{title:"更多信息"}},[l("vxe-table-column",{attrs:{field:"role",title:"Role",width:"300"}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex",width:"200"}}),l("vxe-table-column",{attrs:{title:"详细信息"}},[l("vxe-table-column",{attrs:{field:"sex",title:"Sex",width:"200"}}),l("vxe-table-column",{attrs:{field:"num",title:"Num",width:"200"}})],1)],1),l("vxe-table-column",{attrs:{title:"额外信息"}},[l("vxe-table-column",{attrs:{field:"date3",title:"Date",fixed:"right",width:"140"}}),l("vxe-table-column",{attrs:{field:"address",title:"Address",fixed:"right",width:"200","show-overflow":""}})],1)],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[4]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[5]))]),e._v("\n  ")])],1)},n=[function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("pre",[e._v("    "),l("code",[e._v("\n      | Arrow Up ↑ | 匀速向上滚动数据 |\n      | Arrow Down ↓ | 匀速向下滚动数据 |\n      | Arrow Left ← | 匀速向左滚动数据 |\n      | Arrow Right → | 匀速向右滚动数据 |\n      | Page Up | 向上翻页滚动 |\n      | Page Down | 向下翻页滚动 |\n      | Spacebar | 翻页滚动 |\n      | Home | 滚动到顶部 |\n      | End | 滚动到底部 |\n    ")]),e._v("\n  ")])},function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("p",{staticClass:"tip"},[l("span",{staticClass:"red"},[e._v("注：如果使用了分组表头，则需要按组来设置固定列，且固定列必须是在左右两侧位置，不允许跨列")])])}],o=(l("4160"),l("a630"),l("fb6a"),l("3ca3"),l("159b"),l("1487")),i=l.n(o),s={data:function(){return{tableData:[],demoCodes:['\n        <vxe-table\n          border\n          resizable\n          height="300"\n          highlight-hover-row\n          :data="tableData">\n          <vxe-table-column type="seq" width="60" fixed="left"></vxe-table-column>\n          <vxe-table-column field="name" title="Name" width="300"></vxe-table-column>\n          <vxe-table-column field="role" title="Role" width="300"></vxe-table-column>\n          <vxe-table-column field="sex" title="Sex" width="300"></vxe-table-column>\n          <vxe-table-column field="date" title="Date" width="300"></vxe-table-column>\n          <vxe-table-column title="操作" fixed="right" width="200">\n            <template>\n              <vxe-button type="text">按钮1</vxe-button>\n              <vxe-button type="text">按钮2</vxe-button>\n            </template>\n          </vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: []\n            }\n          },\n          created () {\n            this.tableData = window.MOCK_DATA_LIST.slice(0, 20)\n          }\n        }\n        ",'\n        <vxe-table\n          border\n          height="300"\n          highlight-hover-row\n          show-overflow\n          :data="tableData">\n          <vxe-table-column type="seq" width="60" fixed="left"></vxe-table-column>\n          <vxe-table-column field="name" title="Name" width="300"></vxe-table-column>\n          <vxe-table-column field="role" title="Role" width="300"></vxe-table-column>\n          <vxe-table-column field="sex" title="Sex" width="300"></vxe-table-column>\n          <vxe-table-column field="date" title="Date" width="300"></vxe-table-column>\n          <vxe-table-column title="操作" fixed="right" width="200">\n            <template>\n              <vxe-button status="primary">按钮1</vxe-button>\n              <vxe-button>按钮2</vxe-button>\n            </template>\n          </vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: []\n            }\n          },\n          created () {\n            this.tableData = window.MOCK_DATA_LIST.slice(0, 20)\n          }\n        }\n        ",'\n        <vxe-table\n          border\n          height="400"\n          :data="tableData">\n          <vxe-table-column title="基本信息">\n            <vxe-table-column type="seq" width="60" fixed="left"></vxe-table-column>\n            <vxe-table-column field="name" title="Name" fixed="left" width="180"></vxe-table-column>\n          </vxe-table-column>\n          <vxe-table-column title="更多信息">\n            <vxe-table-column field="role" title="Role" width="300"></vxe-table-column>\n            <vxe-table-column field="sex" title="Sex" width="200"></vxe-table-column>\n            <vxe-table-column title="详细信息">\n              <vxe-table-column field="sex" title="Sex" width="200"></vxe-table-column>\n              <vxe-table-column field="num" title="Num" width="200"></vxe-table-column>\n            </vxe-table-column>\n          </vxe-table-column>\n          <vxe-table-column title="额外信息">\n            <vxe-table-column field="date3" title="Date" fixed="right" width="140"></vxe-table-column>\n            <vxe-table-column field="address" title="Address" fixed="right" width="200" show-overflow></vxe-table-column>\n          </vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: []\n            }\n          },\n          created () {\n            this.tableData = window.MOCK_DATA_LIST.slice(0, 20)\n          }\n        }\n        "]}},created:function(){this.tableData=window.MOCK_DATA_LIST.slice(0,20)},mounted:function(){Array.from(this.$el.querySelectorAll("pre code")).forEach((function(e){i.a.highlightBlock(e)}))}},r=s,d=l("2877"),c=Object(d["a"])(r,a,n,!1,null,null,null);t["default"]=c.exports},ed84:function(e,t,l){"use strict";l.r(t);var a=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("div",[l("p",{staticClass:"tip"},[e._v(" 固定列，通过设置 "),l("table-column-api-link",{attrs:{prop:"fixed"}}),e._v("=left 参数"),l("br"),e._v(" 当横向内容过多时，将列固定在左右两侧 ")],1),l("vxe-table",{attrs:{border:"inner","show-overflow":"",data:e.tableData}},[l("vxe-table-column",{attrs:{type:"seq",width:"60",fixed:"left"}}),l("vxe-table-column",{attrs:{field:"name",title:"Name",width:"300"}}),l("vxe-table-column",{attrs:{field:"role",title:"Role",width:"300"}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex",width:"300"}}),l("vxe-table-column",{attrs:{field:"date",title:"Date",width:"300"}}),l("vxe-table-column",{attrs:{field:"address",title:"Address",fixed:"right",width:"300"}})],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[0]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[1]))]),e._v("\n  ")]),l("p",{staticClass:"tip"},[e._v("如果列宽足够的情况下，固定列不会浮动")]),l("vxe-table",{attrs:{border:"","show-overflow":"",data:e.tableData}},[l("vxe-table-column",{attrs:{type:"seq",width:"60",fixed:"left"}}),l("vxe-table-column",{attrs:{field:"name",title:"Name"}}),l("vxe-table-column",{attrs:{field:"role",title:"Role"}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex"}}),l("vxe-table-column",{attrs:{field:"age",title:"Age"}}),l("vxe-table-column",{attrs:{field:"address",title:"Address",fixed:"right",width:"300"}})],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[2]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[3]))]),e._v("\n  ")])],1)},n=[],o=(l("4160"),l("a630"),l("fb6a"),l("3ca3"),l("159b"),l("1487")),i=l.n(o),s={data:function(){return{tableData:[],demoCodes:['\n        <vxe-table\n          border="inner"\n          show-overflow\n          :data="tableData">\n          <vxe-table-column type="seq" width="60" fixed="left"></vxe-table-column>\n          <vxe-table-column field="name" title="Name" width="300"></vxe-table-column>\n          <vxe-table-column field="role" title="Role" width="300"></vxe-table-column>\n          <vxe-table-column field="sex" title="Sex" width="300"></vxe-table-column>\n          <vxe-table-column field="date" title="Date" width="300"></vxe-table-column>\n          <vxe-table-column field="address" title="Address" fixed="right" width="300"></vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: []\n            }\n          },\n          created () {\n            this.tableData = window.MOCK_DATA_LIST.slice(0, 4)\n          }\n        }\n        ",'\n        <vxe-table\n          border\n          show-overflow\n          :data="tableData">\n          <vxe-table-column type="seq" width="60" fixed="left"></vxe-table-column>\n          <vxe-table-column field="name" title="Name"></vxe-table-column>\n          <vxe-table-column field="role" title="Role"></vxe-table-column>\n          <vxe-table-column field="sex" title="Sex"></vxe-table-column>\n          <vxe-table-column field="age" title="Age"></vxe-table-column>\n          <vxe-table-column field="address" title="Address" fixed="right" width="300"></vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: []\n            }\n          },\n          created () {\n            this.tableData = window.MOCK_DATA_LIST.slice(0, 4)\n          }\n        }\n        "]}},created:function(){this.tableData=window.MOCK_DATA_LIST.slice(0,4)},mounted:function(){Array.from(this.$el.querySelectorAll("pre code")).forEach((function(e){i.a.highlightBlock(e)}))}},r=s,d=l("2877"),c=Object(d["a"])(r,a,n,!1,null,null,null);t["default"]=c.exports},fab1:function(e,t,l){"use strict";l.r(t);var a=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("div",[l("p",{staticClass:"tip"},[e._v("支持多种数据格式：标准结构、深层结构、二维数组")]),l("vxe-table",{attrs:{data:e.tableData1}},[l("vxe-table-column",{attrs:{type:"seq",width:"60"}}),l("vxe-table-column",{attrs:{field:"name",title:"Name"}}),l("vxe-table-column",{attrs:{field:"sex",title:"Sex"}}),l("vxe-table-column",{attrs:{field:"age",title:"Age"}}),l("vxe-table-column",{attrs:{field:"content",title:"Html",type:"html","show-overflow":""}}),l("vxe-table-column",{attrs:{field:"role",title:"Role","show-overflow":""}})],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[0]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[1]))]),e._v("\n  ")]),e._m(0),l("vxe-table",{attrs:{data:e.tableData2}},[l("vxe-table-column",{attrs:{type:"seq",width:"60"}}),l("vxe-table-column",{attrs:{field:"userInfo.name",title:"Name"}}),l("vxe-table-column",{attrs:{field:"other[0].sex",title:"Sex"}}),l("vxe-table-column",{attrs:{field:"userInfo.age",title:"Age"}}),l("vxe-table-column",{attrs:{field:"other[1].more.content",title:"Html",type:"html","show-overflow":""}}),l("vxe-table-column",{attrs:{field:"role",title:"Role","show-overflow":""}})],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[2]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[3]))]),e._v("\n  ")]),l("p",{staticClass:"tip"},[e._v("二维数组结构，适用场景较少"),l("span",{staticClass:"red"},[e._v("（缺点局限性比较大，需要手动指定 "),l("table-api-link",{attrs:{prop:"row-id"}}),e._v(" 唯一主键）")],1)]),l("vxe-table",{attrs:{"row-id":"0",data:e.tableData3}},[l("vxe-table-column",{attrs:{type:"seq",width:"60"}}),l("vxe-table-column",{attrs:{field:"1",title:"Name"}}),l("vxe-table-column",{attrs:{field:"2",title:"Sex"}}),l("vxe-table-column",{attrs:{field:"3",title:"Age"}}),l("vxe-table-column",{attrs:{field:"4",title:"Html",type:"html","show-overflow":""}}),l("vxe-table-column",{attrs:{field:"5",title:"Role","show-overflow":""}})],1),l("p",{staticClass:"demo-code"},[e._v(e._s(e.$t("app.body.button.showCode")))]),l("pre",[e._v("    "),l("code",{staticClass:"xml"},[e._v(e._s(e.demoCodes[4]))]),e._v("\n    "),l("code",{staticClass:"javascript"},[e._v(e._s(e.demoCodes[5]))]),e._v("\n  ")])],1)},n=[function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("p",{staticClass:"tip"},[e._v("深层结构，可用于带有复杂结构的场景"),l("span",{staticClass:"red"},[e._v("（缺点深层级数据类型必须先定义，深层结构将导致性能直线下降，具体取决于数据量大小）")])])}],o=(l("4160"),l("a630"),l("3ca3"),l("159b"),l("1487")),i=l.n(o),s={data:function(){return{tableData1:[{name:"Test2",age:28,sex:"男",role:"后端",content:'<img height="40" src="static/other/img1.gif">'},{name:"Test4",age:26,sex:"男",role:"前端",content:'<a href="https://github.com/xuliangzhan/vxe-table">我是链接</a>'},{name:"Test3",age:20,sex:"女",role:"程序员鼓励师",content:'<img height="40" src="static/other/img2.gif">'},{name:"Test1",age:22,sex:"女",role:"设计师",content:'<div><span style="color: red">在线观看.avi</span></div>'}],tableData2:[{userInfo:{name:"Test1",age:22},other:[{sex:"女"},{more:{content:'<div><span style="color: red">在线观看.avi</span></div>'}}],role:"设计师"},{userInfo:{name:"Test2",age:28},other:[{sex:"男"},{more:{content:'<img height="40" src="static/other/img1.gif">'}}],role:"后端"},{userInfo:{name:"Test3",age:20},other:[{sex:"女"},{more:{content:'<img height="40" src="static/other/img2.gif">'}}],role:"程序员鼓励师"},{userInfo:{name:"Test4",age:26},other:[{sex:"男"},{more:{content:'<a href="https://github.com/xuliangzhan/vxe-table">我是链接</a>'}}],role:"前端"}],tableData3:[[101,"Test4","男",26,'<a href="https://github.com/xuliangzhan/vxe-table">我是链接</a>',"前端"],[102,"Test2","男",28,'<img height="40" src="static/other/img1.gif">',"后端"],[103,"Test1","女",22,'<div><span style="color: red">在线观看.avi</span></div>',"设计师"],[104,"Test3","女",20,'<img height="40" src="static/other/img2.gif">',"程序员鼓励师"]],demoCodes:['\n        <vxe-table\n          :data="tableData">\n          <vxe-table-column type="seq" width="60"></vxe-table-column>\n          <vxe-table-column field="name" title="Name"></vxe-table-column>\n          <vxe-table-column field="sex" title="Sex"></vxe-table-column>\n          <vxe-table-column field="age" title="Age"></vxe-table-column>\n          <vxe-table-column field="content" title="Html" type="html" show-overflow></vxe-table-column>\n          <vxe-table-column field="role" title="Role" show-overflow></vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: [\n                { name: 'Test2', age: 28, sex: '男', role: '后端', content: '<img height=\"40\" src=\"static/other/img1.gif\">' },\n                { name: 'Test4', age: 26, sex: '男', role: '前端', content: '<a href=\"https://github.com/xuliangzhan/vxe-table\">我是链接</a>' },\n                { name: 'Test3', age: 20, sex: '女', role: '程序员鼓励师', content: '<img height=\"40\" src=\"static/other/img2.gif\">' },\n                { name: 'Test1', age: 22, sex: '女', role: '设计师', content: '<div><span style=\"color: red\">在线观看.avi</span></div>' }\n              ]\n            }\n          }\n        }\n        ",'\n        <vxe-table\n          :data="tableData">\n          <vxe-table-column type="seq" width="60"></vxe-table-column>\n          <vxe-table-column field="userInfo.name" title="Name"></vxe-table-column>\n          <vxe-table-column field="other[0].sex" title="Sex"></vxe-table-column>\n          <vxe-table-column field="userInfo.age" title="Age"></vxe-table-column>\n          <vxe-table-column field="other[1].more.content" title="Html" type="html" show-overflow></vxe-table-column>\n          <vxe-table-column field="role" title="Role" show-overflow></vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: [\n                {\n                  userInfo: { name: 'Test1', age: 22 },\n                  other: [\n                    { sex: '女' },\n                    { more: { content: '<div><span style=\"color: red\">在线观看.avi</span></div>' } }\n                  ],\n                  role: '设计师'\n                },\n                {\n                  userInfo: { name: 'Test2', age: 28 },\n                  other: [\n                    { sex: '男' },\n                    { more: { content: '<img height=\"40\" src=\"static/other/img1.gif\">' } }\n                  ],\n                  role: '后端'\n                },\n                {\n                  userInfo: { name: 'Test3', age: 20 },\n                  other: [\n                    { sex: '女' },\n                    { more: { content: '<img height=\"40\" src=\"static/other/img2.gif\">' } }\n                  ],\n                  role: '程序员鼓励师'\n                },\n                {\n                  userInfo: { name: 'Test4', age: 26 },\n                  other: [\n                    { sex: '男' },\n                    { more: { content: '<a href=\"https://github.com/xuliangzhan/vxe-table\">我是链接</a>' } }\n                  ],\n                  role: '前端'\n                }\n              ]\n            }\n          }\n        }\n        ",'\n        <vxe-table\n          row-id="0"\n          :data="tableData">\n          <vxe-table-column type="seq" width="60"></vxe-table-column>\n          <vxe-table-column field="1" title="Name"></vxe-table-column>\n          <vxe-table-column field="2" title="Sex"></vxe-table-column>\n          <vxe-table-column field="3" title="Age"></vxe-table-column>\n          <vxe-table-column field="4" title="Html" type="html" show-overflow></vxe-table-column>\n          <vxe-table-column field="5" title="Role" show-overflow></vxe-table-column>\n        </vxe-table>\n        ',"\n        export default {\n          data () {\n            return {\n              tableData: [\n                [101, 'Test4', '男', 26, '<a href=\"https://github.com/xuliangzhan/vxe-table\">我是链接</a>', '前端'],\n                [102, 'Test2', '男', 28, '<img height=\"40\" src=\"static/other/img1.gif\">', '后端'],\n                [103, 'Test1', '女', 22, '<div><span style=\"color: red\">在线观看.avi</span></div>', '设计师'],\n                [104, 'Test3', '女', 20, '<img height=\"40\" src=\"static/other/img2.gif\">', '程序员鼓励师']\n              ]\n            }\n          },\n          created () {\n            this.tableData = window.MOCK_DATA_LIST.slice(0, 3)\n          }\n        }\n        "]}},mounted:function(){Array.from(this.$el.querySelectorAll("pre code")).forEach((function(e){i.a.highlightBlock(e)}))}},r=s,d=l("2877"),c=Object(d["a"])(r,a,n,!1,null,null,null);t["default"]=c.exports}}]);