Skip to content

Commit

Permalink
fix(cli): 去除无用的指令, 修复class输出的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Genuifx committed Mar 5, 2020
1 parent fd4c934 commit a62f6ed
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion packages/wxa-cli/src/resolvers/directive/mock/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function mock(drc, element, mdl) {
if (isDev()) {
let targetList = findMockTarget(element);
targetList.forEach((target) => {
element.attribs.class = addClass(element.attribs.class, DRC_CLASS_NAME);
element.attribs.class = addClass(element.attribs.class, DRC_CLASS_NAME).join(' ');
element.attribs[DRC_ATTR_NAME] = drc.value;
delete target.attribs[DRC_FULL_NAME];
setWarningStyle(target);
Expand Down
1 change: 0 additions & 1 deletion packages/wxa-cli/src/wxa.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ commander
.option('--no-progress', '不展示文件进度')
.option('--verbose', '展示多余的信息')
.option('-t, --target', '编译目标平台,如微信小程序wechat, 头条小程序tt')
.option('-d-mock', '开启mock指令')
// .option('--max-watch-project <max>', '三方开发模式,最多同时监听几个项目, default: 3')
.action(async (cmd)=>{
showSlogan();
Expand Down

0 comments on commit a62f6ed

Please sign in to comment.