Skip to content

Commit

Permalink
feat: ma-crud 暴露 setTableData 方法
Browse files Browse the repository at this point in the history
  • Loading branch information
littlezo authored Jul 7, 2024
1 parent fa0d9ec commit 3b78fd1
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 3b78fd1

Please sign in to comment.