nethera-vue-components 1.1.2
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/README.md +87 -0
- package/dist/my-vue-components.es.js +1079 -0
- package/dist/my-vue-components.umd.js +9 -0
- package/dist/style.css +1 -0
- package/package.json +36 -0
package/README.md
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# My Vue Components
|
|
2
|
+
|
|
3
|
+
Une bibliothèque de composants Vue personnalisée avec Tailwind CSS et AOS (Animate On Scroll).
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install my-vue-components
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Utilisation
|
|
12
|
+
|
|
13
|
+
### Installation globale
|
|
14
|
+
|
|
15
|
+
```javascript
|
|
16
|
+
import { createApp } from 'vue'
|
|
17
|
+
import App from './App.vue'
|
|
18
|
+
import MyVueComponents from 'my-vue-components'
|
|
19
|
+
|
|
20
|
+
const app = createApp(App)
|
|
21
|
+
app.use(MyVueComponents)
|
|
22
|
+
app.mount('#app')
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### Import individuel
|
|
26
|
+
|
|
27
|
+
```javascript
|
|
28
|
+
import { CustomButton } from 'my-vue-components'
|
|
29
|
+
|
|
30
|
+
export default {
|
|
31
|
+
components: {
|
|
32
|
+
CustomButton
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Fonctionnalités incluses
|
|
38
|
+
|
|
39
|
+
### Tailwind CSS
|
|
40
|
+
Tous les composants utilisent Tailwind CSS pour le style. Vous pouvez utiliser toutes les classes Tailwind dans vos composants.
|
|
41
|
+
|
|
42
|
+
### AOS (Animate On Scroll)
|
|
43
|
+
L'animation au défilement est automatiquement initialisée. Utilisez les attributs AOS dans vos composants :
|
|
44
|
+
|
|
45
|
+
```vue
|
|
46
|
+
<template>
|
|
47
|
+
<div data-aos="fade-up" data-aos-duration="1000">
|
|
48
|
+
Contenu animé
|
|
49
|
+
</div>
|
|
50
|
+
</template>
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Composants disponibles
|
|
54
|
+
|
|
55
|
+
### CustomButton
|
|
56
|
+
|
|
57
|
+
Un bouton personnalisable avec différentes variantes.
|
|
58
|
+
|
|
59
|
+
```vue
|
|
60
|
+
<template>
|
|
61
|
+
<CustomButton variant="primary" @click="handleClick">
|
|
62
|
+
Cliquez-moi
|
|
63
|
+
</CustomButton>
|
|
64
|
+
</template>
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
#### Props
|
|
68
|
+
|
|
69
|
+
- `variant` (String): 'primary' | 'secondary' | 'danger' (défaut: 'primary')
|
|
70
|
+
- `disabled` (Boolean): désactive le bouton (défaut: false)
|
|
71
|
+
|
|
72
|
+
#### Événements
|
|
73
|
+
|
|
74
|
+
- `click`: émis lors du clic sur le bouton
|
|
75
|
+
|
|
76
|
+
## Développement
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
# Installation des dépendances
|
|
80
|
+
npm install
|
|
81
|
+
|
|
82
|
+
# Développement
|
|
83
|
+
npm run dev
|
|
84
|
+
|
|
85
|
+
# Build
|
|
86
|
+
npm run build
|
|
87
|
+
```
|