@slidev/client 0.48.0 → 0.48.1
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/composables/useClicks.ts
CHANGED
|
@@ -18,10 +18,10 @@ export function createClicksContextBase(
|
|
|
18
18
|
return isDisabled ? isDisabled() : false
|
|
19
19
|
},
|
|
20
20
|
get current() {
|
|
21
|
-
return current.value
|
|
21
|
+
return +current.value
|
|
22
22
|
},
|
|
23
23
|
set current(value) {
|
|
24
|
-
current.value = value
|
|
24
|
+
current.value = +value
|
|
25
25
|
},
|
|
26
26
|
relativeOffsets,
|
|
27
27
|
map,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import type { ClicksContext } from '@slidev/types'
|
|
3
3
|
import { computed } from 'vue'
|
|
4
|
+
import { CLICKS_MAX } from '../constants'
|
|
4
5
|
|
|
5
6
|
const props = defineProps<{
|
|
6
7
|
clicksContext: ClicksContext
|
|
@@ -31,10 +32,13 @@ function onMousedown() {
|
|
|
31
32
|
:title="`Clicks in this slide: ${total}`"
|
|
32
33
|
:class="total ? '' : 'op50'"
|
|
33
34
|
>
|
|
34
|
-
<div class="flex gap-1 items-center min-w-16">
|
|
35
|
+
<div class="flex gap-1 items-center min-w-16 tabular-nums">
|
|
35
36
|
<carbon:cursor-1 text-sm op50 />
|
|
36
|
-
<
|
|
37
|
-
|
|
37
|
+
<template v-if="current >= 0 && current !== CLICKS_MAX">
|
|
38
|
+
<div flex-auto />
|
|
39
|
+
<span text-primary>{{ current }}</span>
|
|
40
|
+
<span op25>/</span>
|
|
41
|
+
</template>
|
|
38
42
|
<span op50>{{ total }}</span>
|
|
39
43
|
</div>
|
|
40
44
|
<div
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slidev/client",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.48.
|
|
4
|
+
"version": "0.48.1",
|
|
5
5
|
"description": "Presentation slides for developers",
|
|
6
6
|
"author": "antfu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -60,8 +60,8 @@
|
|
|
60
60
|
"vue": "^3.4.21",
|
|
61
61
|
"vue-demi": "^0.14.7",
|
|
62
62
|
"vue-router": "^4.3.0",
|
|
63
|
-
"@slidev/parser": "0.48.
|
|
64
|
-
"@slidev/types": "0.48.
|
|
63
|
+
"@slidev/parser": "0.48.1",
|
|
64
|
+
"@slidev/types": "0.48.1"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"vite": "^5.1.5"
|
package/pages/overview.vue
CHANGED