htui-yllkbz 1.2.55 → 1.2.56

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.2.55",
3
+ "version": "1.2.56",
4
4
  "typings": "types/index.d.ts",
5
5
  "main": "lib/htui.common.js",
6
6
  "style": "lib/htui.css",
@@ -5,7 +5,7 @@
5
5
  * @Author: hutao
6
6
  * @Date: 2021-11-11 11:23:24
7
7
  * @LastEditors: hutao
8
- * @LastEditTime: 2022-02-11 14:34:01
8
+ * @LastEditTime: 2022-02-13 16:12:46
9
9
  -->
10
10
  <template>
11
11
  <div v-loading="state.loading"
@@ -207,8 +207,10 @@
207
207
  :close-on-click-modal="true"
208
208
  width="400px"
209
209
  :center="true">
210
- <div style='overflow:hidden;height:500px'>
211
- <el-scrollbar style='height: 517px'>
210
+ <p slot="title"
211
+ style="font-weight:700;font-size:18px;float:left;margin:0">自定义列展示</p>
212
+ <div style='overflow:hidden;height:40vh;margin-top:12px'>
213
+ <el-scrollbar style='height: calc(40vh + 17px)'>
212
214
  <el-tree :data="columns"
213
215
  ref="tree"
214
216
  show-checkbox
@@ -228,7 +230,7 @@
228
230
  <span class="custom-tree-node"
229
231
  slot-scope="{ node, data }">
230
232
  <slot :name="'header_'+data.key"
231
- :column="data">{{data.title}}</slot>
233
+ :column="data">{{data.title}}<span style="color:#C0C4CC">{{data.property?`(${data.property==='base'?'基础属性':'扩展属性'})`:''}}</span></slot>
232
234
  </span>
233
235
  </el-tree>
234
236
  </el-scrollbar>
@@ -242,8 +244,8 @@
242
244
  width="400px"
243
245
  :center="true">
244
246
  <p slot="title"
245
- style="font-weight:700;font-size:18px;float:left">附件查看</p>
246
- <el-divider></el-divider>
247
+ style="font-weight:700;font-size:18px;float:left;margin:0">附件查看</p>
248
+
247
249
  <div style='overflow:hidden;height:calc(30vh)'>
248
250
  <el-scrollbar style='height: calc(100% + 17px)'>
249
251
  <HtUploadFiles :disabled="true"
@@ -76,6 +76,8 @@ export interface Column {
76
76
  showOverflowTooltip?: boolean;
77
77
  /** 筛选时候是否禁用 */
78
78
  disabled?: boolean;
79
+ /** 自定义列时候展示是否是基础属性还是扩展属性 */
80
+ property?: 'base'|'extend';
79
81
  }
80
82
  export interface PageInfoType {
81
83
  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-02-11 13:46:07
7
+ * @LastEditTime: 2022-02-13 16:11:09
8
8
  -->
9
9
  <template>
10
10
  <div>
@@ -30,6 +30,7 @@
30
30
  <div ref="ht-pdf">
31
31
  <HtTable :data="state.data"
32
32
  :height="200"
33
+ :showFilter="true"
33
34
  :columns="state.columns">
34
35
 
35
36
  <div slot="header_name">测试名字</div>
@@ -81,6 +82,7 @@ export default class Index extends Vue {
81
82
  data: [
82
83
  {
83
84
  name: "胡涛",
85
+
84
86
  age: 12,
85
87
  sex: "e49961a4f385e5d341ce3a01ee674c90ea9e037b734228fe26753a01ee674c90,e49961a4f385e5d341ce3a01ee674c90ea9e037b734228fe26753a01ee674c90",
86
88
  id: 1,
@@ -125,6 +127,7 @@ export default class Index extends Vue {
125
127
  title: "姓名",
126
128
  key: "test.title",
127
129
  width: "300px",
130
+ property: "base",
128
131
  disabled: true,
129
132
  },
130
133
  {