adata-ui 0.3.53 → 0.3.56

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.
@@ -0,0 +1,120 @@
1
+ <template>
2
+ <ul class="child-links">
3
+ <li v-for="(link, i) in links.children" :key="i">
4
+ <component
5
+ class="child-links__item"
6
+ exact-active-class="active"
7
+ :is="module === links.key? 'nuxt-link': 'a'"
8
+ :href="module === links.key ? null: `${links[mode]}${link.to}`"
9
+ :to="module === links.key ? link.to: null"
10
+ >
11
+ <span v-html="serviceIcons[link.icon]" class="child-links__icon"></span>
12
+ <p>
13
+ <span class="child-links__name">{{ link.name }}</span>
14
+ <span class="child-links__subtitle">{{ link.subtitle }}</span>
15
+ </p>
16
+ </component>
17
+ <span class="child-links__arrow">
18
+ <svg width="24" height="24" class="ic-24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
19
+ <path d="M9 18L15 12L9 6" stroke="#007AFF" stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"/>
20
+ </svg>
21
+ </span>
22
+ </li>
23
+ </ul>
24
+ </template>
25
+
26
+ <script>
27
+ import { serviceIcons } from "@/configs/icons";
28
+ export default {
29
+ name: "ChildLinks",
30
+ props: {
31
+ links: {
32
+ type: Object,
33
+ default: () => ({})
34
+ },
35
+ module: {
36
+ type: String,
37
+ default: 'counterparty'
38
+ },
39
+ mode: {
40
+ type: String,
41
+ required: true
42
+ }
43
+ },
44
+ data() {
45
+ return {
46
+ serviceIcons
47
+ }
48
+ },
49
+ }
50
+ </script>
51
+
52
+ <style scoped lang="scss">
53
+ .child-links {
54
+ position: absolute;
55
+ left: 0;
56
+ background: #FFFFFF;
57
+ padding: 16px;
58
+ box-shadow: 0 10px 70px rgba(0, 0, 0, 0.08);
59
+ border-radius: 8px;
60
+ $self: &;
61
+ &__arrow {
62
+ visibility: hidden;
63
+ svg {
64
+ transition: none;
65
+ }
66
+ }
67
+ .active {
68
+ background: rgba(189, 199, 206, 0.2);
69
+ }
70
+ li {
71
+ display: flex;
72
+ align-items: center;
73
+ justify-content: space-between;
74
+ gap: 12px;
75
+ .ic-24 {
76
+ min-width: 24px;
77
+ height: 24px;
78
+ }
79
+ #{ $self }__icon {
80
+ display: grid;
81
+ place-content: center;
82
+ width: 40px;
83
+ height: 40px;
84
+ min-width: 40px;
85
+ background: rgba(189, 199, 206, 0.2);
86
+ border-radius: 4px;
87
+ }
88
+ #{ $self }__item {
89
+ text-transform: none;
90
+ display: flex;
91
+ align-items: center;
92
+ gap: 16px;
93
+ min-width: 336px;
94
+ padding: 14px 8px;
95
+ border-radius: 8px;
96
+ transition: 0.2s ease;
97
+ &:hover {
98
+ background: rgba(189, 199, 206, 0.2);
99
+ & ~ span {
100
+ visibility: visible;
101
+ }
102
+ }
103
+ #{ $self }__name {
104
+ display: block;
105
+ font-weight: 600;
106
+ font-size: 14px;
107
+ line-height: 20px;
108
+ color: #2C3E50;
109
+ }
110
+ #{ $self }__subtitle {
111
+ display: block;
112
+ font-weight: 400;
113
+ font-size: 12px;
114
+ line-height: 20px;
115
+ color: #9DA3AC;
116
+ }
117
+ }
118
+ }
119
+ }
120
+ </style>