Merge pull request #2724 from AlexanderMisel/patch-1

Add saturation property
This commit is contained in:
Aresn 2018-01-08 14:49:59 +08:00 committed by GitHub
commit 4ffec80723
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,7 +24,7 @@
v-transfer-dom> v-transfer-dom>
<div :class="[prefixCls + '-picker']"> <div :class="[prefixCls + '-picker']">
<div :class="[prefixCls + '-picker-wrapper']"> <div :class="[prefixCls + '-picker-wrapper']">
<div :class="[prefixCls + '-picker-panel']"> <div v-if="saturation" :class="[prefixCls + '-picker-panel']">
<Saturation v-model="saturationColors" @change="childChange"></Saturation> <Saturation v-model="saturationColors" @change="childChange"></Saturation>
</div> </div>
<div :class="[prefixCls + '-picker-hue-slider']"> <div :class="[prefixCls + '-picker-hue-slider']">
@ -130,6 +130,10 @@
value: { value: {
type: String type: String
}, },
saturation: {
type: Boolean,
default: true
},
alpha: { alpha: {
type: Boolean, type: Boolean,
default: false default: false
@ -367,4 +371,4 @@
} }
} }
}; };
</script> </script>