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

@aomao/plugin-link-vue

Package Overview
Dependencies
Maintainers
1
Versions
218
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aomao/plugin-link-vue

> TODO: description

latest
Source
npmnpm
Version
2.10.1
Version published
Weekly downloads
79
887.5%
Maintainers
1
Weekly downloads
 
Created
Source

链接插件

安装

$ yarn add @aomao/plugin-link-vue

添加到引擎

import Engine, { EngineInterface } from '@aomao/engine';
import Link from '@aomao/plugin-link';

new Engine(...,{ plugins:[Link] })

可选项

快捷键

默认快捷键为 mod+k,默认参数为 ["_blank"]

//快捷键,key 组合键,args,执行参数,[target?:string,href?:string,text?:string] 打开模式:可选,默认链接:可选,默认文本:可选
hotkey?:string | {key:string,args:Array<string>};

//使用配置
new Engine(...,{
    config:{
        "link":{
            //修改快捷键
            hotkey:{
                key:"mod+k",
                args:["_balnk_","https://www.aomao.com","ITELLYOU"]
            }
        }
    }
 })

命令

可传入三个参数[target?:string,href?:string,text?:string] 打开模式:可选,默认链接:可选,默认文本:可选

//target:'_blank', '_parent', '_top', '_self',href:链接,text:文字
engine.command.execute('link', '_blank', 'https://www.aomao.com', 'ITELLYOU');
//使用 command 执行查询当前状态,返回 boolean | undefined
engine.command.queryState('link');

FAQs

Package last updated on 24 Mar 2023

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