generated from thzxcx/vue3
refactor: 重命名
This commit is contained in:
8
utils/resolver.d.ts
vendored
8
utils/resolver.d.ts
vendored
@ -2,7 +2,7 @@
|
|||||||
* @Author: peerless_hero peerless_hero@outlook.com
|
* @Author: peerless_hero peerless_hero@outlook.com
|
||||||
* @Date: 2023-07-13 04:11:13
|
* @Date: 2023-07-13 04:11:13
|
||||||
* @LastEditors: zhaojinfeng 121016171@qq.com
|
* @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
|
* @FilePath: \uni\utils\resolver.d.ts
|
||||||
* @Description:
|
* @Description:
|
||||||
*
|
*
|
||||||
@ -24,11 +24,11 @@ interface ComponentResolverObject {
|
|||||||
}
|
}
|
||||||
type ComponentResolver = ComponentResolverFunction | ComponentResolverObject;
|
type ComponentResolver = ComponentResolverFunction | ComponentResolverObject;
|
||||||
|
|
||||||
/** ThUi 自动导入解析器 */
|
/** th-ui 自动导入解析器 */
|
||||||
export const resolverThzxcx: ComponentResolver
|
export const resolverThzxcx: ComponentResolver
|
||||||
|
|
||||||
/** thorui-uni 自动导入解析器 */
|
/** thorui 自动导入解析器 */
|
||||||
export const resolverThoruiUni: ComponentResolver
|
export const resolverThorUi: ComponentResolver
|
||||||
|
|
||||||
/** uni-ui 自动导入解析器 */
|
/** uni-ui 自动导入解析器 */
|
||||||
export const resolveruUniUi: ComponentResolver
|
export const resolveruUniUi: ComponentResolver
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
* @Author: zhaojinfeng 121016171@qq.com
|
* @Author: zhaojinfeng 121016171@qq.com
|
||||||
* @Date: 2023-06-25 10:56:32
|
* @Date: 2023-06-25 10:56:32
|
||||||
* @LastEditors: zhaojinfeng 121016171@qq.com
|
* @LastEditors: zhaojinfeng 121016171@qq.com
|
||||||
* @LastEditTime: 2023-07-13 12:04:43
|
* @LastEditTime: 2023-07-13 12:47:21
|
||||||
* @FilePath: \uni\utils\resolver.cjs
|
* @FilePath: \uni\utils\resolver.js
|
||||||
* @Description: 自动导入组件的解析器
|
* @Description: 自动导入组件的解析器
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@ -30,7 +30,7 @@ module.exports.resolverThzxcx = function (name) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
module.exports.resolverThoruiUni = function (name) {
|
module.exports.resolverThorUi = function (name) {
|
||||||
if (name.startsWith('Tui')) {
|
if (name.startsWith('Tui')) {
|
||||||
const componentName = toLower(name.slice(3))
|
const componentName = toLower(name.slice(3))
|
||||||
return {
|
return {
|
||||||
|
@ -31,7 +31,7 @@ export function resolverThzxcx(name) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export function resolverThoruiUni(name) {
|
export function resolverThorUi(name) {
|
||||||
if (name.startsWith('Tui')) {
|
if (name.startsWith('Tui')) {
|
||||||
const componentName = toLower(name.slice(3))
|
const componentName = toLower(name.slice(3))
|
||||||
return {
|
return {
|
||||||
|
Reference in New Issue
Block a user