@varlet/cli 2.16.3-alpha.1694361535255 → 2.16.4-alpha.1694626169489

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": "@varlet/cli",
3
- "version": "2.16.3-alpha.1694361535255",
3
+ "version": "2.16.4-alpha.1694626169489",
4
4
  "type": "module",
5
5
  "description": "cli of varlet",
6
6
  "bin": {
@@ -67,8 +67,8 @@
67
67
  "vite": "4.3.5",
68
68
  "vue": "3.3.4",
69
69
  "webfont": "^9.0.0",
70
- "@varlet/shared": "2.16.3-alpha.1694361535255",
71
- "@varlet/vite-plugins": "2.16.3-alpha.1694361535255"
70
+ "@varlet/shared": "2.16.4-alpha.1694626169489",
71
+ "@varlet/vite-plugins": "2.16.4-alpha.1694626169489"
72
72
  },
73
73
  "devDependencies": {
74
74
  "@types/babel__core": "^7.20.1",
@@ -83,9 +83,9 @@
83
83
  "@types/semver": "^7.3.9",
84
84
  "@types/sharp": "0.31.1",
85
85
  "rimraf": "^5.0.1",
86
- "@varlet/icons": "2.16.3-alpha.1694361535255",
87
- "@varlet/touch-emulator": "2.16.3-alpha.1694361535255",
88
- "@varlet/ui": "2.16.3-alpha.1694361535255"
86
+ "@varlet/icons": "2.16.4-alpha.1694626169489",
87
+ "@varlet/touch-emulator": "2.16.4-alpha.1694626169489",
88
+ "@varlet/ui": "2.16.4-alpha.1694626169489"
89
89
  },
90
90
  "peerDependencies": {
91
91
  "@vue/runtime-core": "3.3.4",
@@ -98,9 +98,9 @@
98
98
  "lodash-es": "^4.17.21",
99
99
  "vue": "3.3.4",
100
100
  "vue-router": "4.2.0",
101
- "@varlet/icons": "2.16.3-alpha.1694361535255",
102
- "@varlet/touch-emulator": "2.16.3-alpha.1694361535255",
103
- "@varlet/ui": "2.16.3-alpha.1694361535255"
101
+ "@varlet/touch-emulator": "2.16.4-alpha.1694626169489",
102
+ "@varlet/icons": "2.16.4-alpha.1694626169489",
103
+ "@varlet/ui": "2.16.4-alpha.1694626169489"
104
104
  },
105
105
  "scripts": {
106
106
  "dev": "tsc --watch",
package/site/index.html CHANGED
@@ -43,6 +43,20 @@
43
43
  })()
44
44
  }
45
45
  </script>
46
+ <script>
47
+ // solve the problem of blocking keyboard copy in vscode webview
48
+ document.addEventListener('keydown', e => {
49
+ if ((e.metaKey || e.ctrlKey) && e.key === 'c') {
50
+ const selection = document.getSelection()
51
+
52
+ if (!selection || !selection.toString()) {
53
+ return
54
+ }
55
+
56
+ window.parent.postMessage({ eventType: 'copy', text: selection.toString() }, '*')
57
+ }
58
+ })
59
+ </script>
46
60
  </head>
47
61
  <body>
48
62
  <div id="app"></div>
@@ -1,11 +0,0 @@
1
- import { reactive, ref } from 'vue'
2
-
3
- export type Rect = Pick<DOMRect, 'width' | 'height' | 'top' | 'left'>
4
-
5
- export const animationBoxData = reactive<any>({})
6
-
7
- export const animationEl = ref<HTMLElement | null>()
8
-
9
- export const animationElClientRect = ref<Rect | null>()
10
-
11
- export const isMountedCount = ref<number>(0)