@fangzhongya/fang-ui 0.1.19 → 0.1.21
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/array/src/data.cjs +4 -0
- package/dist/components/array/src/data.d.ts +4 -0
- package/dist/components/array/src/data.js +4 -0
- package/dist/components/array/src/index2.cjs +22 -21
- package/dist/components/array/src/index2.js +12 -11
- package/dist/components/common/compons.cjs +4 -2
- package/dist/components/common/compons.d.ts +1 -1
- package/dist/components/common/compons.js +4 -2
- package/dist/components/forms/src/data.cjs +5 -5
- package/dist/components/forms/src/data.d.ts +1 -1
- package/dist/components/forms/src/data.js +5 -5
- package/dist/components/forms/src/index2.cjs +5 -3
- package/dist/components/forms/src/index2.js +5 -3
- package/dist/components/forms/src/setup.cjs +0 -7
- package/dist/components/forms/src/setup.js +0 -7
- package/dist/components/forms-div/src/data.cjs +1 -1
- package/dist/components/forms-div/src/data.js +1 -1
- package/dist/components/forms-div/src/index2.cjs +11 -4
- package/dist/components/forms-div/src/index2.js +10 -3
- package/dist/components/forms-item/src/data.cjs +1 -1
- package/dist/components/forms-item/src/data.js +1 -1
- package/dist/components/forms-item/src/index2.cjs +4 -2
- package/dist/components/forms-item/src/index2.js +4 -2
- package/dist/components/forms-item/src/label.cjs +3 -2
- package/dist/components/forms-item/src/label.js +3 -2
- package/dist/components/forms-items/src/data.cjs +1 -1
- package/dist/components/forms-items/src/data.js +1 -1
- package/dist/components/forms-items/src/index2.cjs +4 -2
- package/dist/components/forms-items/src/index2.js +4 -2
- package/dist/components/global-config/src/data.cjs +12 -0
- package/dist/components/global-config/src/data.d.ts +12 -0
- package/dist/components/global-config/src/data.js +12 -0
- package/dist/components/index.cjs +16 -12
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +4 -0
- package/dist/components/index.scss +2 -0
- package/dist/components/index2.scss +2 -0
- package/dist/components/list/index.css +12 -0
- package/dist/components/list/index.scss +15 -0
- package/dist/components/list/src/data.cjs +21 -2
- package/dist/components/list/src/data.d.ts +22 -1
- package/dist/components/list/src/data.js +21 -2
- package/dist/components/list/src/index2.cjs +75 -23
- package/dist/components/list/src/index2.js +76 -24
- package/dist/components/list/style/index2.scss +1 -0
- package/dist/components/lists/index.css +2 -2
- package/dist/components/lists/index.scss +7 -2
- package/dist/components/lists/src/data.cjs +12 -1
- package/dist/components/lists/src/data.d.ts +10 -0
- package/dist/components/lists/src/data.js +12 -1
- package/dist/components/lists/src/index2.cjs +7 -5
- package/dist/components/lists/src/index2.js +7 -5
- package/dist/components/listsp/index.css +2 -2
- package/dist/components/listsp/src/data.d.ts +1 -5
- package/dist/components/listspd/index.cjs +9 -0
- package/dist/components/listspd/index.css +99 -0
- package/dist/components/listspd/index.d.ts +4 -0
- package/dist/components/listspd/index.js +9 -0
- package/dist/components/listspd/index.scss +30 -0
- package/dist/components/listspd/src/data.cjs +13 -0
- package/dist/components/listspd/src/data.d.ts +14 -0
- package/dist/components/listspd/src/data.js +13 -0
- package/dist/components/listspd/src/index.cjs +4 -0
- package/dist/components/listspd/src/index.js +4 -0
- package/dist/components/listspd/src/index2.cjs +111 -0
- package/dist/components/listspd/src/index2.js +111 -0
- package/dist/components/listspd/style/index2.scss +4 -0
- package/dist/components/page/index.css +11 -0
- package/dist/components/tables/common/config.cjs +1 -1
- package/dist/components/tables/common/config.js +1 -1
- package/dist/components/tables/common/pagin.cjs +60 -16
- package/dist/components/tables/common/pagin.d.ts +8 -0
- package/dist/components/tables/common/pagin.js +60 -16
- package/dist/components/tables/common/tooltip.cjs +101 -0
- package/dist/components/tables/common/tooltip.d.ts +6 -0
- package/dist/components/tables/common/tooltip.js +101 -0
- package/dist/components/tables/common/util.cjs +3 -3
- package/dist/components/tables/common/util.js +3 -3
- package/dist/components/tables/src/column.cjs +19 -15
- package/dist/components/tables/src/column.d.ts +3 -2
- package/dist/components/tables/src/column.js +17 -13
- package/dist/components/tables/src/columns3.cjs +16 -32
- package/dist/components/tables/src/columns3.js +15 -31
- package/dist/components/tables/src/data.cjs +3 -2
- package/dist/components/tables/src/data.d.ts +1 -0
- package/dist/components/tables/src/data.js +3 -2
- package/dist/components/tablespd/index.cjs +9 -0
- package/dist/components/tablespd/index.css +88 -0
- package/dist/components/tablespd/index.d.ts +4 -0
- package/dist/components/tablespd/index.js +9 -0
- package/dist/components/tablespd/index.scss +40 -0
- package/dist/components/tablespd/src/data.cjs +13 -0
- package/dist/components/tablespd/src/data.d.ts +18 -0
- package/dist/components/tablespd/src/data.js +13 -0
- package/dist/components/tablespd/src/index.cjs +4 -0
- package/dist/components/tablespd/src/index.js +4 -0
- package/dist/components/tablespd/src/index2.cjs +111 -0
- package/dist/components/tablespd/src/index2.js +111 -0
- package/dist/components/tablespd/style/index2.scss +4 -0
- package/dist/components/tablesv/src/column.cjs +4 -4
- package/dist/components/tablesv/src/column.js +3 -3
- package/dist/css/index.css +65 -2
- package/dist/css/list.css +12 -0
- package/dist/css/lists.css +2 -2
- package/dist/css/listsp.css +2 -2
- package/dist/css/listspd.css +99 -0
- package/dist/css/page.css +11 -0
- package/dist/css/tablespd.css +88 -0
- package/dist/directives/adjust/index.cjs +10 -6
- package/dist/directives/adjust/index.js +10 -6
- package/dist/directives/index.cjs +6 -4
- package/dist/directives/index.d.ts +1 -0
- package/dist/directives/index.js +4 -2
- package/dist/directives/sortable/index.cjs +45 -0
- package/dist/directives/{adjust/index copy 2.d.ts → sortable/index.d.ts} +1 -1
- package/dist/directives/sortable/index.js +45 -0
- package/dist/expand/{chunk-IEODUGVJ.cjs → chunk-2L4PC7LZ.cjs} +5 -0
- package/dist/expand/{chunk-XY53LCPN.js → chunk-RBGCE6BS.js} +5 -0
- package/dist/expand/components.cjs +5 -5
- package/dist/expand/components.js +1 -1
- package/dist/expand/config.cjs +2 -2
- package/dist/expand/config.js +1 -1
- package/dist/hooks/cssname/index.d.ts +2 -2
- package/dist/hooks/index.cjs +0 -1
- package/dist/hooks/index.js +1 -2
- package/dist/hooks/inherit/index.cjs +0 -8
- package/dist/hooks/inherit/index.d.ts +0 -1
- package/dist/hooks/inherit/index.js +0 -8
- package/dist/icons/index.json +1 -1
- package/dist/index.cjs +38 -32
- package/dist/index.css +65 -2
- package/dist/index.js +8 -2
- package/dist/utils/vues/getAttrValue.cjs +11 -0
- package/dist/utils/vues/getAttrValue.d.ts +3 -0
- package/dist/utils/vues/getAttrValue.js +11 -0
- package/dist/utils/vues/index.cjs +2 -0
- package/dist/utils/vues/index.d.ts +1 -0
- package/dist/utils/vues/index.js +2 -0
- package/package.json +4 -2
- package/dist/directives/adjust/index copy 3.d.ts +0 -6
- package/dist/directives/adjust/index copy 4.d.ts +0 -6
- package/dist/directives/adjust/index copy 5.d.ts +0 -6
- package/dist/directives/adjust/index copy 6.d.ts +0 -6
- package/dist/directives/adjust/index copy 7.d.ts +0 -6
- package/dist/directives/adjust/index copy 8.d.ts +0 -6
- package/dist/directives/adjust/index copy 9.d.ts +0 -6
- package/dist/directives/adjust/index copy.d.ts +0 -6
- /package/dist/components/{forms-item → forms-items}/index.css +0 -0
- /package/dist/components/{date-picker → keep-com}/index.css +0 -0
- /package/dist/css/{forms-item.css → forms-items.css} +0 -0
- /package/dist/css/{date-picker.css → keep-com.css} +0 -0
|
@@ -2,8 +2,10 @@ import { defineComponent, ref, computed, h, onMounted } from "vue";
|
|
|
2
2
|
import { setLabel, setSslot } from "./util.js";
|
|
3
3
|
import { setStyles } from "../../common/css.js";
|
|
4
4
|
import { useObjComponSelected, useHide } from "../../common/use.js";
|
|
5
|
-
import {
|
|
5
|
+
import { useCompons } from "../../common/compons.js";
|
|
6
6
|
import { useCssName } from "../../../hooks/cssname/index.js";
|
|
7
|
+
import { hideTooltip, showTooltip } from "../../tables/common/tooltip.js";
|
|
8
|
+
import "../../tables/common/config.js";
|
|
7
9
|
import { usePropsDefault, viewProps, getProps } from "../../../hooks/props-default/index.js";
|
|
8
10
|
import { name, dataProps, dataExpose, dataEmits } from "./data.js";
|
|
9
11
|
import "../../tables/common/img.js";
|
|
@@ -20,8 +22,9 @@ const _sfc_main = defineComponent({
|
|
|
20
22
|
setup(prs, { emit, slots }) {
|
|
21
23
|
const props = usePropsDefault(name, prs, dataProps);
|
|
22
24
|
viewProps(props, name);
|
|
23
|
-
const compons =
|
|
25
|
+
const compons = useCompons("list-compons", props.compons);
|
|
24
26
|
const cs = useCssName(name);
|
|
27
|
+
const refDom = ref();
|
|
25
28
|
const isfocus = ref(false);
|
|
26
29
|
const rowObj = ref();
|
|
27
30
|
const borderColor = computed(() => {
|
|
@@ -59,9 +62,9 @@ const _sfc_main = defineComponent({
|
|
|
59
62
|
lin = props.column;
|
|
60
63
|
is = true;
|
|
61
64
|
} else {
|
|
62
|
-
let k = (obj.
|
|
65
|
+
let k = (obj.colspan || 1) + lin;
|
|
63
66
|
if (k > props.column) {
|
|
64
|
-
lin = obj.
|
|
67
|
+
lin = obj.colspan || 1;
|
|
65
68
|
is = true;
|
|
66
69
|
} else {
|
|
67
70
|
lin = k;
|
|
@@ -97,9 +100,9 @@ const _sfc_main = defineComponent({
|
|
|
97
100
|
lin = props.column;
|
|
98
101
|
is = true;
|
|
99
102
|
} else {
|
|
100
|
-
let k = (obj.
|
|
103
|
+
let k = (obj.colspan || 1) + lin;
|
|
101
104
|
if (k > props.column) {
|
|
102
|
-
lin = obj.
|
|
105
|
+
lin = obj.colspan || 1;
|
|
103
106
|
is = true;
|
|
104
107
|
} else {
|
|
105
108
|
lin = k;
|
|
@@ -154,12 +157,13 @@ const _sfc_main = defineComponent({
|
|
|
154
157
|
obj.class ?? ""
|
|
155
158
|
].join(" "),
|
|
156
159
|
colspan: props.labelPosition == "top" ? setColspan(obj) : void 0,
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
160
|
+
rowspan: props.labelPosition == "top" ? void 0 : setRowspan(obj)
|
|
161
|
+
// onClick: (event: Event) => {
|
|
162
|
+
// isfocus.value = true;
|
|
163
|
+
// rowObj.value = obj;
|
|
164
|
+
// event.stopPropagation();
|
|
165
|
+
// return false;
|
|
166
|
+
// },
|
|
163
167
|
},
|
|
164
168
|
[
|
|
165
169
|
h(
|
|
@@ -185,6 +189,20 @@ const _sfc_main = defineComponent({
|
|
|
185
189
|
]
|
|
186
190
|
);
|
|
187
191
|
};
|
|
192
|
+
const handleCellMouseLeave = ($event) => {
|
|
193
|
+
hideTooltip($event);
|
|
194
|
+
};
|
|
195
|
+
const handleCellMouseEnter = ($event, obj) => {
|
|
196
|
+
const showOverflow = obj.showOverflow ?? props.showOverflow;
|
|
197
|
+
if (showOverflow) {
|
|
198
|
+
showTooltip(
|
|
199
|
+
$event,
|
|
200
|
+
refDom.value,
|
|
201
|
+
showOverflow,
|
|
202
|
+
props.lineClamp
|
|
203
|
+
);
|
|
204
|
+
}
|
|
205
|
+
};
|
|
188
206
|
const getChildrenValue = (obj, index) => {
|
|
189
207
|
if (obj.children) {
|
|
190
208
|
return [
|
|
@@ -206,7 +224,10 @@ const _sfc_main = defineComponent({
|
|
|
206
224
|
class: cs.z("table-value"),
|
|
207
225
|
style: {
|
|
208
226
|
textAlign: obj.align || props.align
|
|
209
|
-
}
|
|
227
|
+
},
|
|
228
|
+
title: obj.title,
|
|
229
|
+
onMouseenter: ($event) => handleCellMouseEnter($event, obj),
|
|
230
|
+
onMouseleave: handleCellMouseLeave
|
|
210
231
|
},
|
|
211
232
|
[
|
|
212
233
|
setSslot(
|
|
@@ -237,13 +258,13 @@ const _sfc_main = defineComponent({
|
|
|
237
258
|
obj.class ?? ""
|
|
238
259
|
].join(" "),
|
|
239
260
|
colspan: setColspan(obj),
|
|
240
|
-
rowspan: isRow
|
|
241
|
-
onClick: (event) => {
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
}
|
|
261
|
+
rowspan: setRowspan(obj, isRow)
|
|
262
|
+
// onClick: (event: Event) => {
|
|
263
|
+
// isfocus.value = true;
|
|
264
|
+
// rowObj.value = obj;
|
|
265
|
+
// event.stopPropagation();
|
|
266
|
+
// return false;
|
|
267
|
+
// },
|
|
247
268
|
},
|
|
248
269
|
[...getChildrenValue(obj, index)]
|
|
249
270
|
);
|
|
@@ -259,6 +280,7 @@ const _sfc_main = defineComponent({
|
|
|
259
280
|
"td",
|
|
260
281
|
{
|
|
261
282
|
colspan: setColspan(obj),
|
|
283
|
+
rowspan: setRowspan(obj),
|
|
262
284
|
class: cs.is("whole", obj.whole)
|
|
263
285
|
},
|
|
264
286
|
[
|
|
@@ -285,8 +307,8 @@ const _sfc_main = defineComponent({
|
|
|
285
307
|
if (["auto", "top"].includes(props.labelPosition)) {
|
|
286
308
|
if (obj.whole) {
|
|
287
309
|
return props.column;
|
|
288
|
-
} else if (obj.
|
|
289
|
-
return obj.
|
|
310
|
+
} else if (obj.colspan) {
|
|
311
|
+
return obj.colspan;
|
|
290
312
|
} else {
|
|
291
313
|
return "";
|
|
292
314
|
}
|
|
@@ -294,21 +316,51 @@ const _sfc_main = defineComponent({
|
|
|
294
316
|
const j = !obj.isdiv ? 0 : 1;
|
|
295
317
|
if (obj.whole) {
|
|
296
318
|
return (props.column - 1) * 2 + 1 + j;
|
|
297
|
-
} else if (obj.
|
|
298
|
-
return (obj.
|
|
319
|
+
} else if (obj.colspan) {
|
|
320
|
+
return (obj.colspan - 1) * 2 + 1 + j;
|
|
299
321
|
} else {
|
|
300
322
|
return 1 + j;
|
|
301
323
|
}
|
|
302
324
|
}
|
|
303
325
|
};
|
|
326
|
+
const setRowspan = (obj, isRow) => {
|
|
327
|
+
if (props.labelPosition == "top") {
|
|
328
|
+
const j = !obj.isdiv ? 0 : 1;
|
|
329
|
+
if (obj.rowspan) {
|
|
330
|
+
return (obj.rowspan - 1) * 2 + 1 + j;
|
|
331
|
+
} else if (isRow) {
|
|
332
|
+
return 2;
|
|
333
|
+
}
|
|
334
|
+
} else if (props.labelPosition == "auto") {
|
|
335
|
+
if (obj.rowspan) {
|
|
336
|
+
return obj.rowspan;
|
|
337
|
+
} else if (isRow) {
|
|
338
|
+
return 2;
|
|
339
|
+
}
|
|
340
|
+
} else {
|
|
341
|
+
if (obj.rowspan) {
|
|
342
|
+
return obj.rowspan;
|
|
343
|
+
} else if (isRow) {
|
|
344
|
+
return 2;
|
|
345
|
+
} else {
|
|
346
|
+
return 1;
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
return;
|
|
350
|
+
};
|
|
304
351
|
const renderValue = () => {
|
|
305
352
|
if (props.list && props.list.length > 0) {
|
|
306
353
|
return h(
|
|
307
354
|
"div",
|
|
308
355
|
{
|
|
356
|
+
ref: (el) => {
|
|
357
|
+
refDom.value = el;
|
|
358
|
+
},
|
|
309
359
|
class: cs.z("div"),
|
|
310
360
|
style: cs.vdo({
|
|
311
361
|
borderColor: borderColor.value,
|
|
362
|
+
rowMaxHeight: props.rowMaxHeight,
|
|
363
|
+
lineClamp: props.lineClamp,
|
|
312
364
|
interval: props.interval
|
|
313
365
|
})
|
|
314
366
|
// onClick(event: Event) {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
background-color: #eee;
|
|
23
23
|
}
|
|
24
24
|
.lists-list {
|
|
25
|
-
padding: 0 var(--lists-interval);
|
|
25
|
+
padding: 0 var(--lists-interval-horizon, var(--lists-interval));
|
|
26
26
|
}
|
|
27
27
|
.lists-list.is-absolute {
|
|
28
28
|
position: absolute;
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
}
|
|
38
38
|
.lists-list-item {
|
|
39
39
|
background-color: #fff;
|
|
40
|
-
margin: 0 var(--lists-interval);
|
|
40
|
+
margin: 0 var(--lists-interval-horizon, var(--lists-interval));
|
|
41
41
|
margin-bottom: calc(var(--lists-interval) * 2);
|
|
42
42
|
}
|
|
43
43
|
.lists-list-item.is-active {
|
|
@@ -10,7 +10,8 @@ $lists: 'lists';
|
|
|
10
10
|
flex-direction: column;
|
|
11
11
|
background-color: #eee;
|
|
12
12
|
&-list {
|
|
13
|
-
padding: 0
|
|
13
|
+
padding: 0
|
|
14
|
+
var(vdm('interval-horizon', $lists), var(vdm('interval', $lists)));
|
|
14
15
|
&.#{is('absolute')} {
|
|
15
16
|
position: absolute;
|
|
16
17
|
inset: 0;
|
|
@@ -26,7 +27,11 @@ $lists: 'lists';
|
|
|
26
27
|
margin-top: calc(var(vdm('interval', $lists)) * 2);
|
|
27
28
|
}
|
|
28
29
|
background-color: #fff;
|
|
29
|
-
margin: 0
|
|
30
|
+
margin: 0
|
|
31
|
+
var(
|
|
32
|
+
vdm('interval-horizon', $lists),
|
|
33
|
+
var(vdm('interval', $lists))
|
|
34
|
+
);
|
|
30
35
|
margin-bottom: calc(var(vdm('interval', $lists)) * 2);
|
|
31
36
|
&.#{is('active')} {
|
|
32
37
|
background-color: rgb(250, 235, 215);
|
|
@@ -109,18 +109,29 @@ const dataProps = {
|
|
|
109
109
|
type: Number,
|
|
110
110
|
default: 1
|
|
111
111
|
},
|
|
112
|
+
rowKey: {
|
|
113
|
+
type: String
|
|
114
|
+
},
|
|
112
115
|
/**
|
|
113
116
|
* @props { String } interval='6px'
|
|
114
117
|
* 查询模式的上下间距
|
|
115
118
|
*/
|
|
116
119
|
interval: {
|
|
117
120
|
type: String,
|
|
118
|
-
default: "
|
|
121
|
+
default: "8px"
|
|
122
|
+
},
|
|
123
|
+
/**
|
|
124
|
+
* @props { String } intervalHorizon
|
|
125
|
+
* 查询模式的左右间距
|
|
126
|
+
*/
|
|
127
|
+
intervalHorizon: {
|
|
128
|
+
type: String
|
|
119
129
|
}
|
|
120
130
|
};
|
|
121
131
|
const dataEmits = [
|
|
122
132
|
"sort-change",
|
|
123
133
|
"scroll-bottom",
|
|
134
|
+
"selection-change",
|
|
124
135
|
"scope-click",
|
|
125
136
|
"selection-list",
|
|
126
137
|
"list-events",
|
|
@@ -135,6 +135,9 @@ export declare const dataProps: {
|
|
|
135
135
|
type: NumberConstructor;
|
|
136
136
|
default: number;
|
|
137
137
|
};
|
|
138
|
+
rowKey: {
|
|
139
|
+
type: StringConstructor;
|
|
140
|
+
};
|
|
138
141
|
/**
|
|
139
142
|
* @props { String } interval='6px'
|
|
140
143
|
* 查询模式的上下间距
|
|
@@ -143,6 +146,13 @@ export declare const dataProps: {
|
|
|
143
146
|
type: StringConstructor;
|
|
144
147
|
default: string;
|
|
145
148
|
};
|
|
149
|
+
/**
|
|
150
|
+
* @props { String } intervalHorizon
|
|
151
|
+
* 查询模式的左右间距
|
|
152
|
+
*/
|
|
153
|
+
intervalHorizon: {
|
|
154
|
+
type: StringConstructor;
|
|
155
|
+
};
|
|
146
156
|
};
|
|
147
157
|
export type DataProps = ExtractPropTypes<typeof dataProps>;
|
|
148
158
|
/**
|
|
@@ -107,18 +107,29 @@ const dataProps = {
|
|
|
107
107
|
type: Number,
|
|
108
108
|
default: 1
|
|
109
109
|
},
|
|
110
|
+
rowKey: {
|
|
111
|
+
type: String
|
|
112
|
+
},
|
|
110
113
|
/**
|
|
111
114
|
* @props { String } interval='6px'
|
|
112
115
|
* 查询模式的上下间距
|
|
113
116
|
*/
|
|
114
117
|
interval: {
|
|
115
118
|
type: String,
|
|
116
|
-
default: "
|
|
119
|
+
default: "8px"
|
|
120
|
+
},
|
|
121
|
+
/**
|
|
122
|
+
* @props { String } intervalHorizon
|
|
123
|
+
* 查询模式的左右间距
|
|
124
|
+
*/
|
|
125
|
+
intervalHorizon: {
|
|
126
|
+
type: String
|
|
117
127
|
}
|
|
118
128
|
};
|
|
119
129
|
const dataEmits = [
|
|
120
130
|
"sort-change",
|
|
121
131
|
"scroll-bottom",
|
|
132
|
+
"selection-change",
|
|
122
133
|
"scope-click",
|
|
123
134
|
"selection-list",
|
|
124
135
|
"list-events",
|
|
@@ -152,7 +152,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
152
152
|
return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
153
153
|
class: vue.unref(cs).z(),
|
|
154
154
|
style: vue.unref(cs).vdo({
|
|
155
|
-
interval: vue.unref(props).interval
|
|
155
|
+
interval: vue.unref(props).interval,
|
|
156
|
+
intervalHorizon: vue.unref(props).intervalHorizon
|
|
156
157
|
})
|
|
157
158
|
}, vue.unref(attrs).root), [
|
|
158
159
|
vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
|
|
@@ -172,6 +173,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
172
173
|
vue.unref(cs).is("active", rows.value === item),
|
|
173
174
|
vue.unref(cs).is("selected", selections.value.includes(item))
|
|
174
175
|
]),
|
|
176
|
+
key: vue.unref(props).rowKey ? item[vue.unref(props).rowKey] : index2,
|
|
175
177
|
style: vue.normalizeStyle(setStyles(item)),
|
|
176
178
|
onClick: ($event) => onClick(item, index2)
|
|
177
179
|
}, [
|
|
@@ -199,7 +201,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
199
201
|
return {
|
|
200
202
|
name: k,
|
|
201
203
|
fn: vue.withCtx((scope) => [
|
|
202
|
-
vue.renderSlot(_ctx.$slots, k, vue.mergeProps({ ref_for: true }, scope))
|
|
204
|
+
vue.renderSlot(_ctx.$slots, k, vue.mergeProps({ ref_for: true }, scope || {}))
|
|
203
205
|
])
|
|
204
206
|
};
|
|
205
207
|
})
|
|
@@ -222,7 +224,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
222
224
|
return {
|
|
223
225
|
name: k,
|
|
224
226
|
fn: vue.withCtx((scope) => [
|
|
225
|
-
vue.renderSlot(_ctx.$slots, k, vue.mergeProps({ ref_for: true }, scope))
|
|
227
|
+
vue.renderSlot(_ctx.$slots, k, vue.mergeProps({ ref_for: true }, scope || {}))
|
|
226
228
|
])
|
|
227
229
|
};
|
|
228
230
|
})
|
|
@@ -245,7 +247,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
245
247
|
return {
|
|
246
248
|
name: k,
|
|
247
249
|
fn: vue.withCtx((scope) => [
|
|
248
|
-
vue.renderSlot(_ctx.$slots, k, vue.mergeProps({ ref_for: true }, scope))
|
|
250
|
+
vue.renderSlot(_ctx.$slots, k, vue.mergeProps({ ref_for: true }, scope || {}))
|
|
249
251
|
])
|
|
250
252
|
};
|
|
251
253
|
})
|
|
@@ -256,7 +258,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
256
258
|
]), 1024)
|
|
257
259
|
])
|
|
258
260
|
], 14, _hoisted_1);
|
|
259
|
-
}),
|
|
261
|
+
}), 128)) : vue.renderSlot(_ctx.$slots, vue.unref(data.dataSlot).noData, { key: 1 }, () => [
|
|
260
262
|
vue.createVNode(vue.unref(index$6.NoData))
|
|
261
263
|
])
|
|
262
264
|
], 6)), [
|
|
@@ -150,7 +150,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
150
150
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
151
151
|
class: unref(cs).z(),
|
|
152
152
|
style: unref(cs).vdo({
|
|
153
|
-
interval: unref(props).interval
|
|
153
|
+
interval: unref(props).interval,
|
|
154
|
+
intervalHorizon: unref(props).intervalHorizon
|
|
154
155
|
})
|
|
155
156
|
}, unref(attrs).root), [
|
|
156
157
|
withDirectives((openBlock(), createElementBlock("div", {
|
|
@@ -170,6 +171,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
170
171
|
unref(cs).is("active", rows.value === item),
|
|
171
172
|
unref(cs).is("selected", selections.value.includes(item))
|
|
172
173
|
]),
|
|
174
|
+
key: unref(props).rowKey ? item[unref(props).rowKey] : index,
|
|
173
175
|
style: normalizeStyle(setStyles(item)),
|
|
174
176
|
onClick: ($event) => onClick(item, index)
|
|
175
177
|
}, [
|
|
@@ -197,7 +199,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
197
199
|
return {
|
|
198
200
|
name: k,
|
|
199
201
|
fn: withCtx((scope) => [
|
|
200
|
-
renderSlot(_ctx.$slots, k, mergeProps({ ref_for: true }, scope))
|
|
202
|
+
renderSlot(_ctx.$slots, k, mergeProps({ ref_for: true }, scope || {}))
|
|
201
203
|
])
|
|
202
204
|
};
|
|
203
205
|
})
|
|
@@ -220,7 +222,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
220
222
|
return {
|
|
221
223
|
name: k,
|
|
222
224
|
fn: withCtx((scope) => [
|
|
223
|
-
renderSlot(_ctx.$slots, k, mergeProps({ ref_for: true }, scope))
|
|
225
|
+
renderSlot(_ctx.$slots, k, mergeProps({ ref_for: true }, scope || {}))
|
|
224
226
|
])
|
|
225
227
|
};
|
|
226
228
|
})
|
|
@@ -243,7 +245,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
243
245
|
return {
|
|
244
246
|
name: k,
|
|
245
247
|
fn: withCtx((scope) => [
|
|
246
|
-
renderSlot(_ctx.$slots, k, mergeProps({ ref_for: true }, scope))
|
|
248
|
+
renderSlot(_ctx.$slots, k, mergeProps({ ref_for: true }, scope || {}))
|
|
247
249
|
])
|
|
248
250
|
};
|
|
249
251
|
})
|
|
@@ -254,7 +256,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
254
256
|
]), 1024)
|
|
255
257
|
])
|
|
256
258
|
], 14, _hoisted_1);
|
|
257
|
-
}),
|
|
259
|
+
}), 128)) : renderSlot(_ctx.$slots, unref(dataSlot).noData, { key: 1 }, () => [
|
|
258
260
|
createVNode(unref(NoData))
|
|
259
261
|
])
|
|
260
262
|
], 6)), [
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
background-color: #eee;
|
|
23
23
|
}
|
|
24
24
|
.lists-list {
|
|
25
|
-
padding: 0 var(--lists-interval);
|
|
25
|
+
padding: 0 var(--lists-interval-horizon, var(--lists-interval));
|
|
26
26
|
}
|
|
27
27
|
.lists-list.is-absolute {
|
|
28
28
|
position: absolute;
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
}
|
|
38
38
|
.lists-list-item {
|
|
39
39
|
background-color: #fff;
|
|
40
|
-
margin: 0 var(--lists-interval);
|
|
40
|
+
margin: 0 var(--lists-interval-horizon, var(--lists-interval));
|
|
41
41
|
margin-bottom: calc(var(--lists-interval) * 2);
|
|
42
42
|
}
|
|
43
43
|
.lists-list-item.is-active {
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { ExtractPublicPropTypes } from 'vue';
|
|
2
2
|
/**
|
|
3
|
-
* @title {
|
|
4
|
-
* @text 目前完全继承 element-plus 中 el-tables-pagin
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* @title {h3}
|
|
3
|
+
* @title {h3} listsp
|
|
8
4
|
*/
|
|
9
5
|
export declare const name = "listsp";
|
|
10
6
|
export declare const dataProps: {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
;/* empty css */
|
|
4
|
+
require("./src/index.cjs");
|
|
5
|
+
const withInstall = require("../../utils/vues/withInstall.cjs");
|
|
6
|
+
const index_vue_vue_type_script_setup_true_lang = require("./src/index2.cjs");
|
|
7
|
+
const Listspd = withInstall.withInstall(index_vue_vue_type_script_setup_true_lang.default, "Listspd");
|
|
8
|
+
exports.Listspd = Listspd;
|
|
9
|
+
exports.default = Listspd;
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--on: rgb(91, 189, 246);
|
|
3
|
+
--color-primary: #409eff;
|
|
4
|
+
--bag-primary: #409eff;
|
|
5
|
+
--bag-primary-text: #fff;
|
|
6
|
+
--border: #eee;
|
|
7
|
+
--layout-panel-gap: 10px;
|
|
8
|
+
--layout-panel-padding: 20px;
|
|
9
|
+
--layout-form-item-padding-right: var(
|
|
10
|
+
--layout-panel-gap
|
|
11
|
+
);
|
|
12
|
+
--g-main-bg: var(--bg-color-page);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.lists {
|
|
16
|
+
width: 100%;
|
|
17
|
+
min-height: 100px;
|
|
18
|
+
position: relative;
|
|
19
|
+
flex: 1;
|
|
20
|
+
display: flex;
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
background-color: #eee;
|
|
23
|
+
}
|
|
24
|
+
.lists-list {
|
|
25
|
+
padding: 0 var(--lists-interval-horizon, var(--lists-interval));
|
|
26
|
+
}
|
|
27
|
+
.lists-list.is-absolute {
|
|
28
|
+
position: absolute;
|
|
29
|
+
inset: 0;
|
|
30
|
+
overflow-y: auto;
|
|
31
|
+
}
|
|
32
|
+
.lists-list--column .lists-list-item {
|
|
33
|
+
display: inline-block;
|
|
34
|
+
}
|
|
35
|
+
.lists-list-item:first-child {
|
|
36
|
+
margin-top: calc(var(--lists-interval) * 2);
|
|
37
|
+
}
|
|
38
|
+
.lists-list-item {
|
|
39
|
+
background-color: #fff;
|
|
40
|
+
margin: 0 var(--lists-interval-horizon, var(--lists-interval));
|
|
41
|
+
margin-bottom: calc(var(--lists-interval) * 2);
|
|
42
|
+
}
|
|
43
|
+
.lists-list-item.is-active {
|
|
44
|
+
background-color: rgb(250, 235, 215);
|
|
45
|
+
}
|
|
46
|
+
.lists-list-item.is-selected {
|
|
47
|
+
background-color: rgb(215, 250, 224);
|
|
48
|
+
}
|
|
49
|
+
.lists-list-item .el-card {
|
|
50
|
+
background-color: transparent;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.paging {
|
|
54
|
+
width: 100%;
|
|
55
|
+
padding: 10px;
|
|
56
|
+
}
|
|
57
|
+
.paging-pagination {
|
|
58
|
+
width: 100%;
|
|
59
|
+
}
|
|
60
|
+
.paging-slot {
|
|
61
|
+
padding-left: 10px;
|
|
62
|
+
font-size: 14px;
|
|
63
|
+
font-weight: 400;
|
|
64
|
+
color: #9b9b9b;
|
|
65
|
+
white-space: pre-wrap;
|
|
66
|
+
}
|
|
67
|
+
.paging-slot > span {
|
|
68
|
+
margin-right: 10px;
|
|
69
|
+
white-space: nowrap;
|
|
70
|
+
}
|
|
71
|
+
.paging .el-pagination__total {
|
|
72
|
+
font-size: 14px;
|
|
73
|
+
font-weight: 400;
|
|
74
|
+
color: #9b9b9b;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.listspd {
|
|
78
|
+
width: 100%;
|
|
79
|
+
flex: 1;
|
|
80
|
+
display: flex;
|
|
81
|
+
flex-direction: column;
|
|
82
|
+
}
|
|
83
|
+
.listspd-main {
|
|
84
|
+
display: flex;
|
|
85
|
+
flex-direction: column;
|
|
86
|
+
flex: 1;
|
|
87
|
+
width: 100%;
|
|
88
|
+
}
|
|
89
|
+
.listspd-main.is-scroll .v-scroll-add {
|
|
90
|
+
text-align: center;
|
|
91
|
+
padding: 10px;
|
|
92
|
+
color: #999;
|
|
93
|
+
}
|
|
94
|
+
.listspd-paginat {
|
|
95
|
+
overflow: hidden;
|
|
96
|
+
}
|
|
97
|
+
.listspd-paginat .el-pagination {
|
|
98
|
+
justify-content: flex-end;
|
|
99
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
@use '../scss/common.scss' as *;
|
|
2
|
+
@use '../lists/index.scss' as *;
|
|
3
|
+
@use '../paging/index.scss' as *;
|
|
4
|
+
$listspd: 'listspd';
|
|
5
|
+
@include b($listspd) {
|
|
6
|
+
width: 100%;
|
|
7
|
+
flex: 1;
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
|
|
11
|
+
&-main {
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
flex: 1;
|
|
15
|
+
width: 100%;
|
|
16
|
+
&.#{is('scroll')} {
|
|
17
|
+
.v-scroll-add {
|
|
18
|
+
text-align: center;
|
|
19
|
+
padding: 10px;
|
|
20
|
+
color: #999;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
&-paginat {
|
|
25
|
+
overflow: hidden;
|
|
26
|
+
.#{e()}pagination {
|
|
27
|
+
justify-content: flex-end;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const buildProps = require("../../../utils/vues/buildProps.cjs");
|
|
4
|
+
const name = "listspd";
|
|
5
|
+
const dataProps = buildProps.buildProps({});
|
|
6
|
+
const dataEmits = [];
|
|
7
|
+
const dataSlot = {};
|
|
8
|
+
const dataExpose = {};
|
|
9
|
+
exports.dataEmits = dataEmits;
|
|
10
|
+
exports.dataExpose = dataExpose;
|
|
11
|
+
exports.dataProps = dataProps;
|
|
12
|
+
exports.dataSlot = dataSlot;
|
|
13
|
+
exports.name = name;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ExtractPublicPropTypes } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* @title {h3} listspd
|
|
4
|
+
*/
|
|
5
|
+
export declare const name = "listspd";
|
|
6
|
+
export declare const dataProps: {};
|
|
7
|
+
export type DataProps = ExtractPublicPropTypes<typeof dataProps>;
|
|
8
|
+
export declare const dataEmits: never[];
|
|
9
|
+
export type DataEmits = typeof dataEmits;
|
|
10
|
+
export declare const dataSlot: {};
|
|
11
|
+
/**
|
|
12
|
+
* @expose refEl 获取当前组件在element-plus中暴露的方法
|
|
13
|
+
*/
|
|
14
|
+
export declare const dataExpose: {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { buildProps } from "../../../utils/vues/buildProps.js";
|
|
2
|
+
const name = "listspd";
|
|
3
|
+
const dataProps = buildProps({});
|
|
4
|
+
const dataEmits = [];
|
|
5
|
+
const dataSlot = {};
|
|
6
|
+
const dataExpose = {};
|
|
7
|
+
export {
|
|
8
|
+
dataEmits,
|
|
9
|
+
dataExpose,
|
|
10
|
+
dataProps,
|
|
11
|
+
dataSlot,
|
|
12
|
+
name
|
|
13
|
+
};
|