同理,自定義一個v-height,來改變元件的高度: ... default { directives: { height: (el, binding) => { el.style.height = `${binding.value}px`; } ...
確定! 回上一頁