🐛修复(antd): 修复antd组件按需导入失败bug

This commit is contained in:
landaiqing
2024-04-12 00:04:05 +08:00
parent 0c1f0e1a60
commit 532ac96abb
8 changed files with 52 additions and 242 deletions

View File

@@ -22,7 +22,7 @@ module.exports = {
{ value: '⚡️性能', name: '性能: 提升性能' },
{ value: '✅测试', name: '测试: 添加一个测试' },
{ value: '🔧工具', name: '工具: 开发工具变动(构建、脚手架工具等)' },
{ value: '⏪回滚', name: '回滚: 代码回退' },
{ value: '⏪回滚', name: '回滚: 代码回退' }
],
// scope 类型(定义之后,可通过上下键选择)
@@ -36,11 +36,11 @@ module.exports = {
['auth', '对 auth 修改'],
['other', '其他修改'],
// 如果选择 custom后面会让你再输入一个自定义的 scope。也可以不设置此项把后面的 allowCustomScopes 设置为 true
['custom', '以上都不是?我要自定义'],
['custom', '以上都不是?我要自定义']
].map(([value, description]) => {
return {
value,
name: `${value.padEnd(30)} (${description})`,
name: `${value.padEnd(30)} (${description})`
}
}),
@@ -76,7 +76,7 @@ module.exports = {
'填写更加详细的变更描述(可选)。使用 "|" 换行:\n',
breaking: '列举非兼容性重大的变更(可选):\n',
footer: '列举出所有变更的 ISSUES CLOSED可选。 例如: #31, #34\n',
confirmCommit: '确认提交?',
confirmCommit: '确认提交?'
},
// 设置只有 type 选择了 feat 或 fix才询问 breaking message
@@ -87,7 +87,7 @@ module.exports = {
// subject 限制长度
subjectLimit: 100,
breaklineChar: '|', // 支持 body 和 footer
breaklineChar: '|' // 支持 body 和 footer
// footerPrefix : 'ISSUES CLOSED:'
// askForBreakingChangeFirst : true,
}