aliyun-pds-js-widget
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

aliyun-pds-js-widget

PDS 官方提供的前端 Widget 组件库(通过Iframe嵌入)

如何使用

1. 引入

执行命令:npm install aliyun-pds-js-widget

import { PageWidget, WebOfficeWidget, VideoPlayerWidget } from 'aliyun-pds-js-widget'
  • PageWidget: 复用云盘界面的widget。
  • WebOfficeWidget: 文件预览widget。目前支持文档预览,文档编辑,视频预览。
  • VideoPlayerWidget: 视频播放器widget。

2. 初始化组件

const widgetOpts = {
	... // 配置项,详情请看帮助文档
}
const pds = new PageWidget(widgetOpts);

更加详细的介绍,请看 帮助文档

Readme

Keywords

Package Sidebar

Install

npm i aliyun-pds-js-widget

Weekly Downloads

0

Version

1.1.0

License

Apache-2.0

Unpacked Size

44.2 kB

Total Files

13

Last publish

Collaborators

  • aleelock