htui-yllkbz 1.3.112 → 1.4.0

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.
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "htui-yllkbz",
3
- "version": "1.3.112",
3
+ "version": "1.4.0",
4
4
  "port": "8082",
5
5
  "typings": "types/index.d.ts",
6
6
  "main": "lib/htui.common.js",
@@ -4,7 +4,7 @@
4
4
  * @Author: hutao
5
5
  * @Date: 2021-12-08 11:30:56
6
6
  * @LastEditors: hutao
7
- * @LastEditTime: 2022-08-22 14:28:25
7
+ * @LastEditTime: 2023-03-24 10:46:35
8
8
  -->
9
9
  <template>
10
10
  <el-pagination
@@ -69,9 +69,9 @@ export default class HtPagination extends Vue {
69
69
 
70
70
  /** 生命周期 */
71
71
  created() {
72
- if (this.pageInfo) {
73
- this.setpageInfo(this.pageInfo);
74
- }
72
+ // if (this.pageInfo) {
73
+ // this.setpageInfo(this.pageInfo);
74
+ // }
75
75
  }
76
76
  /** 方法 */
77
77
  /** 翻页 */
@@ -88,15 +88,18 @@ export default class HtPagination extends Vue {
88
88
  this.handleCurrentChange(1);
89
89
  }
90
90
  /** 监听 */
91
- @Watch('pageInfo')
92
- setpageInfo(val: PageInfoType) {
93
- const pageInfo: PageInfoType = val;
94
- this.state.pageInfo = {
95
- currentPage: Number(pageInfo.currentPage),
96
- maxResultCount: Number(pageInfo.pageSize),
97
- skipCount: Number(pageInfo.skipCount),
98
- totalCount: Number(pageInfo.totalCount),
99
- };
91
+ @Watch('pageInfo', { immediate: true })
92
+ setpageInfo(val?: PageInfoType) {
93
+ if (val) {
94
+ console.log('val');
95
+ const pageInfo: PageInfoType = val;
96
+ this.state.pageInfo = {
97
+ currentPage: Number(pageInfo.currentPage) || 1,
98
+ maxResultCount: Number(pageInfo.pageSize),
99
+ skipCount: pageInfo.skipCount ? Number(pageInfo.skipCount) : undefined,
100
+ totalCount: pageInfo.totalCount ? Number(pageInfo.totalCount) : 0,
101
+ };
102
+ }
100
103
  }
101
104
  /** 计算属性 */
102
105
  }
@@ -4,7 +4,7 @@
4
4
  * @Author: hutao
5
5
  * @Date: 2021-10-21 10:08:41
6
6
  * @LastEditors: hutao
7
- * @LastEditTime: 2023-02-01 16:30:54
7
+ * @LastEditTime: 2023-03-30 15:04:34
8
8
  */
9
9
 
10
10
  // 导入组件
@@ -33,13 +33,14 @@ import HtMore from './HtMore'
33
33
  import HtSelectUnit from './HtSelectUnit'
34
34
  import HtSelectPosition from './HtSelectPosition'
35
35
  import HtSelectCategory from './HtSelectCategory'
36
+ import HtMenu from './HtMenu'
36
37
 
37
38
 
38
39
 
39
40
 
40
41
 
41
42
  // 存储组件列表
42
- const components = [HtSelectCategory, HtSelectUnit, HtSelectPosition, HtMore, HtSelectTimeSlot, HtSelectCron, HtBaseData, HtDrawer, HtShowBaseType, HtSelectTable, HtPagination, HtTable, HtExport, HtUpload, HtMd, HtCountDown, HtUploadFiles, HtSelectBaseData, HtSelectOrg, HtSelectUser, HtShowBaseData, HtOrgInfo]
43
+ const components = [HtMenu, HtSelectCategory, HtSelectUnit, HtSelectPosition, HtMore, HtSelectTimeSlot, HtSelectCron, HtBaseData, HtDrawer, HtShowBaseType, HtSelectTable, HtPagination, HtTable, HtExport, HtUpload, HtMd, HtCountDown, HtUploadFiles, HtSelectBaseData, HtSelectOrg, HtSelectUser, HtShowBaseData, HtOrgInfo]
43
44
  // 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,则所有的组件都将被注册
44
45
  const install = function (Vue: any) {
45
46
  // 判断是否安装
@@ -56,7 +57,7 @@ export default {
56
57
  install,
57
58
  // 以下是具体的组件列表
58
59
  HtSelectTable, HtSelectPosition, HtPagination, HtShowBaseType, HtTable, HtExport, HtUpload, HtMd, HtCountDown, HtUploadFiles, HtMore,
59
- HtSelectUnit, HtSelectCategory,
60
+ HtSelectUnit, HtSelectCategory, HtMenu,
60
61
  HtSelectBaseData, HtSelectOrg, HtSelectUser, HtShowBaseData, HtOrgInfo, HtBaseData, HtDrawer, HtSelectCron, HtSelectTimeSlot
61
62
  }
62
63
 
@@ -4,7 +4,7 @@
4
4
  * @Author: hutao
5
5
  * @Date: 2021-10-25 17:05:17
6
6
  * @LastEditors: hutao
7
- * @LastEditTime: 2023-03-21 11:09:37
7
+ * @LastEditTime: 2023-03-24 10:46:46
8
8
  */
9
9
  /** 初始的默认条数 */
10
10
  export const defalutPageSize = 10
@@ -120,7 +120,7 @@ export interface PageType {
120
120
 
121
121
  currentPage: number;
122
122
  maxResultCount: number;
123
- skipCount: number;
123
+ skipCount?: number;
124
124
  totalCount: number;
125
125
 
126
126
  }