meixioacomponent 0.2.70 → 0.2.73
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/lib/meixioacomponent.common.js +133 -120
- package/lib/meixioacomponent.umd.js +133 -120
- package/lib/meixioacomponent.umd.min.js +16 -16
- package/package.json +1 -1
- package/packages/components/proPageTable/oa_pro_table.vue +21 -18
- package/packages/components/proPageTable/oa_pro_table_skeleton.vue +12 -2
package/package.json
CHANGED
|
@@ -72,8 +72,9 @@
|
|
|
72
72
|
<!-- 加载骨架屏 -->
|
|
73
73
|
<oa_pro_table_skeletonVue
|
|
74
74
|
slot="append"
|
|
75
|
+
v-if="loading"
|
|
76
|
+
:row="showTableHeader.length"
|
|
75
77
|
:height="`${tableHeight}px`"
|
|
76
|
-
v-show="loading"
|
|
77
78
|
></oa_pro_table_skeletonVue>
|
|
78
79
|
<span></span>
|
|
79
80
|
</template>
|
|
@@ -452,20 +453,21 @@ export default {
|
|
|
452
453
|
cellMouseEnter(row, column, cell, event) {
|
|
453
454
|
let content = row[`${column.property}`];
|
|
454
455
|
this.tooltip.show = false;
|
|
455
|
-
if (typeof content ==
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
456
|
+
if (typeof content == "number" || typeof content == "string") {
|
|
457
|
+
const { tooltip } = this;
|
|
458
|
+
let style = event.target;
|
|
459
|
+
let position = style.getBoundingClientRect();
|
|
460
|
+
const { top, left } = position;
|
|
461
|
+
const { clientWidth, clientHeight } = style;
|
|
462
|
+
tooltip.width = clientWidth;
|
|
463
|
+
tooltip.height = clientHeight;
|
|
464
|
+
tooltip.top = top;
|
|
465
|
+
tooltip.left = left;
|
|
466
|
+
tooltip.content = content;
|
|
467
|
+
this.$nextTick(() => {
|
|
468
|
+
tooltip.show = true;
|
|
469
|
+
});
|
|
470
|
+
}
|
|
469
471
|
},
|
|
470
472
|
|
|
471
473
|
cellMouseLeave() {
|
|
@@ -654,17 +656,18 @@ export default {
|
|
|
654
656
|
this.loading = true;
|
|
655
657
|
this.defaultSvg = false;
|
|
656
658
|
this.cleanCheckValue();
|
|
659
|
+
clearTimeout(this.triggerDown);
|
|
657
660
|
if (init) {
|
|
658
661
|
this.$props.pageProps[this.$props.pageConfig.page] = 1;
|
|
659
662
|
}
|
|
660
663
|
|
|
661
664
|
let screenResult = this.returnProScreenResult();
|
|
662
|
-
this.$props.httpRequire(screenResult).then((res
|
|
663
|
-
this.setTableData(res
|
|
665
|
+
this.$props.httpRequire(screenResult).then((res) => {
|
|
666
|
+
this.setTableData(res);
|
|
664
667
|
});
|
|
665
668
|
},
|
|
666
669
|
// 设置表格数据
|
|
667
|
-
setTableData(data, immediately =
|
|
670
|
+
setTableData(data, immediately = true) {
|
|
668
671
|
this.tableData = [];
|
|
669
672
|
this.tableData = data;
|
|
670
673
|
if (immediately) {
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
2
|
+
<div
|
|
3
|
+
class="table-skeleton-wrap"
|
|
4
|
+
:style="{ height: `calc(${height} - 50px)` }"
|
|
5
|
+
>
|
|
3
6
|
<baseSkeletonVue
|
|
7
|
+
:key="index"
|
|
4
8
|
:shape="`rect`"
|
|
5
|
-
|
|
9
|
+
v-for="index in row"
|
|
10
|
+
:lines="[3.3, 10, 10, 10, 10, 10, 10, 10, 10, 10, 6.6]"
|
|
6
11
|
></baseSkeletonVue>
|
|
7
12
|
</div>
|
|
8
13
|
</template>
|
|
@@ -14,6 +19,7 @@ export default {
|
|
|
14
19
|
return {};
|
|
15
20
|
},
|
|
16
21
|
props: {
|
|
22
|
+
row: {},
|
|
17
23
|
height: {
|
|
18
24
|
require: true,
|
|
19
25
|
},
|
|
@@ -29,5 +35,9 @@ export default {
|
|
|
29
35
|
.table-skeleton-wrap {
|
|
30
36
|
width: 100%;
|
|
31
37
|
height: auto;
|
|
38
|
+
display: flex;
|
|
39
|
+
flex-flow: row nowrap;
|
|
40
|
+
align-items: flex-start;
|
|
41
|
+
justify-content: space-between;
|
|
32
42
|
}
|
|
33
43
|
</style>
|