From 3b78fd11bf158caeead12138162bff282ce80e94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=40=E9=95=BF=E4=B9=85=E5=90=8C=E5=AD=A6?= Date: Sun, 7 Jul 2024 23:31:29 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20ma-crud=20=E6=9A=B4=E9=9C=B2=20setTable?= =?UTF-8?q?Data=20=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ma-crud/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/ma-crud/index.vue b/src/components/ma-crud/index.vue index aed41921..b387282c 100644 --- a/src/components/ma-crud/index.vue +++ b/src/components/ma-crud/index.vue @@ -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 })