Skip to content

Commit

Permalink
Merge pull request #201 from littlezo/main
Browse files Browse the repository at this point in the history
feat: ma-crud 暴露 setTableData 方法
  • Loading branch information
kanyxmo authored Jul 9, 2024
2 parents f372fb7 + 3b78fd1 commit be925ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/ma-crud/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -859,12 +859,12 @@ const initSearchColumns = () => crudSearchRef.value.initSearchColumns()
const getColumnService = (strictMode = true) => {
return new ColumnService({ columns: columns.value, cascaders: cascaders.value, dicts: dicts.value }, strictMode )
}

const setTableData = (data=[])=> tableData.value = data
defineExpose({
refresh, requestData, addAction, editAction, getTableData, setSelecteds,
getCurrentAction, getFormData, getFormColumns, getColumnService, getCurrentPage, getPageSize, getTotal,
requestParams, isRecovery, tableRef, initSearchColumns,
crudFormRef, crudSearchRef, crudImportRef, crudSettingRef
crudFormRef, crudSearchRef, crudImportRef, crudSettingRef, setTableData
})

</script>
Expand Down

0 comments on commit be925ac

Please sign in to comment.