diff --git a/examples/routers/color-picker.vue b/examples/routers/color-picker.vue index f0091b07..b8eefed6 100644 --- a/examples/routers/color-picker.vue +++ b/examples/routers/color-picker.vue @@ -1,11 +1,11 @@ diff --git a/src/components/color-picker/color-picker.vue b/src/components/color-picker/color-picker.vue index 8c2574b1..838576a3 100644 --- a/src/components/color-picker/color-picker.vue +++ b/src/components/color-picker/color-picker.vue @@ -7,9 +7,17 @@ -

常用于各种自定义下拉内容的场景。

-
- +
+
+
+ +
+
+ +
+ + +
@@ -17,6 +25,9 @@ \ No newline at end of file diff --git a/src/styles/components/color-picker.less b/src/styles/components/color-picker.less index ab441950..7259b2d3 100644 --- a/src/styles/components/color-picker.less +++ b/src/styles/components/color-picker.less @@ -21,4 +21,45 @@ height: 14px; top: 3px; } + + &-picker{ + padding: 8px 8px 0; + &-panel{ + width: 200px; + height: 200px; + margin: 0 auto; + background: #47cb89; + border-radius: 50%; + } + &-hue-slider{ + + } + &-alpha-slider{ + + } + &-colors{ + margin-top: 8px; + span{ + display: inline-block; + width: 18px; + height: 18px; + em{ + display: block; + width: 16px; + height: 16px; + border: 1px solid transparent; + cursor: pointer; + border-radius: 2px; + } + } + } + &-colors-recommended{ + span:last-child em{ + border: 1px solid #6b6f78; + } + } + .@{picker-prefix-cls}-confirm{ + margin-top: 8px; + } + } } \ No newline at end of file