報錯 這是因為 數據還沒到先顯示了,圖標是表單的時候
Vue warn]: Invalid prop: type check failed for prop "end". Expected Number with value 0, got String with value "".
Vue warn]: Invalid prop: type check failed for prop "end". Expected Number with value 0, got String with value "".
設置有值之后再顯示就好了
value="barData?barData:''" 這樣也會報錯的 只有 v-if 可以