gi-component 0.0.22 → 0.0.23

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "gi-component",
3
3
  "type": "module",
4
- "version": "0.0.22",
4
+ "version": "0.0.23",
5
5
  "description": "Vue3中基于Element Plus二次封装基础组件库",
6
6
  "author": "lin",
7
7
  "license": "MIT",
@@ -9,9 +9,9 @@
9
9
  </TableColumn>
10
10
  </ElTable>
11
11
 
12
- <ElRow justify="end" :class="b('table-pagination')">
13
- <ElPagination v-bind="paginationProps" v-model:current-page="paginationProps.currentPage"
14
- v-model:page-size="paginationProps.pageSize" />
12
+ <ElRow v-if="props.pagination !== false" justify="end" :class="b('table-pagination')">
13
+ <ElPagination v-bind="paginationProps" :current-page="paginationProps.currentPage"
14
+ :page-size="paginationProps.pageSize" />
15
15
  </ElRow>
16
16
  </div>
17
17
  </template>
@@ -46,7 +46,7 @@ const paginationProps = computed(() => {
46
46
  background: true,
47
47
  layout: 'prev, pager, next, sizes, total',
48
48
  pageSizes: [10, 20, 50, 100],
49
- ...props.pagination
49
+ ...(typeof props.pagination === 'boolean' ? {} : props.pagination)
50
50
  }
51
51
  })
52
52
 
@@ -10,5 +10,5 @@ export interface TableColumnItem<T extends DefaultRow = DefaultRow> extends Omit
10
10
 
11
11
  export interface TableProps extends ExtractPropTypes<ElTableProps<Record<string | number | symbol, any>>> {
12
12
  columns?: TableColumnItem[]
13
- pagination?: Partial<PaginationProps>
13
+ pagination?: Partial<PaginationProps> | boolean
14
14
  }