@varlet/ui 1.25.0-alpha.1642582155449 → 1.25.0
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/es/list/List.js +1 -6
- package/es/snackbar/style/index.js +1 -1
- package/es/snackbar/style/less.js +1 -1
- package/es/utils/elements.js +0 -7
- package/lib/list/List.js +0 -5
- package/lib/snackbar/style/index.js +1 -1
- package/lib/snackbar/style/less.js +1 -1
- package/lib/utils/elements.js +0 -9
- package/package.json +4 -4
- package/umd/varlet.js +3 -3
package/es/list/List.js
CHANGED
|
@@ -5,7 +5,7 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar
|
|
|
5
5
|
import VarLoading from '../loading';
|
|
6
6
|
import Ripple from '../ripple';
|
|
7
7
|
import { defineComponent, onMounted, onUnmounted, ref, nextTick } from 'vue';
|
|
8
|
-
import { getParentScroller,
|
|
8
|
+
import { getParentScroller, toPxNum } from '../utils/elements';
|
|
9
9
|
import { props } from './props';
|
|
10
10
|
import { isNumber, dt } from '../utils/shared';
|
|
11
11
|
import { pack } from '../locale';
|
|
@@ -99,11 +99,6 @@ export default defineComponent({
|
|
|
99
99
|
var check = /*#__PURE__*/function () {
|
|
100
100
|
var _ref = _asyncToGenerator(function* () {
|
|
101
101
|
yield nextTick();
|
|
102
|
-
|
|
103
|
-
if (isHidden(listEl.value)) {
|
|
104
|
-
return;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
102
|
var {
|
|
108
103
|
loading,
|
|
109
104
|
finished,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import '../../styles/common.css'
|
|
2
|
+
import '../SnackbarSfc.css'
|
|
2
3
|
import '../../styles/elevation.css'
|
|
3
4
|
import '../../loading/loading.css'
|
|
4
5
|
import '../../button/button.css'
|
|
5
6
|
import '../../icon/icon.css'
|
|
6
7
|
import '../snackbar.css'
|
|
7
8
|
import '../coreSfc.css'
|
|
8
|
-
import '../SnackbarSfc.css'
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import '../../styles/common.less'
|
|
2
|
+
import '../SnackbarSfc.less'
|
|
2
3
|
import '../../styles/elevation.less'
|
|
3
4
|
import '../../loading/loading.less'
|
|
4
5
|
import '../../button/button.less'
|
|
5
6
|
import '../../icon/icon.less'
|
|
6
7
|
import '../snackbar.less'
|
|
7
8
|
import '../coreSfc.less'
|
|
8
|
-
import '../SnackbarSfc.less'
|
package/es/utils/elements.js
CHANGED
|
@@ -54,13 +54,6 @@ export function getTranslate(el) {
|
|
|
54
54
|
} = window.getComputedStyle(el);
|
|
55
55
|
return +transform.slice(transform.lastIndexOf(',') + 2, transform.length - 1);
|
|
56
56
|
}
|
|
57
|
-
export function isHidden(el) {
|
|
58
|
-
var {
|
|
59
|
-
width,
|
|
60
|
-
height
|
|
61
|
-
} = el.getBoundingClientRect();
|
|
62
|
-
return width === 0 && height === 0;
|
|
63
|
-
}
|
|
64
57
|
export function getParentScroller(el) {
|
|
65
58
|
var element = el;
|
|
66
59
|
|
package/lib/list/List.js
CHANGED
|
@@ -114,11 +114,6 @@ var _default = (0, _vue.defineComponent)({
|
|
|
114
114
|
var check = /*#__PURE__*/function () {
|
|
115
115
|
var _ref = _asyncToGenerator(function* () {
|
|
116
116
|
yield (0, _vue.nextTick)();
|
|
117
|
-
|
|
118
|
-
if ((0, _elements.isHidden)(listEl.value)) {
|
|
119
|
-
return;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
117
|
var {
|
|
123
118
|
loading,
|
|
124
119
|
finished,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
require('../../styles/common.css')
|
|
2
|
-
require('../SnackbarSfc.css')
|
|
3
2
|
require('../../styles/elevation.css')
|
|
4
3
|
require('../../loading/loading.css')
|
|
5
4
|
require('../../button/button.css')
|
|
6
5
|
require('../../icon/icon.css')
|
|
7
6
|
require('../snackbar.css')
|
|
8
7
|
require('../coreSfc.css')
|
|
8
|
+
require('../SnackbarSfc.css')
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
require('../../styles/common.less')
|
|
2
|
-
require('../SnackbarSfc.less')
|
|
3
2
|
require('../../styles/elevation.less')
|
|
4
3
|
require('../../loading/loading.less')
|
|
5
4
|
require('../../button/button.less')
|
|
6
5
|
require('../../icon/icon.less')
|
|
7
6
|
require('../snackbar.less')
|
|
8
7
|
require('../coreSfc.less')
|
|
8
|
+
require('../SnackbarSfc.less')
|
package/lib/utils/elements.js
CHANGED
|
@@ -12,7 +12,6 @@ exports.getScrollTop = getScrollTop;
|
|
|
12
12
|
exports.getTop = getTop;
|
|
13
13
|
exports.getTranslate = getTranslate;
|
|
14
14
|
exports.inViewport = inViewport;
|
|
15
|
-
exports.isHidden = isHidden;
|
|
16
15
|
exports.isVw = exports.isVh = exports.isRem = exports.isPx = exports.isPercent = void 0;
|
|
17
16
|
exports.nextTickFrame = nextTickFrame;
|
|
18
17
|
exports.requestAnimationFrame = requestAnimationFrame;
|
|
@@ -81,14 +80,6 @@ function getTranslate(el) {
|
|
|
81
80
|
return +transform.slice(transform.lastIndexOf(',') + 2, transform.length - 1);
|
|
82
81
|
}
|
|
83
82
|
|
|
84
|
-
function isHidden(el) {
|
|
85
|
-
var {
|
|
86
|
-
width,
|
|
87
|
-
height
|
|
88
|
-
} = el.getBoundingClientRect();
|
|
89
|
-
return width === 0 && height === 0;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
83
|
function getParentScroller(el) {
|
|
93
84
|
var element = el;
|
|
94
85
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@varlet/ui",
|
|
3
|
-
"version": "1.25.0
|
|
3
|
+
"version": "1.25.0",
|
|
4
4
|
"description": "A material like components library",
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -39,13 +39,13 @@
|
|
|
39
39
|
},
|
|
40
40
|
"gitHead": "ee9c3866bedad96c86365b0f9888a3a6bb781b1f",
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@varlet/icons": "1.25.0
|
|
42
|
+
"@varlet/icons": "1.25.0",
|
|
43
43
|
"dayjs": "^1.10.4",
|
|
44
44
|
"decimal.js": "^10.2.1"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@varlet/cli": "1.25.0
|
|
48
|
-
"@varlet/touch-emulator": "1.25.0
|
|
47
|
+
"@varlet/cli": "1.25.0",
|
|
48
|
+
"@varlet/touch-emulator": "1.25.0",
|
|
49
49
|
"@vue/test-utils": "2.0.0-rc.6",
|
|
50
50
|
"@vue/runtime-core": "^3.2.16",
|
|
51
51
|
"typescript": "^4.4.4",
|