@opendesign-plus-test/components 0.0.1-rc.124 → 0.0.1-rc.127

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.
@@ -1,35 +1,35 @@
1
- .hover-icon-rotate .o-icon[data-v-c29d4979] {
1
+ .hover-icon-rotate .o-icon[data-v-06d526b8] {
2
2
  transition: all var(--o-duration-m1) var(--o-easing-standard-in);
3
3
  }
4
4
  @media (hover: hover) {
5
- .hover-icon-rotate:hover .o-icon[data-v-c29d4979] {
5
+ .hover-icon-rotate:hover .o-icon[data-v-06d526b8] {
6
6
  transform: rotate(-180deg);
7
7
  }
8
8
  }
9
- .header[data-v-c29d4979] {
9
+ .header[data-v-06d526b8] {
10
10
  --o-header-height: 72px;
11
11
  --o-header-content-max-width: 1488px;
12
12
  --o-header-content-padding: 0;
13
13
  }
14
14
  @media (max-width: 1680px) {
15
- .header[data-v-c29d4979] {
15
+ .header[data-v-06d526b8] {
16
16
  --o-header-content-max-width: 100%;
17
17
  --o-header-content-padding: 64px;
18
18
  }
19
19
  }
20
20
  @media (max-width: 1440px) {
21
- .header[data-v-c29d4979] {
21
+ .header[data-v-06d526b8] {
22
22
  --o-header-height: 64px;
23
23
  --o-header-content-padding: 40px;
24
24
  }
25
25
  }
26
26
  @media (max-width: 1200px) {
27
- .header[data-v-c29d4979] {
27
+ .header[data-v-06d526b8] {
28
28
  --o-header-height: 56px;
29
29
  --o-header-content-padding: 32px;
30
30
  }
31
31
  }
32
- .header-wrap[data-v-c29d4979] {
32
+ .header-wrap[data-v-06d526b8] {
33
33
  background-color: var(--o-color-fill2);
34
34
  position: fixed;
35
35
  left: 0;
@@ -40,7 +40,7 @@
40
40
  backdrop-filter: blur(5px);
41
41
  height: var(--o-header-height);
42
42
  }
43
- .header-content[data-v-c29d4979] {
43
+ .header-content[data-v-06d526b8] {
44
44
  display: flex;
45
45
  align-items: center;
46
46
  height: 100%;
@@ -48,7 +48,7 @@
48
48
  margin: 0 auto;
49
49
  padding: 0 var(--o-header-content-padding);
50
50
  }
51
- .header-logo[data-v-c29d4979] {
51
+ .header-logo[data-v-06d526b8] {
52
52
  height: 100%;
53
53
  display: flex;
54
54
  align-items: center;
@@ -56,27 +56,27 @@
56
56
  margin-right: 24px;
57
57
  flex-shrink: 0;
58
58
  }
59
- .logo[data-v-c29d4979] {
59
+ .logo[data-v-06d526b8] {
60
60
  height: 32px;
61
61
  }
62
- .header-nav-top[data-v-c29d4979] {
62
+ .header-nav-top[data-v-06d526b8] {
63
63
  flex: 1;
64
64
  height: 100%;
65
65
  min-width: 0;
66
66
  overflow: hidden;
67
67
  position: relative;
68
68
  }
69
- .header-nav-flatten[data-v-c29d4979] {
69
+ .header-nav-flatten[data-v-06d526b8] {
70
70
  flex: 1;
71
71
  height: 100%;
72
72
  min-width: 0;
73
73
  position: relative;
74
74
  }
75
- .header-toolbar[data-v-c29d4979] {
75
+ .header-toolbar[data-v-06d526b8] {
76
76
  height: 100%;
77
77
  position: relative;
78
78
  }
79
- .header-nav-content[data-v-c29d4979] {
79
+ .header-nav-content[data-v-06d526b8] {
80
80
  position: fixed;
81
81
  top: var(--o-header-height);
82
82
  left: 0;
@@ -86,6 +86,6 @@
86
86
  box-shadow: var(--o-shadow-1);
87
87
  overflow: hidden;
88
88
  }
89
- [data-o-theme*=dark] .header-wrap[data-v-c29d4979] {
89
+ [data-o-theme*=dark] .header-wrap[data-v-06d526b8] {
90
90
  border-bottom: 1px solid var(--o-color-control4);
91
91
  }
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./OHeader.vue2.mjs";
2
2
  import './OHeader.css';
3
3
  import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
4
- const _OHeader = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c29d4979"]]);
4
+ const _OHeader = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-06d526b8"]]);
5
5
  export {
6
6
  _OHeader as default
7
7
  };
@@ -1,5 +1,4 @@
1
- import { defineComponent, ref, computed, provide, readonly, watch, onUnmounted, openBlock, createElementBlock, createElementVNode, renderSlot, createCommentVNode, createBlock, createVNode } from "vue";
2
- import { useRoute } from "../../_virtual/vue-router/dist/vue-router.mjs.mjs";
1
+ import { defineComponent, ref, computed, provide, readonly, onUnmounted, openBlock, createElementBlock, createElementVNode, renderSlot, createCommentVNode, createBlock, createVNode } from "vue";
3
2
  import HeaderNav from "./components/HeaderNav.vue.mjs";
4
3
  import HeaderContent from "./components/HeaderContent.vue.mjs";
5
4
  import HeaderFlatten from "./components/HeaderFlatten.vue.mjs";
@@ -36,7 +35,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
36
35
  emits: ["go-home", "handle-click", "nav-layout"],
37
36
  setup(__props, { emit: __emit }) {
38
37
  const emit = __emit;
39
- const route = useRoute();
40
38
  const props = __props;
41
39
  const hoverIndex = ref();
42
40
  const hoverId = ref();
@@ -138,6 +136,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
138
136
  hoverId.value = val;
139
137
  scheduleClose(false);
140
138
  };
139
+ const handleClickLink = () => {
140
+ itemVisible.value = false;
141
+ cancelClose();
142
+ };
141
143
  const navFirstHoverTime = ref(0);
142
144
  const navStepCount = ref(0);
143
145
  provide("navStepCount", readonly(navStepCount));
@@ -154,13 +156,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
154
156
  navStepCount.value = 0;
155
157
  navFirstHoverTime.value = 0;
156
158
  });
157
- watch(
158
- () => route == null ? void 0 : route.path,
159
- () => {
160
- cancelClose();
161
- itemVisible.value = false;
162
- }
163
- );
164
159
  onUnmounted(() => {
165
160
  cancelClose();
166
161
  });
@@ -233,7 +228,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
233
228
  community: props.community,
234
229
  "hover-index": hoverIndex.value,
235
230
  onHandleMouseenterSub: handleMouseenterSub,
236
- onHandleMouseleaveSub: handleMouseleaveSub
231
+ onHandleMouseleaveSub: handleMouseleaveSub,
232
+ onHandleClickLink: handleClickLink
237
233
  }, null, 8, ["itemData", "item-visible", "bg-left", "bg-right", "community", "hover-index"])
238
234
  ], 544)) : createCommentVNode("", true)
239
235
  ]);