feat: One off campaign UI (#2621)

This commit is contained in:
Muhsin Keloth 2021-07-15 13:31:43 +05:30 committed by GitHub
parent aa7db90cd2
commit cf785123a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 473 additions and 107 deletions

View file

@ -1,5 +1,5 @@
<template>
<div class="woot-date-range-picker">
<div class="date-picker">
<date-picker
:range="true"
:confirm="true"
@ -15,7 +15,6 @@
<script>
import DatePicker from 'vue2-datepicker';
import 'vue2-datepicker/index.css';
export default {
components: { DatePicker },
props: {
@ -33,32 +32,9 @@ export default {
},
},
methods: {
updateValue(val) {
this.$emit('change', val);
},
handleChange(value) {
this.updateValue(value);
this.$emit('change', value);
},
},
};
</script>
<style lang="scss">
.woot-date-range-picker {
margin-left: var(--space-smaller);
.mx-input {
display: flex;
border: 1px solid var(--color-border);
border-radius: var(--border-radius-normal);
box-shadow: none;
height: 4.6rem;
}
.mx-input:disabled,
.mx-input[readonly] {
background-color: var(--white);
cursor: pointer;
}
}
</style>