fix(GridCard): column count not work (#2023)

This commit is contained in:
Dunqing 2023-06-09 20:02:39 +08:00 committed by GitHub
parent 69bbfee67a
commit 77225a4e25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,7 +56,7 @@ const designerCss = css`
const InternalGridCard = (props) => {
const { columnCount: columnCountProp, pagination } = useProps(props);
const { service, _columnCount = defaultColumnCount } = useGridCardBlockContext();
const { service, columnCount: _columnCount = defaultColumnCount } = useGridCardBlockContext();
const columnCount = columnCountProp || _columnCount;
const { run, params } = service;
const meta = service?.data?.meta;