@fangzhongya/fang-ui 0.1.45 → 0.1.47
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.
- package/dist/components/cascaders/index.css +6 -0
- package/dist/components/cascaders/index.scss +6 -0
- package/dist/components/common/compons/components.cjs +0 -16
- package/dist/components/common/compons/components.d.ts +0 -8
- package/dist/components/common/compons/components.js +0 -16
- package/dist/components/common/compons/index.scss +0 -8
- package/dist/components/common/compons/index2.scss +0 -8
- package/dist/components/common/css.cjs +0 -1
- package/dist/components/common/css.js +0 -1
- package/dist/components/date-picker/style/element.scss +1 -1
- package/dist/components/dates-divide/index.css +6 -0
- package/dist/components/dates-divide/index.scss +6 -0
- package/dist/components/dates-divide/src/index2.cjs +4 -2
- package/dist/components/dates-divide/src/index2.js +4 -2
- package/dist/components/dates-picker/index.css +2 -2
- package/dist/components/dates-picker/index.scss +4 -4
- package/dist/components/dates-picker/src/index2.cjs +2 -1
- package/dist/components/dates-picker/src/index2.js +2 -1
- package/dist/components/dates2/index.css +9 -0
- package/dist/components/dates2/index.scss +3 -0
- package/dist/components/dates2/src/index2.cjs +6 -4
- package/dist/components/dates2/src/index2.js +6 -4
- package/dist/components/double/index.css +45 -10
- package/dist/components/double/index.scss +30 -17
- package/dist/components/double/src/data.cjs +24 -5
- package/dist/components/double/src/data.d.ts +23 -1
- package/dist/components/double/src/data.js +24 -5
- package/dist/components/double/src/index2.cjs +129 -64
- package/dist/components/double/src/index2.js +126 -61
- package/dist/components/double/style/index2.scss +1 -0
- package/dist/components/forms/common/config.cjs +3 -2
- package/dist/components/forms/common/config.js +3 -2
- package/dist/components/forms/index.css +74 -162
- package/dist/components/forms/src/setup.cjs +1 -2
- package/dist/components/forms/src/setup.js +1 -2
- package/dist/components/forms/src/util.cjs +30 -33
- package/dist/components/forms/src/util.js +29 -32
- package/dist/components/forms-item/index.css +3 -0
- package/dist/components/forms-item/index.scss +5 -0
- package/dist/components/forms-items/index.css +3 -0
- package/dist/components/forms-items/src/index2.cjs +1 -2
- package/dist/components/forms-items/src/index2.js +1 -2
- package/dist/components/input-history/index.css +3 -0
- package/dist/components/input-history/index.scss +3 -1
- package/dist/components/input-history/src/data.d.ts +1 -0
- package/dist/components/input-history/src/index2.cjs +23 -19
- package/dist/components/input-history/src/index2.js +15 -11
- package/dist/components/input-select/index.css +35 -7
- package/dist/components/input-select/index.scss +10 -7
- package/dist/components/input-select/src/index2.cjs +26 -19
- package/dist/components/input-select/src/index2.js +23 -16
- package/dist/components/input-select/style/index2.scss +2 -1
- package/dist/components/list/index.css +15 -14
- package/dist/components/list/index.scss +21 -19
- package/dist/components/list/src/index2.cjs +60 -41
- package/dist/components/list/src/index2.js +61 -42
- package/dist/components/lists/index.css +15 -14
- package/dist/components/lists/src/index2.cjs +1 -2
- package/dist/components/lists/src/index2.js +1 -2
- package/dist/components/listsp/index.css +15 -14
- package/dist/components/listspd/index.css +15 -14
- package/dist/components/page/index.css +94 -176
- package/dist/components/scss/function.scss +3 -1
- package/dist/components/select-scroll/src/index2.cjs +1 -1
- package/dist/components/select-scroll/src/index2.js +2 -2
- package/dist/components/selector/index.css +50 -10
- package/dist/components/selector/index.scss +5 -0
- package/dist/components/selector/src/data.cjs +7 -3
- package/dist/components/selector/src/data.d.ts +8 -4
- package/dist/components/selector/src/data.js +7 -3
- package/dist/components/selector/src/index2.cjs +127 -91
- package/dist/components/selector/src/index2.js +124 -88
- package/dist/components/tables/common/pagin.cjs +1 -1
- package/dist/components/tables/common/pagin.d.ts +4 -4
- package/dist/components/tables/common/pagin.js +1 -1
- package/dist/components/tables/common/tooltip.cjs +1 -1
- package/dist/components/tables/common/tooltip.js +1 -1
- package/dist/components/tables/index.css +5 -0
- package/dist/components/tables/index.scss +3 -0
- package/dist/components/tables/src/data.cjs +1 -3
- package/dist/components/tables/src/data.d.ts +1 -1
- package/dist/components/tables/src/data.js +1 -3
- package/dist/components/tables/src/index2.cjs +9 -3
- package/dist/components/tables/src/index2.js +10 -4
- package/dist/components/tablesp/index.css +5 -0
- package/dist/components/tablespd/index.css +5 -0
- package/dist/components/tablesv/src/data.cjs +1 -3
- package/dist/components/tablesv/src/data.d.ts +1 -1
- package/dist/components/tablesv/src/data.js +1 -3
- package/dist/components/tablesv/src/index2.cjs +9 -3
- package/dist/components/tablesv/src/index2.js +10 -4
- package/dist/css/cascaders.css +6 -0
- package/dist/css/dates-divide.css +6 -0
- package/dist/css/dates-picker.css +2 -2
- package/dist/css/dates2.css +9 -0
- package/dist/css/double.css +45 -10
- package/dist/css/forms-item.css +3 -0
- package/dist/css/forms-items.css +3 -0
- package/dist/css/forms.css +74 -162
- package/dist/css/index.css +247 -200
- package/dist/css/input-history.css +3 -0
- package/dist/css/input-select.css +35 -7
- package/dist/css/list.css +15 -14
- package/dist/css/lists.css +15 -14
- package/dist/css/listsp.css +15 -14
- package/dist/css/listspd.css +15 -14
- package/dist/css/page.css +94 -176
- package/dist/css/selector.css +50 -10
- package/dist/css/tables.css +5 -0
- package/dist/css/tablesp.css +5 -0
- package/dist/css/tablespd.css +5 -0
- package/dist/icons/index.json +1 -1
- package/dist/index.css +247 -200
- package/dist/type.d.ts +2 -2
- package/dist/utils/css.cjs +0 -10
- package/dist/utils/css.d.ts +0 -2
- package/dist/utils/css.js +1 -5
- package/dist/utils/vues/buildProps.d.ts +5 -0
- package/package.json +4 -4
- /package/dist/components/{keep-com → alert}/index.css +0 -0
- /package/dist/css/{keep-com.css → alert.css} +0 -0
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
width: 100%;
|
|
28
28
|
height: 100%;
|
|
29
29
|
}
|
|
30
|
-
.list-div .list-table
|
|
30
|
+
.list-div .list-table-td {
|
|
31
31
|
text-align: left;
|
|
32
32
|
}
|
|
33
|
-
.list-div .list-table
|
|
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 .
|
|
157
|
-
|
|
158
|
-
height: 50px;
|
|
158
|
+
.list-div .el-tooltip {
|
|
159
|
+
white-space: pre-wrap;
|
|
159
160
|
}
|
|
@@ -6,10 +6,10 @@ $list: 'list';
|
|
|
6
6
|
.#{z($list, 'table')} {
|
|
7
7
|
width: 100%;
|
|
8
8
|
height: 100%;
|
|
9
|
-
td {
|
|
9
|
+
&-td {
|
|
10
10
|
text-align: left;
|
|
11
11
|
}
|
|
12
|
-
th {
|
|
12
|
+
&-th {
|
|
13
13
|
font-weight: initial;
|
|
14
14
|
}
|
|
15
15
|
.is-whole {
|
|
@@ -94,14 +94,17 @@ $list: 'list';
|
|
|
94
94
|
.#{z($list, 'table-value')} {
|
|
95
95
|
word-break: break-all;
|
|
96
96
|
white-space: pre-wrap;
|
|
97
|
-
max-height: var(vdm('row-max-height', $list));
|
|
98
|
-
display: -webkit-box;
|
|
99
|
-
-webkit-line-clamp: var(
|
|
100
|
-
vdm('line-clamp', $list)
|
|
101
|
-
); /* 显示的行数 */
|
|
102
|
-
-webkit-box-orient: vertical;
|
|
103
97
|
overflow: hidden;
|
|
104
|
-
|
|
98
|
+
&.#{is('tooltip')} {
|
|
99
|
+
max-height: var(vdm('row-max-height', $list));
|
|
100
|
+
display: -webkit-box;
|
|
101
|
+
-webkit-line-clamp: var(
|
|
102
|
+
vdm('line-clamp', $list),
|
|
103
|
+
1
|
|
104
|
+
); /* 显示的行数 */
|
|
105
|
+
-webkit-box-orient: vertical;
|
|
106
|
+
text-overflow: ellipsis;
|
|
107
|
+
}
|
|
105
108
|
}
|
|
106
109
|
&.right {
|
|
107
110
|
.#{z($list, 'table-th')} {
|
|
@@ -133,32 +136,32 @@ $list: 'list';
|
|
|
133
136
|
border-right: 1px solid var(vdm('border-color', $list));
|
|
134
137
|
border-top: 1px solid var(vdm('border-color', $list));
|
|
135
138
|
border-bottom: 1px solid var(vdm('border-color', $list));
|
|
136
|
-
& > tr > td {
|
|
139
|
+
& > .#{z($list, 'table-tr')} > .#{z($list, 'table-td')} {
|
|
137
140
|
border-bottom: 1px solid var(vdm('border-color', $list));
|
|
138
141
|
border-left: 1px solid var(vdm('border-color', $list));
|
|
139
142
|
&:last-child {
|
|
140
143
|
border-right: 1px solid var(vdm('border-color', $list));
|
|
141
144
|
}
|
|
142
145
|
}
|
|
143
|
-
& > tr > th {
|
|
146
|
+
& > .#{z($list, 'table-tr')} > .#{z($list, 'table-th')} {
|
|
144
147
|
border-left: 1px solid var(vdm('border-color', $list));
|
|
145
148
|
border-bottom: 1px solid var(vdm('border-color', $list));
|
|
146
149
|
&:last-child {
|
|
147
150
|
border-right: 1px solid var(vdm('border-color', $list));
|
|
148
151
|
}
|
|
149
152
|
}
|
|
150
|
-
& > tr {
|
|
153
|
+
& > .#{z($list, 'table-tr')} {
|
|
151
154
|
&:last-child {
|
|
152
|
-
> td {
|
|
155
|
+
> .#{z($list, 'table-td')} {
|
|
153
156
|
border-bottom: 0;
|
|
154
157
|
}
|
|
155
|
-
> th {
|
|
158
|
+
> .#{z($list, 'table-th')} {
|
|
156
159
|
border-bottom: 0;
|
|
157
160
|
}
|
|
158
161
|
}
|
|
159
162
|
}
|
|
160
163
|
&.top {
|
|
161
|
-
& > tr > th {
|
|
164
|
+
& > .#{z($list, 'table-tr')} > .#{z($list, 'table-th')} {
|
|
162
165
|
border-bottom: 0;
|
|
163
166
|
}
|
|
164
167
|
}
|
|
@@ -167,11 +170,10 @@ $list: 'list';
|
|
|
167
170
|
.#{z('list-com')} {
|
|
168
171
|
display: flex;
|
|
169
172
|
align-items: center;
|
|
170
|
-
&-img {
|
|
171
|
-
width: 50px;
|
|
172
|
-
height: 50px;
|
|
173
|
-
}
|
|
174
173
|
}
|
|
175
174
|
}
|
|
175
|
+
.#{el('tooltip')} {
|
|
176
|
+
white-space: pre-wrap;
|
|
177
|
+
}
|
|
176
178
|
}
|
|
177
179
|
}
|
|
@@ -3,6 +3,7 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
|
3
3
|
const vue = require("vue");
|
|
4
4
|
const util = require("./util.cjs");
|
|
5
5
|
const css = require("../../common/css.cjs");
|
|
6
|
+
const getAttrValue = require("../../../utils/vues/getAttrValue.cjs");
|
|
6
7
|
const use = require("../../common/use.cjs");
|
|
7
8
|
const index$1 = require("../../../hooks/compons/index.cjs");
|
|
8
9
|
const index$2 = require("../../../hooks/cssname/index.cjs");
|
|
@@ -79,7 +80,15 @@ const _sfc_main = vue.defineComponent({
|
|
|
79
80
|
};
|
|
80
81
|
const createRowAndReset = (arr, trs, resetLine = false) => {
|
|
81
82
|
if (trs.length > 0) {
|
|
82
|
-
arr.push(
|
|
83
|
+
arr.push(
|
|
84
|
+
vue.h(
|
|
85
|
+
"tr",
|
|
86
|
+
{
|
|
87
|
+
class: cs.z("table-tr")
|
|
88
|
+
},
|
|
89
|
+
trs
|
|
90
|
+
)
|
|
91
|
+
);
|
|
83
92
|
}
|
|
84
93
|
return { newTrs: [], newLine: resetLine ? 0 : -1 };
|
|
85
94
|
};
|
|
@@ -157,7 +166,10 @@ const _sfc_main = vue.defineComponent({
|
|
|
157
166
|
};
|
|
158
167
|
const createDoubleRows = (arr, trls, trvs) => {
|
|
159
168
|
if (trls.length > 0) {
|
|
160
|
-
arr.push(
|
|
169
|
+
arr.push(
|
|
170
|
+
vue.h("tr", { class: cs.z("table-tr") }, trls),
|
|
171
|
+
vue.h("tr", { class: cs.z("table-tr") }, trvs)
|
|
172
|
+
);
|
|
161
173
|
}
|
|
162
174
|
};
|
|
163
175
|
const getlabel = (obj, index2) => {
|
|
@@ -205,16 +217,13 @@ const _sfc_main = vue.defineComponent({
|
|
|
205
217
|
const handleCellMouseLeave = ($event) => {
|
|
206
218
|
tooltip.hideTooltip($event);
|
|
207
219
|
};
|
|
208
|
-
const handleCellMouseEnter = ($event,
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
props.lineClamp
|
|
216
|
-
);
|
|
217
|
-
}
|
|
220
|
+
const handleCellMouseEnter = ($event, showOverflow) => {
|
|
221
|
+
tooltip.showTooltip(
|
|
222
|
+
$event,
|
|
223
|
+
refDom.value,
|
|
224
|
+
showOverflow,
|
|
225
|
+
props.lineClamp
|
|
226
|
+
);
|
|
218
227
|
};
|
|
219
228
|
const getChildrenValue = (obj, index2) => {
|
|
220
229
|
if (obj.children) {
|
|
@@ -230,36 +239,41 @@ const _sfc_main = vue.defineComponent({
|
|
|
230
239
|
)
|
|
231
240
|
];
|
|
232
241
|
} else {
|
|
242
|
+
const showOverflow = getAttrValue.getAttrValue(obj, "showOverflow") ?? props.showOverflow;
|
|
243
|
+
const attrs = {
|
|
244
|
+
class: [
|
|
245
|
+
cs.z("table-value"),
|
|
246
|
+
cs.is("tooltip", showOverflow)
|
|
247
|
+
].join(" "),
|
|
248
|
+
style: {
|
|
249
|
+
textAlign: obj.align || props.align
|
|
250
|
+
},
|
|
251
|
+
title: obj.title,
|
|
252
|
+
onClick(event) {
|
|
253
|
+
if (obj.click) {
|
|
254
|
+
obj.click(event, props, obj);
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
};
|
|
258
|
+
if (showOverflow) {
|
|
259
|
+
attrs.onMouseenter = ($event) => {
|
|
260
|
+
return handleCellMouseEnter($event, showOverflow);
|
|
261
|
+
};
|
|
262
|
+
attrs.onMouseleave = handleCellMouseLeave;
|
|
263
|
+
}
|
|
233
264
|
return [
|
|
234
|
-
vue.h(
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
obj.click(event, props, obj);
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
},
|
|
250
|
-
[
|
|
251
|
-
util.setSslot(
|
|
252
|
-
obj,
|
|
253
|
-
props.value,
|
|
254
|
-
props,
|
|
255
|
-
compons,
|
|
256
|
-
emit,
|
|
257
|
-
slots,
|
|
258
|
-
isComponSelected,
|
|
259
|
-
index2
|
|
260
|
-
)
|
|
261
|
-
]
|
|
262
|
-
)
|
|
265
|
+
vue.h("span", attrs, [
|
|
266
|
+
util.setSslot(
|
|
267
|
+
obj,
|
|
268
|
+
props.value,
|
|
269
|
+
props,
|
|
270
|
+
compons,
|
|
271
|
+
emit,
|
|
272
|
+
slots,
|
|
273
|
+
isComponSelected,
|
|
274
|
+
index2
|
|
275
|
+
)
|
|
276
|
+
])
|
|
263
277
|
];
|
|
264
278
|
}
|
|
265
279
|
};
|
|
@@ -414,6 +428,11 @@ const _sfc_main = vue.defineComponent({
|
|
|
414
428
|
globalThis.addEventListener("click", onClickTotal);
|
|
415
429
|
}
|
|
416
430
|
});
|
|
431
|
+
vue.onUnmounted(() => {
|
|
432
|
+
if (globalThis) {
|
|
433
|
+
globalThis.removeEventListener("click", onClickTotal);
|
|
434
|
+
}
|
|
435
|
+
});
|
|
417
436
|
return {
|
|
418
437
|
renderValue,
|
|
419
438
|
borderColor
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { defineComponent, ref, shallowRef, computed, h, onMounted } from "vue";
|
|
1
|
+
import { defineComponent, ref, shallowRef, computed, h, onMounted, onUnmounted } from "vue";
|
|
2
2
|
import { setLabel, setSslot } from "./util.js";
|
|
3
3
|
import { setStyles } from "../../common/css.js";
|
|
4
|
+
import { getAttrValue } from "../../../utils/vues/getAttrValue.js";
|
|
4
5
|
import { useObjComponSelected, useHide } from "../../common/use.js";
|
|
5
6
|
import { useCompons } from "../../../hooks/compons/index.js";
|
|
6
7
|
import { useCssName } from "../../../hooks/cssname/index.js";
|
|
@@ -77,7 +78,15 @@ const _sfc_main = defineComponent({
|
|
|
77
78
|
};
|
|
78
79
|
const createRowAndReset = (arr, trs, resetLine = false) => {
|
|
79
80
|
if (trs.length > 0) {
|
|
80
|
-
arr.push(
|
|
81
|
+
arr.push(
|
|
82
|
+
h(
|
|
83
|
+
"tr",
|
|
84
|
+
{
|
|
85
|
+
class: cs.z("table-tr")
|
|
86
|
+
},
|
|
87
|
+
trs
|
|
88
|
+
)
|
|
89
|
+
);
|
|
81
90
|
}
|
|
82
91
|
return { newTrs: [], newLine: resetLine ? 0 : -1 };
|
|
83
92
|
};
|
|
@@ -155,7 +164,10 @@ const _sfc_main = defineComponent({
|
|
|
155
164
|
};
|
|
156
165
|
const createDoubleRows = (arr, trls, trvs) => {
|
|
157
166
|
if (trls.length > 0) {
|
|
158
|
-
arr.push(
|
|
167
|
+
arr.push(
|
|
168
|
+
h("tr", { class: cs.z("table-tr") }, trls),
|
|
169
|
+
h("tr", { class: cs.z("table-tr") }, trvs)
|
|
170
|
+
);
|
|
159
171
|
}
|
|
160
172
|
};
|
|
161
173
|
const getlabel = (obj, index) => {
|
|
@@ -203,16 +215,13 @@ const _sfc_main = defineComponent({
|
|
|
203
215
|
const handleCellMouseLeave = ($event) => {
|
|
204
216
|
hideTooltip($event);
|
|
205
217
|
};
|
|
206
|
-
const handleCellMouseEnter = ($event,
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
props.lineClamp
|
|
214
|
-
);
|
|
215
|
-
}
|
|
218
|
+
const handleCellMouseEnter = ($event, showOverflow) => {
|
|
219
|
+
showTooltip(
|
|
220
|
+
$event,
|
|
221
|
+
refDom.value,
|
|
222
|
+
showOverflow,
|
|
223
|
+
props.lineClamp
|
|
224
|
+
);
|
|
216
225
|
};
|
|
217
226
|
const getChildrenValue = (obj, index) => {
|
|
218
227
|
if (obj.children) {
|
|
@@ -228,36 +237,41 @@ const _sfc_main = defineComponent({
|
|
|
228
237
|
)
|
|
229
238
|
];
|
|
230
239
|
} else {
|
|
240
|
+
const showOverflow = getAttrValue(obj, "showOverflow") ?? props.showOverflow;
|
|
241
|
+
const attrs = {
|
|
242
|
+
class: [
|
|
243
|
+
cs.z("table-value"),
|
|
244
|
+
cs.is("tooltip", showOverflow)
|
|
245
|
+
].join(" "),
|
|
246
|
+
style: {
|
|
247
|
+
textAlign: obj.align || props.align
|
|
248
|
+
},
|
|
249
|
+
title: obj.title,
|
|
250
|
+
onClick(event) {
|
|
251
|
+
if (obj.click) {
|
|
252
|
+
obj.click(event, props, obj);
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
};
|
|
256
|
+
if (showOverflow) {
|
|
257
|
+
attrs.onMouseenter = ($event) => {
|
|
258
|
+
return handleCellMouseEnter($event, showOverflow);
|
|
259
|
+
};
|
|
260
|
+
attrs.onMouseleave = handleCellMouseLeave;
|
|
261
|
+
}
|
|
231
262
|
return [
|
|
232
|
-
h(
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
obj.click(event, props, obj);
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
},
|
|
248
|
-
[
|
|
249
|
-
setSslot(
|
|
250
|
-
obj,
|
|
251
|
-
props.value,
|
|
252
|
-
props,
|
|
253
|
-
compons,
|
|
254
|
-
emit,
|
|
255
|
-
slots,
|
|
256
|
-
isComponSelected,
|
|
257
|
-
index
|
|
258
|
-
)
|
|
259
|
-
]
|
|
260
|
-
)
|
|
263
|
+
h("span", attrs, [
|
|
264
|
+
setSslot(
|
|
265
|
+
obj,
|
|
266
|
+
props.value,
|
|
267
|
+
props,
|
|
268
|
+
compons,
|
|
269
|
+
emit,
|
|
270
|
+
slots,
|
|
271
|
+
isComponSelected,
|
|
272
|
+
index
|
|
273
|
+
)
|
|
274
|
+
])
|
|
261
275
|
];
|
|
262
276
|
}
|
|
263
277
|
};
|
|
@@ -412,6 +426,11 @@ const _sfc_main = defineComponent({
|
|
|
412
426
|
globalThis.addEventListener("click", onClickTotal);
|
|
413
427
|
}
|
|
414
428
|
});
|
|
429
|
+
onUnmounted(() => {
|
|
430
|
+
if (globalThis) {
|
|
431
|
+
globalThis.removeEventListener("click", onClickTotal);
|
|
432
|
+
}
|
|
433
|
+
});
|
|
415
434
|
return {
|
|
416
435
|
renderValue,
|
|
417
436
|
borderColor
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
width: 100%;
|
|
28
28
|
height: 100%;
|
|
29
29
|
}
|
|
30
|
-
.list-div .list-table
|
|
30
|
+
.list-div .list-table-td {
|
|
31
31
|
text-align: left;
|
|
32
32
|
}
|
|
33
|
-
.list-div .list-table
|
|
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 .
|
|
157
|
-
|
|
158
|
-
height: 50px;
|
|
158
|
+
.list-div .el-tooltip {
|
|
159
|
+
white-space: pre-wrap;
|
|
159
160
|
}
|
|
160
161
|
|
|
161
162
|
.lists {
|
|
@@ -9,9 +9,8 @@ const index$2 = require("../../../hooks/cssname/index.cjs");
|
|
|
9
9
|
const index$1 = require("../../../hooks/locale/index.cjs");
|
|
10
10
|
const index = require("../../../hooks/inherit/index.cjs");
|
|
11
11
|
const index$5 = require("../../list/index.cjs");
|
|
12
|
-
require("../../../utils/css.cjs");
|
|
13
|
-
const index$3 = require("../../../hooks/props-default/index.cjs");
|
|
14
12
|
const setObjStyle = require("@fangzhongya/utils/css/setObjStyle");
|
|
13
|
+
const index$3 = require("../../../hooks/props-default/index.cjs");
|
|
15
14
|
const index$7 = require("element-plus/es/components/loading/index");
|
|
16
15
|
const _hoisted_1 = ["onClick"];
|
|
17
16
|
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -7,9 +7,8 @@ import { useCssName } from "../../../hooks/cssname/index.js";
|
|
|
7
7
|
import { useLocale } from "../../../hooks/locale/index.js";
|
|
8
8
|
import { useInherit } from "../../../hooks/inherit/index.js";
|
|
9
9
|
import { List } from "../../list/index.js";
|
|
10
|
-
import "../../../utils/css.js";
|
|
11
|
-
import { usePropsDefault, getProps } from "../../../hooks/props-default/index.js";
|
|
12
10
|
import { setObjStyle } from "@fangzhongya/utils/css/setObjStyle";
|
|
11
|
+
import { usePropsDefault, getProps } from "../../../hooks/props-default/index.js";
|
|
13
12
|
import { vLoading } from "element-plus/es/components/loading/index";
|
|
14
13
|
const _hoisted_1 = ["onClick"];
|
|
15
14
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
width: 100%;
|
|
28
28
|
height: 100%;
|
|
29
29
|
}
|
|
30
|
-
.list-div .list-table
|
|
30
|
+
.list-div .list-table-td {
|
|
31
31
|
text-align: left;
|
|
32
32
|
}
|
|
33
|
-
.list-div .list-table
|
|
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 .
|
|
157
|
-
|
|
158
|
-
height: 50px;
|
|
158
|
+
.list-div .el-tooltip {
|
|
159
|
+
white-space: pre-wrap;
|
|
159
160
|
}
|
|
160
161
|
|
|
161
162
|
.lists {
|