Skip to content

Commit 0674979

Browse files
committed
add some layout examples
1 parent b05c3d5 commit 0674979

File tree

3 files changed

+14
-26
lines changed

3 files changed

+14
-26
lines changed

ui/src/SettingsPage.vue

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<script setup lang="ts">
22
import { useApp } from './app';
33
import { computed } from 'vue';
4-
import { PlDropdown } from '@milaboratory/platforma-uikit';
4+
import { PlBlockPage, PlDropdown } from '@milaboratory/platforma-uikit';
55
66
const app = useApp();
77
const args = app.createArgsModel();
@@ -22,25 +22,13 @@ const datasetColumnOptions = computed(() =>
2222
</script>
2323

2424
<template>
25-
<div class="container">
26-
<pl-dropdown :options="donorColumnOptions ?? []" v-model="args.model.donorColumn" label="Select donor column" clearable />
25+
<PlBlockPage>
26+
<template #title>Settings</template>
27+
<PlDropdown :options="donorColumnOptions ?? []" v-model="args.model.donorColumn" label="Select donor column" clearable />
2728
<!-- TODO show only when donor column is seleceted -->
2829
<!-- TODO reset when donor column is changed -->
2930
<!-- TODO show button to add another one if selected -->
3031
<!-- TODO remove button -->
31-
<pl-dropdown :options="datasetColumnOptions ?? []" v-model="args.model.datasetColumns[0]" label="Select dataset" />
32-
</div>
32+
<PlDropdown :options="datasetColumnOptions ?? []" v-model="args.model.datasetColumns[0]" label="Select dataset" />
33+
</PlBlockPage>
3334
</template>
34-
35-
<style lang="css">
36-
button {
37-
padding: 12px 0;
38-
}
39-
40-
.container {
41-
display: flex;
42-
flex-direction: column;
43-
max-width: 100%;
44-
gap: 24px;
45-
}
46-
</style>

ui/src/TreeNodesTablePage.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<script setup lang="ts">
2-
import { platforma } from '@milaboratory/milaboratories.mixcr-shm-trees.model';
2+
// import { platforma } from '@milaboratory/milaboratories.mixcr-shm-trees.model';
33
import { useApp } from './app';
44
import { computed } from 'vue';
5-
import { PlAgDataTable, PlDataTableSettings } from '@milaboratory/sdk-vue';
5+
import { PlAgDataTable, PlBlockPage, PlDataTableSettings } from '@milaboratory/sdk-vue';
66
77
const app = useApp();
88
@@ -29,7 +29,7 @@ const tableSettings = computed<PlDataTableSettings>(() => ({
2929
</script>
3030

3131
<template>
32-
<div class="container">
32+
<PlBlockPage>
3333
<PlAgDataTable v-model="uiState.model.treeNodesTableState" :settings="tableSettings"></PlAgDataTable>
34-
</div>
34+
</PlBlockPage>
3535
</template>

ui/src/TreeTablePage.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<script setup lang="ts">
2-
import { platforma } from '@milaboratory/milaboratories.mixcr-shm-trees.model';
2+
// import { platforma } from '@milaboratory/milaboratories.mixcr-shm-trees.model';
33
import { useApp } from './app';
44
import { computed } from 'vue';
5-
import { PlAgDataTable, PlDataTableSettings } from '@milaboratory/sdk-vue';
5+
import { PlAgDataTable, PlBlockPage, PlBtnPrimary, PlDataTableSettings } from '@milaboratory/sdk-vue';
66
77
const app = useApp();
88
@@ -29,7 +29,7 @@ const tableSettings = computed<PlDataTableSettings>(() => ({
2929
</script>
3030

3131
<template>
32-
<div class="container">
32+
<PlBlockPage>
3333
<PlAgDataTable v-model="uiState.model.treeTableState" :settings="tableSettings"></PlAgDataTable>
34-
</div>
34+
</PlBlockPage>
3535
</template>

0 commit comments

Comments
 (0)