generated from thzxcx/vue3
fix: 拆分es和commonjs
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
/*
|
||||
* @Author: zhaojinfeng 121016171@qq.com
|
||||
* @Date: 2023-06-25 10:56:32
|
||||
* @LastEditors: peerless_hero peerless_hero@outlook.com
|
||||
* @LastEditTime: 2023-07-13 04:11:50
|
||||
* @LastEditors: zhaojinfeng 121016171@qq.com
|
||||
* @LastEditTime: 2023-07-13 10:20:10
|
||||
* @FilePath: \uni\utils\resolver.js
|
||||
* @Description: 自动导入组件的解析器
|
||||
*
|
||||
@ -20,7 +20,7 @@ function toLower(name) {
|
||||
return lower
|
||||
}
|
||||
|
||||
export default function (name) {
|
||||
module.exports.resolverThzxcx = function (name) {
|
||||
if (name.startsWith('Th')) {
|
||||
const componentName = toLower(name.slice(2))
|
||||
return {
|
||||
|
Reference in New Issue
Block a user