1.3.6 • Published 11 days ago

@projectfive/v-components v1.3.6

Weekly downloads
-
License
ISC
Repository
-
Last release
11 days 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.3.6

11 days ago

1.3.5

15 days ago

1.3.4

24 days ago

1.3.3

2 months ago

1.3.2

3 months ago

1.3.1

4 months ago

1.3.0

4 months ago

1.2.8

4 months ago

1.2.7

4 months ago

1.2.10

4 months ago

1.2.9

4 months ago

1.2.6

7 months ago

1.2.5

9 months ago

1.2.0

1 year ago

1.2.4

11 months ago

1.2.3

11 months ago

1.2.2

1 year ago

1.2.1

1 year ago

1.1.19

1 year ago

1.1.16

1 year ago

1.1.15

1 year ago

1.1.14

1 year ago

1.1.18

1 year ago

1.1.17

1 year ago

1.1.9

2 years ago

1.1.8

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.12

1 year ago

1.1.11

1 year ago

1.1.10

1 year ago

1.1.13

1 year ago

1.1.1

2 years ago

1.1.2

2 years ago

1.1.0

2 years ago

1.0.17

2 years ago

1.0.16

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.0

2 years ago

0.2.7

2 years ago

0.2.6

2 years ago

0.2.8

2 years ago

0.2.5

2 years ago

0.1.80

2 years ago

0.1.81

2 years ago

0.1.82

2 years ago

0.1.83

2 years ago

0.1.84-beta.1

2 years ago

0.1.74

2 years ago

0.1.75

2 years ago

0.1.76

2 years ago

0.1.77

2 years ago

0.1.78

2 years ago

0.1.79

2 years ago

0.1.70

2 years ago

0.1.71

2 years ago

0.1.72

2 years ago

0.1.73

2 years ago

0.1.66

2 years ago

0.1.67

2 years ago

0.1.68

2 years ago

0.1.69

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.4

2 years ago

0.1.52

2 years ago

0.1.53

2 years ago

0.1.54

2 years ago

0.1.55

2 years ago

0.1.56

2 years ago

0.1.57

2 years ago

0.1.58

2 years ago

0.1.59

2 years ago

0.1.50

2 years ago

0.1.51

2 years ago

0.1.49

2 years ago

0.1.47

2 years ago

0.1.48

2 years ago

0.1.63

2 years ago

0.1.64

2 years ago

0.1.65

2 years ago

0.1.60

2 years ago

0.1.61

2 years ago

0.1.62

2 years ago

0.1.42

3 years ago

0.1.43

3 years ago

0.1.44

2 years ago

0.1.45

2 years ago

0.1.46

2 years ago

0.1.32

3 years ago

0.1.33

3 years ago

0.1.34

3 years ago

0.1.36

3 years ago

0.1.37

3 years ago

0.1.41

3 years ago

0.1.40

3 years ago

0.1.38

3 years ago

0.1.39

3 years ago

0.1.30

3 years ago

0.1.31

3 years ago

0.1.27

3 years ago

0.1.28

3 years ago

0.1.29

3 years ago

0.1.22

3 years ago

0.1.23

3 years ago

0.1.24

3 years ago

0.1.25

3 years ago

0.1.26

3 years ago

0.1.20

3 years ago

0.1.21

3 years ago

0.1.13

3 years ago

0.1.14

3 years ago

0.1.15

3 years ago

0.1.16

3 years ago

0.1.17

3 years ago

0.1.18

3 years ago

0.1.19

3 years ago

0.1.10

3 years ago

0.1.11

3 years ago

0.1.12

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.9

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago