@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
- props.control.refresh = (init:boolean = true)=>{
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={()=>tableData.load()}>{$t('搜索')}</AButton>}
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
- tableData.load()
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
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@xizs/nuxt-antui",
3
3
  "type": "module",
4
- "version": "0.0.54",
4
+ "version": "0.0.55",
5
5
  "main": "./nuxt.config.ts",
6
6
  "scripts": {
7
7
  "dev": "nuxi dev .playground",