New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

elementag

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

elementag

tags变量示例: name指的是router中定义路由的name, label是显示的文字 点击tag可以根据name跳转到指定的路由 tags: [ { name: "HelloWorld", label:"测试" }, { name:"echart", label:"测试2" }, { name: "aside_Test", label:"测试21" }, ], 注意在调用删除按钮的时候,由于vue子组件不能直接改变父组件的值, 因此我们对应emit

unpublished
latest
npmnpm
Version
1.0.0
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

使用方法

tags变量示例: name指的是router中定义路由的name, label是显示的文字 点击tag可以根据name跳转到指定的路由 tags: [ { name: "HelloWorld", label:"测试" }, { name:"echart", label:"测试2" }, { name: "aside_Test", label:"测试21" }, ], 注意在调用删除按钮的时候,由于vue子组件不能直接改变父组件的值, 因此我们对应emit的方法(deleteTag)在我们的父组件的method中需要进行method方法的定义 实例如下 deleteTag(index){ this.tags.splice(index,1) console.log(index) }

调用示例如下 <commontag :tags="tags" @deletetag="deleteTag">

FAQs

Package last updated on 31 Jul 2022

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