@varlet/ui 1.27.15 → 1.27.16
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/slider/Slider.js +3 -3
- package/es/snackbar/snackbar.css +1 -1
- package/es/snackbar/snackbar.less +0 -4
- package/es/style.css +1 -1
- package/es/utils/shared.js +1 -9
- package/es/varlet.esm.js +6 -14
- package/highlight/web-types.json +1 -1
- package/lib/slider/Slider.js +2 -2
- package/lib/snackbar/snackbar.css +1 -1
- package/lib/snackbar/snackbar.less +0 -4
- package/lib/snackbar/style/index.js +1 -1
- package/lib/snackbar/style/less.js +1 -1
- package/lib/style.css +1 -1
- package/lib/utils/shared.js +4 -14
- package/package.json +5 -5
- package/types/button.d.ts +2 -2
- package/types/card.d.ts +2 -2
- package/types/cell.d.ts +2 -2
- package/types/icon.d.ts +2 -2
- package/types/list.d.ts +2 -2
- package/types/varComponent.d.ts +5 -0
- package/umd/varlet.js +4 -4
package/lib/utils/shared.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
|
-
exports.
|
|
4
|
+
exports.linear = exports.isHTMLSupportVideo = exports.isHTMLSupportImage = exports.easeInOutCubic = exports.dt = exports.cubic = exports.createCache = void 0;
|
|
5
|
+
|
|
6
|
+
var _shared = require("@varlet/shared");
|
|
5
7
|
|
|
6
8
|
var isHTMLSupportImage = val => {
|
|
7
9
|
if (val == null) {
|
|
@@ -23,18 +25,6 @@ var isHTMLSupportVideo = val => {
|
|
|
23
25
|
|
|
24
26
|
exports.isHTMLSupportVideo = isHTMLSupportVideo;
|
|
25
27
|
|
|
26
|
-
var removeItem = (arr, item) => {
|
|
27
|
-
if (arr.length) {
|
|
28
|
-
var index = arr.indexOf(item);
|
|
29
|
-
|
|
30
|
-
if (index > -1) {
|
|
31
|
-
return arr.splice(index, 1);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
exports.removeItem = removeItem;
|
|
37
|
-
|
|
38
28
|
var createCache = max => {
|
|
39
29
|
var cache = [];
|
|
40
30
|
return {
|
|
@@ -54,7 +44,7 @@ var createCache = max => {
|
|
|
54
44
|
},
|
|
55
45
|
|
|
56
46
|
remove(key) {
|
|
57
|
-
this.has(key) && removeItem(this.cache, key);
|
|
47
|
+
this.has(key) && (0, _shared.removeItem)(this.cache, key);
|
|
58
48
|
},
|
|
59
49
|
|
|
60
50
|
clear() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@varlet/ui",
|
|
3
|
-
"version": "1.27.
|
|
3
|
+
"version": "1.27.16",
|
|
4
4
|
"description": "A material like components library",
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -44,14 +44,14 @@
|
|
|
44
44
|
"vue": "^3.2.0"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@varlet/icons": "1.27.
|
|
48
|
-
"@varlet/shared": "1.27.
|
|
47
|
+
"@varlet/icons": "1.27.16",
|
|
48
|
+
"@varlet/shared": "1.27.16",
|
|
49
49
|
"dayjs": "^1.10.4",
|
|
50
50
|
"decimal.js": "^10.2.1"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@varlet/cli": "1.27.
|
|
54
|
-
"@varlet/touch-emulator": "1.27.
|
|
53
|
+
"@varlet/cli": "1.27.16",
|
|
54
|
+
"@varlet/touch-emulator": "1.27.16",
|
|
55
55
|
"@vue/runtime-core": "3.2.25",
|
|
56
56
|
"@vue/test-utils": "2.0.0-rc.6",
|
|
57
57
|
"clipboard": "^2.0.6",
|
package/types/button.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { VarComponent } from './varComponent'
|
|
1
|
+
import { BasicAttributes, VarComponent } from './varComponent'
|
|
2
2
|
|
|
3
|
-
export interface ButtonProps {
|
|
3
|
+
export interface ButtonProps extends BasicAttributes {
|
|
4
4
|
type?: 'default' | 'primary' | 'info' | 'success' | 'warning' | 'danger'
|
|
5
5
|
size?: 'normal' | 'mini' | 'small' | 'large'
|
|
6
6
|
loading?: boolean
|
package/types/card.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { VarComponent } from './varComponent'
|
|
1
|
+
import { BasicAttributes, VarComponent } from './varComponent'
|
|
2
2
|
|
|
3
|
-
export interface CardProps {
|
|
3
|
+
export interface CardProps extends BasicAttributes {
|
|
4
4
|
src?: string
|
|
5
5
|
fit?: 'fill' | 'contain' | 'cover' | 'none' | 'scale-down'
|
|
6
6
|
/**
|
package/types/cell.d.ts
CHANGED
package/types/icon.d.ts
CHANGED
package/types/list.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { VarComponent } from './varComponent'
|
|
1
|
+
import { BasicAttributes, VarComponent } from './varComponent'
|
|
2
2
|
|
|
3
|
-
export interface ListProps {
|
|
3
|
+
export interface ListProps extends BasicAttributes {
|
|
4
4
|
loading?: boolean
|
|
5
5
|
immediateCheck?: boolean
|
|
6
6
|
finished?: boolean
|