Commit 4ffec80723c7a0ae1a8bad32a9783d0eb0ea5059

Authored by Aresn
Committed by GitHub
2 parents 5edc93d6 2b2dc78a

Merge pull request #2724 from AlexanderMisel/patch-1

Add saturation property
Showing 1 changed file with 6 additions and 2 deletions   Show diff stats
src/components/color-picker/color-picker.vue
... ... @@ -24,7 +24,7 @@
24 24 v-transfer-dom>
25 25 <div :class="[prefixCls + '-picker']">
26 26 <div :class="[prefixCls + '-picker-wrapper']">
27   - <div :class="[prefixCls + '-picker-panel']">
  27 + <div v-if="saturation" :class="[prefixCls + '-picker-panel']">
28 28 <Saturation v-model="saturationColors" @change="childChange"></Saturation>
29 29 </div>
30 30 <div :class="[prefixCls + '-picker-hue-slider']">
... ... @@ -130,6 +130,10 @@
130 130 value: {
131 131 type: String
132 132 },
  133 + saturation: {
  134 + type: Boolean,
  135 + default: true
  136 + },
133 137 alpha: {
134 138 type: Boolean,
135 139 default: false
... ... @@ -367,4 +371,4 @@
367 371 }
368 372 }
369 373 };
370   -</script>
371 374 \ No newline at end of file
  375 +</script>
... ...