Socket
Socket
Sign inDemoInstall

ac-printing-button

Package Overview
Dependencies
196
Maintainers
3
Versions
86
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ac-printing-button

Button ui component for react


Version published
Weekly downloads
85
increased by431.25%
Maintainers
3
Created
Weekly downloads
 

Readme

Source

ac-printing-button

基于营销云,提供的按钮组打印组件。

依赖

  • react >= 15.3.0
  • react-dom >= 15.3.0
  • prop-types >= 15.6.0

使用方法


$ ynpm install ac-printing-button --save

引入

import AcButton from 'ac-printing-button';

样式

import 'ac-printing-button/dist/index.css';

API

参数说明类型默认值
containerId挂在容器的Idstring-
setupDownloadUrl下载程序的url地址stringhttps://cdn.yonyoucloud.com/iprint/setup.exe?download
btns按钮数组array见 btns api
printCheckedUrl协议url地址stringyonyou://iprint
layoutType选中布局方式 (button、menu)stringbutton
label如果是layoutType是 menus,可以设置按钮文字stringbutton

btns API

参数说明类型默认值
label按钮显示文字stringdefault
url跳转urlstring-
urlParameter跳转url的上的参数obj-
type是否是下载组件string'' 空为跳转按钮、'dowloand' 为下载按钮
iconmenu中是否要带图标string-
开发调试
$ npm install -g bee-tools
$ git clone https://github.com/tinper-bee/ac-printing-button
$ cd ac-printing-button
$ npm install
$ npm run dev

Keywords

FAQs

Last updated on 23 Apr 2024

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc