@opendesign-plus-test/components 0.0.1-rc.96 → 0.0.1-rc.97
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/chunk-OElCookieNotice.cjs.js +1 -1
- package/dist/chunk-OElCookieNotice.es.js +1 -1
- package/dist/components/header/types.d.ts +2 -0
- package/dist/components/header-search/OHeaderSearch.vue.d.ts +2 -2
- package/dist/components.cjs.js +36 -36
- package/dist/components.css +1 -1
- package/dist/components.es.js +4155 -4106
- package/dist/treeshaking/_virtual/icon-avatar-line.mjs +1 -1
- package/dist/treeshaking/_virtual/icon-chevron-right.mjs +4 -1
- package/dist/treeshaking/components/element-plus/OElCookieNotice.vue.mjs +1 -1
- package/dist/treeshaking/components/element-plus/OElCookieNotice2.css +145 -145
- package/dist/treeshaking/components/header/OHeader.css +36 -11
- package/dist/treeshaking/components/header/OHeader.vue.mjs +1 -1
- package/dist/treeshaking/components/header/OHeader.vue2.mjs +35 -38
- package/dist/treeshaking/components/header/components/HeaderContent.css +312 -554
- package/dist/treeshaking/components/header/components/HeaderContent.vue.mjs +1 -1
- package/dist/treeshaking/components/header/components/HeaderContent.vue2.mjs +169 -136
- package/dist/treeshaking/components/header/components/HeaderNav.css +60 -30
- package/dist/treeshaking/components/header/components/HeaderNav.vue.mjs +1 -1
- package/dist/treeshaking/components/header/components/HeaderNav.vue2.mjs +1 -1
- package/dist/treeshaking/components/header/components/HeaderNavMobile.css +108 -130
- package/dist/treeshaking/components/header/components/HeaderNavMobile.vue.mjs +1 -1
- package/dist/treeshaking/components/header/components/HeaderNavMobile.vue2.mjs +126 -121
- package/dist/treeshaking/components/header/types.d.ts +2 -0
- package/dist/treeshaking/components/header-language-switcher/OHeaderLanguageSwitcher.css +32 -32
- package/dist/treeshaking/components/header-language-switcher/OHeaderLanguageSwitcher.vue.mjs +1 -1
- package/dist/treeshaking/components/header-search/OHeaderSearch.css +42 -37
- package/dist/treeshaking/components/header-search/OHeaderSearch.vue.d.ts +2 -2
- package/dist/treeshaking/components/header-search/OHeaderSearch.vue.mjs +1 -1
- package/dist/treeshaking/components/header-search/OHeaderSearch.vue2.mjs +4 -1
- package/dist/treeshaking/components/header-source-code/OHeaderSourceCode.css +57 -27
- package/dist/treeshaking/components/header-source-code/OHeaderSourceCode.vue.mjs +1 -1
- package/dist/treeshaking/components/header-user/OHeaderUser.css +26 -26
- package/dist/treeshaking/components/header-user/OHeaderUser.vue.mjs +1 -1
- package/dist/treeshaking/components/header-user/OHeaderUser.vue2.mjs +32 -26
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./HeaderContent.vue2.mjs";
|
|
2
2
|
import './HeaderContent.css';
|
|
3
3
|
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const HeaderContent = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const HeaderContent = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8df309f3"]]);
|
|
5
5
|
export {
|
|
6
6
|
HeaderContent as default
|
|
7
7
|
};
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { defineComponent, ref, resolveDirective, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, normalizeStyle, createVNode, withCtx, Fragment, renderList, toDisplayString, withDirectives, createBlock,
|
|
2
|
-
import { OScroller, OIcon,
|
|
3
|
-
import ContentWrapper from "../../common/ContentWrapper.vue.mjs";
|
|
1
|
+
import { defineComponent, ref, resolveDirective, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, normalizeStyle, createVNode, withCtx, Fragment, renderList, toDisplayString, withDirectives, createBlock, createTextVNode, createCommentVNode, resolveDynamicComponent } from "vue";
|
|
2
|
+
import { OScroller, OTag, OIcon, OPopover } from "@opensig/opendesign";
|
|
4
3
|
import { useTheme } from "../../../shared/theme.mjs";
|
|
5
4
|
import { useI18n } from "../../../i18n/index.mjs";
|
|
6
|
-
const _hoisted_1 = { class: "
|
|
7
|
-
const _hoisted_2 = { class: "content
|
|
8
|
-
const _hoisted_3 = { class: "content-
|
|
9
|
-
const _hoisted_4 = { class: "content-
|
|
10
|
-
const _hoisted_5 =
|
|
11
|
-
const _hoisted_6 =
|
|
12
|
-
const _hoisted_7 = {
|
|
5
|
+
const _hoisted_1 = { class: "header-content-nav" };
|
|
6
|
+
const _hoisted_2 = { class: "nav-sub-content" };
|
|
7
|
+
const _hoisted_3 = { class: "content-left" };
|
|
8
|
+
const _hoisted_4 = { class: "content-label" };
|
|
9
|
+
const _hoisted_5 = { class: "content-container" };
|
|
10
|
+
const _hoisted_6 = ["href", "target"];
|
|
11
|
+
const _hoisted_7 = { class: "item-name" };
|
|
12
|
+
const _hoisted_8 = {
|
|
13
13
|
key: 0,
|
|
14
14
|
class: "desc-container"
|
|
15
15
|
};
|
|
16
|
-
const
|
|
17
|
-
const
|
|
16
|
+
const _hoisted_9 = { class: "popover-item-desc" };
|
|
17
|
+
const _hoisted_10 = {
|
|
18
18
|
key: 0,
|
|
19
19
|
class: "split-line"
|
|
20
20
|
};
|
|
21
|
-
const
|
|
21
|
+
const _hoisted_11 = {
|
|
22
22
|
key: 1,
|
|
23
23
|
class: "content-right"
|
|
24
24
|
};
|
|
25
|
-
const
|
|
26
|
-
const
|
|
27
|
-
const
|
|
28
|
-
const
|
|
29
|
-
const
|
|
30
|
-
const
|
|
31
|
-
const
|
|
32
|
-
const
|
|
25
|
+
const _hoisted_12 = { class: "content-label" };
|
|
26
|
+
const _hoisted_13 = ["href", "target"];
|
|
27
|
+
const _hoisted_14 = { class: "popover-shortcut" };
|
|
28
|
+
const _hoisted_15 = ["href", "target"];
|
|
29
|
+
const _hoisted_16 = ["src"];
|
|
30
|
+
const _hoisted_17 = { class: "review-content" };
|
|
31
|
+
const _hoisted_18 = { class: "review-label" };
|
|
32
|
+
const _hoisted_19 = { class: "review-property" };
|
|
33
33
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
34
34
|
__name: "HeaderContent",
|
|
35
35
|
props: {
|
|
@@ -107,128 +107,161 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
107
107
|
class: "nav-background-right",
|
|
108
108
|
style: normalizeStyle({ backgroundImage: `url(${props.bgRight})` })
|
|
109
109
|
}, null, 4),
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
createElementVNode("div",
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
110
|
+
createElementVNode("div", _hoisted_1, [
|
|
111
|
+
createVNode(unref(OScroller), {
|
|
112
|
+
class: "nav-scroller",
|
|
113
|
+
"show-type": "always",
|
|
114
|
+
size: "small",
|
|
115
|
+
"disabled-y": ""
|
|
116
|
+
}, {
|
|
117
|
+
default: withCtx(() => {
|
|
118
|
+
var _a2, _b2, _c2, _d, _e, _f, _g, _h;
|
|
119
|
+
return [
|
|
120
|
+
createElementVNode("div", _hoisted_2, [
|
|
121
|
+
createElementVNode("div", _hoisted_3, [
|
|
122
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList((_a2 = props.itemData) == null ? void 0 : _a2.children, (sub, s) => {
|
|
123
|
+
return openBlock(), createElementBlock("div", {
|
|
124
|
+
class: "item-sub",
|
|
125
|
+
key: s
|
|
126
|
+
}, [
|
|
127
|
+
createElementVNode("span", _hoisted_4, toDisplayString(sub.label), 1),
|
|
128
|
+
createElementVNode("div", _hoisted_5, [
|
|
129
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(sub.children, (subItem) => {
|
|
130
|
+
return openBlock(), createElementBlock("div", {
|
|
131
|
+
key: subItem.label,
|
|
132
|
+
class: normalizeClass(["content-item", { "content-item-disabled": subItem == null ? void 0 : subItem.disabled }])
|
|
133
|
+
}, [
|
|
134
|
+
withDirectives((openBlock(), createElementBlock("a", {
|
|
135
|
+
href: subItem.href,
|
|
136
|
+
target: (subItem == null ? void 0 : subItem.target) || "_self",
|
|
137
|
+
rel: "noopener noreferrer",
|
|
138
|
+
class: "item-label"
|
|
134
139
|
}, [
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
createTextVNode(toDisplayString(subItem.tag), 1)
|
|
157
|
-
]),
|
|
158
|
-
_: 2
|
|
159
|
-
}, 1024)) : createCommentVNode("", true)
|
|
160
|
-
], 8, _hoisted_5)), [
|
|
161
|
-
[_directive_analytics, () => onClickNavHref(sub, subItem)]
|
|
162
|
-
]),
|
|
163
|
-
subItem.description ? (openBlock(), createElementBlock("div", _hoisted_7, [
|
|
164
|
-
createElementVNode("p", {
|
|
165
|
-
class: "item-desc",
|
|
166
|
-
title: showDesc.value ? subItem.description : void 0,
|
|
167
|
-
onMouseenter: _cache[0] || (_cache[0] = ($event) => descMouseenter($event))
|
|
168
|
-
}, toDisplayString(subItem.description), 41, _hoisted_8)
|
|
169
|
-
])) : createCommentVNode("", true)
|
|
170
|
-
]);
|
|
171
|
-
}), 128))
|
|
172
|
-
])
|
|
173
|
-
]);
|
|
174
|
-
}), 128))
|
|
175
|
-
]),
|
|
176
|
-
((_c2 = (_b2 = props.itemData) == null ? void 0 : _b2.shortcut) == null ? void 0 : _c2.length) ? (openBlock(), createElementBlock("div", _hoisted_9)) : createCommentVNode("", true),
|
|
177
|
-
((_e = (_d = props.itemData) == null ? void 0 : _d.shortcut) == null ? void 0 : _e.length) ? (openBlock(), createElementBlock("div", _hoisted_10, [
|
|
178
|
-
createElementVNode("span", _hoisted_11, toDisplayString(unref(locale) === "zh" ? "快捷链接" : "Quick Link"), 1),
|
|
179
|
-
!((_f = props.itemData) == null ? void 0 : _f.withPicture) ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList((_g = props.itemData) == null ? void 0 : _g.shortcut, (shortcut) => {
|
|
180
|
-
return openBlock(), createElementBlock("div", {
|
|
181
|
-
key: shortcut.label,
|
|
182
|
-
class: "shortcut"
|
|
183
|
-
}, [
|
|
184
|
-
withDirectives((openBlock(), createElementBlock("a", {
|
|
185
|
-
href: shortcut.href,
|
|
186
|
-
target: (shortcut == null ? void 0 : shortcut.target) || "_self",
|
|
187
|
-
rel: "noopener noreferrer",
|
|
188
|
-
class: "shortcut-link"
|
|
189
|
-
}, [
|
|
190
|
-
createElementVNode("span", {
|
|
191
|
-
title: shortcut.label
|
|
192
|
-
}, toDisplayString(shortcut.label), 9, _hoisted_13),
|
|
193
|
-
shortcut.icon ? (openBlock(), createBlock(unref(OIcon), { key: 0 }, {
|
|
194
|
-
default: withCtx(() => [
|
|
195
|
-
(openBlock(), createBlock(resolveDynamicComponent(shortcut.icon)))
|
|
140
|
+
createElementVNode("span", _hoisted_7, toDisplayString(subItem.label), 1),
|
|
141
|
+
subItem.tag ? (openBlock(), createBlock(unref(OTag), {
|
|
142
|
+
key: 0,
|
|
143
|
+
round: "pill",
|
|
144
|
+
color: "danger",
|
|
145
|
+
size: "small",
|
|
146
|
+
class: "content-tag"
|
|
147
|
+
}, {
|
|
148
|
+
default: withCtx(() => [
|
|
149
|
+
createTextVNode(toDisplayString(subItem.tag), 1)
|
|
150
|
+
]),
|
|
151
|
+
_: 2
|
|
152
|
+
}, 1024)) : createCommentVNode("", true),
|
|
153
|
+
subItem.icon ? (openBlock(), createBlock(unref(OIcon), { key: 1 }, {
|
|
154
|
+
default: withCtx(() => [
|
|
155
|
+
(openBlock(), createBlock(resolveDynamicComponent(subItem.icon)))
|
|
156
|
+
]),
|
|
157
|
+
_: 2
|
|
158
|
+
}, 1024)) : createCommentVNode("", true)
|
|
159
|
+
], 8, _hoisted_6)), [
|
|
160
|
+
[_directive_analytics, () => onClickNavHref(sub, subItem)]
|
|
196
161
|
]),
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
162
|
+
subItem.description ? (openBlock(), createElementBlock("div", _hoisted_8, [
|
|
163
|
+
showDesc.value ? (openBlock(), createBlock(unref(OPopover), {
|
|
164
|
+
key: 0,
|
|
165
|
+
trigger: "hover",
|
|
166
|
+
position: "bottom",
|
|
167
|
+
"adjust-min-width": false,
|
|
168
|
+
"adjust-width": false
|
|
169
|
+
}, {
|
|
170
|
+
target: withCtx(() => [
|
|
171
|
+
createElementVNode("p", {
|
|
172
|
+
class: normalizeClass(["item-desc", [`item-desc-line-${subItem == null ? void 0 : subItem.line}`]]),
|
|
173
|
+
onMouseenter: _cache[0] || (_cache[0] = ($event) => descMouseenter($event))
|
|
174
|
+
}, toDisplayString(subItem.description), 35)
|
|
175
|
+
]),
|
|
176
|
+
default: withCtx(() => [
|
|
177
|
+
createElementVNode("p", _hoisted_9, toDisplayString(subItem.description), 1)
|
|
178
|
+
]),
|
|
179
|
+
_: 2
|
|
180
|
+
}, 1024)) : (openBlock(), createElementBlock("p", {
|
|
181
|
+
key: 1,
|
|
182
|
+
class: normalizeClass(["item-desc", [`item-desc-line-${subItem == null ? void 0 : subItem.line}`]]),
|
|
183
|
+
onMouseenter: _cache[1] || (_cache[1] = ($event) => descMouseenter($event))
|
|
184
|
+
}, toDisplayString(subItem.description), 35))
|
|
185
|
+
])) : createCommentVNode("", true)
|
|
186
|
+
], 2);
|
|
187
|
+
}), 128))
|
|
188
|
+
])
|
|
189
|
+
]);
|
|
190
|
+
}), 128))
|
|
191
|
+
]),
|
|
192
|
+
((_c2 = (_b2 = props.itemData) == null ? void 0 : _b2.shortcut) == null ? void 0 : _c2.length) ? (openBlock(), createElementBlock("div", _hoisted_10)) : createCommentVNode("", true),
|
|
193
|
+
((_e = (_d = props.itemData) == null ? void 0 : _d.shortcut) == null ? void 0 : _e.length) ? (openBlock(), createElementBlock("div", _hoisted_11, [
|
|
194
|
+
createElementVNode("span", _hoisted_12, toDisplayString(unref(locale) === "zh" ? "快捷链接" : "Quick Link"), 1),
|
|
195
|
+
!((_f = props.itemData) == null ? void 0 : _f.withPicture) ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList((_g = props.itemData) == null ? void 0 : _g.shortcut, (shortcut) => {
|
|
196
|
+
return openBlock(), createElementBlock("div", {
|
|
197
|
+
key: shortcut.label,
|
|
198
|
+
class: "shortcut"
|
|
199
|
+
}, [
|
|
200
|
+
withDirectives((openBlock(), createElementBlock("a", {
|
|
206
201
|
href: shortcut.href,
|
|
207
202
|
target: (shortcut == null ? void 0 : shortcut.target) || "_self",
|
|
208
203
|
rel: "noopener noreferrer",
|
|
209
|
-
class: "
|
|
204
|
+
class: "shortcut-link"
|
|
210
205
|
}, [
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
206
|
+
showDesc.value ? (openBlock(), createBlock(unref(OPopover), {
|
|
207
|
+
key: 0,
|
|
208
|
+
trigger: "hover",
|
|
209
|
+
position: "bottom",
|
|
210
|
+
"adjust-min-width": false,
|
|
211
|
+
"adjust-width": false
|
|
212
|
+
}, {
|
|
213
|
+
target: withCtx(() => [
|
|
214
|
+
createElementVNode("p", {
|
|
215
|
+
class: "shortcut-title",
|
|
216
|
+
onMouseenter: _cache[2] || (_cache[2] = ($event) => descMouseenter($event))
|
|
217
|
+
}, toDisplayString(shortcut.label), 33)
|
|
218
|
+
]),
|
|
219
|
+
default: withCtx(() => [
|
|
220
|
+
createElementVNode("p", _hoisted_14, toDisplayString(shortcut.label), 1)
|
|
221
|
+
]),
|
|
222
|
+
_: 2
|
|
223
|
+
}, 1024)) : (openBlock(), createElementBlock("p", {
|
|
224
|
+
key: 1,
|
|
225
|
+
class: "shortcut-title",
|
|
226
|
+
onMouseenter: _cache[3] || (_cache[3] = ($event) => descMouseenter($event))
|
|
227
|
+
}, toDisplayString(shortcut.label), 33)),
|
|
228
|
+
shortcut.icon ? (openBlock(), createBlock(unref(OIcon), { key: 2 }, {
|
|
229
|
+
default: withCtx(() => [
|
|
230
|
+
(openBlock(), createBlock(resolveDynamicComponent(shortcut.icon)))
|
|
231
|
+
]),
|
|
232
|
+
_: 2
|
|
233
|
+
}, 1024)) : createCommentVNode("", true)
|
|
234
|
+
], 8, _hoisted_13)), [
|
|
220
235
|
[_directive_analytics, () => onClickShortcut(shortcut)]
|
|
221
|
-
])
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
236
|
+
])
|
|
237
|
+
]);
|
|
238
|
+
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList((_h = props.itemData) == null ? void 0 : _h.shortcut, (shortcut) => {
|
|
239
|
+
return withDirectives((openBlock(), createElementBlock("a", {
|
|
240
|
+
key: shortcut.label,
|
|
241
|
+
href: shortcut.href,
|
|
242
|
+
target: (shortcut == null ? void 0 : shortcut.target) || "_self",
|
|
243
|
+
rel: "noopener noreferrer",
|
|
244
|
+
class: "review"
|
|
245
|
+
}, [
|
|
246
|
+
createElementVNode("img", {
|
|
247
|
+
src: shortcut.picture,
|
|
248
|
+
class: "review-picture"
|
|
249
|
+
}, null, 8, _hoisted_16),
|
|
250
|
+
createElementVNode("div", _hoisted_17, [
|
|
251
|
+
createElementVNode("p", _hoisted_18, toDisplayString(shortcut.label), 1),
|
|
252
|
+
createElementVNode("div", _hoisted_19, toDisplayString(shortcut.remark), 1)
|
|
253
|
+
])
|
|
254
|
+
], 8, _hoisted_15)), [
|
|
255
|
+
[_directive_analytics, () => onClickShortcut(shortcut)]
|
|
256
|
+
]);
|
|
257
|
+
}), 128))
|
|
258
|
+
])) : createCommentVNode("", true)
|
|
259
|
+
])
|
|
260
|
+
];
|
|
261
|
+
}),
|
|
262
|
+
_: 1
|
|
263
|
+
})
|
|
264
|
+
])
|
|
232
265
|
], 2)) : createCommentVNode("", true)
|
|
233
266
|
], 32);
|
|
234
267
|
};
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
.hover-icon-rotate .o-icon[data-v-
|
|
1
|
+
.hover-icon-rotate .o-icon[data-v-64df272e] {
|
|
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-
|
|
5
|
+
.hover-icon-rotate:hover .o-icon[data-v-64df272e] {
|
|
6
6
|
transform: rotate(-180deg);
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
|
-
.header-nav-wrap[data-v-
|
|
9
|
+
.header-nav-wrap[data-v-64df272e] {
|
|
10
10
|
height: 100%;
|
|
11
11
|
}
|
|
12
|
-
.header-nav-wrap .header-nav[data-v-
|
|
12
|
+
.header-nav-wrap .header-nav[data-v-64df272e] {
|
|
13
13
|
height: 100%;
|
|
14
14
|
display: flex;
|
|
15
15
|
justify-content: space-between;
|
|
16
16
|
width: calc(100% - 64px);
|
|
17
17
|
align-items: center;
|
|
18
18
|
}
|
|
19
|
-
.header-nav-wrap .header-nav-scroll[data-v-
|
|
19
|
+
.header-nav-wrap .header-nav-scroll[data-v-64df272e] {
|
|
20
20
|
width: calc(100% - 64px - 24px);
|
|
21
21
|
}
|
|
22
|
-
.o-nav[data-v-
|
|
22
|
+
.o-nav[data-v-64df272e] {
|
|
23
23
|
height: 100%;
|
|
24
24
|
position: relative;
|
|
25
25
|
overflow-y: hidden;
|
|
26
26
|
overflow-x: auto;
|
|
27
27
|
}
|
|
28
|
-
.o-nav[data-v-
|
|
28
|
+
.o-nav[data-v-64df272e]::after {
|
|
29
29
|
content: "";
|
|
30
30
|
position: absolute;
|
|
31
31
|
width: 50px;
|
|
@@ -35,16 +35,36 @@
|
|
|
35
35
|
background-image: linear-gradient(90deg, rgba(var(--o-grey-1), 0) 0%, rgba(var(--o-grey-1), 1) 100%);
|
|
36
36
|
z-index: 0;
|
|
37
37
|
}
|
|
38
|
-
.o-nav[data-v-
|
|
38
|
+
.o-nav[data-v-64df272e]::-webkit-scrollbar {
|
|
39
39
|
display: none;
|
|
40
40
|
}
|
|
41
|
-
|
|
41
|
+
.right-icon[data-v-64df272e] {
|
|
42
|
+
display: flex;
|
|
43
|
+
align-items: center;
|
|
44
|
+
cursor: pointer;
|
|
45
|
+
width: 16px;
|
|
46
|
+
height: 16px;
|
|
47
|
+
border-radius: var(--o-radius-xs);
|
|
48
|
+
}
|
|
49
|
+
.right-icon .o-icon[data-v-64df272e] {
|
|
50
|
+
--icon-size: 16px;
|
|
51
|
+
}
|
|
52
|
+
@media (hover: hover) {
|
|
53
|
+
.right-icon[data-v-64df272e]:hover {
|
|
54
|
+
background-color: var(--o-color-control2-light);
|
|
55
|
+
color: var(--o-color-link2);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
.right-icon[data-v-64df272e]:active {
|
|
59
|
+
color: var(--o-color-link3);
|
|
60
|
+
}
|
|
61
|
+
[data-o-theme*=dark] .o-nav[data-v-64df272e]::after {
|
|
42
62
|
background-image: linear-gradient(90deg, rgba(var(--o-grey-4), 0) 0%, rgba(var(--o-grey-4), 1) 100%);
|
|
43
63
|
}
|
|
44
|
-
.o-nav-scroll[data-v-
|
|
64
|
+
.o-nav-scroll[data-v-64df272e]::after {
|
|
45
65
|
display: none;
|
|
46
66
|
}
|
|
47
|
-
.o-nav-list[data-v-
|
|
67
|
+
.o-nav-list[data-v-64df272e] {
|
|
48
68
|
display: flex;
|
|
49
69
|
height: 100%;
|
|
50
70
|
width: fit-content;
|
|
@@ -53,7 +73,7 @@
|
|
|
53
73
|
padding: 0;
|
|
54
74
|
margin: 0;
|
|
55
75
|
}
|
|
56
|
-
.o-nav-list li[data-v-
|
|
76
|
+
.o-nav-list li[data-v-64df272e] {
|
|
57
77
|
position: relative;
|
|
58
78
|
display: flex;
|
|
59
79
|
align-items: center;
|
|
@@ -61,10 +81,10 @@
|
|
|
61
81
|
color: var(--o-color-info1);
|
|
62
82
|
transition: all var(--o-duration-s) var(--o-easing-standard);
|
|
63
83
|
}
|
|
64
|
-
.o-nav-list li .nav-text[data-v-
|
|
84
|
+
.o-nav-list li .nav-text[data-v-64df272e] {
|
|
65
85
|
position: relative;
|
|
66
86
|
}
|
|
67
|
-
.o-nav-list li .nav-text[data-v-
|
|
87
|
+
.o-nav-list li .nav-text[data-v-64df272e]::after {
|
|
68
88
|
content: "";
|
|
69
89
|
position: absolute;
|
|
70
90
|
left: 0;
|
|
@@ -76,16 +96,26 @@
|
|
|
76
96
|
background: var(--o-color-primary1);
|
|
77
97
|
transition: all var(--o-duration-s) var(--o-easing-standard);
|
|
78
98
|
}
|
|
79
|
-
|
|
99
|
+
@media (max-width: 1440px) {
|
|
100
|
+
.o-nav-list li .nav-text[data-v-64df272e]::after {
|
|
101
|
+
bottom: -21px;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
@media (max-width: 1200px) {
|
|
105
|
+
.o-nav-list li .nav-text[data-v-64df272e]::after {
|
|
106
|
+
bottom: -17px;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
.o-nav-list li.is-selected .nav-text[data-v-64df272e], .o-nav-list li.is-active .nav-text[data-v-64df272e] {
|
|
80
110
|
color: var(--o-color-primary1);
|
|
81
111
|
z-index: 99;
|
|
82
|
-
font-weight:
|
|
112
|
+
font-weight: 600;
|
|
83
113
|
}
|
|
84
|
-
.o-nav-list li.is-selected .nav-text[data-v-
|
|
114
|
+
.o-nav-list li.is-selected .nav-text[data-v-64df272e]::after, .o-nav-list li.is-active .nav-text[data-v-64df272e]::after {
|
|
85
115
|
content: "";
|
|
86
116
|
opacity: 1;
|
|
87
117
|
}
|
|
88
|
-
.o-nav-list .nav-item[data-v-
|
|
118
|
+
.o-nav-list .nav-item[data-v-64df272e] {
|
|
89
119
|
cursor: default;
|
|
90
120
|
display: flex;
|
|
91
121
|
align-items: center;
|
|
@@ -94,48 +124,48 @@
|
|
|
94
124
|
line-height: 24px;
|
|
95
125
|
}
|
|
96
126
|
@media (min-width: 1201px) and (max-width: 1680px) {
|
|
97
|
-
.o-nav-list .nav-item[data-v-
|
|
127
|
+
.o-nav-list .nav-item[data-v-64df272e] {
|
|
98
128
|
font-size: 14px;
|
|
99
129
|
line-height: 22px;
|
|
100
130
|
}
|
|
101
131
|
}
|
|
102
132
|
@media (min-width: 841px) and (max-width: 1200px) {
|
|
103
|
-
.o-nav-list .nav-item[data-v-
|
|
133
|
+
.o-nav-list .nav-item[data-v-64df272e] {
|
|
104
134
|
font-size: 14px;
|
|
105
135
|
line-height: 22px;
|
|
106
136
|
}
|
|
107
137
|
}
|
|
108
138
|
@media (min-width: 601px) and (max-width: 840px) {
|
|
109
|
-
.o-nav-list .nav-item[data-v-
|
|
139
|
+
.o-nav-list .nav-item[data-v-64df272e] {
|
|
110
140
|
font-size: 14px;
|
|
111
141
|
line-height: 22px;
|
|
112
142
|
}
|
|
113
143
|
}
|
|
114
144
|
@media (max-width: 600px) {
|
|
115
|
-
.o-nav-list .nav-item[data-v-
|
|
145
|
+
.o-nav-list .nav-item[data-v-64df272e] {
|
|
116
146
|
font-size: 12px;
|
|
117
147
|
line-height: 18px;
|
|
118
148
|
}
|
|
119
149
|
}
|
|
120
|
-
@media (
|
|
121
|
-
.o-nav-list .nav-item[data-v-
|
|
122
|
-
padding:
|
|
150
|
+
@media (max-width: 1440px) {
|
|
151
|
+
.o-nav-list .nav-item[data-v-64df272e] {
|
|
152
|
+
padding: 18px 12px;
|
|
123
153
|
}
|
|
124
154
|
}
|
|
125
155
|
@media (min-width: 841px) and (max-width: 1200px) {
|
|
126
|
-
.o-nav-list .nav-item[data-v-
|
|
127
|
-
padding:
|
|
156
|
+
.o-nav-list .nav-item[data-v-64df272e] {
|
|
157
|
+
padding: 14px 8px;
|
|
128
158
|
}
|
|
129
159
|
}
|
|
130
160
|
@media (min-width: 841px) and (max-width: 1000px) {
|
|
131
|
-
.o-nav-list .nav-item.en[data-v-
|
|
161
|
+
.o-nav-list .nav-item.en[data-v-64df272e] {
|
|
132
162
|
padding: var(--o-gap-2);
|
|
133
163
|
}
|
|
134
164
|
}
|
|
135
|
-
.o-nav-list .item-other[data-v-
|
|
165
|
+
.o-nav-list .item-other[data-v-64df272e] {
|
|
136
166
|
cursor: pointer;
|
|
137
167
|
}
|
|
138
|
-
.o-nav-list .item-other .content-tag[data-v-
|
|
168
|
+
.o-nav-list .item-other .content-tag[data-v-64df272e] {
|
|
139
169
|
margin-left: var(--o-gap-2);
|
|
140
170
|
--layout-pkg-radius: var(--o-radius-xs);
|
|
141
171
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./HeaderNav.vue2.mjs";
|
|
2
2
|
import './HeaderNav.css';
|
|
3
3
|
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const HeaderNav = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const HeaderNav = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-64df272e"]]);
|
|
5
5
|
export {
|
|
6
6
|
HeaderNav as default
|
|
7
7
|
};
|
|
@@ -144,7 +144,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
144
144
|
key: item.id,
|
|
145
145
|
class: normalizeClass({
|
|
146
146
|
"is-selected": hoverIndex.value === item.id || props.hoverId === item.id,
|
|
147
|
-
"is-active": props.activeIndex === idx
|
|
147
|
+
"is-active": props.activeIndex === idx || props.activeIndex === item.id
|
|
148
148
|
}),
|
|
149
149
|
onMouseenter: ($event) => unref(toggleDebounced)(item, "mouseenter"),
|
|
150
150
|
onMouseleave: ($event) => unref(toggleDebounced)(item, "mouseleave")
|