text: (window.webpackJsonp=window.webpackJsonp||[]).push([[30],{398:function(t,a,e){"use strict";e.r(a);var s=e(42),r=Object(s.a)({},(function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("h1",{attrs:{id:"配置-options"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#配置-options"}},[t._v("#")]),t._v(" 配置: options")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://element.eleme.cn/#/zh-CN/component/table",target:"_blank",rel:"noopener noreferrer"}},[t._v("支持el-table的参数"),e("OutboundLink")],1)]),t._v(" "),e("h2",{attrs:{id:"height"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#height"}},[t._v("#")]),t._v(" height")]),t._v(" "),e("ul",[e("li",[t._v("说明: 表格的高度，默认为自动高度。如果 height 为 number 类型，单位 px；如果 height 为 String 类型，则这个高度会设置为表格的 style.height 的值，表格的高度会受控于外部样式。")]),t._v(" "),e("li",[t._v("类型: String / Number")]),t._v(" "),e("li",[t._v("可选值: 无")]),t._v(" "),e("li",[t._v("默认值: 无")])]),t._v(" "),e("h2",{attrs:{id:"maxheight"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#maxheight"}},[t._v("#")]),t._v(" maxHeight")]),t._v(" "),e("ul",[e("li",[t._v("说明: 表格的最大高度")]),t._v(" "),e("li",[t._v("类型: String / Number")]),t._v(" "),e("li",[t._v("可选值: 无")]),t._v(" "),e("li",[t._v("默认值: 无")])]),t._v(" "),e("h2",{attrs:{id:"stripe"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#stripe"}},[t._v("#")]),t._v(" stripe")]),t._v(" "),e("ul",[e("li",[t._v("说明: 是否为斑马纹模式")]),t._v(" "),e("li",[t._v("类型: Boolean")]),t._v(" "),e("li",[t._v("可选值: 无")]),t._v(" "),e("li",[t._v("默认值: false")])]),t._v(" "),e("h2",{attrs:{id:"border"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#border"}},[t._v("#")]),t._v(" border")]),t._v(" "),e("ul",[e("li",[t._v("说明: 是否带有纵向边框")]),t._v(" "),e("li",[t._v("类型: Boolean")]),t._v(" "),e("li",[t._v("可选值: 无")]),t._v(" "),e("li",[t._v("默认值: false")])]),t._v(" "),e("h2",{attrs:{id:"size"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#size"}},[t._v("#")]),t._v(" size")]),t._v(" "),e("ul",[e("li",[t._v("说明: 表格的尺寸")]),t._v(" "),e("li",[t._v("类型: String")]),t._v(" "),e("li",[t._v("可选值: medium / small / mini")]),t._v(" "),e("li",[t._v("默认值: 无")])]),t._v(" "),e("h2",{attrs:{id:"fit"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#fit"}},[t._v("#")]),t._v(" fit")]),t._v(" "),e("ul",[e("li",[t._v("说明: 列的宽度是否自撑开")]),t._v(" "),e("li",[t._v("类型: Boolean")]),t._v(" "),e("li",[t._v("可选值: 无")]),t._v(" "),e("li",[t._v("默认值: true")])]),t._v(" "),e("h2",{attrs:{id:"showheader"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#showheader"}},[t._v("#")]),t._v(" showHeader")]),t._v(" "),e("ul",[e("li",[t._v("说明: 是否显示表头")]),t._v(" "),e("li",[t._v("类型: Boolean")]),t._v(" "),e("li",[t._v("可选值: 无")]),t._v(" "),e("li",[t._v("默认值: true")])]),t._v(" "),e("h2",{attrs:{id:"highlightcurrentrow"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#highlightcurrentrow"}},[t._v("#")]),t._v(" highlightCurrentRow")]),t._v(" "),e("ul",[e("li",[t._v("说明: 是否要高亮当前行")]),t._v(" "),e("li",[t._v("类型: Boolean")]),t._v(" "),e("li",[t._v("可选值: 无")]),t._v(" "),e("li",[t._v("默认值: false")])]),t._v(" "),e("h2",{attrs:{id:"currentrowkey"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#currentrowkey"}},[t._v("#")]),t._v(" currentRowKey")]),t._v(" "),e("ul",[e("li",[t._v("说明: 当前行的 key，只写属性")]),t._v(" "),e("li",[t._v("类型: String / Number")]),t._v(" "),e("li",[t._v("可选值: 无")]),t._v(" "),e("li",[t._v("默认值: 无")])]),t._v(" "),e("h2",{attrs:{id:"rowclassname"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#rowclassname"}},[t._v("#")]),t._v(" rowClassName")]),t._v(" "),e("ul",[e("li",[t._v("说明: 行的 className 的回调方法，也可以使用字符串为所有行设置一个固定的 className。")]),t._v(" "),e("li",[t._v("类型: Function ({row, rowIndex}) / String")]),t._v(" "),e("li",[t._v("可选值: 无")]),t._v(" "),e("li",[t._v("默认值: 无")])]),t._v(" "),e("h2",{attrs:{id:"rowstyle"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#rowstyle"}},[t._v("#")]),t._v(" rowStyle")]),t._v(" "),e("ul",[e("li",[t._v("说明: 行的 style 的回调方法，也可以使用一个固定的 Object 为所有行设置一样的 Style。")]),t._v(" "),e("li",[t._v("类型: Function ({row, rowIndex}) / Object")]),t._v(" "),e("li",[t._v("可选值: 无")]),t._v(" "),e("li",[t._v("默认值: 无")])]),t._v(" "),e("h2",{attrs:{id:"cellclassname"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#cellclassname"}},[t._v("#")]),t._v(" cellClassName")]),t._v(" "),e("ul",[e("li",[t._v("说明: 单元格的 className 的回调方法，也可以使用字符串为所有单元格设置一个固定的 className。")]),t._v(" "),e("li",[t._v("类型: Function ({row, column, rowIndex, columnIndex}) / String")]),t._v(" "),e("li",[t._v("可选值: 无")]),t._v(" "),e("li",[t._v("默认值: 无")])]),t._v(" "),e("h2",{attrs:{id:"cellstyle"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#cellstyle"}},[t._v("#")]),t._v(" cellStyle")]),t._v(" "),e("ul",[e("li",[t._v("说明: 单元格的 style 的回调方法，也可以使用一个固定的 Object 为所有单元格设置一样的 Style。")]),t._v(" "),e("li",[t._v("类型: Function ({row, column, rowIndex, columnIndex}) / Object")]),t._v(" "),e("li",[t._v("可选值: 无")]),t._v(" "),e("li",[t._v("默认值: 无")])]),t._v(" "),e("h2",{attrs:{id:"headerrowclassname"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#headerrowclassname"}},[t._v("#")]),t._v(" headerRowClassName")]),t._v(" "),e("ul",[e("li",[t._v("说明: 表头行的 className 的回调方法，也可以使用字符串为所有表头行设置一个固定的 className。")]),t._v(" "),e("li",[t._v("类型: Function ({row, rowIndex}) / String")]),t._v(" "),e("li",[t._v("可选值: 无")]),t._v(" "),e("li",[t._v("默认值: 无")])]),t._v(" "),e("h2",{attrs:{id:"headerrowstyle"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#headerrowstyle"}},[t._v("#")]),t._v(" headerRowStyle")]),t._v(" "),e("ul",[e("li",[t._v("说明: 表头行的 style 的回调方法，也可以使用一个固定的 Object 为所有表头行设置一样的 Style。")]),t._v(" "),e("li",[t._v("类型: Function ({row, rowIndex}) / Object")]),t._v(" "),e("li",[t._v("可选值: 无")]),t._v(" "),e("li",[t._v("默认值: 无")])]),t._v(" "),e("h2",{attrs:{id:"headercellclassname"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#headercellclassname"}},[t._v("#")]),t._v(" headerCellClassName")]),t._v(" "),e("ul",[e("li",[t._v("说明: 表头单元格的 className 的回调方法，也可以使用字符串为所有表头单元格设置一个固定的 className。")]),t._v(" "),e("li",[t._v("类型: Function ({row, column, rowIndex, columnIndex}) / String")]),t._v(" "),e("li",[t._v("可选值: 无")]),t._v(" "),e("li",[t._v("默认值: 无")])]),t._v(" "),e("h2",{attrs:{id:"headercellstyle"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#headercellstyle"}},[t._v("#")]),t._v(" headerCellStyle")]),t._v(" "),e("ul",[e("li",[t._v("说明: 表头单元格的 style 的回调方法，也可以使用一个固定的 Object 为所有表头单元格设置一样的 Style。")]),t._v(" "),e("li",[t._v("类型: Function ({row, column, rowIndex, columnIndex}) / Object")]),t._v(" "),e("li",[t._v("可选值: 无")]),t._v(" "),e("li",[t._v("默认值: 无")])]),t._v(" "),e("h2",{attrs:{id:"rowkey"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#rowkey"}},[t._v("#")]),t._v(" rowKey")]),t._v(" "),e("ul",[e("li",[t._v("说明: 行数据的 Key，用来优化表格的渲染；在使用 reserveSelection 功能的情况下，该属性是必填的。类型为 String 时，支持多层访问：user.info.id，但不支持 user.info[0].id，此种情况请使用 function。")]),t._v(" "),e("li",[t._v("类型: Function (row) / String")]),t._v(" "),e("li",[t._v("可选值: 无")]),t._v(" "),e("li",[t._v("默认值: 无")])]),t._v(" "),e("h2",{attrs:{id:"emptytext"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#emptytext"}},[t._v("#")]),t._v(" emptyText")]),t._v(" "),e("ul",[e("li",[t._v("说明: 空数据时显示的文本内容")]),t._v(" "),e("li",[t._v("类型: String")]),t._v(" "),e("li",[t._v("可选值: 无")]),t._v(" "),e("li",[t._v("默认值: 无")])]),t._v(" "),e("h2",{attrs:{id:"defaultsort"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defaultsort"}},[t._v("#")]),t._v(" defaultSort")]),t._v(" "),e("ul",[e("li",[t._v("说明: 默认的排序列的 prop 和顺序。它的prop属性指定默认的排序的列，order指定默认排序的顺序")]),t._v(" "),e("li",[t._v("类型: Object")]),t._v(" "),e("li",[t._v("可选值: order: ascending / descending")]),t._v(" "),e("li",[t._v("默认值: 如果只指定了 prop, 没有指定order, 则默认顺序是 ascending")])]),t._v(" "),e("h2",{attrs:{id:"tooltipeffect"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#tooltipeffect"}},[t._v("#")]),t._v(" tooltipEffect")]),t._v(" "),e("ul",[e("li",[t._v("说明: tooltip effect 属性")]),t._v(" "),e("li",[t._v("类型: String")]),t._v(" "),e("li",[t._v("可选值: dark / light")]),t._v(" "),e("li",[t._v("默认值: 无")])]),t._v(" "),e("h2",{attrs:{id:"showsummary"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#showsummary"}},[t._v("#")]),t._v(" showSummary")]),t._v(" "),e("ul",[e("li",[t._v("说明: 是否在表尾显示合计行")]),t._v(" "),e("li",[t._v("类型: Boolean")]),t._v(" "),e("li",[t._v("可选值: 无")]),t._v(" "),e("li",[t._v("默认值: false")])]),t._v(" "),e("h2",{attrs:{id:"sumtext"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#sumtext"}},[t._v("#")]),t._v(" sumText")]),t._v(" "),e("ul",[e("li",[t._v("说明: 合计行第一列的文本")]),t._v(" "),e("li",[t._v("类型: String")]),t._v(" "),e("li",[t._v("可选值: 无")]),t._v(" "),e("li",[t._v("默认值: 合计")])]),t._v(" "),e("h2",{attrs:{id:"summarymethod"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#summarymethod"}},[t._v("#")]),t._v(" summaryMethod")]),t._v(" "),e("ul",[e("li",[t._v("说明: 自定义的合计计算方法")]),t._v(" "),e("li",[t._v("类型: Function ({ columns, data })")]),t._v(" "),e("li",[t._v("可选值: 无")]),t._v(" "),e("li",[t._v("默认值: 无")])]),t._v(" "),e("h2",{attrs:{id:"spanmethod"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#spanmethod"}},[t._v("#")]),t._v(" spanMethod")]),t._v(" "),e("ul",[e("li",[t._v("说明: 合并行或列的计算方法")]),t._v(" "),e("li",[t._v("类型: Function ({ row, column, rowIndex, columnIndex })")]),t._v(" "),e("li",[t._v("可选值: 无")]),t._v(" "),e("li",[t._v("默认值: 无")])]),t._v(" "),e("h2",{attrs:{id:"selectonindeterminate"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#selectonindeterminate"}},[t._v("#")]),t._v(" selectOnIndeterminate")]),t._v(" "),e("ul",[e("li",[t._v("说明: 在多选表格中，当仅有部分行被选中时，点击表头的多选框时的行为。若为 true，则选中所有行；若为 false，则取消选择所有行")]),t._v(" "),e("li",[t._v("类型: Boolean")]),t._v(" "),e("li",[t._v("可选值: 无")]),t._v(" "),e("li",[t._v("默认值: true")])]),t._v(" "),e("h2",{attrs:{id:"hide"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#hide"}},[t._v("#")]),t._v(" hide")]),t._v(" "),e("ul",[e("li",[t._v("说明: 是否隐藏表格，通过"),e("code",[t._v("body")]),t._v("插槽自定义table")]),t._v(" "),e("li",[t._v("类型: Boolean")]),t._v(" "),e("li",[t._v("可选值: 无")]),t._v(" "),e("li",[t._v("默认值: false")])]),t._v(" "),e("h2",{attrs:{id:"fetchdetail"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#fetchdetail"}},[t._v("#")]),t._v(" fetchDetail")]),t._v(" "),e("ul",[e("li",[t._v("说明: 打开编辑框前请求后台获取完整数据")]),t._v(" "),e("li",[t._v("类型: Function")]),t._v(" "),e("li",[t._v("可选值: 无")]),t._v(" "),e("li",[t._v("默认值: 无")])]),t._v(" "),e("div",{staticClass:"language-js extra-class"},[e("pre",{pre:!0,attrs:{class:"language-js"}},[e("code",[e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n  options"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(":")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n\n     "),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("//添加时，index为null")]),t._v("\n    "),e("span",{pre:!0,attrs:{class:"token function"}},[t._v("fetchDetail")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),e("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("index"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("row"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("mode")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n        "),e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("return")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token function"}},[t._v("request")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("url"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(":")]),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'getInfoById'")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("params"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(":")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("row"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("id"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),e("span",{pre:!0,attrs:{class:"token function"}},[t._v("then")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),e("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("ret")]),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=>")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n            "),e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("return")]),t._v(" ret"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("data\n        "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v("\n    "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n  "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),e("h2",{attrs:{id:"events"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#events"}},[t._v("#")]),t._v(" events")]),t._v(" "),e("ul",[e("li",[t._v("说明: 监听el-table事件")]),t._v(" "),e("li",[t._v("类型: Object")]),t._v(" "),e("li",[t._v("可选值: 无")]),t._v(" "),e("li",[t._v("默认值: 无")])]),t._v(" "),e("div",{staticClass:"language- extra-class"},[e("pre",{pre:!0,attrs:{class:"language-text"}},[e("code",[t._v("{\n  options:{\n     events:{\n        'expand-change':(event)=>{}\n    }\n  }\n}\n")])])])])}),[],!1,null,null,null);a.default=r.exports}}]);