itube-specs 0.0.542 → 0.0.544

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.
@@ -10,8 +10,6 @@
10
10
  {'--open': open},
11
11
  {'--separate': separateLastChild},
12
12
  ]"
13
- @mouseleave="mouseHandler(false)"
14
- @mouseover="mouseHandler(true)"
15
13
  >
16
14
  <div
17
15
  class="s-dropdown__trigger"
@@ -64,7 +62,6 @@ const props = withDefaults(defineProps<{
64
62
  center?: boolean;
65
63
  separateLastChild?: boolean; // deprecated, вешать на нужный child класс модификатор --separate
66
64
  maxHeight?: string | number;
67
- openByClick?: boolean;
68
65
  useVIf?: boolean;
69
66
  }>(), {
70
67
  useVIf: false
@@ -81,12 +78,9 @@ const { scrollLock, scrollUnlock } = useGlobalScrollLock();
81
78
  const breakpoints = useAppConfig().cssBreakpoints as Record<CssBreakpoints, number>;
82
79
 
83
80
  function openDropdown() {
84
- if (props.openByClick) {
85
- open.value = !open.value
86
- }
87
- if (isMobileWidth(breakpoints).value) {
88
- open.value = !open.value
81
+ open.value = !open.value
89
82
 
83
+ if (isMobileWidth(breakpoints).value) {
90
84
  nextTick(() => {
91
85
  if (menuRef.value?.showModal) {
92
86
  menuRef.value.showModal();
@@ -107,12 +101,6 @@ function close() {
107
101
  }
108
102
  }
109
103
 
110
- function mouseHandler(event: boolean) {
111
- if (!isMobileWidth(breakpoints).value && !props.openByClick) {
112
- open.value = event
113
- }
114
- }
115
-
116
104
  const getMaxHeight = computed(() => {
117
105
  return props.maxHeight ? `${props.maxHeight}px` : 'none'
118
106
  })
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "itube-specs",
3
3
  "type": "module",
4
- "version": "0.0.542",
4
+ "version": "0.0.544",
5
5
  "main": "./nuxt.config.ts",
6
6
  "types": "./types/index.d.ts",
7
7
  "scripts": {