npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

vue-move-tags

v0.1.4

Published

``` npm i vue-move-tags ``` #####Quick Start(快速开始) ``` import Vue from 'vue' import MoveTags from 'vue-move-tags' import 'vue-move-tags/lib/MoveTags.css' Vue.use(MoveTags) ``` ###ComponentArgs(组件参数) | Item | explanation

Downloads

6

Readme

#####Install(安装)

npm i vue-move-tags

#####Quick Start(快速开始)

import Vue from 'vue'
import MoveTags from 'vue-move-tags'
import 'vue-move-tags/lib/MoveTags.css'
Vue.use(MoveTags)

###ComponentArgs(组件参数) | Item | explanation | Type | Default | | ----------------------- | ----------------------------| ------ | ------- | | tagList | 需要渲染的数组 | Array | 必须 | | size | 组件大小 mini/small/medium | String | mini | ###Options(配置选项)

| Item | explanation | Type | Default | | ----------------------- | -----------------------------| ------ | ------- | | defaultSelect | 默认选中第几个 | Number | -1 | | showName | 需要显示的属性名 | String | name | | leftBtnColor | 左按钮默认颜色 | String | #8799a3 | | rightBtnColor | 右按钮默认颜色 | String | #8799a3 | | tagsColor | 背景默认颜色 | String | #2C3E50 | | tagsItemColor | 单项条默认背景颜色 | String | #8799a3 | | tagsItemHover | 单项条悬浮时的颜色 | String | #e54d42 | | tagsItemHoverTextColor | 单项条悬浮时文字的颜色 | String | #ffffff | | tagsChooseItemColor | 单项条选中默认背景颜色 | String | #1cbbb4 | | tagsItemTextColor | 单项条文字默认颜色 | String | #ffffff | | tagsChooseItemTextColor | 单项条文字选中默认颜色 | String | #ffffff | | tagsItemFamily | 单项条文字字体 | String | 微软雅黑 |

颜色支持RGB格式:rgb(0,0,0,0)

###Events

| Item | explanation | | ---------------- | ---------------------- | | getMoveTagsEvent | 获取到每一个item的取值 |

###ExampleDemo(样例代码)

<template>
    <div>
        <vue-move-tags :tag-list="tagList" size="small" :options="options"
                       @get-move-tags-event="getMoveTagsEvent"></vue-move-tags>
    </div>
</template>
    export default {
        name: "test",
        data() {
            return {
                tagList: [{
                    name: "LoveZhangCheng",
                    value: "22"
                }, {
                    name: "迪丽热巴",
                    value: "23"
                }, {
                    name: "古力娜扎",
                    value: "24"
                }, {
                    name: "张天爱",
                    value: "21"
                }, {
                    name: "刘亦菲",
                    value: "22"
                }, {
                    name: "关晓彤",
                    value: "24"
                }, {
                    name: "李沁",
                    value: "20"
                }],
                //配置项
                options: {
                    //默认选中第index个
                    defaultSelect: 1,
                    //需要显示的属性名,默认name
                    showName: "name",
                    //左按钮颜色
                    leftBtnColor: "",
                    //右按钮颜色
                    rightBtnColor: "",
                    //背景颜色
                    tagsColor: "",
                    //单项item颜色
                    tagsItemColor: "",
                    //单项item悬浮Hover时的颜色
                    tagsItemHover:"",
                    //单项item悬浮Hover时文字的颜色
                    tagsItemHoverTextColor:"",
                    //单项item选中颜色
                    tagsChooseItemColor: "",
                    //单项item文字颜色
                    tagsItemTextColor: "",
                    //单项item文字选中颜色
                    tagsChooseItemTextColor: "",
                    //单项item文字字体
                    tagsItemFamily: "黑体",
                },
                person: {}
            }
        },
        methods: {
            getMoveTagsEvent(e) {
                this.person = e;
            }
        }
    }