@fangzhongya/fang-ui 0.1.44 → 0.1.46

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.
Files changed (83) hide show
  1. package/dist/components/buttons/src/index2.cjs +15 -8
  2. package/dist/components/buttons/src/index2.js +13 -6
  3. package/dist/components/common/css.cjs +0 -1
  4. package/dist/components/common/css.js +0 -1
  5. package/dist/components/common/use.cjs +34 -27
  6. package/dist/components/common/use.js +14 -7
  7. package/dist/components/dates/src/data.cjs +6 -0
  8. package/dist/components/dates/src/data.d.ts +6 -0
  9. package/dist/components/dates/src/data.js +6 -0
  10. package/dist/components/dates/src/index2.cjs +12 -1
  11. package/dist/components/dates/src/index2.js +12 -1
  12. package/dist/components/dates-divide/src/data.cjs +7 -1
  13. package/dist/components/dates-divide/src/data.d.ts +6 -0
  14. package/dist/components/dates-divide/src/data.js +7 -1
  15. package/dist/components/dates-divide/src/index2.cjs +13 -4
  16. package/dist/components/dates-divide/src/index2.js +13 -4
  17. package/dist/components/dates-picker/src/data.cjs +6 -0
  18. package/dist/components/dates-picker/src/data.d.ts +12 -0
  19. package/dist/components/dates-picker/src/data.js +6 -0
  20. package/dist/components/dates-picker/src/index2.cjs +11 -0
  21. package/dist/components/dates-picker/src/index2.js +11 -0
  22. package/dist/components/dates2/src/data.cjs +6 -0
  23. package/dist/components/dates2/src/data.d.ts +6 -0
  24. package/dist/components/dates2/src/data.js +6 -0
  25. package/dist/components/dates2/src/index2.cjs +12 -0
  26. package/dist/components/dates2/src/index2.js +12 -0
  27. package/dist/components/forms/src/setup.cjs +1 -2
  28. package/dist/components/forms/src/setup.js +1 -2
  29. package/dist/components/forms-items/src/index2.cjs +1 -2
  30. package/dist/components/forms-items/src/index2.js +1 -2
  31. package/dist/components/list/index.css +15 -14
  32. package/dist/components/list/index.scss +21 -19
  33. package/dist/components/list/src/index2.cjs +55 -41
  34. package/dist/components/list/src/index2.js +55 -41
  35. package/dist/components/lists/index.css +15 -14
  36. package/dist/components/lists/src/index2.cjs +1 -2
  37. package/dist/components/lists/src/index2.js +1 -2
  38. package/dist/components/listsp/index.css +15 -14
  39. package/dist/components/listspd/index.css +15 -14
  40. package/dist/components/page/index.css +20 -14
  41. package/dist/components/tables/common/com-but2.cjs +9 -13
  42. package/dist/components/tables/common/com-but2.js +7 -11
  43. package/dist/components/tables/common/com-color2.cjs +7 -11
  44. package/dist/components/tables/common/com-color2.js +8 -12
  45. package/dist/components/tables/common/com-lis2.cjs +7 -10
  46. package/dist/components/tables/common/com-lis2.js +8 -11
  47. package/dist/components/tables/common/pagin.cjs +1 -1
  48. package/dist/components/tables/common/pagin.js +1 -1
  49. package/dist/components/tables/common/tooltip.cjs +1 -1
  50. package/dist/components/tables/common/tooltip.js +1 -1
  51. package/dist/components/tables/common/util.cjs +0 -88
  52. package/dist/components/tables/common/util.d.ts +0 -8
  53. package/dist/components/tables/common/util.js +1 -89
  54. package/dist/components/tables/index.css +5 -0
  55. package/dist/components/tables/index.scss +3 -0
  56. package/dist/components/tables/src/data.cjs +1 -3
  57. package/dist/components/tables/src/data.d.ts +1 -1
  58. package/dist/components/tables/src/data.js +1 -3
  59. package/dist/components/tablesp/index.css +5 -0
  60. package/dist/components/tablespd/index.css +5 -0
  61. package/dist/components/tablesv/src/data.cjs +1 -3
  62. package/dist/components/tablesv/src/data.d.ts +1 -1
  63. package/dist/components/tablesv/src/data.js +1 -3
  64. package/dist/css/index.css +20 -14
  65. package/dist/css/list.css +15 -14
  66. package/dist/css/lists.css +15 -14
  67. package/dist/css/listsp.css +15 -14
  68. package/dist/css/listspd.css +15 -14
  69. package/dist/css/page.css +20 -14
  70. package/dist/css/tables.css +5 -0
  71. package/dist/css/tablesp.css +5 -0
  72. package/dist/css/tablespd.css +5 -0
  73. package/dist/hooks/event-aliass/index.cjs +121 -0
  74. package/dist/hooks/event-aliass/index.d.ts +1 -0
  75. package/dist/hooks/event-aliass/index.js +121 -0
  76. package/dist/icons/index.json +1 -1
  77. package/dist/index.css +20 -14
  78. package/dist/utils/css.cjs +0 -10
  79. package/dist/utils/css.d.ts +0 -2
  80. package/dist/utils/css.js +1 -5
  81. package/dist/utils/vues/buildProps.d.ts +5 -0
  82. package/dist/utils/vues/common.d.ts +0 -8
  83. package/package.json +6 -6
@@ -2,8 +2,6 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const vue = require("vue");
4
4
  const use = require("../../common/use.cjs");
5
- const firstUpper = require("@fangzhongya/utils/basic/string/firstUpper");
6
- const splitUpper = require("@fangzhongya/utils/basic/string/splitUpper");
7
5
  const getAttrValue = require("../../../utils/vues/getAttrValue.cjs");
8
6
  const css = require("../../../utils/css.cjs");
9
7
  function getVNodeWidth(vnode) {
@@ -67,91 +65,6 @@ function setMinWidth(obj, props) {
67
65
  }
68
66
  }
69
67
  }
70
- const eventAliasObj = {
71
- //.stop - 调用 event.stopPropagation()。
72
- stop(event) {
73
- event.stopPropagation();
74
- return true;
75
- },
76
- // .prevent - 调用 event.preventDefault()。
77
- prevent(event) {
78
- event.preventDefault();
79
- return true;
80
- },
81
- // .self - 只有事件从元素本身发出才触发处理函数。
82
- self(event) {
83
- return event.target === event.currentTarget;
84
- },
85
- // .once - 最多触发一次处理函数。
86
- once(event) {
87
- var _a;
88
- if ((_a = event.currentTarget) == null ? void 0 : _a.__once__) {
89
- return false;
90
- } else {
91
- if (event.currentTarget) {
92
- event.currentTarget.__once__ = true;
93
- }
94
- return true;
95
- }
96
- }
97
- // .capture - 在捕获模式添加事件监听器。
98
- // 处理事件是异步的,只有在触发了事件后才执行方法,
99
- // 目前无法支持 capture
100
- // capture(event) {
101
- // console.log('event', event);
102
- // return true;
103
- // },
104
- };
105
- function eventAlias(key, callback, obj, $event) {
106
- let is = false;
107
- const name = "on" + firstUpper.firstUpper(key);
108
- const arr = [];
109
- for (const k of Object.keys(obj)) {
110
- if (k.startsWith(name)) {
111
- arr.push(k);
112
- }
113
- }
114
- const reg = new RegExp("^" + name);
115
- for (const v of arr) {
116
- let s = v.replace(reg, "");
117
- if (s && $event) {
118
- let ns = splitUpper.splitUpper(s);
119
- if (ns.includes("passive")) {
120
- ns = ns.filter((k) => {
121
- return k != "prevent";
122
- });
123
- }
124
- const fn = () => {
125
- if (ns.includes("once")) {
126
- let isc = eventAliasObj.once($event);
127
- if (isc) {
128
- callback(obj[v]);
129
- }
130
- } else {
131
- callback(obj[v]);
132
- }
133
- };
134
- vue.withModifiers(fn, ns)();
135
- } else {
136
- callback(obj[v]);
137
- }
138
- is = true;
139
- }
140
- return is;
141
- }
142
- function eventAliass(callback, arr, obj, $event) {
143
- if (!callback || !obj || !arr || arr.length === 0) {
144
- return false;
145
- }
146
- let is = false;
147
- const items = Array.isArray(arr) ? arr : [arr];
148
- for (const key of items) {
149
- if (eventAlias(key, callback, obj, $event)) {
150
- is = true;
151
- }
152
- }
153
- return is;
154
- }
155
68
  function setEmptyDisplay(value, emptyDisplay, isStr) {
156
69
  if (isStr) {
157
70
  if (value === "" || value === void 0 || value === null) {
@@ -161,6 +74,5 @@ function setEmptyDisplay(value, emptyDisplay, isStr) {
161
74
  return emptyDisplay;
162
75
  }
163
76
  }
164
- exports.eventAliass = eventAliass;
165
77
  exports.setEmptyDisplay = setEmptyDisplay;
166
78
  exports.setMinWidth = setMinWidth;
@@ -5,14 +5,6 @@
5
5
  * @returns 返回设置的最小宽度值,可能为具体数值、函数执行结果或undefined
6
6
  */
7
7
  export declare function setMinWidth(obj: ObjAny, props?: ObjAny): any;
8
- /**
9
- * 支持事件别名处理
10
- * @param {*} callback
11
- * @param {*} arr
12
- * @param {*} obj
13
- * @param {*} $event
14
- */
15
- export declare function eventAliass(callback: Function, arr: string | string[], obj: ObjAny, $event: Event): boolean;
16
8
  /**
17
9
  * 设置空值显示内容
18
10
  * @param value 需要检查的值
@@ -1,7 +1,5 @@
1
- import { render, isVNode, h, withModifiers } from "vue";
1
+ import { render, isVNode, h } from "vue";
2
2
  import { useGetDomLabel } from "../../common/use.js";
3
- import { firstUpper } from "@fangzhongya/utils/basic/string/firstUpper";
4
- import { splitUpper } from "@fangzhongya/utils/basic/string/splitUpper";
5
3
  import { getAttrValue } from "../../../utils/vues/getAttrValue.js";
6
4
  import { getCssNumber } from "../../../utils/css.js";
7
5
  function getVNodeWidth(vnode) {
@@ -65,91 +63,6 @@ function setMinWidth(obj, props) {
65
63
  }
66
64
  }
67
65
  }
68
- const eventAliasObj = {
69
- //.stop - 调用 event.stopPropagation()。
70
- stop(event) {
71
- event.stopPropagation();
72
- return true;
73
- },
74
- // .prevent - 调用 event.preventDefault()。
75
- prevent(event) {
76
- event.preventDefault();
77
- return true;
78
- },
79
- // .self - 只有事件从元素本身发出才触发处理函数。
80
- self(event) {
81
- return event.target === event.currentTarget;
82
- },
83
- // .once - 最多触发一次处理函数。
84
- once(event) {
85
- var _a;
86
- if ((_a = event.currentTarget) == null ? void 0 : _a.__once__) {
87
- return false;
88
- } else {
89
- if (event.currentTarget) {
90
- event.currentTarget.__once__ = true;
91
- }
92
- return true;
93
- }
94
- }
95
- // .capture - 在捕获模式添加事件监听器。
96
- // 处理事件是异步的,只有在触发了事件后才执行方法,
97
- // 目前无法支持 capture
98
- // capture(event) {
99
- // console.log('event', event);
100
- // return true;
101
- // },
102
- };
103
- function eventAlias(key, callback, obj, $event) {
104
- let is = false;
105
- const name = "on" + firstUpper(key);
106
- const arr = [];
107
- for (const k of Object.keys(obj)) {
108
- if (k.startsWith(name)) {
109
- arr.push(k);
110
- }
111
- }
112
- const reg = new RegExp("^" + name);
113
- for (const v of arr) {
114
- let s = v.replace(reg, "");
115
- if (s && $event) {
116
- let ns = splitUpper(s);
117
- if (ns.includes("passive")) {
118
- ns = ns.filter((k) => {
119
- return k != "prevent";
120
- });
121
- }
122
- const fn = () => {
123
- if (ns.includes("once")) {
124
- let isc = eventAliasObj.once($event);
125
- if (isc) {
126
- callback(obj[v]);
127
- }
128
- } else {
129
- callback(obj[v]);
130
- }
131
- };
132
- withModifiers(fn, ns)();
133
- } else {
134
- callback(obj[v]);
135
- }
136
- is = true;
137
- }
138
- return is;
139
- }
140
- function eventAliass(callback, arr, obj, $event) {
141
- if (!callback || !obj || !arr || arr.length === 0) {
142
- return false;
143
- }
144
- let is = false;
145
- const items = Array.isArray(arr) ? arr : [arr];
146
- for (const key of items) {
147
- if (eventAlias(key, callback, obj, $event)) {
148
- is = true;
149
- }
150
- }
151
- return is;
152
- }
153
66
  function setEmptyDisplay(value, emptyDisplay, isStr) {
154
67
  if (isStr) {
155
68
  if (value === "" || value === void 0 || value === null) {
@@ -160,7 +73,6 @@ function setEmptyDisplay(value, emptyDisplay, isStr) {
160
73
  }
161
74
  }
162
75
  export {
163
- eventAliass,
164
76
  setEmptyDisplay,
165
77
  setMinWidth
166
78
  };
@@ -43,5 +43,10 @@
43
43
  }
44
44
  .tables-table.el-table--default .cell {
45
45
  white-space: pre-wrap;
46
+ }
47
+ .tables-table.el-table--default .cell.el-tooltip {
48
+ white-space: nowrap;
49
+ }
50
+ .tables-table.el-table--default .cell {
46
51
  padding: 0 var(--tables-interval-horizon, var(--tables-interval));
47
52
  }
@@ -27,6 +27,9 @@ $tables: 'tables';
27
27
  }
28
28
  .cell {
29
29
  white-space: pre-wrap;
30
+ &.#{el('tooltip')} {
31
+ white-space: nowrap;
32
+ }
30
33
  padding: 0
31
34
  var(
32
35
  vdm('interval-horizon', $tables),
@@ -16,9 +16,7 @@ const dataProps = {
16
16
  */
17
17
  height: {
18
18
  type: [String, Number],
19
- default() {
20
- return "auto";
21
- }
19
+ default: "auto"
22
20
  },
23
21
  /**
24
22
  * @props { String, Number } maxHeight
@@ -26,7 +26,7 @@ export declare const dataProps: {
26
26
  */
27
27
  height: {
28
28
  type: (StringConstructor | NumberConstructor)[];
29
- default(): string;
29
+ default: string;
30
30
  };
31
31
  /**
32
32
  * @props { String, Number } maxHeight
@@ -14,9 +14,7 @@ const dataProps = {
14
14
  */
15
15
  height: {
16
16
  type: [String, Number],
17
- default() {
18
- return "auto";
19
- }
17
+ default: "auto"
20
18
  },
21
19
  /**
22
20
  * @props { String, Number } maxHeight
@@ -43,6 +43,11 @@
43
43
  }
44
44
  .tables-table.el-table--default .cell {
45
45
  white-space: pre-wrap;
46
+ }
47
+ .tables-table.el-table--default .cell.el-tooltip {
48
+ white-space: nowrap;
49
+ }
50
+ .tables-table.el-table--default .cell {
46
51
  padding: 0 var(--tables-interval-horizon, var(--tables-interval));
47
52
  }
48
53
 
@@ -43,6 +43,11 @@
43
43
  }
44
44
  .tables-table.el-table--default .cell {
45
45
  white-space: pre-wrap;
46
+ }
47
+ .tables-table.el-table--default .cell.el-tooltip {
48
+ white-space: nowrap;
49
+ }
50
+ .tables-table.el-table--default .cell {
46
51
  padding: 0 var(--tables-interval-horizon, var(--tables-interval));
47
52
  }
48
53
 
@@ -16,9 +16,7 @@ const dataProps = {
16
16
  */
17
17
  height: {
18
18
  type: [String, Number],
19
- default() {
20
- return "auto";
21
- }
19
+ default: "auto"
22
20
  },
23
21
  /**
24
22
  * @props { String, Number } maxHeight
@@ -26,7 +26,7 @@ export declare const dataProps: {
26
26
  */
27
27
  height: {
28
28
  type: (StringConstructor | NumberConstructor)[];
29
- default(): string;
29
+ default: string;
30
30
  };
31
31
  /**
32
32
  * @props { String, Number } maxHeight
@@ -14,9 +14,7 @@ const dataProps = {
14
14
  */
15
15
  height: {
16
16
  type: [String, Number],
17
- default() {
18
- return "auto";
19
- }
17
+ default: "auto"
20
18
  },
21
19
  /**
22
20
  * @props { String, Number } maxHeight
@@ -1075,10 +1075,10 @@
1075
1075
  width: 100%;
1076
1076
  height: 100%;
1077
1077
  }
1078
- .list-div .list-table td {
1078
+ .list-div .list-table-td {
1079
1079
  text-align: left;
1080
1080
  }
1081
- .list-div .list-table th {
1081
+ .list-div .list-table-th {
1082
1082
  font-weight: initial;
1083
1083
  }
1084
1084
  .list-div .list-table .is-whole .list-table-auto {
@@ -1150,11 +1150,13 @@
1150
1150
  .list-div .list-table .list-table-value {
1151
1151
  word-break: break-all;
1152
1152
  white-space: pre-wrap;
1153
+ overflow: hidden;
1154
+ }
1155
+ .list-div .list-table .list-table-value.is-tooltip {
1153
1156
  max-height: var(--list-row-max-height);
1154
1157
  display: -webkit-box;
1155
- -webkit-line-clamp: var(--list-line-clamp); /* 显示的行数 */
1158
+ -webkit-line-clamp: var(--list-line-clamp, 1); /* 显示的行数 */
1156
1159
  -webkit-box-orient: vertical;
1157
- overflow: hidden;
1158
1160
  text-overflow: ellipsis;
1159
1161
  }
1160
1162
  .list-div .list-table.right .list-table-th {
@@ -1174,36 +1176,35 @@
1174
1176
  border-top: 1px solid var(--list-border-color);
1175
1177
  border-bottom: 1px solid var(--list-border-color);
1176
1178
  }
1177
- .list-div .list-table.is-border > tr > td {
1179
+ .list-div .list-table.is-border > .list-table-tr > .list-table-td {
1178
1180
  border-bottom: 1px solid var(--list-border-color);
1179
1181
  border-left: 1px solid var(--list-border-color);
1180
1182
  }
1181
- .list-div .list-table.is-border > tr > td:last-child {
1183
+ .list-div .list-table.is-border > .list-table-tr > .list-table-td:last-child {
1182
1184
  border-right: 1px solid var(--list-border-color);
1183
1185
  }
1184
- .list-div .list-table.is-border > tr > th {
1186
+ .list-div .list-table.is-border > .list-table-tr > .list-table-th {
1185
1187
  border-left: 1px solid var(--list-border-color);
1186
1188
  border-bottom: 1px solid var(--list-border-color);
1187
1189
  }
1188
- .list-div .list-table.is-border > tr > th:last-child {
1190
+ .list-div .list-table.is-border > .list-table-tr > .list-table-th:last-child {
1189
1191
  border-right: 1px solid var(--list-border-color);
1190
1192
  }
1191
- .list-div .list-table.is-border > tr:last-child > td {
1193
+ .list-div .list-table.is-border > .list-table-tr:last-child > .list-table-td {
1192
1194
  border-bottom: 0;
1193
1195
  }
1194
- .list-div .list-table.is-border > tr:last-child > th {
1196
+ .list-div .list-table.is-border > .list-table-tr:last-child > .list-table-th {
1195
1197
  border-bottom: 0;
1196
1198
  }
1197
- .list-div .list-table.is-border.top > tr > th {
1199
+ .list-div .list-table.is-border.top > .list-table-tr > .list-table-th {
1198
1200
  border-bottom: 0;
1199
1201
  }
1200
1202
  .list-div .list-table .list-com {
1201
1203
  display: flex;
1202
1204
  align-items: center;
1203
1205
  }
1204
- .list-div .list-table .list-com-img {
1205
- width: 50px;
1206
- height: 50px;
1206
+ .list-div .el-tooltip {
1207
+ white-space: pre-wrap;
1207
1208
  }
1208
1209
 
1209
1210
  .tables {
@@ -1227,6 +1228,11 @@
1227
1228
  }
1228
1229
  .tables-table.el-table--default .cell {
1229
1230
  white-space: pre-wrap;
1231
+ }
1232
+ .tables-table.el-table--default .cell.el-tooltip {
1233
+ white-space: nowrap;
1234
+ }
1235
+ .tables-table.el-table--default .cell {
1230
1236
  padding: 0 var(--tables-interval-horizon, var(--tables-interval));
1231
1237
  }
1232
1238
 
package/dist/css/list.css CHANGED
@@ -27,10 +27,10 @@
27
27
  width: 100%;
28
28
  height: 100%;
29
29
  }
30
- .list-div .list-table td {
30
+ .list-div .list-table-td {
31
31
  text-align: left;
32
32
  }
33
- .list-div .list-table th {
33
+ .list-div .list-table-th {
34
34
  font-weight: initial;
35
35
  }
36
36
  .list-div .list-table .is-whole .list-table-auto {
@@ -102,11 +102,13 @@
102
102
  .list-div .list-table .list-table-value {
103
103
  word-break: break-all;
104
104
  white-space: pre-wrap;
105
+ overflow: hidden;
106
+ }
107
+ .list-div .list-table .list-table-value.is-tooltip {
105
108
  max-height: var(--list-row-max-height);
106
109
  display: -webkit-box;
107
- -webkit-line-clamp: var(--list-line-clamp); /* 显示的行数 */
110
+ -webkit-line-clamp: var(--list-line-clamp, 1); /* 显示的行数 */
108
111
  -webkit-box-orient: vertical;
109
- overflow: hidden;
110
112
  text-overflow: ellipsis;
111
113
  }
112
114
  .list-div .list-table.right .list-table-th {
@@ -126,34 +128,33 @@
126
128
  border-top: 1px solid var(--list-border-color);
127
129
  border-bottom: 1px solid var(--list-border-color);
128
130
  }
129
- .list-div .list-table.is-border > tr > td {
131
+ .list-div .list-table.is-border > .list-table-tr > .list-table-td {
130
132
  border-bottom: 1px solid var(--list-border-color);
131
133
  border-left: 1px solid var(--list-border-color);
132
134
  }
133
- .list-div .list-table.is-border > tr > td:last-child {
135
+ .list-div .list-table.is-border > .list-table-tr > .list-table-td:last-child {
134
136
  border-right: 1px solid var(--list-border-color);
135
137
  }
136
- .list-div .list-table.is-border > tr > th {
138
+ .list-div .list-table.is-border > .list-table-tr > .list-table-th {
137
139
  border-left: 1px solid var(--list-border-color);
138
140
  border-bottom: 1px solid var(--list-border-color);
139
141
  }
140
- .list-div .list-table.is-border > tr > th:last-child {
142
+ .list-div .list-table.is-border > .list-table-tr > .list-table-th:last-child {
141
143
  border-right: 1px solid var(--list-border-color);
142
144
  }
143
- .list-div .list-table.is-border > tr:last-child > td {
145
+ .list-div .list-table.is-border > .list-table-tr:last-child > .list-table-td {
144
146
  border-bottom: 0;
145
147
  }
146
- .list-div .list-table.is-border > tr:last-child > th {
148
+ .list-div .list-table.is-border > .list-table-tr:last-child > .list-table-th {
147
149
  border-bottom: 0;
148
150
  }
149
- .list-div .list-table.is-border.top > tr > th {
151
+ .list-div .list-table.is-border.top > .list-table-tr > .list-table-th {
150
152
  border-bottom: 0;
151
153
  }
152
154
  .list-div .list-table .list-com {
153
155
  display: flex;
154
156
  align-items: center;
155
157
  }
156
- .list-div .list-table .list-com-img {
157
- width: 50px;
158
- height: 50px;
158
+ .list-div .el-tooltip {
159
+ white-space: pre-wrap;
159
160
  }
@@ -27,10 +27,10 @@
27
27
  width: 100%;
28
28
  height: 100%;
29
29
  }
30
- .list-div .list-table td {
30
+ .list-div .list-table-td {
31
31
  text-align: left;
32
32
  }
33
- .list-div .list-table th {
33
+ .list-div .list-table-th {
34
34
  font-weight: initial;
35
35
  }
36
36
  .list-div .list-table .is-whole .list-table-auto {
@@ -102,11 +102,13 @@
102
102
  .list-div .list-table .list-table-value {
103
103
  word-break: break-all;
104
104
  white-space: pre-wrap;
105
+ overflow: hidden;
106
+ }
107
+ .list-div .list-table .list-table-value.is-tooltip {
105
108
  max-height: var(--list-row-max-height);
106
109
  display: -webkit-box;
107
- -webkit-line-clamp: var(--list-line-clamp); /* 显示的行数 */
110
+ -webkit-line-clamp: var(--list-line-clamp, 1); /* 显示的行数 */
108
111
  -webkit-box-orient: vertical;
109
- overflow: hidden;
110
112
  text-overflow: ellipsis;
111
113
  }
112
114
  .list-div .list-table.right .list-table-th {
@@ -126,36 +128,35 @@
126
128
  border-top: 1px solid var(--list-border-color);
127
129
  border-bottom: 1px solid var(--list-border-color);
128
130
  }
129
- .list-div .list-table.is-border > tr > td {
131
+ .list-div .list-table.is-border > .list-table-tr > .list-table-td {
130
132
  border-bottom: 1px solid var(--list-border-color);
131
133
  border-left: 1px solid var(--list-border-color);
132
134
  }
133
- .list-div .list-table.is-border > tr > td:last-child {
135
+ .list-div .list-table.is-border > .list-table-tr > .list-table-td:last-child {
134
136
  border-right: 1px solid var(--list-border-color);
135
137
  }
136
- .list-div .list-table.is-border > tr > th {
138
+ .list-div .list-table.is-border > .list-table-tr > .list-table-th {
137
139
  border-left: 1px solid var(--list-border-color);
138
140
  border-bottom: 1px solid var(--list-border-color);
139
141
  }
140
- .list-div .list-table.is-border > tr > th:last-child {
142
+ .list-div .list-table.is-border > .list-table-tr > .list-table-th:last-child {
141
143
  border-right: 1px solid var(--list-border-color);
142
144
  }
143
- .list-div .list-table.is-border > tr:last-child > td {
145
+ .list-div .list-table.is-border > .list-table-tr:last-child > .list-table-td {
144
146
  border-bottom: 0;
145
147
  }
146
- .list-div .list-table.is-border > tr:last-child > th {
148
+ .list-div .list-table.is-border > .list-table-tr:last-child > .list-table-th {
147
149
  border-bottom: 0;
148
150
  }
149
- .list-div .list-table.is-border.top > tr > th {
151
+ .list-div .list-table.is-border.top > .list-table-tr > .list-table-th {
150
152
  border-bottom: 0;
151
153
  }
152
154
  .list-div .list-table .list-com {
153
155
  display: flex;
154
156
  align-items: center;
155
157
  }
156
- .list-div .list-table .list-com-img {
157
- width: 50px;
158
- height: 50px;
158
+ .list-div .el-tooltip {
159
+ white-space: pre-wrap;
159
160
  }
160
161
 
161
162
  .lists {
@@ -27,10 +27,10 @@
27
27
  width: 100%;
28
28
  height: 100%;
29
29
  }
30
- .list-div .list-table td {
30
+ .list-div .list-table-td {
31
31
  text-align: left;
32
32
  }
33
- .list-div .list-table th {
33
+ .list-div .list-table-th {
34
34
  font-weight: initial;
35
35
  }
36
36
  .list-div .list-table .is-whole .list-table-auto {
@@ -102,11 +102,13 @@
102
102
  .list-div .list-table .list-table-value {
103
103
  word-break: break-all;
104
104
  white-space: pre-wrap;
105
+ overflow: hidden;
106
+ }
107
+ .list-div .list-table .list-table-value.is-tooltip {
105
108
  max-height: var(--list-row-max-height);
106
109
  display: -webkit-box;
107
- -webkit-line-clamp: var(--list-line-clamp); /* 显示的行数 */
110
+ -webkit-line-clamp: var(--list-line-clamp, 1); /* 显示的行数 */
108
111
  -webkit-box-orient: vertical;
109
- overflow: hidden;
110
112
  text-overflow: ellipsis;
111
113
  }
112
114
  .list-div .list-table.right .list-table-th {
@@ -126,36 +128,35 @@
126
128
  border-top: 1px solid var(--list-border-color);
127
129
  border-bottom: 1px solid var(--list-border-color);
128
130
  }
129
- .list-div .list-table.is-border > tr > td {
131
+ .list-div .list-table.is-border > .list-table-tr > .list-table-td {
130
132
  border-bottom: 1px solid var(--list-border-color);
131
133
  border-left: 1px solid var(--list-border-color);
132
134
  }
133
- .list-div .list-table.is-border > tr > td:last-child {
135
+ .list-div .list-table.is-border > .list-table-tr > .list-table-td:last-child {
134
136
  border-right: 1px solid var(--list-border-color);
135
137
  }
136
- .list-div .list-table.is-border > tr > th {
138
+ .list-div .list-table.is-border > .list-table-tr > .list-table-th {
137
139
  border-left: 1px solid var(--list-border-color);
138
140
  border-bottom: 1px solid var(--list-border-color);
139
141
  }
140
- .list-div .list-table.is-border > tr > th:last-child {
142
+ .list-div .list-table.is-border > .list-table-tr > .list-table-th:last-child {
141
143
  border-right: 1px solid var(--list-border-color);
142
144
  }
143
- .list-div .list-table.is-border > tr:last-child > td {
145
+ .list-div .list-table.is-border > .list-table-tr:last-child > .list-table-td {
144
146
  border-bottom: 0;
145
147
  }
146
- .list-div .list-table.is-border > tr:last-child > th {
148
+ .list-div .list-table.is-border > .list-table-tr:last-child > .list-table-th {
147
149
  border-bottom: 0;
148
150
  }
149
- .list-div .list-table.is-border.top > tr > th {
151
+ .list-div .list-table.is-border.top > .list-table-tr > .list-table-th {
150
152
  border-bottom: 0;
151
153
  }
152
154
  .list-div .list-table .list-com {
153
155
  display: flex;
154
156
  align-items: center;
155
157
  }
156
- .list-div .list-table .list-com-img {
157
- width: 50px;
158
- height: 50px;
158
+ .list-div .el-tooltip {
159
+ white-space: pre-wrap;
159
160
  }
160
161
 
161
162
  .lists {