Skip to content

Commit aef9c33

Browse files
authored
Merge pull request #279 from linx4200/dev/3.0.2
v3.0.2 release
2 parents c4c9980 + 4a1ea77 commit aef9c33

File tree

7 files changed

+28
-5
lines changed

7 files changed

+28
-5
lines changed

.github/dependabot.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
version: 2
2+
updates:
3+
# Enable version updates for npm
4+
- package-ecosystem: "npm"
5+
# Look for `package.json` and `lock` files in the `root` directory
6+
directory: "/"
7+
# Check the npm registry for updates every day (weekdays)
8+
schedule:
9+
interval: "weekly"
10+
labels:
11+
- "dependencies"
12+
assignees:
13+
- "linx4200"
14+
reviewers:
15+
- "linx4200"

.github/workflows/npm-publish.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77

88
jobs:
99
publish:
10+
if: github.actor != 'dependabot[bot]'
11+
1012
runs-on: ubuntu-latest
1113

1214
steps:

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,12 @@ import {ChromePicker } from 'vue-color';
168168
</script>
169169
```
170170

171+
## 🧩 FAQ / Issue Guide
172+
173+
| Error / Symptom | Related Issue |
174+
|--------|----------------|
175+
| `TS2742: The inferred type of 'default' cannot be named without a reference to ...` (commonly triggered when using `pnpm`) | [#278](https://github.com/linx4200/vue-color/issues/278) |
176+
171177
## 🤝 Contributing
172178

173179
Contributions are welcome! Please open issues or pull requests as needed.

demo/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ const updateHue = (newHue: number) => {
238238
239239
.get-started {
240240
display: inline-block;
241-
width: 120px;
241+
width: 124px;
242242
height: 24px;
243243
padding: 8px 12px;
244244
line-height: 24px;

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-color",
3-
"version": "3.0.1",
3+
"version": "3.0.2",
44
"type": "module",
55
"files": [
66
"dist"

src/utils/dom.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export const getPageXYFromEvent = (e: MouseEvent | TouchEvent) => {
55
res.x = e.pageX;
66
res.y = e.pageY;
77
}
8-
if (e instanceof TouchEvent) {
8+
if (typeof TouchEvent !== 'undefined' && e instanceof TouchEvent) {
99
res.x = (e.touches ? e.touches[0].pageX : e.changedTouches ? e.changedTouches[0].pageX : 0);
1010
res.y = (e.touches ? e.touches[0].pageY : e.changedTouches ? e.changedTouches[0].pageY : 0);
1111
}

0 commit comments

Comments
 (0)