upgraded svelte + used svelte:fragment

This commit is contained in:
Jan Prochazka
2021-03-06 13:45:35 +01:00
parent fe5826bc8e
commit d3c4c18b62
4 changed files with 9 additions and 9 deletions

View File

@@ -18,7 +18,7 @@
"rollup-plugin-livereload": "^2.0.0",
"rollup-plugin-svelte": "^7.0.0",
"rollup-plugin-terser": "^7.0.0",
"svelte": "^3.0.0",
"svelte": "^3.35.0",
"svelte-check": "^1.0.0",
"svelte-preprocess": "^4.0.0",
"tslib": "^2.0.0",

View File

@@ -26,9 +26,9 @@
</WidgetColumnBarItem>
</WidgetColumnBar>
</div>
<div slot="2">
<svelte:fragment slot="2">
<svelte:component this={gridCoreComponent} {...$$props} />
</div>
</svelte:fragment>
</HorizontalSplitter>
<style>

View File

@@ -107,7 +107,7 @@
</script>
<VerticalSplitter isSplitter={!!reference}>
<div slot="1">
<svelte:fragment slot="1">
<DataGrid
{...$$props}
gridCoreComponent={SqlDataGridCore}
@@ -121,7 +121,7 @@
setChildConfig(createGridConfig(), value);
}}
/>
</div>
</svelte:fragment>
<div slot="2" class="reference-container">
{#if reference}
<ReferenceHeader {reference} on:close={handleCloseReference} />