title: How can I display value of input type date when edit data on vue component?
body: <p>My vue component like this :</p>
  
  <pre><code>&lt;template&gt;
      &lt;section&gt;
          ...
          &lt;form-input id="total-sold" name="total-sold" :value="products.total_sold"&gt;Total Sold&lt;/form-input&gt;
          &lt;form-input id="created-at" type="date" name="created-at" :value="products.created_at"&gt;Created At&lt;/form-input&gt;
      &lt;/section&gt;
  &lt;/template&gt;
  
  &lt;script&gt;
      export default {
          props: ['products'],
          mounted() {
              console.log(this.products.total_sold) // The result : 46
              console.log(this.products.created_at) // The result : 2018-02-26 09:03:03
          },
      }
  &lt;/script&gt;
  </code></pre>
  
  <p>My form-input component vue like this :</p>
  
  <pre><code>&lt;template&gt;
      &lt;div class="form-group"&gt;
          &lt;label :for="id" class="control-label" :class="classLabel"&gt;&lt;slot&gt;&lt;/slot&gt;&lt;/label&gt;
          &lt;input :type="type" :name="name" :id="id" class="form-control" :placeholder="dataPlaceholder" :disabled="disabled" :value="value"&gt;
      &lt;/div&gt;
  &lt;/template&gt;
  
  &lt;script&gt;
      export default {
          name: "form-input",
          props: {
              'id': String,
              'name': String,
              'type': {
                  type: String,
                  default: 'text'
              },
              'disabled': String,
              'dataPlaceholder': {
                  type: String,
                  default() {
                      return this.$slots.default ? this.$slots.default[0].text : ''
                  }
              },
              'value': {
                  type: [String, Number]
              }
          },
          data(){
              return {
                  classLabel: {'sr-only': !this.$slots.default}
              }
          }
      }
  &lt;/script&gt;
  </code></pre>
  
  <p>So on the my first component vue, it will call form-input component vue. I make the component like that. So later that component can be used repeatedly</p>
  
  <p>If the component executed, the input text from total sold display data. The result is 46. But the input text from created at is not display data. Seems it because the type is date</p>
  
  <p>How can I solve this problem?  </p>