1.4.22 • Published 9 months ago

@projectfive/v-components v1.4.22

Weekly downloads
-
License
ISC
Repository
-
Last release
9 months ago

Components

Fixedheader

Sticky header at the top of the page, that hides on scroll down and re-appears on scroll up.

  • treshold: number, default = 100. - defines scroll treshold before header is shown / hidden.

    <FixedHeaderComponent>
        <div class="header">Dit is fixed content</div>
    </FixedHeaderComponent>
    
    <style>
    .fixedheader {
        position: sticky;
        top: 0;
        z-index: 50;
        transition: transform .3s ease;
    }
        .fixedheader.fixedheader--down {
            transform: translateY(-100%);
        }
    </style>

Modals

Modal plugin

  • add the ModalPlugin to main.js
import { ModalPlugin } from '@projectfive/v-components';
createApp(App).use(ModalPlugin);
  • add the ModalComponent to App.vue and the template.
  • add the modal-Loader to App.vue and pass to ModalComponent
import { ModalComponent } from '@projectfive/v-components';
// Note, make specific modal-folder loader for vite.
import Loader from './Loader.vue';
<Modals :loader="Loader" />

Slider

  • items: Array with item objects, items for the slider
  • automatic: boolean, default = false
  • delay: number, default = 6000. Only used when automatic=true
  • scroll: boolean, default = false. If slider uses scroll-snap

  • item: Receives item Obj from items-list. Visible when .active class is applied.

    • item - item obj
    • next - action
    • prev - action
    • goto - action(index)
    • index - current index
    • active - boolean
    • activeIndex - number
    • count - number, total amount of slides
  • default: Slot content is placed once, after all slides
    • next - action
    • prev - action
    • goto - action(index)
    • activeIndex - number
    • count - number, total amount of slides
  • next: Slot for next-arrow. :action-function is available
  • prev: Slot for prev-arrow. :action-function is available

  • slide: number - index of active slide

    <SliderComponent>
        :items="[
            { src: 'imgpath-1' },
            { src: 'imgpath-2' },
            { src: 'imgpath-3' },
        ]"
        :automatic="true"
        :delay="4000"
    >
        <template v-slot:item="{ item, next, prev, goto, active, activeIndex, count }">
            <img
                :src="item.src"
            />
        </template>
    </SliderComponent>

Items

  • items: array with item objects
  • loading: boolean
  • emptyLoadInstances: number - how many loading-slots are inserted when items is empty
  • appendLoadInstances: number - how many loading-slots are inserted when items is not empty
  • item - Receives item Obj from items-list. Visible when .active class is applied.
    • item - item obj
  • loading - visible when loading; only element or appended depending on items-prop array length.
  • empty - visible when items-prop is empty array
  • loadmore - visible when not loading; useful for loadmore buttons etc.
  • atBottom
1.4.20

10 months ago

1.4.22

9 months ago

1.4.21

10 months ago

1.4.11

1 year ago

1.4.10

1 year ago

1.4.13

12 months ago

1.4.12

1 year ago

1.4.15

12 months ago

1.4.14

12 months ago

1.4.17

12 months ago

1.4.16

12 months ago

1.4.19

11 months ago

1.4.18

12 months ago

1.4.6

1 year ago

1.4.5

1 year ago

1.4.9

1 year ago

1.4.8

1 year ago

1.4.7

1 year ago

1.4.4

1 year ago

1.4.3

1 year ago

1.4.2

1 year ago

1.4.1

1 year ago

1.4.0

1 year ago

1.3.9

1 year ago

1.3.8

1 year ago

1.3.7

1 year ago

1.3.6

1 year ago

1.3.5

1 year ago

1.3.4

1 year ago

1.3.3

1 year ago

1.3.2

1 year ago

1.3.1

2 years ago

1.3.0

2 years ago

1.2.8

2 years ago

1.2.7

2 years ago

1.2.10

2 years ago

1.2.9

2 years ago

1.2.6

2 years ago

1.2.5

2 years ago

1.2.0

2 years ago

1.2.4

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.1.19

2 years ago

1.1.16

3 years ago

1.1.15

3 years ago

1.1.14

3 years ago

1.1.18

2 years ago

1.1.17

2 years ago

1.1.9

3 years ago

1.1.8

3 years ago

1.1.7

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.12

3 years ago

1.1.11

3 years ago

1.1.10

3 years ago

1.1.13

3 years ago

1.1.1

3 years ago

1.1.2

3 years ago

1.1.0

3 years ago

1.0.17

3 years ago

1.0.16

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.15

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.0

3 years ago

0.2.7

3 years ago

0.2.6

3 years ago

0.2.8

3 years ago

0.2.5

3 years ago

0.1.80

3 years ago

0.1.81

3 years ago

0.1.82

3 years ago

0.1.83

3 years ago

0.1.84-beta.1

3 years ago

0.1.74

3 years ago

0.1.75

3 years ago

0.1.76

3 years ago

0.1.77

3 years ago

0.1.78

3 years ago

0.1.79

3 years ago

0.1.70

3 years ago

0.1.71

3 years ago

0.1.72

3 years ago

0.1.73

3 years ago

0.1.66

3 years ago

0.1.67

3 years ago

0.1.68

3 years ago

0.1.69

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.2.4

3 years ago

0.1.52

4 years ago

0.1.53

4 years ago

0.1.54

4 years ago

0.1.55

4 years ago

0.1.56

4 years ago

0.1.57

4 years ago

0.1.58

4 years ago

0.1.59

4 years ago

0.1.50

4 years ago

0.1.51

4 years ago

0.1.49

4 years ago

0.1.47

4 years ago

0.1.48

4 years ago

0.1.63

4 years ago

0.1.64

4 years ago

0.1.65

4 years ago

0.1.60

4 years ago

0.1.61

4 years ago

0.1.62

4 years ago

0.1.42

4 years ago

0.1.43

4 years ago

0.1.44

4 years ago

0.1.45

4 years ago

0.1.46

4 years ago

0.1.32

4 years ago

0.1.33

4 years ago

0.1.34

4 years ago

0.1.36

4 years ago

0.1.37

4 years ago

0.1.41

4 years ago

0.1.40

4 years ago

0.1.38

4 years ago

0.1.39

4 years ago

0.1.30

4 years ago

0.1.31

4 years ago

0.1.27

4 years ago

0.1.28

4 years ago

0.1.29

4 years ago

0.1.22

4 years ago

0.1.23

4 years ago

0.1.24

4 years ago

0.1.25

4 years ago

0.1.26

4 years ago

0.1.20

4 years ago

0.1.21

4 years ago

0.1.13

4 years ago

0.1.14

4 years ago

0.1.15

4 years ago

0.1.16

4 years ago

0.1.17

4 years ago

0.1.18

4 years ago

0.1.19

4 years ago

0.1.10

4 years ago

0.1.11

4 years ago

0.1.12

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.9

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago