Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf(ui/switch): add class #372

Merged
merged 5 commits into from
Apr 4, 2022
Merged

Conversation

chunhuigao
Copy link
Contributor

Checklist


  • Fix linting errors
  • Tests have been added / updated (or snapshots)

Change information


@github-actions
Copy link

github-actions bot commented Apr 3, 2022

@codecov-commenter
Copy link

codecov-commenter commented Apr 3, 2022

Codecov Report

Merging #372 (82fe486) into dev (ba68dc9) will increase coverage by 0.02%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##              dev     #372      +/-   ##
==========================================
+ Coverage   96.39%   96.41%   +0.02%     
==========================================
  Files         209      209              
  Lines        4907     4936      +29     
  Branches     1047      991      -56     
==========================================
+ Hits         4730     4759      +29     
  Misses        177      177              
Impacted Files Coverage Δ
packages/varlet-ui/src/switch/Switch.vue 100.00% <100.00%> (ø)
packages/varlet-ui/src/col/Col.vue 100.00% <0.00%> (ø)
packages/varlet-ui/src/row/Row.vue 100.00% <0.00%> (ø)
packages/varlet-ui/src/cell/Cell.vue 100.00% <0.00%> (ø)
packages/varlet-ui/src/form/Form.vue 100.00% <0.00%> (ø)
packages/varlet-ui/src/icon/Icon.vue 100.00% <0.00%> (ø)
packages/varlet-ui/src/list/List.vue 100.00% <0.00%> (ø)
packages/varlet-ui/src/rate/Rate.vue 100.00% <0.00%> (ø)
packages/varlet-ui/src/image/Image.vue 100.00% <0.00%> (ø)
packages/varlet-ui/src/input/Input.vue 100.00% <0.00%> (ø)
... and 10 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ba68dc9...82fe486. Read the comment docs.

<div
class="var-switch-block"
:class="[disabled || formDisabled ? 'var-switch__disable' : null]"
:class="classes('var-switch-block', [disabled || formDisabled, n('disable')])"
Copy link
Member

@BeADre BeADre Apr 4, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里我命名有点问题 var-switch-block改成var-switch__blockvar-switch__disable改成var-switch--disable ,less 文件里面也需要改哈

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the test file need to be modified?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

e.g?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

测试用例中的快照是var-switch-disable ,如果只是.vue和.less修改,yarn test 会失败

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

那单测就一起改

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

好的

@BeADre
Copy link
Member

BeADre commented Apr 4, 2022

thanks

@BeADre BeADre merged commit 1d5eaed into varletjs:dev Apr 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants