diff --git a/dist/Form/index.d.ts b/dist/Form/index.d.ts index 4eab35d1..cf44fd3a 100644 --- a/dist/Form/index.d.ts +++ b/dist/Form/index.d.ts @@ -21,7 +21,7 @@ export declare function toFormData(obj: any, hasBrackets?: boolean, hasIndex?: b */ export declare function toQueryString(obj: any, hasBrackets?: boolean, hasIndex?: boolean): URLSearchParams; /** - * 创建用于处理表单数据的钩子函数 + * 创建用于处理数据的钩子函数 * @example * const [getData, setData, resetData] = useStateData({a: 1, b: 2, c: 3}); * console.log(getData()); /// {a: 1, b: 2, c: 3} diff --git a/dist/index.source.js b/dist/index.source.js index 934e4afe..82123306 100644 --- a/dist/index.source.js +++ b/dist/index.source.js @@ -12346,7 +12346,7 @@ return queryString; } /** - * 创建用于处理表单数据的钩子函数 + * 创建用于处理数据的钩子函数 * @example * const [getData, setData, resetData] = useStateData({a: 1, b: 2, c: 3}); * console.log(getData()); /// {a: 1, b: 2, c: 3} @@ -12362,7 +12362,7 @@ function useStateData(initialData) { var data = initialData; /** - * 设置表单数据 + * 设置数据 * @param value 新的数据 */ function setData(value) { @@ -12370,14 +12370,14 @@ return data; } /** - * 重置表单数据为初始值 + * 重置数据为初始值 */ function resetData() { data = initialData; return data; } /** - * 获取数据值 + * 获取数据 */ function getData() { return data; diff --git a/docs/README.md b/docs/README.md index ddad077c..c9ca755f 100644 --- a/docs/README.md +++ b/docs/README.md @@ -6924,7 +6924,7 @@ ___ ▸ **useStateData**(`initialData`): (`value`: `any`) => `any`[] -创建用于处理表单数据的钩子函数 +创建用于处理数据的钩子函数 **`Example`** diff --git a/es/Form/index.d.ts b/es/Form/index.d.ts index 4eab35d1..cf44fd3a 100644 --- a/es/Form/index.d.ts +++ b/es/Form/index.d.ts @@ -21,7 +21,7 @@ export declare function toFormData(obj: any, hasBrackets?: boolean, hasIndex?: b */ export declare function toQueryString(obj: any, hasBrackets?: boolean, hasIndex?: boolean): URLSearchParams; /** - * 创建用于处理表单数据的钩子函数 + * 创建用于处理数据的钩子函数 * @example * const [getData, setData, resetData] = useStateData({a: 1, b: 2, c: 3}); * console.log(getData()); /// {a: 1, b: 2, c: 3} diff --git a/es/index.source.js b/es/index.source.js index 1782dd41..7e8f043e 100644 --- a/es/index.source.js +++ b/es/index.source.js @@ -12340,7 +12340,7 @@ function toQueryString(obj, hasBrackets, hasIndex) { return queryString; } /** - * 创建用于处理表单数据的钩子函数 + * 创建用于处理数据的钩子函数 * @example * const [getData, setData, resetData] = useStateData({a: 1, b: 2, c: 3}); * console.log(getData()); /// {a: 1, b: 2, c: 3} @@ -12356,7 +12356,7 @@ function toQueryString(obj, hasBrackets, hasIndex) { function useStateData(initialData) { var data = initialData; /** - * 设置表单数据 + * 设置数据 * @param value 新的数据 */ function setData(value) { @@ -12364,14 +12364,14 @@ function useStateData(initialData) { return data; } /** - * 重置表单数据为初始值 + * 重置数据为初始值 */ function resetData() { data = initialData; return data; } /** - * 获取数据值 + * 获取数据 */ function getData() { return data; diff --git a/html/functions/useStateData.html b/html/functions/useStateData.html index 13d81906..681f337e 100644 --- a/html/functions/useStateData.html +++ b/html/functions/useStateData.html @@ -19,7 +19,7 @@

Function useStateData