-
-
Notifications
You must be signed in to change notification settings - Fork 626
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/counter&slider): add class&call #382
Conversation
# Conflicts: # packages/varlet-ui/src/card/docs/zh-CN.md
@@ -1,16 +1,14 @@ | |||
<template> | |||
<div class="var-counter var--box"> | |||
<div :class="[n(), 'var--box']"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
多个类名使用classes
函数,下面的请同步修改
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已按要求改好啦哈
Codecov Report
@@ Coverage Diff @@
## dev #382 +/- ##
==========================================
+ Coverage 96.39% 96.43% +0.03%
==========================================
Files 209 209
Lines 4911 4961 +50
Branches 1034 1003 -31
==========================================
+ Hits 4734 4784 +50
+ Misses 177 173 -4
- Partials 0 4 +4
Continue to review full report at Codecov.
|
<div | ||
class="var-counter__controller var-elevation--2" | ||
:class="[disabled || formDisabled ? 'var-counter--disabled' : null, errorMessage ? 'var-counter--error' : null]" | ||
:class="classes(n('controller'), 'var-elevation--2', disabled || formDisabled ? n('--disabled') : null, errorMessage ? n('--error') : null)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
条件判断的话使用数组 如
:class="classes(
n('controller'),
'var-elevation--2',
[disabled || formDisabled, n('--disabled')],
[errorMessage, n('--error')]
)"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我狠狠得改!
nice! |
Checklist
Change information