@xizs/nuxt-antui 0.0.33 → 0.0.35

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.
@@ -99,8 +99,8 @@ export class Form {
99
99
  ref={thisRef}
100
100
  model={formData.value}
101
101
  rules={rules.value}
102
- label-col={{ span: 8 }}
103
- wrapper-col={{ span: 16 }}
102
+ label-col={{ span: 6 }}
103
+ wrapper-col={{ span: 18 }}
104
104
  >
105
105
  {ADParse(props.form,formData.value).map(item => {
106
106
  const node =
@@ -212,7 +212,6 @@ export default defineComponent({
212
212
  }
213
213
  }
214
214
  }
215
- console.log(res)
216
215
  pagination.total = res.meta.pagination.total
217
216
  pagination.pageSize = res.meta.pagination.per_page||res.meta.pagination.perPage
218
217
  pagination.page = res.meta.pagination.current_page||res.meta.pagination.currentPage
@@ -299,9 +298,10 @@ export default defineComponent({
299
298
  </div>
300
299
  <div class="flex items-center gap-2">
301
300
  <APagination
302
- hideOnSinglePage={true}
301
+ hideOnSinglePage={pagination.total==0}
303
302
  v-model:current={pagination.page}
304
303
  total={pagination.total}
304
+ showSizeChanger={true}
305
305
  pageSize={pagination.pageSize}
306
306
  onChange={(page) => {
307
307
  pagination.page = page
@@ -313,7 +313,11 @@ export default defineComponent({
313
313
  pagination.page = 1
314
314
  tableData.load()
315
315
  }}
316
+ showTotal={()=>{
317
+ return `${$t(`共{a}页,{b}条数据`,{a:Math.ceil(pagination.total/pagination.pageSize),b:pagination.total})}`
318
+ }}
316
319
  />
320
+
317
321
  <AButton icon={h(RedoOutlined)} loading={tableData.loading} onClick={tableData.load} />
318
322
  </div>
319
323
  </div>}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@xizs/nuxt-antui",
3
3
  "type": "module",
4
- "version": "0.0.33",
4
+ "version": "0.0.35",
5
5
  "main": "./nuxt.config.ts",
6
6
  "scripts": {
7
7
  "dev": "nuxi dev .playground",