refactor: 重命名

This commit is contained in:
2023-07-13 12:49:42 +08:00
parent 05a173e0f1
commit 3e127d7a83
3 changed files with 8 additions and 8 deletions

8
utils/resolver.d.ts vendored
View File

@ -2,7 +2,7 @@
* @Author: peerless_hero peerless_hero@outlook.com
* @Date: 2023-07-13 04:11:13
* @LastEditors: zhaojinfeng 121016171@qq.com
* @LastEditTime: 2023-07-13 11:17:39
* @LastEditTime: 2023-07-13 12:49:28
* @FilePath: \uni\utils\resolver.d.ts
* @Description:
*
@ -24,11 +24,11 @@ interface ComponentResolverObject {
}
type ComponentResolver = ComponentResolverFunction | ComponentResolverObject;
/** ThUi 自动导入解析器 */
/** th-ui 自动导入解析器 */
export const resolverThzxcx: ComponentResolver
/** thorui-uni 自动导入解析器 */
export const resolverThoruiUni: ComponentResolver
/** thorui 自动导入解析器 */
export const resolverThorUi: ComponentResolver
/** uni-ui 自动导入解析器 */
export const resolveruUniUi: ComponentResolver

View File

@ -2,8 +2,8 @@
* @Author: zhaojinfeng 121016171@qq.com
* @Date: 2023-06-25 10:56:32
* @LastEditors: zhaojinfeng 121016171@qq.com
* @LastEditTime: 2023-07-13 12:04:43
* @FilePath: \uni\utils\resolver.cjs
* @LastEditTime: 2023-07-13 12:47:21
* @FilePath: \uni\utils\resolver.js
* @Description: 自动导入组件的解析器
*
*/
@ -30,7 +30,7 @@ module.exports.resolverThzxcx = function (name) {
}
}
}
module.exports.resolverThoruiUni = function (name) {
module.exports.resolverThorUi = function (name) {
if (name.startsWith('Tui')) {
const componentName = toLower(name.slice(3))
return {

View File

@ -31,7 +31,7 @@ export function resolverThzxcx(name) {
}
}
export function resolverThoruiUni(name) {
export function resolverThorUi(name) {
if (name.startsWith('Tui')) {
const componentName = toLower(name.slice(3))
return {