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

fix(button): classname use prefix #51

Merged
merged 3 commits into from
Dec 29, 2021
Merged

fix(button): classname use prefix #51

merged 3 commits into from
Dec 29, 2021

Conversation

LeeJim
Copy link
Collaborator

@LeeJim LeeJim commented Dec 27, 2021

使用 prefix 设置 classname

wx:if="{{icon}}"
name="{{icon}}"
size="44rpx"
class="{{classPrefix}}__icon {{prefix}}-class"
Copy link
Collaborator

Choose a reason for hiding this comment

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

{{prefix}}-class放icon上?此处是否应该放 {{prefix}}-class-icon?

@@ -47,7 +49,7 @@ export default class Button extends SuperComponent {
setClass() {
const classList = [
name,
't-class',
`${prefix}-class`,
`${name}--${this.data.theme || 'default'}`,
`${name}--size-${this.data.size}`,
Copy link
Collaborator

Choose a reason for hiding this comment

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

${prefix}-size-l${prefix}-size-m${prefix}-size-s?

Copy link
Collaborator Author

@LeeJim LeeJim Dec 28, 2021

Choose a reason for hiding this comment

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

ok 这样和其他端保持一致了

Copy link
Collaborator

@jin0209 jin0209 left a comment

Choose a reason for hiding this comment

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

lgtm

@jin0209 jin0209 merged commit a90b3fd into develop Dec 29, 2021
@jin0209 jin0209 deleted the fix/input/classname branch December 29, 2021 07:29
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.

2 participants