From f9c3f7fd5321776c6ae37c55a0e64c15f459ee9a Mon Sep 17 00:00:00 2001 From: saqqdy Date: Tue, 13 Dec 2022 20:06:46 +0800 Subject: [PATCH] docs --- src/loadSource.ts | 2 +- src/mountCss.ts | 2 +- src/mountImg.ts | 2 +- src/mountJs.ts | 2 +- src/mountStyle.ts | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/loadSource.ts b/src/loadSource.ts index 3934cfda..70d3abaf 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 7aa2009e..87758a6f 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 fa04f11b..430fa8f7 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 60956f8e..afc06afe 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 714332c4..8e9103c6 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 {