From 79f1cdde26705ff3a6556005415d55acc2bf87d2 Mon Sep 17 00:00:00 2001 From: saqqdy Date: Tue, 13 Dec 2022 20:09:14 +0800 Subject: [PATCH] docs --- CHANGELOG.md | 2 +- src/loadSource.ts | 2 +- src/mountCss.ts | 2 +- src/mountImg.ts | 2 +- src/mountJs.ts | 2 +- src/mountStyle.ts | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 85684ad2..3f34e1e3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 更新日志 diff --git a/src/loadSource.ts b/src/loadSource.ts index 70d3abaf..5b806333 100644 --- a/src/loadSource.ts +++ b/src/loadSource.ts @@ -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( diff --git a/src/mountCss.ts b/src/mountCss.ts index 87758a6f..25932da4 100644 --- a/src/mountCss.ts +++ b/src/mountCss.ts @@ -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 { diff --git a/src/mountImg.ts b/src/mountImg.ts index 430fa8f7..ef2a62f9 100644 --- a/src/mountImg.ts +++ b/src/mountImg.ts @@ -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 { diff --git a/src/mountJs.ts b/src/mountJs.ts index afc06afe..8a73c933 100644 --- a/src/mountJs.ts +++ b/src/mountJs.ts @@ -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 { diff --git a/src/mountStyle.ts b/src/mountStyle.ts index 8e9103c6..b7cd85df 100644 --- a/src/mountStyle.ts +++ b/src/mountStyle.ts @@ -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 {