@xizs/nuxt-antui 0.0.54 → 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,12 +241,15 @@ export default defineComponent({
|
|
|
241
241
|
}
|
|
242
242
|
}
|
|
243
243
|
|
|
244
|
-
|
|
244
|
+
let refresh = (init:boolean = true)=>{
|
|
245
245
|
if(init){
|
|
246
246
|
pagination.page=1
|
|
247
247
|
}
|
|
248
|
+
console.log('pagination.',pagination)
|
|
248
249
|
tableData.load()
|
|
249
250
|
}
|
|
251
|
+
|
|
252
|
+
props.control.refresh = refresh
|
|
250
253
|
|
|
251
254
|
|
|
252
255
|
return () => (
|
|
@@ -264,10 +267,10 @@ export default defineComponent({
|
|
|
264
267
|
)
|
|
265
268
|
})}
|
|
266
269
|
<div class="flex gap-2">
|
|
267
|
-
{props.form?.option?.search !== false && <AButton type="primary" onClick={()=>
|
|
270
|
+
{props.form?.option?.search !== false && <AButton type="primary" onClick={()=>refresh()}>{$t('搜索')}</AButton>}
|
|
268
271
|
{props.form?.option?.reset !== false && <AButton onClick={() =>{
|
|
269
272
|
patch(metaForm,form.value,true)
|
|
270
|
-
|
|
273
|
+
refresh()
|
|
271
274
|
}}>{$t('重置')}</AButton>}
|
|
272
275
|
{props.form?.option?.export === true && <AButton type="primary" loading={exportLoading.value} onClick={()=>{
|
|
273
276
|
exportLoading.value=true
|