<template>
  <LabelBox
    :label="formItems.attrs?.label"
    :need-star="formItems.attrs?.needStar"
    :width="formItems.attrs?.width"
  >
    <el-date-picker
      class="datePicker"
      size="mini"
      :value="value"
      :placeholder="formItems.attrs?.placeholder || '选择日期'"
      v-bind="formItems.attrs"
      @input="handleInputEvent"
    />
  </LabelBox>
</template>

<script>
import LabelBox from '../labelBox/index.vue';
import fieldMixin from '../fieldMixin';

export default {
  components: {
    LabelBox,
  },
  mixins: [fieldMixin],
  props: {
    formItems: {
      type: Object,
      default: () => {},
    },
    value: {
      type: String,
      default: '',
    },
  },
};
</script>
<style lang="scss" scoped>
// ::v-deep.el-range-editor {
//   height: 20px;
// }

::v-deep.el-range-editor.el-input__inner {
  height: 32px;
}

::v-deep.el-date-editor .el-input__inner {
  height: 32px;
}
</style>

