htui-yllkbz 1.2.54 → 1.2.58

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.
@@ -4,7 +4,7 @@
4
4
  * @Author: hutao
5
5
  * @Date: 2021-10-25 17:05:17
6
6
  * @LastEditors: hutao
7
- * @LastEditTime: 2022-01-13 15:08:32
7
+ * @LastEditTime: 2022-02-14 09:39:55
8
8
  */
9
9
  /** 初始的默认条数 */
10
10
  export const defalutPageSize = 10
@@ -69,13 +69,17 @@ export interface Column {
69
69
  hide?: boolean;
70
70
  /** 时间是否跨行展示 */
71
71
  spread?: boolean;
72
- /** 通过type展示相应的数据 用户id|部门id|时间格式化|是否布尔值*/
73
- type?: 'userId' | 'org' | 'time' | 'common' | 'boolean' | 'img';
72
+ /** 通过type展示相应的数据 用户id|部门id|时间格式化|是否布尔值|图片 |附件*/
73
+ type?: 'userId' | 'org' | 'time' | 'common' | 'boolean' | 'img' | 'file';
74
74
  /** 只有当type='common'时候有效 数据类型个ca common里面的一样但不包括时间 时间使用time */
75
75
  commonType?: 'userId' | 'departmentId' | 'baseDataId' | 'roleId' | 'baseDataName' | 'baseDataValue';
76
76
  showOverflowTooltip?: boolean;
77
77
  /** 筛选时候是否禁用 */
78
78
  disabled?: boolean;
79
+ /** 自定义列时候展示额外信息 */
80
+ property?: string;
81
+ /** 自定义列时候处理是否被选中 */
82
+ checked?: boolean;
79
83
  }
80
84
  export interface PageInfoType {
81
85
  currentPage: number;
@@ -4,7 +4,7 @@
4
4
  * @Author: hutao
5
5
  * @Date: 2021-11-15 14:41:40
6
6
  * @LastEditors: hutao
7
- * @LastEditTime: 2022-01-16 09:30:07
7
+ * @LastEditTime: 2022-02-14 10:13:10
8
8
  -->
9
9
  <template>
10
10
  <div>
@@ -30,14 +30,10 @@
30
30
  <div ref="ht-pdf">
31
31
  <HtTable :data="state.data"
32
32
  :height="200"
33
+ uuId="54598fs1okdsfsdfk2"
34
+ :showFilter="true"
33
35
  :columns="state.columns">
34
- <div slot="sex"
35
- slot-scope="{row}">{{row.sex?'男':'女'}}</div>
36
- <div slot="age"
37
- slot-scope="{row}">
38
- <el-tag>{{row.age}}</el-tag>
39
- </div>
40
- <div slot="header_name">测试名字</div>
36
+
41
37
  </HtTable>
42
38
  </div>
43
39
  <!-- <el-dropdown>
@@ -86,17 +82,17 @@ export default class Index extends Vue {
86
82
  data: [
87
83
  {
88
84
  name: "胡涛",
85
+
89
86
  age: 12,
90
- sex: 0,
87
+ sex: "e49961a4f385e5d341ce3a01ee674c90ea9e037b734228fe26753a01ee674c90,e49961a4f385e5d341ce3a01ee674c90ea9e037b734228fe26753a01ee674c90",
91
88
  id: 1,
92
-
93
89
  test: { title: "33476c23-9faa-22d3-3ee6-39f97d173566" },
94
90
  time: "2022-01-20T00:00:00+08:00",
95
91
  },
96
92
  {
97
93
  name: "胡涛",
98
94
  age: 12,
99
- sex: 1,
95
+ sex: "e49961a4f385e5d341ce3a01ee674c90ea9e037b734228fe26753a01ee674c90",
100
96
  id: 2,
101
97
  test: { title: "测试" },
102
98
  time: "2022-01-20T00:00:00+08:00",
@@ -104,7 +100,7 @@ export default class Index extends Vue {
104
100
  {
105
101
  name: "胡涛",
106
102
  age: 12,
107
- sex: 1,
103
+ sex: "tt",
108
104
  id: 3,
109
105
  test: { title: "测试" },
110
106
  time: "2022-01-20T00:00:00+08:00",
@@ -112,7 +108,7 @@ export default class Index extends Vue {
112
108
  {
113
109
  name: "胡涛",
114
110
  age: 12,
115
- sex: 0,
111
+ sex: "tt",
116
112
  id: 4,
117
113
  test: { title: "测试" },
118
114
  time: "2022-01-20T00:00:00+08:00",
@@ -120,7 +116,7 @@ export default class Index extends Vue {
120
116
  {
121
117
  name: "胡涛",
122
118
  age: 12,
123
- sex: 0,
119
+ sex: "tt",
124
120
  id: 41,
125
121
  test: { title: "测试" },
126
122
  time: "2022-01-20T00:00:00+08:00",
@@ -131,7 +127,7 @@ export default class Index extends Vue {
131
127
  title: "姓名",
132
128
  key: "test.title",
133
129
  width: "300px",
134
-
130
+ property: "base",
135
131
  disabled: true,
136
132
  },
137
133
  {
@@ -151,6 +147,7 @@ export default class Index extends Vue {
151
147
  {
152
148
  title: "性别",
153
149
  key: "sex",
150
+ type: "file",
154
151
  },
155
152
  ],
156
153
  };