Skip to content

Commit 385e88f

Browse files
author
chensq
committed
优化生成组件模板逻辑
1 parent 2454a94 commit 385e88f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/template.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export default {
127127
},
128128
jsonTemplate: (componentInfo) => {
129129
return `{
130-
"classId": "idm.componet.${componentInfo.packageName}.${componentInfo.className.toLowerCase()}",
130+
"classId": "idm.component.${componentInfo.packageName}.${componentInfo.className.toLowerCase()}",
131131
"comName": "${componentInfo.comName}",
132132
"className": "${componentInfo.className}",
133133
"comType": "common",
@@ -416,7 +416,7 @@ export default {
416416
},
417417
configItem: (componentInfo) => {
418418
return {
419-
classId: `idm.componet.${componentInfo.packageName}.${componentInfo.className.toLowerCase()}`,
419+
classId: `idm.component.${componentInfo.packageName}.${componentInfo.className.toLowerCase()}`,
420420
comName: `${componentInfo.comName}`,
421421
className: `${componentInfo.className}`,
422422
comType: 'common',

0 commit comments

Comments
 (0)