n20-common-lib 1.2.14 → 1.2.17

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": "n20-common-lib",
3
- "version": "1.2.14",
3
+ "version": "1.2.17",
4
4
  "private": false,
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -10,11 +10,23 @@
10
10
  height: 27px;
11
11
  line-height: 26px;
12
12
  padding: 0 10px;
13
- &.is-disabled {
14
- cursor: no-drop;
15
- }
16
13
  &.is-active {
17
14
  font-weight: 500;
15
+ &::after {
16
+ content: '';
17
+ position: absolute;
18
+ left: 0;
19
+ bottom: 0;
20
+ height: 2px;
21
+ width: 100%;
22
+ background-color: $--color-primary;
23
+ }
24
+ }
25
+ &.is-disabled {
26
+ cursor: no-drop;
27
+ &::after {
28
+ background-color: $--color-text-placeholder;
29
+ }
18
30
  }
19
31
  }
20
32
 
@@ -33,7 +45,6 @@
33
45
  }
34
46
  }
35
47
  .el-tabs__active-bar {
36
- transition: none;
48
+ display: none;
37
49
  }
38
-
39
50
  }
@@ -46,7 +46,7 @@ export default {
46
46
  },
47
47
  waitTime: {
48
48
  type: Number,
49
- default: 10000
49
+ default: 5000
50
50
  }
51
51
  },
52
52
  data() {
@@ -128,6 +128,10 @@ export default {
128
128
 
129
129
  downloadBlob(data, this.fileName)
130
130
  this.pgsV = false
131
+ let confirmBtn = document.querySelector(
132
+ '.ex-waitime-msg .el-button--primary'
133
+ )
134
+ confirmBtn && confirmBtn.click()
131
135
  })
132
136
  },
133
137
  // 导出取消
@@ -159,7 +163,7 @@ export default {
159
163
  title: '提示',
160
164
  message: '您的数据导出时间可能会比较长,是否继续导出?',
161
165
  type: 'warning',
162
- customClass: 'question',
166
+ customClass: 'question ex-waitime-msg',
163
167
  confirmButtonText: '继续导出',
164
168
  cancelButtonText: '取消'
165
169
  }).catch(() => {
@@ -3,8 +3,11 @@ import Tooltip from './tooltip.vue'
3
3
  let timer = undefined
4
4
 
5
5
  function tipShow(el, tip) {
6
+ let _input = el.querySelector('.el-input__inner')
7
+ if (_input && !el.$tooltipTitle) el.$tooltipTitle = _input.value
6
8
  if (el.$tooltipTitle) {
7
- if (!el.$tooltipTitleOverflow || el.clientWidth < el.scrollWidth) {
9
+ let _el = _input || el
10
+ if (!el.$tooltipTitleOverflow || _el.clientWidth < _el.scrollWidth) {
8
11
  tip.title = el.$tooltipTitle
9
12
  tip.$refs['title-pop'].referenceElm = el
10
13
  tip.$refs['title-pop'].doDestroy()
@@ -22,6 +25,7 @@ function tipShow(el, tip) {
22
25
  }
23
26
  function tipHide(el, tip) {
24
27
  tip.visible = false
28
+ clearInterval(timer)
25
29
  }
26
30
 
27
31
  const TitleDirective = {}
@@ -57,6 +61,7 @@ TitleDirective.install = (Vue) => {
57
61
  el.$tooltipHide()
58
62
  el.removeEventListener('mouseenter', el.$tooltipShow)
59
63
  el.removeEventListener('mouseleave', el.$tooltipHide)
64
+ clearInterval(timer)
60
65
  }
61
66
  })
62
67
  }