You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @description 弹窗删除函数,一般用于删除数据。|| Modal delete function, generally used to delete data.
97
97
*/
98
98
modalDeleteFn: (record: T)=>void
99
+
/**
100
+
* @description 获取表格数据的函数,当 getOptions.manual 为 true 时,需要手动调用该函数获取数据。|| Function to get table data, when getOptions.manual is true, you need to manually call this function to get the data.
* @description 获取表格数据的参数配置。|| Configuration for parameters to get table data.
119
+
*/
120
+
getOptions?: {
121
+
/**
122
+
* @description 是否手动触发获取表格数据,默认为 false ,如果设置为 true ,则需要使用 ref 手动调用 getRun 函数获取数据。|| Whether to manually trigger the function to get table data, default is false, if set to true, you need to manually call the getRun function through ref to get the data.
123
+
*/
124
+
manual?: boolean,
125
+
/**
126
+
* @description 默认获取表格数据的参数,当手动触发获取表格数据时,会合并默认参数和手动传入的参数。|| Default parameters to get table data, when manually trigger the function to get table data, the default parameters and manually passed parameters will be merged.
127
+
*/
128
+
defaultParams?: any,
129
+
}
113
130
/**
114
131
* @description 添加表格数据的函数。|| Function to add table data.
115
132
*/
@@ -152,6 +169,9 @@ function TablePageBox<T = any, F = any>(props: TablePageBoxProps<T, F>) {
152
169
ref,
153
170
modalTitle,
154
171
getFn,
172
+
getOptions ={
173
+
manual: false,
174
+
},
155
175
addFn,
156
176
putFn,
157
177
delFn,
@@ -177,9 +197,12 @@ function TablePageBox<T = any, F = any>(props: TablePageBoxProps<T, F>) {
0 commit comments