1.1.5 • Published 6 years ago

vue-index-list v1.1.5

Weekly downloads
33
License
-
Repository
-
Last release
6 years ago

vue-index-list vue2 Gemnasium license npm

A Vue 2.0-based UI component that passes in an array of specific formats to display a slideable list with a list of right-side indexes. It is learn from mint-ui;

Try the demo

How to use?

(jquery is needed !)
npm i vue-index-list

Example

<template>
  <index-list :comp_data="comp_data" style="height: 400px;overflow-y: scroll;" @handle_chooseComp_f = "handle_chooseComp_f"></index-list>
</template>

<script>
  import IndexList  from 'vue-index-list';
  export default {
    name: 'HelloWorld',
    components: {'index-list': IndexList},
    data () {
      return {
        comp_data: {rows:[['80163340', '安信基金', 'AXJJ'],
          ['80000226', '博时基金', 'BSJJ'],
          ['80510904', '金信基金', 'JXJJ'],
          ['80554846', '南华基金', 'NHJJ']]},
      }
    },
    methods:{
      handle_chooseComp_f(code,name){
        console.log(code);
      }
    }
  }
</script>

demo:

demo_gif

Options

PropertyDescriptiontypedefault
comp_datathe data source for the list and index-listobject{rows: [] }

Functions

Function NameDescriptionparams
handle_chooseComp_fwhen the list item are clickedcode , name
1.1.5

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago