@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luizleon/sf.prefeiturasp.vuecomponents",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "description": "Pacote de componentes Vue para projetos em SF.",
5
5
  "main": "dist/lib.umd.js",
6
6
  "module": "dist/lib.es.js",
@@ -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: { text: string; route: string }[];
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 = defineProps<SfTabNavigationProps>();
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
- trackerContainer.value!.removeEventListener(
38
- "scroll",
39
- AjustarIcones
40
- );
41
- trackerContainerObserver.unobserve(trackerContainer.value!);
42
- trackerContainerObserver.disconnect();
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