We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2a89d4 commit 74373ceCopy full SHA for 74373ce
README.md
@@ -36,7 +36,7 @@
36
## 规范
37
38
- [x] 使用 ESLint 作为编码规范。
39
-- [ ] 使用 CSS bem 规范。
+- [x] 使用 CSS bem 规范。
40
- [x] 使用 Angular Commit 规范。
41
42
## 项目目录
components/button/src/button.vue
@@ -1,7 +1,7 @@
1
<template>
2
<button
3
:disabled="disabled"
4
- class="button"
+ class="demo__button_primary"
5
>
6
<slot />
7
</button>
components/button/src/style.scss
@@ -1,9 +1,13 @@
-.button {
- display: inline-block;
- cursor: pointer;
- user-select: none;
- height: 32px;
- padding: 0 15px;
- font-size: 14px;
8
- color: red;
+.demo {
+ &__button {
+ &_primary {
+ display: inline-block;
+ cursor: pointer;
+ user-select: none;
+ height: 32px;
+ padding: 0 15px;
9
+ font-size: 14px;
10
+ color: green;
11
+ }
12
13
}
0 commit comments