Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vue-initial-list

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-initial-list

A componets of vue for contact list and city list

  • 1.0.0
  • unpublished
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source
Vue version

vue-initial-list

If you are looking for a high-performance vue component that supports incoming Chinese data automatically and alphabetically, you are in the right place.

  • Tiny and very very easy to use.

  • List with high performance.

  • Sort automatically by initials.

Live demos

Simple usage

npm install vue-initial-list or yarn add vue-initial-list
<template>
    <div>
        <vue-initial-list :options="options" @change="cb"/>
    </div>
</template>

<script>
    import VueInitialList from 'vue-initial-list'

    export default {
        data () {
            return {
                options: [
                    {
                    name: "上海市",
                    tags: "SHANGHAI,上海市",
                    cityid: 4
                    },
                    {
                    name: "深圳市",
                    tags: "SHENZHEN,深圳市",
                    cityid: 2
                    },
                    {
                    name: "广州市",
                    tags: "GUANGZHOU,广州市",
                    cityid: 3
                    },
                    {
                    name: "武汉市",
                    tags: "WUHAN,武汉市",
                    cityid: 6
                    }
                ]
            }
        },
        components: { 'vue-initial-list': VueInitialList }
    }
</script>

Notice

  • The key of the passed in options for sorting attribute values must be name

Props type

PropTypeRequiredDescription
optionsArrayIncoming data list, as long as each object's name attribute is a value for sorting.

Contributions

Welcome to improve vue-initial-list with any issue, pull request or code review.

Changelogs

Maintain and update occasionally, for changes see release.

FAQs

Package last updated on 07 Jun 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc