ac-printing-button
0.1.43 • Public • Published
基于营销云,提供的按钮组打印组件。
- 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';
参数 |
说明 |
类型 |
默认值 |
containerId |
挂在容器的Id |
string |
- |
setupDownloadUrl |
下载程序的url地址 |
string |
https://cdn.yonyoucloud.com/iprint/setup.exe?download |
btns |
按钮数组 |
array |
见 btns api |
printCheckedUrl |
协议url地址 |
string |
yonyou://iprint |
layoutType |
选中布局方式 (button、menu) |
string |
button |
label |
如果是layoutType是 menus,可以设置按钮文字 |
string |
button |
参数 |
说明 |
类型 |
默认值 |
label |
按钮显示文字 |
string |
default |
url |
跳转url |
string |
- |
urlParameter |
跳转url的上的参数 |
obj |
- |
type |
是否是下载组件 |
string |
'' 空为跳转按钮、'dowloand' 为下载按钮 |
icon |
menu中是否要带图标 |
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
Package Sidebar
Install
Weekly Downloads