mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 03:26:36 +00:00
Move DataTableSkelton 3119restProps to container
This commit is contained in:
parent
f17b35d848
commit
3c59a6cff0
3 changed files with 7 additions and 4 deletions
|
@ -3356,7 +3356,7 @@
|
|||
{ "type": "forwarded", "name": "mouseleave", "element": "table" }
|
||||
],
|
||||
"typedefs": [],
|
||||
"rest_props": { "type": "Element", "name": "table" },
|
||||
"rest_props": { "type": "Element", "name": "div" },
|
||||
"extends": {
|
||||
"interface": "DataTableHeader",
|
||||
"import": "\"../DataTable/DataTable\""
|
||||
|
|
|
@ -41,7 +41,11 @@
|
|||
);
|
||||
</script>
|
||||
|
||||
<div class:bx--skeleton="{true}" class:bx--data-table-container="{true}">
|
||||
<div
|
||||
class:bx--skeleton="{true}"
|
||||
class:bx--data-table-container="{true}"
|
||||
{...$$restProps}
|
||||
>
|
||||
{#if showHeader}
|
||||
<div class:bx--data-table-header="{true}">
|
||||
<div class:bx--data-table-header__title="{true}"></div>
|
||||
|
@ -66,7 +70,6 @@
|
|||
class:bx--data-table--short="{size === 'short'}"
|
||||
class:bx--data-table--tall="{size === 'tall'}"
|
||||
class:bx--data-table--zebra="{zebra}"
|
||||
{...$$restProps}
|
||||
on:click
|
||||
on:mouseover
|
||||
on:mouseenter
|
||||
|
|
|
@ -3,7 +3,7 @@ import { DataTableHeader } from "../DataTable/DataTable";
|
|||
|
||||
export interface DataTableSkeletonProps
|
||||
extends DataTableHeader,
|
||||
svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["table"]> {
|
||||
svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["div"]> {
|
||||
/**
|
||||
* Specify the number of columns
|
||||
* Superseded by `headers` if `headers` is a non-empty array
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue