【发布时间】:2021-07-09 12:56:43
【问题描述】:
我有一个如下所示的 dataTable 组件:
<template>
<lightning-datatable
class="pw-table"
key-field="id"
columns={columns}
data={data}
hide-checkbox-column
></lightning-datatable>
</template>
现在我想写一些自定义 css 来使表头更高,
.pw-table {
height: 300px;
}
但没用,那我该怎么做呢? 我用了loadStyle但是失败了,不知道为什么?
import { loadStyle } from 'lightning/platformResourceLoader';
import accountCustom from '@salesforce/resourceUrl/accountCustom';
【问题讨论】:
标签: salesforce salesforce-lightning