mrxy-yk 1.4.2 → 1.4.3

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.
@@ -1,4 +1,5 @@
1
1
  import { EmptyOption } from '../components/empty/type';
2
+ import { Pages } from '../entity';
2
3
  export * from '../element-plus/components/attrs';
3
4
  export * from '../components/attrs';
4
5
  export declare const AMapConfig: {
@@ -30,3 +31,9 @@ export declare const EChartsThemeConfig: {
30
31
  dark: Record<string, any>;
31
32
  default: Record<string, any>;
32
33
  };
34
+ /**
35
+ * 分页配置
36
+ */
37
+ export declare const PagesConfig: {
38
+ params: (pages: Pages) => any;
39
+ };
@@ -14,6 +14,11 @@ const EChartsThemeConfig = {
14
14
  dark: null,
15
15
  default: null
16
16
  };
17
+ const PagesConfig = {
18
+ params: (pages) => {
19
+ return { pageNum: pages.pageNum, pageSize: pages.pageSize };
20
+ }
21
+ };
17
22
  export {
18
23
  AMapConfig,
19
24
  EChartsThemeConfig,
@@ -23,5 +28,6 @@ export {
23
28
  ElUploadImagesGlobal,
24
29
  EmptyGlobal,
25
30
  EmptyStatusExtendConfig,
26
- ExportLinkGlobal
31
+ ExportLinkGlobal,
32
+ PagesConfig
27
33
  };
@@ -2,8 +2,5 @@ export declare class Pages {
2
2
  pageNum: number;
3
3
  pageSize: number;
4
4
  total: number;
5
- get params(): {
6
- pageNum: number;
7
- pageSize: number;
8
- };
5
+ get params(): any;
9
6
  }
@@ -1,9 +1,10 @@
1
+ import { PagesConfig } from "../config/index.js";
1
2
  class Pages {
2
3
  pageNum = 1;
3
4
  pageSize = 10;
4
5
  total = 0;
5
6
  get params() {
6
- return { pageNum: this.pageNum, pageSize: this.pageSize };
7
+ return PagesConfig.params(this);
7
8
  }
8
9
  }
9
10
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mrxy-yk",
3
- "version": "1.4.2",
3
+ "version": "1.4.3",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "A collection of Vue 3 components and utilities",