mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
test: fix existing tests
This commit is contained in:
parent
25274520c6
commit
140e8ff468
5 changed files with 52 additions and 12 deletions
|
@ -6,19 +6,59 @@
|
||||||
{ key: "port", value: "Port" },
|
{ key: "port", value: "Port" },
|
||||||
{ key: "rule", value: "Rule" },
|
{ key: "rule", value: "Rule" },
|
||||||
{ key: "overflow", empty: true },
|
{ key: "overflow", empty: true },
|
||||||
];
|
] as const;
|
||||||
|
|
||||||
const rows = [
|
const rows = [
|
||||||
{ id: "a", name: "Load Balancer 3", port: 3000, rule: "Round robin" },
|
{
|
||||||
{ id: "b", name: "Load Balancer 1", port: 443, rule: "Round robin" },
|
id: "a",
|
||||||
{ id: "c", name: "Load Balancer 2", port: 80, rule: "DNS delegation" },
|
name: "Load Balancer 3",
|
||||||
{ id: "d", name: "Load Balancer 6", port: 3000, rule: "Round robin" },
|
port: 3000,
|
||||||
{ id: "e", name: "Load Balancer 4", port: 443, rule: "Round robin" },
|
rule: "Round robin",
|
||||||
{ id: "f", name: "Load Balancer 5", port: 80, rule: "DNS delegation" },
|
overflow: null,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "b",
|
||||||
|
name: "Load Balancer 1",
|
||||||
|
port: 443,
|
||||||
|
rule: "Round robin",
|
||||||
|
overflow: null,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "c",
|
||||||
|
name: "Load Balancer 2",
|
||||||
|
port: 80,
|
||||||
|
rule: "DNS delegation",
|
||||||
|
overflow: null,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "d",
|
||||||
|
name: "Load Balancer 6",
|
||||||
|
port: 3000,
|
||||||
|
rule: "Round robin",
|
||||||
|
overflow: null,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "e",
|
||||||
|
name: "Load Balancer 4",
|
||||||
|
port: 443,
|
||||||
|
rule: "Round robin",
|
||||||
|
overflow: null,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "f",
|
||||||
|
name: "Load Balancer 5",
|
||||||
|
port: 80,
|
||||||
|
rule: "DNS delegation",
|
||||||
|
overflow: null,
|
||||||
|
},
|
||||||
];
|
];
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<DataTable sortable headers="{headers}" rows="{rows}">
|
<DataTable
|
||||||
|
sortable
|
||||||
|
headers="{headers}"
|
||||||
|
rows="{rows}"
|
||||||
|
>
|
||||||
<span slot="cell" let:cell>
|
<span slot="cell" let:cell>
|
||||||
{#if cell.key === "overflow"}
|
{#if cell.key === "overflow"}
|
||||||
<OverflowMenu flipped>
|
<OverflowMenu flipped>
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
{ key: "name", value: "Name" },
|
{ key: "name", value: "Name" },
|
||||||
{ key: "port", value: "Port" },
|
{ key: "port", value: "Port" },
|
||||||
{ key: "rule", value: "Rule" },
|
{ key: "rule", value: "Rule" },
|
||||||
];
|
] as const;
|
||||||
|
|
||||||
const rows = [
|
const rows = [
|
||||||
{ id: "a", name: "Load Balancer 3", port: 3000, rule: "Round robin" },
|
{ id: "a", name: "Load Balancer 3", port: 3000, rule: "Round robin" },
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
{ key: "name", value: "Name" },
|
{ key: "name", value: "Name" },
|
||||||
{ key: "port", value: "Port" },
|
{ key: "port", value: "Port" },
|
||||||
{ key: "rule", value: "Rule" },
|
{ key: "rule", value: "Rule" },
|
||||||
];
|
] as const;
|
||||||
|
|
||||||
const rows = [
|
const rows = [
|
||||||
{ id: "a", name: "Load Balancer 3", port: 3000, rule: "Round robin" },
|
{ id: "a", name: "Load Balancer 3", port: 3000, rule: "Round robin" },
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
{ key: "name", value: "Name" },
|
{ key: "name", value: "Name" },
|
||||||
{ key: "port", value: "Port" },
|
{ key: "port", value: "Port" },
|
||||||
{ key: "rule", value: "Rule" },
|
{ key: "rule", value: "Rule" },
|
||||||
];
|
] as const;
|
||||||
|
|
||||||
const rows = [
|
const rows = [
|
||||||
{ id: "a", name: "Load Balancer 3", port: 3000, rule: "Round robin" },
|
{ id: "a", name: "Load Balancer 3", port: 3000, rule: "Round robin" },
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
{ key: "name", value: "Name" },
|
{ key: "name", value: "Name" },
|
||||||
{ key: "port", value: "Port" },
|
{ key: "port", value: "Port" },
|
||||||
{ key: "rule", value: "Rule" },
|
{ key: "rule", value: "Rule" },
|
||||||
];
|
] as const;
|
||||||
|
|
||||||
const rows = [
|
const rows = [
|
||||||
{ id: "a", name: "Load Balancer 3", port: 3000, rule: "Round robin" },
|
{ id: "a", name: "Load Balancer 3", port: 3000, rule: "Round robin" },
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue