Skip to content

Commit 5450961

Browse files
committed
优化jsdoc
1 parent ee13c5c commit 5450961

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

build/jsdocs/template/tmpl/params.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
<td class="description last">
8484
<?js if (params.hasAttributes) {?>
8585
<?js if (param.optional) { ?>
86-
<span class="optional">可选</span>
86+
<span class="optional"> <?js if (self.language==='en') { ?><?js= 'optional' ?><?js }else{ ?><?js= '可选' ?><?js } ?></span>
8787
<?js } ?>
8888
<?js if (param.nullable) { ?>
8989
<span class="nullable">nullable</span>

build/jsdocs/template/tmpl/properties.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696

9797

9898
<td class="description last"> <?js if (prop.optional) { ?>
99-
<span class="optional">可选</span>
99+
<span class="optional"><?js if (self.language==='en') { ?><?js= 'optional' ?><?js }else{ ?><?js= '可选' ?><?js } ?></span>
100100
<?js } ?><?js= prop.description ?><?js if (prop.subprops) { ?>
101101
<h6>Properties</h6><?js= self.partial('properties.tmpl', prop.subprops) ?>
102102
<?js } ?></td>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy