Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bb8ae75

Browse files
committed
修复插件文字颜色,可被外部覆盖的问题
1 parent a74d4ba commit bb8ae75

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/color-picker/src/color-picker.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export default {
7676
// 默认颜色
7777
defaultColor: {
7878
type: String,
79-
default: '#000'
79+
default: '#000000'
8080
},
8181
// 禁用状态
8282
disabled: {
@@ -91,7 +91,7 @@ export default {
9191
// 鼠标经过的颜色块
9292
hoveColor: null,
9393
// 主题颜色
94-
tColor: ['#000', '#fff', '#eeece1', '#1e497b', '#4e81bb', '#e2534d', '#9aba60', '#8165a0', '#47acc5', '#f9974c'],
94+
tColor: ['#000000', '#ffffff', '#eeece1', '#1e497b', '#4e81bb', '#e2534d', '#9aba60', '#8165a0', '#47acc5', '#f9974c'],
9595
// 颜色面板
9696
colorConfig: [
9797
['#7f7f7f', '#f2f2f2'],
@@ -209,13 +209,13 @@ export default {
209209
.colorBtn.disabled{ cursor: no-drop; }
210210
.box{
211211
position: absolute; width: 190px; background: #fff; border: 1px solid #ddd; visibility: hidden; border-radius: 2px; margin-top: 2px; padding: 10px; padding-bottom: 5px; box-shadow: 0 0 5px rgba(0,0,0,.15); opacity: 0; transition: all .3s ease;
212-
h3{ margin: 0; font-size: 14px; font-weight: normal; margin-top: 10px; margin-bottom: 5px; line-height: 1; }
212+
h3{ margin: 0; font-size: 14px; font-weight: normal; margin-top: 10px; margin-bottom: 5px; line-height: 1; color: #333; }
213213
}
214214
.box.open{ visibility: visible; opacity: 1; }
215215
.hd{
216216
overflow: hidden; line-height: 29px;
217217
.colorView{ width: 100px; height: 30px; float: left; transition: background-color .3s ease; }
218-
.defaultColor{ width: 80px; float: right; text-align: center; border: 1px solid #ddd; cursor: pointer; }
218+
.defaultColor{ width: 80px; float: right; text-align: center; border: 1px solid #ddd; cursor: pointer; color: #333; }
219219
}
220220
.tColor{
221221
li{ width: 15px; height: 15px; display: inline-block; margin: 0 2px; transition: all .3s ease; }

0 commit comments

Comments
 (0)