aloha-vue 1.0.312 → 1.0.313
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/docs/package.json
CHANGED
|
@@ -37,6 +37,23 @@ export default {
|
|
|
37
37
|
id: "tab_3",
|
|
38
38
|
},
|
|
39
39
|
],
|
|
40
|
+
dataTabs3: [
|
|
41
|
+
{
|
|
42
|
+
id: "tab_1",
|
|
43
|
+
slotContent: "content1",
|
|
44
|
+
slotTab: "tab1",
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
id: "tab_2",
|
|
48
|
+
slotContent: "content2",
|
|
49
|
+
slotTab: "tab2",
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
id: "tab_3",
|
|
53
|
+
slotContent: "content3",
|
|
54
|
+
slotTab: "tab3",
|
|
55
|
+
},
|
|
56
|
+
],
|
|
40
57
|
};
|
|
41
58
|
},
|
|
42
59
|
};
|
|
@@ -49,3 +49,30 @@ div
|
|
|
49
49
|
v-slot:content="{ tab }"
|
|
50
50
|
)
|
|
51
51
|
span {{ tab }}
|
|
52
|
+
|
|
53
|
+
a-tabs(
|
|
54
|
+
:data="dataTabs3"
|
|
55
|
+
:is-boxed="true"
|
|
56
|
+
)
|
|
57
|
+
template(
|
|
58
|
+
v-slot:content1
|
|
59
|
+
)
|
|
60
|
+
span content1
|
|
61
|
+
|
|
62
|
+
template(
|
|
63
|
+
v-slot:content2
|
|
64
|
+
)
|
|
65
|
+
span content2
|
|
66
|
+
|
|
67
|
+
template(
|
|
68
|
+
v-slot:tab1
|
|
69
|
+
)
|
|
70
|
+
span tab1
|
|
71
|
+
template(
|
|
72
|
+
v-slot:tab2
|
|
73
|
+
)
|
|
74
|
+
span tab2
|
|
75
|
+
template(
|
|
76
|
+
v-slot:tab3
|
|
77
|
+
)
|
|
78
|
+
span tab3
|
package/package.json
CHANGED
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
} from "vue";
|
|
5
5
|
|
|
6
6
|
import {
|
|
7
|
+
isNil,
|
|
7
8
|
values,
|
|
8
9
|
} from "lodash-es";
|
|
9
10
|
|
|
@@ -28,7 +29,7 @@ export default function ANotificationAPI() {
|
|
|
28
29
|
}
|
|
29
30
|
|
|
30
31
|
export function addNotification({ text, type = "success", timeout }) {
|
|
31
|
-
const TIMEOUT_LOCAL = timeout
|
|
32
|
+
const TIMEOUT_LOCAL = isNil(timeout) ? notificationTimeout : timeout;
|
|
32
33
|
const CURRENT_INDEX = notificationsCount;
|
|
33
34
|
notificationsObj.value[CURRENT_INDEX] = {
|
|
34
35
|
text,
|