提交产品列表
This commit is contained in:
@@ -46,6 +46,7 @@
|
||||
:height="height"
|
||||
:max-height="maxHeight"
|
||||
:default-sort="defaultSort"
|
||||
:span-method="spanMethod"
|
||||
@selection-change="handleSelectionChange"
|
||||
@row-click="(row, col, e) => $emit('row-click', row, col, e)"
|
||||
@sort-change="(c) => $emit('sort-change', c)"
|
||||
@@ -241,6 +242,11 @@ const props = defineProps({
|
||||
type: Object,
|
||||
default: undefined
|
||||
},
|
||||
// 单元格合并方法(透传 el-table span-method),签名同 el-table:({ row, column, rowIndex, columnIndex }) => { rowspan, colspan }
|
||||
spanMethod: {
|
||||
type: Function,
|
||||
default: null
|
||||
},
|
||||
// 每页条数可选项
|
||||
pageSizes: {
|
||||
type: Array,
|
||||
@@ -425,7 +431,10 @@ defineExpose({
|
||||
getTableRef,
|
||||
getSearchFormRef,
|
||||
getQueryParams,
|
||||
setQueryParams
|
||||
setQueryParams,
|
||||
getData: () => tableData.value,
|
||||
/** 当前页数据(响应式,父组件 span-method 可直接订阅) */
|
||||
data: tableData
|
||||
})
|
||||
|
||||
if (props.autoLoad) {
|
||||
|
||||
Reference in New Issue
Block a user