parent
0cb1f3e463
commit
27d459671e
2 changed files with 8 additions and 4 deletions
|
@ -10,6 +10,9 @@
|
||||||
<color-picker v-model="color" placement="bottom-start" size="small"></color-picker>
|
<color-picker v-model="color" placement="bottom-start" size="small"></color-picker>
|
||||||
<Date-picker type="date" placeholder="选择日期" size="small" style="width: 200px"></Date-picker>
|
<Date-picker type="date" placeholder="选择日期" size="small" style="width: 200px"></Date-picker>
|
||||||
<Button @click="setColor">set color</Button>
|
<Button @click="setColor">set color</Button>
|
||||||
|
|
||||||
|
<br><br><br><br>
|
||||||
|
<ColorPicker v-model="color7" :saturation="false"></ColorPicker>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
@ -18,7 +21,8 @@
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
color: 'rgba(12,34,255,.85)',
|
color: 'rgba(12,34,255,.85)',
|
||||||
color2: ''
|
color2: '',
|
||||||
|
color7: '#19be6b'
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {},
|
computed: {},
|
||||||
|
|
|
@ -24,10 +24,10 @@
|
||||||
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 v-if="saturation" :class="[prefixCls + '-picker-panel']">
|
<div :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 v-if="hue" :class="[prefixCls + '-picker-hue-slider']">
|
||||||
<Hue v-model="saturationColors" @change="childChange"></Hue>
|
<Hue v-model="saturationColors" @change="childChange"></Hue>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="alpha" :class="[prefixCls + '-picker-alpha-slider']">
|
<div v-if="alpha" :class="[prefixCls + '-picker-alpha-slider']">
|
||||||
|
@ -130,7 +130,7 @@
|
||||||
value: {
|
value: {
|
||||||
type: String
|
type: String
|
||||||
},
|
},
|
||||||
saturation: {
|
hue: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: true
|
default: true
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Reference in a new issue