🚨 Latest Research:Tanstack npm Packages Compromised in Ongoing Mini Shai-Hulud Supply-Chain Attack.Learn More
Socket
Book a DemoSign in
Socket

@hanfy/plugin-link-vue

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

@hanfy/plugin-link-vue

> TODO: description

latest
Source
npmnpm
Version
2.10.6
Version published
Weekly downloads
7
75%
Maintainers
1
Weekly downloads
 
Created
Source

链接插件

安装

$ yarn add @hanfy/plugin-link-vue

添加到引擎

import Engine, { EngineInterface } from '@hanfy/engine';
import Link from '@hanfy/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 05 Mar 2024

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