-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(simple-morse): add simple morse
- Loading branch information
Showing
45 changed files
with
882 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -110,6 +110,7 @@ pnpm-lock.yaml | |
.env.local | ||
|
||
/test.js | ||
/test-*.js | ||
repo/ | ||
# /docs/zh | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
[[toc]] | ||
|
||
## 引入 | ||
|
||
```ts | ||
import { openLocationInMp, openLocationInH5 } from 't-comm'; | ||
|
||
// or | ||
|
||
import { openLocationInMp, openLocationInH5} from 't-comm/lib/open-location/index'; | ||
``` | ||
|
||
|
||
## `openLocationInMp(param)` | ||
|
||
|
||
**描述**:<p>打开地图,查看位置</p> | ||
|
||
**参数**: | ||
|
||
|
||
| 参数名 | 描述 | | ||
| --- | --- | | ||
| param | <p>参数</p> | | ||
|
||
**返回**: <p>查看Promise</p> | ||
|
||
**示例** | ||
|
||
```ts | ||
openLocationInMp({ | ||
lat, | ||
lng, | ||
name, | ||
address, | ||
}); | ||
<a name="openLocationInH5"></a> | ||
|
||
## `openLocationInH5(param)` | ||
|
||
|
||
**描述**:<p>打开地图,查看位置</p> | ||
|
||
**参数**: | ||
|
||
|
||
| 参数名 | 描述 | | ||
| --- | --- | | ||
| param | <p>参数</p> | | ||
|
||
**返回**: <p>查看Promise</p> | ||
|
||
**示例** | ||
|
||
```ts | ||
openLocationInH5({ | ||
lat, | ||
lng, | ||
name, | ||
address, | ||
context: this, | ||
route: '/map' | ||
}); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
[[toc]] | ||
|
||
## 引入 | ||
|
||
```ts | ||
import { getRouteLeaveCache } from 't-comm'; | ||
|
||
// or | ||
|
||
import { getRouteLeaveCache} from 't-comm/lib/uni-app/index'; | ||
``` | ||
|
||
|
||
## `getRouteLeaveCache()` | ||
|
||
|
||
**描述**:<p>路由离开前记住缓存,返回后不刷新页面</p> | ||
<p>比如创建赛事页面,如果前往查看规则,返回后,希望保留之前的表单</p> | ||
<p>注意,用了这个 mixin,就不要用 onShow 了,而是用 mounted, | ||
否则可能会重复触发刷新</p> | ||
|
||
**参数**: | ||
|
||
|
||
| 参数名 | 类型 | 描述 | | ||
| --- | --- | --- | | ||
| config.refresh | <code>string</code> | <p>刷新方法</p> | | ||
|
||
**返回**: <p>返回对象,包含 beforeRouteLeave 和 activated 方法</p> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.