@slidev/client 0.42.10 → 0.43.0-beta.0
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/builtin/AutoFitText.vue +1 -1
- package/modules/directives.ts +11 -3
- package/package.json +4 -4
package/builtin/AutoFitText.vue
CHANGED
package/modules/directives.ts
CHANGED
|
@@ -72,7 +72,9 @@ export default function createDirectives() {
|
|
|
72
72
|
() => {
|
|
73
73
|
const c = clicks?.value ?? 0
|
|
74
74
|
const show = dir.value != null
|
|
75
|
-
?
|
|
75
|
+
? Array.isArray(dir.value)
|
|
76
|
+
? c >= dir.value[0] && c < dir.value[1]
|
|
77
|
+
: c >= dir.value
|
|
76
78
|
: c > prev
|
|
77
79
|
|
|
78
80
|
if (!el.classList.contains(CLASS_VCLICK_HIDDEN_EXP))
|
|
@@ -123,7 +125,7 @@ export default function createDirectives() {
|
|
|
123
125
|
const clicks = dirInject(dir, injectionClicks)
|
|
124
126
|
const orderMap = dirInject(dir, injectionOrderMap)
|
|
125
127
|
|
|
126
|
-
const prev = elements?.value.length
|
|
128
|
+
const prev = elements?.value.length || 0
|
|
127
129
|
|
|
128
130
|
// Set default dir.value
|
|
129
131
|
if (dir.value == null)
|
|
@@ -146,7 +148,13 @@ export default function createDirectives() {
|
|
|
146
148
|
watch(
|
|
147
149
|
clicks,
|
|
148
150
|
() => {
|
|
149
|
-
const
|
|
151
|
+
const c = (clicks.value ?? 0)
|
|
152
|
+
const show = dir.value != null
|
|
153
|
+
? Array.isArray(dir.value)
|
|
154
|
+
? c >= dir.value[0] && c < dir.value[1]
|
|
155
|
+
: c >= dir.value
|
|
156
|
+
: c >= prev
|
|
157
|
+
|
|
150
158
|
if (!el.classList.contains(CLASS_VCLICK_HIDDEN_EXP))
|
|
151
159
|
el.classList.toggle(CLASS_VCLICK_HIDDEN, !show)
|
|
152
160
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slidev/client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.43.0-beta.0",
|
|
4
4
|
"description": "Presentation slides for developers",
|
|
5
5
|
"author": "antfu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
},
|
|
13
13
|
"bugs": "https://github.com/slidevjs/slidev/issues",
|
|
14
14
|
"engines": {
|
|
15
|
-
"node": ">=
|
|
15
|
+
"node": ">=18.0.0"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@antfu/utils": "^0.7.6",
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"vue-router": "^4.2.4",
|
|
42
42
|
"vue-starport": "^0.3.0",
|
|
43
43
|
"windicss": "^3.5.6",
|
|
44
|
-
"@slidev/parser": "0.
|
|
45
|
-
"@slidev/types": "0.
|
|
44
|
+
"@slidev/parser": "0.43.0-beta.0",
|
|
45
|
+
"@slidev/types": "0.43.0-beta.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"vite": "^4.4.9"
|