codevdesign 0.0.30 → 0.0.31
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/composants/csqcAide.vue +55 -40
- package/package.json +1 -1
package/composants/csqcAide.vue
CHANGED
|
@@ -1,40 +1,55 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<v-menu
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<v-menu
|
|
3
|
+
:open-on-hover="hover"
|
|
4
|
+
v-if="!isXs"
|
|
5
|
+
location="top start"
|
|
6
|
+
>
|
|
7
|
+
<template #activator="{ props: activatorProps }">
|
|
8
|
+
<slot name="icone">
|
|
9
|
+
<v-icon
|
|
10
|
+
v-bind="activatorProps"
|
|
11
|
+
@click.stop.prevent
|
|
12
|
+
:style="styleCSS"
|
|
13
|
+
:size="grosseurEffective"
|
|
14
|
+
color="grisMoyen"
|
|
15
|
+
icon="mdi-help-circle"
|
|
16
|
+
/>
|
|
17
|
+
</slot>
|
|
18
|
+
</template>
|
|
19
|
+
|
|
20
|
+
<slot name="carte">
|
|
21
|
+
<v-expand-transition>
|
|
22
|
+
<v-card style="max-width: 1000px">
|
|
23
|
+
<v-card-text class="pa-6">
|
|
24
|
+
<span v-html="props.aide"></span>
|
|
25
|
+
</v-card-text> </v-card
|
|
26
|
+
></v-expand-transition>
|
|
27
|
+
</slot>
|
|
28
|
+
</v-menu>
|
|
29
|
+
</template>
|
|
30
|
+
|
|
31
|
+
<script setup lang="ts">
|
|
32
|
+
import { computed } from 'vue'
|
|
33
|
+
import { useDisplay } from 'vuetify'
|
|
34
|
+
|
|
35
|
+
const props = withDefaults(
|
|
36
|
+
defineProps<{
|
|
37
|
+
aide: string
|
|
38
|
+
grosseur?: 'default' | 'small' | 'large' | 'x-large' | 'x-small'
|
|
39
|
+
hover?: boolean
|
|
40
|
+
styleCSS?: string
|
|
41
|
+
}>(),
|
|
42
|
+
{
|
|
43
|
+
grosseur: 'default',
|
|
44
|
+
hover: false,
|
|
45
|
+
styleCSS: '',
|
|
46
|
+
},
|
|
47
|
+
)
|
|
48
|
+
const grosseurEffective = computed(() => {
|
|
49
|
+
const val = props.grosseur
|
|
50
|
+
return val && val.trim() !== '' ? val : 'default'
|
|
51
|
+
})
|
|
52
|
+
|
|
53
|
+
const { name } = useDisplay()
|
|
54
|
+
const isXs = computed(() => name.value === 'xs')
|
|
55
|
+
</script>
|