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