Skip to content

Commit

Permalink
fix: support ts
Browse files Browse the repository at this point in the history
  • Loading branch information
liudawei committed Sep 28, 2020
1 parent fec7c2e commit 3435231
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 11 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# 更新日志

## v0.0.2

### 优化

* 支持 ts,更新文档

## v0.0.1

### 新增
Expand Down
21 changes: 13 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,26 @@
# share-sheet

Share Sheet 是一个基于 Vue.js 的用于 Web 打开 APP 客户端的一体化方案,兼容 iOS 与 Android,支持微信开放标签
Share Sheet 是一个基于 Vue.js 的用于 Web 打开 APP 客户端的一体化方案,兼容 iOS 与 Android,支持微信开放标签 `<wx-open-launch-app>`

![npm](https://img.shields.io/badge/npm-0.0.2-brightgreen.svg)

<img src="https://iovo-oss.yy.com/upload/1601195469104F8fovabDL.jpeg" width="350">
* 唤起 APP 的逻辑详见 [yypkg/appCall](https://yypkg.github.io/doc.html#appcall)
* UI 组件建议通过 `git clone` 直接放到项目中使用,如使用 npm 安装,请配置 vue loader;

## 安装

```
yarn add share-sheet
```
## DEOM

<img src="https://iovo-oss.yy.com/upload/1601195469104F8fovabDL.jpeg" width="350" border="1">


## 使用

```
git clone https://github.com/yyued/share-sheet.git
```

```js
import shareSheet from 'share-sheet'
import shareSheet from '@/components/share-sheet'
Vue.use(shareSheet)

// 初始化
Expand Down Expand Up @@ -59,7 +65,6 @@ this.$shareSheet({
| `fallbackUrl` ||| fallback 链接,当打开 APP 失败时跳转到该链接 |


唤起 APP 的逻辑详见 [yypkg/appCall](https://yypkg.github.io/doc.html#appcall)



4 changes: 4 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
declare const _default: {
install(): void;
};
export default _default;
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "share-sheet",
"version": "0.0.1",
"version": "0.0.2",
"description": "Share Sheet 是一个基于 Vue.js 的用于 Web 打开 APP 客户端的一体化方案,兼容 iOS 与 Android,支持微信开放标签",
"main": "index.js",
"repository": {
"type": "git",
"url": "git+https://github.com/yyued/share-sheet.git"
},
"author": "YY.UED",
"author": "LiuDawei",
"license": "MIT",
"bugs": {
"url": "https://github.com/yyued/share-sheet/issues"
Expand All @@ -16,5 +16,6 @@
"dependencies": {
"vue": "^2.6.11",
"yypkg": "^2.0.14"
}
},
"keywords": ["share sheet", "universal link", "URL Schema", "wx-open-launch-app"]
}

0 comments on commit 3435231

Please sign in to comment.