itube-specs 0.0.542 → 0.0.545

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.
@@ -64,7 +64,7 @@ const props = withDefaults(defineProps<{
64
64
  center?: boolean;
65
65
  separateLastChild?: boolean; // deprecated, вешать на нужный child класс модификатор --separate
66
66
  maxHeight?: string | number;
67
- openByClick?: boolean;
67
+ openByHover?: boolean;
68
68
  useVIf?: boolean;
69
69
  }>(), {
70
70
  useVIf: false
@@ -81,12 +81,9 @@ const { scrollLock, scrollUnlock } = useGlobalScrollLock();
81
81
  const breakpoints = useAppConfig().cssBreakpoints as Record<CssBreakpoints, number>;
82
82
 
83
83
  function openDropdown() {
84
- if (props.openByClick) {
85
- open.value = !open.value
86
- }
87
- if (isMobileWidth(breakpoints).value) {
88
- open.value = !open.value
84
+ open.value = !open.value
89
85
 
86
+ if (isMobileWidth(breakpoints).value) {
90
87
  nextTick(() => {
91
88
  if (menuRef.value?.showModal) {
92
89
  menuRef.value.showModal();
@@ -108,7 +105,7 @@ function close() {
108
105
  }
109
106
 
110
107
  function mouseHandler(event: boolean) {
111
- if (!isMobileWidth(breakpoints).value && !props.openByClick) {
108
+ if (!isMobileWidth(breakpoints).value && props.openByHover) {
112
109
  open.value = event
113
110
  }
114
111
  }
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.545",
5
5
  "main": "./nuxt.config.ts",
6
6
  "types": "./types/index.d.ts",
7
7
  "scripts": {