0.1.5 • Published 5 years ago

ch-list v0.1.5

Weekly downloads
43
License
-
Repository
github
Last release
5 years ago

chlist

install

npm install ch-list --save

usage

import Vue from 'vue';
import ChList from 'ch-list'
Vue.use(ChList);

List Attributes

AttributeTypeAccepted ValuesDescriptionDefault
itemLayoutStringhorizontal/verticalThe layout of list , default is horizontal, If a vertical list is desired, set the itemLayout property to verticalhorizontal
customClassStringAdd a custom class on list container-
headerStringheader string will inserted in header slot-
footerStringfooter string will inserted in footer slot-

List Slot

propNameDescription
headerSlot which named header
footerSlot which named footer
-Default slot on list's content ,In general slot is list-items

ListItem Attributes

AttributeTypeAccepted ValuesDescriptionDefault
contentStringcontent string will inserted in content slot-
extraStringextra string will inserted in extra slot-
prefixStringprefix string will inserted in prefix slot-
actionsArray{name:'delete',op:'delete'}Loop render as actions slot-
layoutStringhorizontal/verticalThe layout of list, default is horizontal, If a vertical list is desired, set the itemLayout property to verticalhorizontal
customClassStringAdd a custom class on list container-
haveHoveStateBooleanWhether there is floating state on the mouse floatfalse
prefixalignstringalign-item all valueprefix's content layoutcenter

ListItem Events

eventNameDescriptioncallback params
actionClickCallback executed when the action item is clicked,params is an item in prop actionsactionItem

ListItem Slot

propNameDescription
-Default slot on listItem's content
prefixlistitem's prefix content
extralistitem's extra content,It is displayed at the end of listitem
metalistitem's meta content,In general slot is list-item-meta
actionsThe actions content of listitem. If layout is vertical, shows the content on bottom, otherwise shows content on the far right

ListItemMeta Attributes

AttributeTypeAccepted ValuesDescriptionDefault
titleString/slotthe title of list-item-meta-
descriptionString/slotthe description of list-item-meta, shows the title on bottom,-
overflowEllipisboolean-
0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago