@varlet/cli 2.21.0 → 2.22.0-alpha.1705845515578
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.
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import fse from 'fs-extra';
|
|
2
2
|
import sharp from 'sharp';
|
|
3
|
+
import slash from 'slash';
|
|
3
4
|
import webfont from 'webfont';
|
|
4
5
|
import logger from '../shared/logger.js';
|
|
5
6
|
import { parse, resolve } from 'path';
|
|
@@ -42,7 +43,7 @@ async function buildPNG(entry, pngDir, svgFiles) {
|
|
|
42
43
|
}
|
|
43
44
|
function buildWebFont(name, entry) {
|
|
44
45
|
return webfont.default({
|
|
45
|
-
files: `${entry}/*.svg`,
|
|
46
|
+
files: `${slash(entry)}/*.svg`,
|
|
46
47
|
fontName: name,
|
|
47
48
|
formats: ['ttf'],
|
|
48
49
|
fontHeight: 512,
|
|
@@ -14,7 +14,7 @@ export async function lint() {
|
|
|
14
14
|
'./src',
|
|
15
15
|
'./packages/varlet-cli/src',
|
|
16
16
|
'./packages/varlet-ui/src',
|
|
17
|
-
'./packages/varlet-
|
|
17
|
+
'./packages/varlet-shared/src',
|
|
18
18
|
'./packages/varlet-vite-plugins/src',
|
|
19
19
|
'./packages/varlet-use/src',
|
|
20
20
|
'./packages/varlet-touch-emulator',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@varlet/cli",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.22.0-alpha.1705845515578",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "cli of varlet",
|
|
6
6
|
"bin": {
|
|
@@ -64,8 +64,8 @@
|
|
|
64
64
|
"slash": "^3.0.0",
|
|
65
65
|
"typescript": "^5.1.5",
|
|
66
66
|
"webfont": "11.2.26",
|
|
67
|
-
"@varlet/shared": "2.
|
|
68
|
-
"@varlet/vite-plugins": "2.
|
|
67
|
+
"@varlet/shared": "2.22.0-alpha.1705845515578",
|
|
68
|
+
"@varlet/vite-plugins": "2.22.0-alpha.1705845515578"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
71
|
"@types/babel__core": "^7.20.1",
|
|
@@ -80,9 +80,9 @@
|
|
|
80
80
|
"@types/semver": "^7.3.9",
|
|
81
81
|
"@types/sharp": "0.31.1",
|
|
82
82
|
"rimraf": "^5.0.1",
|
|
83
|
-
"@varlet/ui": "2.
|
|
84
|
-
"@varlet/icons": "2.
|
|
85
|
-
"@varlet/touch-emulator": "2.
|
|
83
|
+
"@varlet/ui": "2.22.0-alpha.1705845515578",
|
|
84
|
+
"@varlet/icons": "2.22.0-alpha.1705845515578",
|
|
85
|
+
"@varlet/touch-emulator": "2.22.0-alpha.1705845515578"
|
|
86
86
|
},
|
|
87
87
|
"peerDependencies": {
|
|
88
88
|
"@vue/runtime-core": "3.4.3",
|
|
@@ -95,9 +95,9 @@
|
|
|
95
95
|
"lodash-es": "^4.17.21",
|
|
96
96
|
"vue": "3.4.3",
|
|
97
97
|
"vue-router": "4.2.0",
|
|
98
|
-
"@varlet/
|
|
99
|
-
"@varlet/
|
|
100
|
-
"@varlet/touch-emulator": "2.
|
|
98
|
+
"@varlet/ui": "2.22.0-alpha.1705845515578",
|
|
99
|
+
"@varlet/icons": "2.22.0-alpha.1705845515578",
|
|
100
|
+
"@varlet/touch-emulator": "2.22.0-alpha.1705845515578"
|
|
101
101
|
},
|
|
102
102
|
"scripts": {
|
|
103
103
|
"dev": "tsc --watch",
|
package/site/mobile/App.vue
CHANGED
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
|
|
75
75
|
<script lang="ts">
|
|
76
76
|
import config from '@config'
|
|
77
|
-
import { computed,
|
|
77
|
+
import { computed, defineComponent, ref, watch, type Ref, type ComputedRef } from 'vue'
|
|
78
78
|
import { useRoute } from 'vue-router'
|
|
79
79
|
import {
|
|
80
80
|
getBrowserTheme,
|