generated from thzxcx/vue3
fix: 组件导入逻辑
This commit is contained in:
@ -41,7 +41,7 @@ module.exports.resolverThorUi = function (name) {
|
||||
return {
|
||||
name: 'default',
|
||||
as: name,
|
||||
from: `thorui-uni/lib/thorui/tui-${componentName}/tui${componentName}.vue`,
|
||||
from: `thorui-uni/lib/thorui/tui-${componentName}/tui-${componentName}.vue`,
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -52,7 +52,7 @@ module.exports.resolverUniUi = function (name) {
|
||||
return {
|
||||
name: 'default',
|
||||
as: name,
|
||||
from: `@dcloudio/uni-ui/lib/uni-${componentName}/uni${componentName}.vue`,
|
||||
from: `@dcloudio/uni-ui/lib/uni-${componentName}/uni-${componentName}.vue`,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2,7 +2,7 @@
|
||||
* @Author: zhaojinfeng 121016171@qq.com
|
||||
* @Date: 2023-06-25 10:56:32
|
||||
* @LastEditors: zhaojinfeng 121016171@qq.com
|
||||
* @LastEditTime: 2023-07-13 13:06:00
|
||||
* @LastEditTime: 2023-07-13 13:12:47
|
||||
* @FilePath: \uni\utils\resolver.mjs
|
||||
* @Description: 自动导入组件的解析器
|
||||
*
|
||||
@ -42,7 +42,7 @@ export function resolverThorUi(name) {
|
||||
return {
|
||||
name: 'default',
|
||||
as: name,
|
||||
from: `thorui-uni/lib/thorui/tui-${componentName}/tui${componentName}.vue`,
|
||||
from: `thorui-uni/lib/thorui/tui-${componentName}/tui-${componentName}.vue`,
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -53,7 +53,7 @@ export function resolverUniUi(name) {
|
||||
return {
|
||||
name: 'default',
|
||||
as: name,
|
||||
from: `@dcloudio/uni-ui/lib/uni-${componentName}/uni${componentName}.vue`,
|
||||
from: `@dcloudio/uni-ui/lib/uni-${componentName}/uni-${componentName}.vue`,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user