@varlet/ui 1.26.7 → 1.26.8

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.
@@ -16,6 +16,7 @@ exports.isVw = exports.isVh = exports.isRem = exports.isPx = exports.isPercent =
16
16
  exports.nextTickFrame = nextTickFrame;
17
17
  exports.requestAnimationFrame = requestAnimationFrame;
18
18
  exports.scrollTo = scrollTo;
19
+ exports.supportTouch = supportTouch;
19
20
  exports.toSizeUnit = exports.toPxNum = void 0;
20
21
 
21
22
  var _shared = require("./shared");
@@ -252,4 +253,9 @@ function formatStyleVars(styleVars) {
252
253
  styles[cssVar] = value;
253
254
  return styles;
254
255
  }, {});
256
+ }
257
+
258
+ function supportTouch() {
259
+ var inBrowser = typeof window !== 'undefined';
260
+ return inBrowser && 'ontouchstart' in window;
255
261
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@varlet/ui",
3
- "version": "1.26.7",
3
+ "version": "1.26.8",
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.26.7",
42
+ "@varlet/icons": "1.26.8",
43
43
  "dayjs": "^1.10.4",
44
44
  "decimal.js": "^10.2.1"
45
45
  },
46
46
  "devDependencies": {
47
- "@varlet/cli": "1.26.7",
48
- "@varlet/touch-emulator": "1.26.7",
47
+ "@varlet/cli": "1.26.8",
48
+ "@varlet/touch-emulator": "1.26.8",
49
49
  "@vue/test-utils": "2.0.0-rc.6",
50
50
  "@vue/runtime-core": "3.2.25",
51
51
  "typescript": "^4.4.4",
package/types/select.d.ts CHANGED
@@ -6,6 +6,7 @@ export interface SelectProps {
6
6
  modelValue?: any
7
7
  placeholder?: string
8
8
  multiple?: boolean
9
+ offsetY?: number | string
9
10
  chip?: boolean
10
11
  line?: boolean
11
12
  hint?: boolean