n20-common-lib 1.2.16 → 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.16",
3
+ "version": "1.2.17",
4
4
  "private": false,
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -3,8 +3,10 @@ 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
- let _el = el.querySelector('.el-input__inner') || el
9
+ let _el = _input || el
8
10
  if (!el.$tooltipTitleOverflow || _el.clientWidth < _el.scrollWidth) {
9
11
  tip.title = el.$tooltipTitle
10
12
  tip.$refs['title-pop'].referenceElm = el