Skip to content

Commit eaf7e45

Browse files
authored
dcos: update colon in english doc (#753)
1 parent ce8edcb commit eaf7e45

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

packages/scripts/config/language/description.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ module.exports = {
1818
uncontrolledText: '非受控属性',
1919
optionsText: '可选项:',
2020
htmlAttributeText: 'HTML 原生属性',
21-
tsTypeText: 'TS 类型',
21+
tsTypeText: 'TS 类型',
2222
deprecated: '已废弃',
2323
extendsText: '继承 ${fieldName} 中的全部属性',
2424
PlainObjectText: `\`PlainObject\` 不是 \${component} 中的属性,而表示 \${component} 本身支持添加任意属性,\`type PlainObject = {[key: string]: any}\`'`,
@@ -45,7 +45,7 @@ module.exports = {
4545
uncontrolledText: 'uncontrolled property',
4646
optionsText: 'options: ',
4747
htmlAttributeText: 'html attribute',
48-
tsTypeText: 'Typescript',
48+
tsTypeText: 'Typescript: ',
4949
deprecated: '`deprecated`',
5050
extendsText: 'extends ${fieldName}',
5151
PlainObjectText: `\`PlainObject\` is not an attribute of \${component},it means you can add and attributes to \${component}, \`type PlainObject = {[key: string]: any}\`'`,

packages/scripts/docs/vue.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ function formatDesc(
207207
if ((isMiniprogram && customFieldType.indexOf('TNode') === -1) || !isMiniprogram) {
208208
// tsTypeText 中文"TS 类型"
209209
const language = languageConfig[LANGUAGE];
210-
const tsLabel = api.field_name === 'externalClasses' ? '' : `${language.tsTypeText}`;
210+
const tsLabel = api.field_name === 'externalClasses' ? '' : `${language.tsTypeText}`;
211211
desc.push(`${tsLabel}\`${customFieldType}\`${importDocPath}`);
212212
}
213213
// 有使用了通用类型,就显示定义链接
@@ -358,7 +358,7 @@ function formatEventToProps(api) {
358358
baseName = baseName.replace(/`/g, '');
359359
// tsTypeText 中文"TS 类型"
360360
const language = languageConfig[LANGUAGE];
361-
const desc = [`${language.tsTypeText}\`${baseName || '()'} => void\`<br/>`, api.field_desc_zh].filter(v => !!v).join('');
361+
const desc = [`${language.tsTypeText}\`${baseName || '()'} => void\`<br/>`, api.field_desc_zh].filter(v => !!v).join('');
362362
return [name, 'Function', undefined, desc, 'N'].join(' | ');
363363
}
364364

@@ -403,7 +403,7 @@ function addCommonProperties({
403403
if (['React(PC)', 'React(Mobile)'].includes(framework) && !COMPONENTS_MAP[cmp].type && !filterComponents.includes(cmp)) {
404404
md[category].apis = md[category].apis.concat([
405405
`className | String | - | ${languageInfo.classNameText} | N`,
406-
`style | Object | - | ${languageInfo.styleText}${languageInfo.tsTypeText}\`React.CSSProperties\` | N`,
406+
`style | Object | - | ${languageInfo.styleText}${languageInfo.tsTypeText}\`React.CSSProperties\` | N`,
407407
]);
408408
} else if (framework === 'Miniprogram' && !COMPONENTS_MAP[cmp].type && category === 'Props') {
409409
md[category].apis.push(...[

0 commit comments

Comments
 (0)