@eturnity/eturnity_reusable_components 8.7.4--EPDM-12729.1 → 8.7.4--EPDM-12729.2

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eturnity/eturnity_reusable_components",
3
- "version": "8.7.4--EPDM-12729.1",
3
+ "version": "8.7.4--EPDM-12729.2",
4
4
  "files": [
5
5
  "dist",
6
6
  "src"
@@ -7,7 +7,8 @@
7
7
  :is-active="activeTab === item.id"
8
8
  @click="onTabClick({ id: item.id })"
9
9
  >
10
- {{ item.text }}
10
+ <div>{{ item.text }}</div>
11
+ <RCIcon v-if="item.hasError" name="warning" size="14px" />
11
12
  </TabItem>
12
13
  </TabsContainer>
13
14
  </PageContainer>
@@ -21,15 +22,18 @@
21
22
  // :tabsData="[
22
23
  // {
23
24
  // text: 'Tab 1',
24
- // id: 0
25
+ // id: 0,
26
+ // hasError: true // optional
25
27
  // },
26
28
  // {
27
29
  // text: 'Tab 1',
28
- // id: 1
30
+ // id: 1,
31
+ // hasError: false // optional
29
32
  // }
30
33
  // ]"
31
34
  // />
32
35
  import styled from 'vue3-styled-components'
36
+ import RCIcon from '../icon'
33
37
 
34
38
  const PageContainer = styled.div``
35
39
 
@@ -41,6 +45,10 @@
41
45
 
42
46
  const TabAttrs = { isActive: Boolean }
43
47
  const TabItem = styled('div', TabAttrs)`
48
+ display: flex;
49
+ align-items: center;
50
+ justify-content: center;
51
+ gap: 8px;
44
52
  padding: 10px 20px;
45
53
  font-size: 14px;
46
54
  font-weight: 600;
@@ -63,6 +71,7 @@
63
71
  PageContainer,
64
72
  TabsContainer,
65
73
  TabItem,
74
+ RCIcon,
66
75
  },
67
76
  props: {
68
77
  tabsData: {