@dataloop-ai/components 0.18.33 → 0.18.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -14,27 +14,41 @@
|
|
|
14
14
|
@click="isOpenPageLayoutModal = false"
|
|
15
15
|
/>
|
|
16
16
|
</div>
|
|
17
|
-
<dl-page-layout
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
17
|
+
<dl-page-layout>
|
|
18
|
+
<template #header>
|
|
19
|
+
<dl-page-layout-header
|
|
20
|
+
:counters="[
|
|
21
|
+
{
|
|
22
|
+
value: 200,
|
|
23
|
+
text: 'All dataset items'
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
value: 100,
|
|
27
|
+
text: 'Selected items'
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
value: 12,
|
|
31
|
+
text: 'Annotated items'
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
value: 17,
|
|
35
|
+
text: 'Annotations'
|
|
36
|
+
}
|
|
37
|
+
]"
|
|
38
|
+
>
|
|
39
|
+
<template #title>
|
|
40
|
+
test title
|
|
41
|
+
<dl-button
|
|
42
|
+
label="testsetests"
|
|
43
|
+
outlined
|
|
44
|
+
dense
|
|
45
|
+
/>
|
|
46
|
+
</template>
|
|
47
|
+
<template #subtitle>
|
|
48
|
+
testestse
|
|
49
|
+
</template>
|
|
50
|
+
</dl-page-layout-header>
|
|
51
|
+
</template>
|
|
38
52
|
<div>This is a body</div>
|
|
39
53
|
</dl-page-layout>
|
|
40
54
|
</div>
|
|
@@ -44,13 +58,14 @@
|
|
|
44
58
|
<script lang="ts">
|
|
45
59
|
import { defineComponent, ref } from 'vue-demi'
|
|
46
60
|
import { DlButton } from '../../components'
|
|
47
|
-
import { DlPageLayout } from '../../layouts'
|
|
61
|
+
import { DlPageLayout, DlPageLayoutHeader } from '../../layouts'
|
|
48
62
|
|
|
49
63
|
export default defineComponent({
|
|
50
64
|
name: 'DlLayoutDemo',
|
|
51
65
|
components: {
|
|
52
66
|
DlButton,
|
|
53
|
-
DlPageLayout
|
|
67
|
+
DlPageLayout,
|
|
68
|
+
DlPageLayoutHeader
|
|
54
69
|
},
|
|
55
70
|
setup() {
|
|
56
71
|
const isOpenPageLayoutModal = ref(false)
|
|
@@ -1,30 +1,27 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="page-layout-header">
|
|
3
|
-
<div
|
|
4
|
-
<
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
>
|
|
3
|
+
<div class="page-layout-header__title">
|
|
4
|
+
<dl-typography
|
|
5
|
+
color="dl-color-lighter"
|
|
6
|
+
size="10px"
|
|
7
|
+
>
|
|
8
|
+
<slot name="subtitle">
|
|
9
9
|
{{ subTitle }}
|
|
10
|
-
</
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
</slot>
|
|
11
|
+
</dl-typography>
|
|
12
|
+
<dl-typography
|
|
13
|
+
color="dl-color-darker"
|
|
14
|
+
size="30px"
|
|
15
|
+
style="padding-bottom: 10px"
|
|
16
|
+
>
|
|
17
|
+
<slot name="title">
|
|
15
18
|
{{ title }}
|
|
16
|
-
</
|
|
17
|
-
</
|
|
19
|
+
</slot>
|
|
20
|
+
</dl-typography>
|
|
18
21
|
</div>
|
|
19
22
|
<div
|
|
20
23
|
v-if="counters.length > 0"
|
|
21
|
-
|
|
22
|
-
display: flex;
|
|
23
|
-
height: 100%;
|
|
24
|
-
align-items: center;
|
|
25
|
-
justify-content: end;
|
|
26
|
-
padding-right: 10px;
|
|
27
|
-
"
|
|
24
|
+
class="page-layout-header__counters"
|
|
28
25
|
>
|
|
29
26
|
<dl-counters
|
|
30
27
|
counter-font-size="20px"
|
|
@@ -63,14 +60,30 @@ export default defineComponent({
|
|
|
63
60
|
})
|
|
64
61
|
</script>
|
|
65
62
|
|
|
66
|
-
<style scoped>
|
|
63
|
+
<style scoped lang="scss">
|
|
67
64
|
.page-layout-header {
|
|
68
65
|
height: 100px;
|
|
69
|
-
display:
|
|
70
|
-
grid-template-columns: 1fr 1fr;
|
|
66
|
+
display: flex;
|
|
71
67
|
width: 100%;
|
|
72
68
|
justify-self: center;
|
|
73
69
|
justify-content: center;
|
|
74
70
|
background-color: var(--dl-color-body-background);
|
|
71
|
+
|
|
72
|
+
&__title {
|
|
73
|
+
display: flex;
|
|
74
|
+
height: 100%;
|
|
75
|
+
padding-left: 25px;
|
|
76
|
+
flex-direction: column;
|
|
77
|
+
justify-content: center;
|
|
78
|
+
flex-grow: 1;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&__counters {
|
|
82
|
+
display: flex;
|
|
83
|
+
height: 100%;
|
|
84
|
+
align-items: center;
|
|
85
|
+
justify-content: end;
|
|
86
|
+
padding-right: 10px;
|
|
87
|
+
}
|
|
75
88
|
}
|
|
76
89
|
</style>
|