iT邦幫忙

0

Failed to resolve component: datetime

  • 分享至 

  • xImage

請問要如何修改
Failed to resolve component: datetime
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.
at
可是我已經npm install datetime
App.vue內容 date也有錯誤
Property "date" was accessed during render but is not defined on instance.
at

        <input type="checkbox" class="checkbox" />
        <h4>離場起始時間</h4>
        <datetime v-model="date" input-id="startDate">
          <input type="datetime-local" v-model="value2" />
        </datetime>
      </div>

      <div class="block-right">
        <h4>進場結束時間</h4>
        <datetime v-model="date" input-id="startDate">
          <input type="datetime-local" v-model="value3" />
        </datetime>

        <h4>離場結束時間</h4>
        <datetime v-model="date" input-id="startDate">
          <input type="datetime-local" v-model="value4" />
        </datetime>
      </div>
      <div class="gwee">
        <button @click="search">搜尋</button>
        <button @click="cancel">取消</button>
      </div>
已完成
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友回答

立即登入回答