2021年4月12日 星期一

設定元素高度為可用剩餘高度

<html style="height: 100%;">
<body style="height: 100%; display: flex; flex-direction: column;">
<div>...</div>
<div id="app" style="flex-grow: 1; flex-basis: 0; display: flex; flex-direction: column;">
  <div>...</div>
  <form id="form1" style="flex-grow: 1; flex-basis: 0; display: flex; flex-direction: column;">
      <b-table style="flex-grow: 1; flex-basis: 0; max-height:unset " sticky-header :items="items" :fields="fields" :filter="filter">
      </b-table>
  </form>
</div>
</body>
</html>

※設定 max-height:unset 覆蓋原預設值:300px

沒有留言:

自訂權限驗證機制

// 使用 filter [Route("api/[controller]")] [ApiController] [Authorize] [TypeFilter(typeof(CustomAsyncAuthorizationFilter))] public c...