@xizs/nuxt-antui 0.0.53 → 0.0.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -241,7 +241,16 @@ export default defineComponent({
|
|
|
241
241
|
}
|
|
242
242
|
}
|
|
243
243
|
|
|
244
|
-
|
|
244
|
+
let refresh = (init:boolean = true)=>{
|
|
245
|
+
if(init){
|
|
246
|
+
pagination.page=1
|
|
247
|
+
}
|
|
248
|
+
console.log('pagination.',pagination)
|
|
249
|
+
tableData.load()
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
props.control.refresh = refresh
|
|
253
|
+
|
|
245
254
|
|
|
246
255
|
return () => (
|
|
247
256
|
<div class="flex flex-col gap-2 h-full ">
|
|
@@ -258,10 +267,10 @@ export default defineComponent({
|
|
|
258
267
|
)
|
|
259
268
|
})}
|
|
260
269
|
<div class="flex gap-2">
|
|
261
|
-
{props.form?.option?.search !== false && <AButton type="primary" onClick={()=>
|
|
270
|
+
{props.form?.option?.search !== false && <AButton type="primary" onClick={()=>refresh()}>{$t('搜索')}</AButton>}
|
|
262
271
|
{props.form?.option?.reset !== false && <AButton onClick={() =>{
|
|
263
272
|
patch(metaForm,form.value,true)
|
|
264
|
-
|
|
273
|
+
refresh()
|
|
265
274
|
}}>{$t('重置')}</AButton>}
|
|
266
275
|
{props.form?.option?.export === true && <AButton type="primary" loading={exportLoading.value} onClick={()=>{
|
|
267
276
|
exportLoading.value=true
|