🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

my-f2-pc2

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

my-f2-pc2

淘宝PC小程序

latest
Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
1
-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

F2 淘宝 PC 小程序

F2 的淘宝 PC 小程序,支持原生 F2 的所有功能,欢迎使用反馈。

目的

my-f2 组件在 pc 千牛 端显示不了 tooltip,因此写了这个库。

src/f2.js 是F2build 后的其中一个文件。

说明

使用方式同my-f2 完全一致

如何使用

1. 安装依赖

npm install my-f2-pc2 --save

2. 打开 json 文件,引入组件

{
  "usingComponents": {
    "f2": "my-f2-pc2"
  }
}

3. 显示 tooltip

const f2 = new F2.Chart({ ...配置 });
f2.tooltip({
  triggerOn: ['mousedown', 'mousemove'],
  triggerOff: 'mouseup',
});

其他与my-f2完全一致,可以参考my-f2的 demo

Keywords

custom-component

FAQs

Package last updated on 02 Nov 2020

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