@luizleon/sf.prefeiturasp.vuecomponents 0.0.5 → 0.0.6
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/dist/components/internal/ThemeToggle.d.ts +11 -8
- package/dist/components/tabnavigation/TabNavigation.d.ts +6 -1
- package/dist/lib.es.js +8 -4
- package/dist/lib.es.js.map +1 -1
- package/dist/lib.umd.js +1 -1
- package/dist/lib.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/tabnavigation/TabNavigation.d.ts +6 -1
- package/src/components/tabnavigation/TabNavigation.vue +10 -7
package/package.json
CHANGED
|
@@ -3,8 +3,13 @@ import {
|
|
|
3
3
|
GlobalComponentConstructor,
|
|
4
4
|
} from "../../ts-helpers";
|
|
5
5
|
|
|
6
|
+
export interface SfTabNavigationTab {
|
|
7
|
+
text: string;
|
|
8
|
+
route: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
6
11
|
export interface SfTabNavigationProps {
|
|
7
|
-
tabs:
|
|
12
|
+
tabs: SfTabNavigationTab[];
|
|
8
13
|
}
|
|
9
14
|
|
|
10
15
|
export interface SfTabNavigationSlots {
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
import { onMounted, onBeforeUnmount, ref } from "vue";
|
|
3
3
|
import { SfTabNavigationProps } from "./TabNavigation";
|
|
4
4
|
|
|
5
|
-
const props =
|
|
5
|
+
const props: SfTabNavigationProps =
|
|
6
|
+
defineProps<SfTabNavigationProps>();
|
|
6
7
|
|
|
7
8
|
const trackerContainer = ref<HTMLInputElement | null>(null);
|
|
8
9
|
const trackerContainerObserver = new ResizeObserver((_) => {
|
|
@@ -34,12 +35,14 @@ onMounted(() => {
|
|
|
34
35
|
});
|
|
35
36
|
|
|
36
37
|
onBeforeUnmount(() => {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
38
|
+
try {
|
|
39
|
+
trackerContainer.value?.removeEventListener(
|
|
40
|
+
"scroll",
|
|
41
|
+
AjustarIcones
|
|
42
|
+
);
|
|
43
|
+
trackerContainerObserver.unobserve(trackerContainer.value!);
|
|
44
|
+
trackerContainerObserver.disconnect();
|
|
45
|
+
} catch {}
|
|
43
46
|
});
|
|
44
47
|
</script>
|
|
45
48
|
|