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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meixioacomponent",
3
- "version": "0.2.70",
3
+ "version": "0.2.73",
4
4
  "private": false,
5
5
  "author": "YuRi",
6
6
  "main": "lib/meixioacomponent.umd.min.js",
@@ -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 == Boolean || typeof content == Object || !content)
456
- return;
457
- const { tooltip } = this;
458
- let style = event.target;
459
- let position = style.getBoundingClientRect();
460
- tooltip.width = style.clientWidth;
461
- tooltip.height = style.clientHeight;
462
- tooltip.top = position.top;
463
- tooltip.left = position.left;
464
- tooltip.content = content;
465
-
466
- this.$nextTick(() => {
467
- tooltip.show = true;
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, immediately = false) => {
663
- this.setTableData(res, immediately);
665
+ this.$props.httpRequire(screenResult).then((res) => {
666
+ this.setTableData(res);
664
667
  });
665
668
  },
666
669
  // 设置表格数据
667
- setTableData(data, immediately = false) {
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 class="table-skeleton-wrap" :style="{ height: height }">
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
- :lines="[5, 2, 8, 7, 3, 1, 8, 10, 4, 9]"
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>