Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
saqqdy committed Dec 13, 2022
1 parent f9c3f7f commit 79f1cdd
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## 2022.12.13 v2.8.0 更新日志

1. `loadSource` `mountCss` `mountImg` `mountJs` `mountStyle`新增支持传入自定义属性,调整入参形式,并完善 ts 类型,修复IE兼容问题
1. `loadSource` `mountCss` `mountImg` `mountJs` `mountStyle`新增支持传入自定义属性,调整入参形式,并完善 ts 类型,修复 IE 兼容问题
2. 依赖包升级

## 2022.12.07 v2.7.1 更新日志
Expand Down
2 changes: 1 addition & 1 deletion src/loadSource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export interface Options {
* 动态加载资源,支持js、图片、css链接、css样式字符串
*
* @param url - 资源链接,传入styleString时,type必传
* @param option - 参数: "{ attrs, props, force }"
* @param option - 参数: attrs, props, force
* @returns - true|false|imgUrl
*/
async function loadSource(
Expand Down
2 changes: 1 addition & 1 deletion src/mountCss.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export interface CssOptions {
* 动态加载css链接资源
*
* @param src - 资源地址
* @param option - 参数: "{ attrs, props, force }"
* @param option - 参数: attrs, props, force
* @returns - result
*/
function mountCss(src: string, option: CssOptions): Promise<boolean> {
Expand Down
2 changes: 1 addition & 1 deletion src/mountImg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export interface ImgOptions {
* 动态加载图片资源
*
* @param src - 资源地址
* @param option - 参数: "{ attrs, props, force }"
* @param option - 参数: attrs, props, force
* @returns - result
*/
function mountImg(src: string, option: ImgOptions): Promise<boolean | string> {
Expand Down
2 changes: 1 addition & 1 deletion src/mountJs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export interface JsOptions {
* 动态加载js链接资源
*
* @param src - 资源地址
* @param option - 参数: "{ attrs, props, force }"
* @param option - 参数: attrs, props, force
* @returns - result
*/
function mountJs(src: string, option: JsOptions): Promise<boolean> {
Expand Down
2 changes: 1 addition & 1 deletion src/mountStyle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export interface StyleOptions {
* 动态加载css样式
*
* @param src - css string
* @param option - 参数: "{ attrs, props }"
* @param option - 参数: attrs, props
* @returns - result
*/
function mountStyle(css: string, option: StyleOptions): Promise<boolean> {
Expand Down

0 comments on commit 79f1cdd

Please sign in to comment.