Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
基于 vue2 开发的 Flyme 公共控件插件
vue 版本:vue2.x
Flyme 规范:Flyme6
$ npm install vue-flyme --save-dev
通过全局方法 Vue.use() 使用插件,默认导入所有实例方法:
import Vue from 'vue';
import VueFlyme from 'vue-flyme';
Vue.use(VueFlyme);
无需通过全局方法 Vue.use() 使用插件,直接导入所需组件:
import { filter } from 'vue-flyme';
import Vue from 'vue';
import vueFlyme, { filter } from 'vue-flyme';
Vue.use(VueFlyme);
@param {String} title 弹窗标题内容
@param {String} cancelBtnText 取消按钮文本
@param {Function} callback 点击取消按钮的回调函数
this.$alert({
title: '我是标题',
cancelBtnText: '知道了',
callback: function () {
console.log('被回调了');
}
});
// 示例数据
[[{
id: 0,
name: '全部商区'
}, {
id: 1,
name: '香洲区',
sublist: [{
id: 0,
name: '吉大'
}]
}],[{
id: 0,
name: '离我最近'
}],[{
id: 0,
name: '全部品牌'
}]]
@prop {Number} positionTop [default = 0] 筛选控件距离屏幕顶部的距离(单位 px)
@emit {Number, Object, Array} changeFilter 筛选条件改变事件,返回父菜单索引、所选筛选项对象以及其索引链
@emit {Number, Boolean} isExpand 展开 / 收起事件,返回父菜单索引以及是否展开标识(true 为展开)
FAQs
vue2 plugin - flyme controls
The npm package vue-flyme receives a total of 15 weekly downloads. As such, vue-flyme popularity was classified as not popular.
We found that vue-flyme demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.