Skip to content

Commit

Permalink
style: Break line for parens
Browse files Browse the repository at this point in the history
  • Loading branch information
fwh1990 committed Sep 27, 2019
1 parent e64db6f commit 0c70205
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/libs/generateAlipayComponent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ export const generateAlipayComponent = (data: XmlData, config: Config) => {
path.join(saveDir, fileName + '.axml'),
svgTemplates
.join('\n\n')
.replace(/{{size}}/g, (value) => value + (config.use_rpx ? 'rpx' : 'px')));
.replace(/{{size}}/g, (value) => value + (config.use_rpx ? 'rpx' : 'px'))
);

let jsFile = getTemplate('alipay.js');

Expand Down
3 changes: 2 additions & 1 deletion src/libs/generateBaiduComponent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ export const generateBaiduComponent = (data: XmlData, config: Config) => {
path.join(saveDir, fileName + '.swan'),
svgTemplates
.join('\n\n')
.replace(/{{size}}/g, (value) => value + (config.use_rpx ? 'rpx' : 'px'));
.replace(/{{size}}/g, (value) => value + (config.use_rpx ? 'rpx' : 'px'))
);

let jsFile = getTemplate('baidu.js');

Expand Down
3 changes: 2 additions & 1 deletion src/libs/generateQqComponent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ export const generateQqComponent = (data: XmlData, config: Config) => {
path.join(saveDir, fileName + '.qml'),
svgTemplates
.join('\n\n')
.replace(/{{size}}/g, (value) => value + (config.use_rpx ? 'rpx' : 'px')));
.replace(/{{size}}/g, (value) => value + (config.use_rpx ? 'rpx' : 'px'))
);

let jsFile = getTemplate('qq.js');

Expand Down
3 changes: 2 additions & 1 deletion src/libs/generateToutiaoComponent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ export const generateToutiaoComponent = (data: XmlData, config: Config) => {
path.join(saveDir, fileName + '.ttml'),
svgTemplates
.join('\n\n')
.replace(/{{size}}/g, (value) => value + (config.use_rpx ? 'rpx' : 'px')));
.replace(/{{size}}/g, (value) => value + (config.use_rpx ? 'rpx' : 'px'))
);

let jsFile = getTemplate('toutiao.js');

Expand Down
3 changes: 2 additions & 1 deletion src/libs/generateWechatComponent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ export const generateWechatComponent = (data: XmlData, config: Config) => {
path.join(saveDir, fileName + '.wxml'),
svgTemplates
.join('\n\n')
.replace(/{{size}}/g, (value) => value + (config.use_rpx ? 'rpx' : 'px')));
.replace(/{{size}}/g, (value) => value + (config.use_rpx ? 'rpx' : 'px'))
);

let jsFile = getTemplate('wechat.js');

Expand Down

0 comments on commit 0c70205

Please sign in to comment.