1.0.3 • Published 2 years ago

vue-self-adaption-view v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

vue-self-adaption-view

self-adaption-view

Installation

npm install vue-self-adaption-view

import

import SelfAdaptionView from 'vue-self-adaption-view'
export default {
    name: 'app',
    components: {
        SelfAdaptionView
    },
    data() {
        return {
            list: [1, 2, 3, 4, 5, 6, 7],
            minWidth: 300,
            width: 144,
            paginationColor: 'red',
        }
    },
}

Use in template

<self-adaption-view
    :list="list"
    :minWidth="minWidth"
    :paginationColor="paginationColor"
    :width="width">
    <template slot="source" slot-scope="{ source }">
        
    </template>
</self-adaption-view>

Options

NameDescriptiontypedefaultrequire
backgroundColorbackground colorString#fffffffalse
paginationColorPage button colorString#000000false
listdata sourceArraytrue
widththe width of a single elementNumbertrue
min-widththe minimum width of the containerNumbertrue
1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago