-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
hzzhangdaying
committed
Jul 16, 2018
1 parent
9142eb2
commit c4354c0
Showing
8 changed files
with
38 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,14 +2,8 @@ | |
|
||
`Element UI`的自定义样式 | ||
|
||
对于ElementUI原有组件中需要修改的样式,在`theme/kaola.css`中覆盖原有样式即可 | ||
|
||
当前对应依赖版本:`[email protected]`、`[email protected]` | ||
当前对应依赖版本:`[email protected]`、`[email protected]` | ||
|
||
需要安装sass-loader依赖 | ||
|
||
因为饿了么组件升级,select的计算属性不兼容,所以select需要修改组件,使用时直接全局注册即可 | ||
|
||
import ElSelect from 'element-kaola/Select/index'; | ||
//全局注册组件 | ||
Vue.component('el-select', ElSelect); | ||
按照nek-ui覆盖原element-ui的样式,使用的话直接按如下引入即可 | ||
import 'element-kaola/index.scss' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
@include b(form) { | ||
@include m(label-top) { | ||
.el-form-item__label { | ||
padding-bottom: 8px; | ||
line-height: 17px; | ||
} | ||
} | ||
} | ||
@include b(form-item) { | ||
margin-bottom: 16px; | ||
@include e(label) { | ||
line-height: 1; | ||
padding: 14px 12px 14px 0; | ||
font-size: 12px; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,7 @@ | |
} | ||
|
||
@include b(select) { | ||
width: 100%; | ||
.el-tag--info { | ||
color: #909399; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
@charset "UTF-8"; | ||
@import "./reset.css"; | ||
@import "./util.css"; | ||
@import "@/style/common/element-variables.scss"; | ||
@import "@/style/components/index.scss"; | ||
@import "./common/element-variables.scss"; | ||
@import "./components/index.scss"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters