fix: 日期组件样式修复

This commit is contained in:
fit2cloud-chenyw 2021-06-24 17:19:40 +08:00
parent 1ea046b637
commit 3bab0574e2
2 changed files with 4 additions and 1 deletions

View File

@ -102,7 +102,7 @@ export default {
} }
.component-custom { .component-custom {
outline: none; outline: none;
width: 100%; width: 100% !important;
height: 100%; height: 100%;
} }
</style> </style>

View File

@ -39,6 +39,9 @@ export default {
if ((this.options.attrs.type === 'date' || this.options.attrs.type === 'daterange') && Array.isArray(this.options.value) && this.options.value.length === 0) { if ((this.options.attrs.type === 'date' || this.options.attrs.type === 'daterange') && Array.isArray(this.options.value) && this.options.value.length === 0) {
this.options.value = null this.options.value = null
} }
if (!!this.options && !!this.options.value && Object.keys(this.options.value).length === 0) {
this.options.value = null
}
}, },
methods: { methods: {
search() { search() {