diff options
| author | ivarlovlie <git@ivarlovlie.no> | 2022-10-05 14:45:21 +0200 |
|---|---|---|
| committer | ivarlovlie <git@ivarlovlie.no> | 2022-10-05 14:45:21 +0200 |
| commit | b7e39b59fd0fc7b5610ebff29035bf622079e0d8 (patch) | |
| tree | 64be84ebbdac9f7ceced983390c53b10d575af5c /old-apps/web-shared/src/components/table/tcell.svelte | |
| parent | 2001c035fbb417ab0a3d42cfb04d17420bde4086 (diff) | |
| download | greatoffice-b7e39b59fd0fc7b5610ebff29035bf622079e0d8.tar.xz greatoffice-b7e39b59fd0fc7b5610ebff29035bf622079e0d8.zip | |
refactor: Change file structure
Diffstat (limited to 'old-apps/web-shared/src/components/table/tcell.svelte')
| -rw-r--r-- | old-apps/web-shared/src/components/table/tcell.svelte | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/old-apps/web-shared/src/components/table/tcell.svelte b/old-apps/web-shared/src/components/table/tcell.svelte deleted file mode 100644 index 76f500f..0000000 --- a/old-apps/web-shared/src/components/table/tcell.svelte +++ /dev/null @@ -1,23 +0,0 @@ -<script lang="ts"> - export let thScope: "row"|"col"|"rowgroup"|"colgroup"|""; - export let colspan = ""; - export let type: "th"|"td" = "td"; - export let style; - - $: shared_props = { - colspan: colspan || null, - style: style || null, - class: [type === "th" ? "int-table__cell--th" : "", "int-table__cell", $$restProps.class ?? ""].filter(Boolean).join(" "), - }; -</script> -{#if type === "th"} - <th {thScope} - {...shared_props}> - <slot/> - </th> -{/if} -{#if type === "td"} - <td {...shared_props}> - <slot/> - </td> -{/if} |
