<template>
  <div class="tableInner">
    <el-date-picker
     @change="changeInput"
      v-model="list.time"
      type="date"
      size="mini"
      :style="{width:'100%'}"
      format='yyyy-MM-dd' 
      valueFormat='yyyy-MM-ddTHH:mm:ss'
      prefix-icon="none"
      placeholder="选择日期">
    </el-date-picker>
  </div>
</template>
<script>
export default {
  name: "InputArea",
  props: {
    injectData: {
      type: Object,
      default: () => ({}),
    },
    itemProp: {
      type: String,
    },
  },
  data() {
    return {
      list: this.injectData,
    };
  },
  methods: {
    changeInput() {
      this.list.sType = 3
      this.$emit("emitData", this.list);
    },
  },
};
</script>
<style scoped>
.tableInner .el-input__inner {
  border: none;
  padding: 0;
  height: 33px;
}
</style>
