@opendesign-plus-test/components 0.0.1-rc.98 → 0.0.1-rc.99
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/components/header/OHeader.vue.d.ts +4 -1
- package/dist/components/header/OHeaderMobile.vue.d.ts +6 -14
- package/dist/components/header/components/HeaderFlatten.vue.d.ts +19 -0
- package/dist/components/header/components/HeaderNavMobile.vue.d.ts +0 -2
- package/dist/components/header/index.d.ts +13 -10
- package/dist/components/header/types.d.ts +6 -4
- package/dist/components/header-search/OHeaderSearch.vue.d.ts +3 -0
- package/dist/components/header-search/index.d.ts +3 -0
- package/dist/components.cjs.js +37 -37
- package/dist/components.css +1 -1
- package/dist/components.es.js +8957 -8697
- package/dist/treeshaking/_virtual/icon-avatar-line.mjs +0 -1
- package/dist/treeshaking/_virtual/icon-header-search.mjs +4 -10
- package/dist/treeshaking/_virtual/icon-moon.mjs +0 -1
- package/dist/treeshaking/_virtual/icon-sun.mjs +0 -1
- package/dist/treeshaking/components/header/OHeader.css +20 -14
- package/dist/treeshaking/components/header/OHeader.vue.d.ts +4 -1
- package/dist/treeshaking/components/header/OHeader.vue.mjs +1 -1
- package/dist/treeshaking/components/header/OHeader.vue2.mjs +31 -8
- package/dist/treeshaking/components/header/OHeaderMobile.vue.d.ts +6 -14
- package/dist/treeshaking/components/header/OHeaderMobile.vue2.mjs +2 -1
- package/dist/treeshaking/components/header/components/HeaderContent.css +173 -169
- package/dist/treeshaking/components/header/components/HeaderContent.vue.mjs +1 -1
- package/dist/treeshaking/components/header/components/HeaderContent.vue2.mjs +2 -2
- package/dist/treeshaking/components/header/components/HeaderFlatten.css +267 -0
- package/dist/treeshaking/components/header/components/HeaderFlatten.vue.d.ts +19 -0
- package/dist/treeshaking/components/header/components/HeaderFlatten.vue.mjs +7 -0
- package/dist/treeshaking/components/header/components/HeaderFlatten.vue2.mjs +298 -0
- package/dist/treeshaking/components/header/components/HeaderNav.css +49 -34
- package/dist/treeshaking/components/header/components/HeaderNav.vue.mjs +1 -1
- package/dist/treeshaking/components/header/components/HeaderNav.vue2.mjs +13 -6
- package/dist/treeshaking/components/header/components/HeaderNavMobile.css +73 -73
- package/dist/treeshaking/components/header/components/HeaderNavMobile.vue.d.ts +0 -2
- package/dist/treeshaking/components/header/components/HeaderNavMobile.vue.mjs +1 -1
- package/dist/treeshaking/components/header/components/HeaderNavMobile.vue2.mjs +2 -2
- package/dist/treeshaking/components/header/index.d.ts +13 -10
- package/dist/treeshaking/components/header/types.d.ts +6 -4
- package/dist/treeshaking/components/header-language-switcher/OHeaderLanguageSwitcher.css +43 -36
- package/dist/treeshaking/components/header-language-switcher/OHeaderLanguageSwitcher.vue.mjs +1 -1
- package/dist/treeshaking/components/header-search/OHeaderSearch.css +63 -41
- package/dist/treeshaking/components/header-search/OHeaderSearch.vue.d.ts +3 -0
- package/dist/treeshaking/components/header-search/OHeaderSearch.vue.mjs +1 -1
- package/dist/treeshaking/components/header-search/OHeaderSearch.vue2.mjs +21 -9
- package/dist/treeshaking/components/header-search/index.d.ts +3 -0
- package/dist/treeshaking/components/header-source-code/OHeaderSourceCode.css +60 -53
- package/dist/treeshaking/components/header-source-code/OHeaderSourceCode.vue.mjs +1 -1
- package/dist/treeshaking/components/header-user/OHeaderUser.css +97 -51
- package/dist/treeshaking/components/header-user/OHeaderUser.vue.mjs +1 -1
- package/dist/treeshaking/components/header-user/OHeaderUser2.css +5 -41
- package/dist/treeshaking/components/search/internal/SearchImageInput.css +66 -40
- package/dist/treeshaking/components/search/internal/SearchImageInput.vue.mjs +1 -1
- package/dist/treeshaking/components/search/internal/SearchPanel.css +108 -120
- package/dist/treeshaking/components/search/internal/SearchPanel.vue.mjs +1 -1
- package/dist/treeshaking/components/search/internal/SearchPanel.vue2.mjs +46 -34
- package/package.json +1 -1
|
@@ -1,44 +1,51 @@
|
|
|
1
|
-
.hover-icon-rotate .o-icon[data-v-
|
|
1
|
+
.hover-icon-rotate .o-icon[data-v-2e8364bf] {
|
|
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-2e8364bf] {
|
|
6
6
|
transform: rotate(-180deg);
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
|
-
.header-nav-wrap[data-v-
|
|
9
|
+
.header-nav-wrap[data-v-2e8364bf] {
|
|
10
10
|
height: 100%;
|
|
11
11
|
}
|
|
12
|
-
.header-nav-wrap .header-nav[data-v-
|
|
12
|
+
.header-nav-wrap .header-nav[data-v-2e8364bf] {
|
|
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-2e8364bf] {
|
|
20
20
|
width: calc(100% - 64px - 24px);
|
|
21
21
|
}
|
|
22
|
-
.o-nav[data-v-
|
|
22
|
+
.o-nav[data-v-2e8364bf] {
|
|
23
|
+
--o-before-left: 0;
|
|
23
24
|
height: 100%;
|
|
24
25
|
position: relative;
|
|
25
26
|
overflow-y: hidden;
|
|
26
27
|
overflow-x: auto;
|
|
27
28
|
}
|
|
28
|
-
.o-nav[data-v-
|
|
29
|
+
.o-nav[data-v-2e8364bf]::after, .o-nav[data-v-2e8364bf]::before {
|
|
29
30
|
content: "";
|
|
30
31
|
position: absolute;
|
|
31
32
|
width: 50px;
|
|
32
33
|
height: 100%;
|
|
33
|
-
right: 0;
|
|
34
34
|
top: 0;
|
|
35
|
+
z-index: 9;
|
|
36
|
+
}
|
|
37
|
+
.o-nav[data-v-2e8364bf]::after {
|
|
38
|
+
right: 0;
|
|
35
39
|
background-image: linear-gradient(90deg, rgba(var(--o-grey-1), 0) 0%, rgba(var(--o-grey-1), 1) 100%);
|
|
36
|
-
z-index: 0;
|
|
37
40
|
}
|
|
38
|
-
.o-nav[data-v-
|
|
41
|
+
.o-nav[data-v-2e8364bf]::before {
|
|
42
|
+
background-image: linear-gradient(0, rgba(var(--o-grey-1), 0) 0%, rgba(var(--o-grey-1), 1) 100%);
|
|
39
43
|
display: none;
|
|
40
44
|
}
|
|
41
|
-
.
|
|
45
|
+
.o-nav[data-v-2e8364bf]::-webkit-scrollbar {
|
|
46
|
+
display: none;
|
|
47
|
+
}
|
|
48
|
+
.right-icon[data-v-2e8364bf] {
|
|
42
49
|
display: flex;
|
|
43
50
|
align-items: center;
|
|
44
51
|
cursor: pointer;
|
|
@@ -46,25 +53,29 @@
|
|
|
46
53
|
height: 16px;
|
|
47
54
|
border-radius: var(--o-radius-xs);
|
|
48
55
|
}
|
|
49
|
-
.right-icon .o-icon[data-v-
|
|
56
|
+
.right-icon .o-icon[data-v-2e8364bf] {
|
|
50
57
|
--icon-size: 16px;
|
|
51
58
|
}
|
|
52
59
|
@media (hover: hover) {
|
|
53
|
-
.right-icon[data-v-
|
|
60
|
+
.right-icon[data-v-2e8364bf]:hover {
|
|
54
61
|
background-color: var(--o-color-control2-light);
|
|
55
62
|
color: var(--o-color-link2);
|
|
56
63
|
}
|
|
57
64
|
}
|
|
58
|
-
.right-icon[data-v-
|
|
65
|
+
.right-icon[data-v-2e8364bf]:active {
|
|
59
66
|
color: var(--o-color-link3);
|
|
60
67
|
}
|
|
61
|
-
[data-o-theme*=dark] .o-nav[data-v-
|
|
68
|
+
[data-o-theme*=dark] .o-nav[data-v-2e8364bf]::after, [data-o-theme*=dark] .o-nav[data-v-2e8364bf]::before {
|
|
62
69
|
background-image: linear-gradient(90deg, rgba(var(--o-grey-4), 0) 0%, rgba(var(--o-grey-4), 1) 100%);
|
|
63
70
|
}
|
|
64
|
-
.o-nav-scroll[data-v-
|
|
71
|
+
.o-nav-scroll[data-v-2e8364bf]::after {
|
|
65
72
|
display: none;
|
|
66
73
|
}
|
|
67
|
-
.o-nav-
|
|
74
|
+
.o-nav-scroll[data-v-2e8364bf]::before {
|
|
75
|
+
left: var(--o-before-left);
|
|
76
|
+
display: block;
|
|
77
|
+
}
|
|
78
|
+
.o-nav-list[data-v-2e8364bf] {
|
|
68
79
|
display: flex;
|
|
69
80
|
height: 100%;
|
|
70
81
|
width: fit-content;
|
|
@@ -73,7 +84,7 @@
|
|
|
73
84
|
padding: 0;
|
|
74
85
|
margin: 0;
|
|
75
86
|
}
|
|
76
|
-
.o-nav-list li[data-v-
|
|
87
|
+
.o-nav-list li[data-v-2e8364bf] {
|
|
77
88
|
position: relative;
|
|
78
89
|
display: flex;
|
|
79
90
|
align-items: center;
|
|
@@ -81,10 +92,10 @@
|
|
|
81
92
|
color: var(--o-color-info1);
|
|
82
93
|
transition: all var(--o-duration-s) var(--o-easing-standard);
|
|
83
94
|
}
|
|
84
|
-
.o-nav-list li .nav-text[data-v-
|
|
95
|
+
.o-nav-list li .nav-text[data-v-2e8364bf] {
|
|
85
96
|
position: relative;
|
|
86
97
|
}
|
|
87
|
-
.o-nav-list li .nav-text[data-v-
|
|
98
|
+
.o-nav-list li .nav-text[data-v-2e8364bf]::after {
|
|
88
99
|
content: "";
|
|
89
100
|
position: absolute;
|
|
90
101
|
left: 0;
|
|
@@ -97,25 +108,29 @@
|
|
|
97
108
|
transition: all var(--o-duration-s) var(--o-easing-standard);
|
|
98
109
|
}
|
|
99
110
|
@media (max-width: 1440px) {
|
|
100
|
-
.o-nav-list li .nav-text[data-v-
|
|
111
|
+
.o-nav-list li .nav-text[data-v-2e8364bf]::after {
|
|
101
112
|
bottom: -21px;
|
|
102
113
|
}
|
|
103
114
|
}
|
|
104
115
|
@media (max-width: 1200px) {
|
|
105
|
-
.o-nav-list li .nav-text[data-v-
|
|
116
|
+
.o-nav-list li .nav-text[data-v-2e8364bf]::after {
|
|
106
117
|
bottom: -17px;
|
|
107
118
|
}
|
|
108
119
|
}
|
|
109
|
-
.o-nav-list li.is-selected .nav-text[data-v-
|
|
120
|
+
.o-nav-list li.is-selected .nav-text[data-v-2e8364bf], .o-nav-list li.is-active .nav-text[data-v-2e8364bf] {
|
|
110
121
|
color: var(--o-color-primary1);
|
|
111
122
|
z-index: 99;
|
|
112
123
|
font-weight: 600;
|
|
113
124
|
}
|
|
114
|
-
.o-nav-list li.is-selected .nav-text[data-v-
|
|
125
|
+
.o-nav-list li.is-selected .nav-text[data-v-2e8364bf]::after, .o-nav-list li.is-active .nav-text[data-v-2e8364bf]::after {
|
|
115
126
|
content: "";
|
|
116
127
|
opacity: 1;
|
|
117
128
|
}
|
|
118
|
-
.o-nav-list .
|
|
129
|
+
.o-nav-list li.is-disabled[data-v-2e8364bf] {
|
|
130
|
+
color: var(--o-color-info4);
|
|
131
|
+
pointer-events: none;
|
|
132
|
+
}
|
|
133
|
+
.o-nav-list .nav-item[data-v-2e8364bf] {
|
|
119
134
|
cursor: default;
|
|
120
135
|
display: flex;
|
|
121
136
|
align-items: center;
|
|
@@ -124,48 +139,48 @@
|
|
|
124
139
|
line-height: 24px;
|
|
125
140
|
}
|
|
126
141
|
@media (min-width: 1201px) and (max-width: 1680px) {
|
|
127
|
-
.o-nav-list .nav-item[data-v-
|
|
142
|
+
.o-nav-list .nav-item[data-v-2e8364bf] {
|
|
128
143
|
font-size: 14px;
|
|
129
144
|
line-height: 22px;
|
|
130
145
|
}
|
|
131
146
|
}
|
|
132
147
|
@media (min-width: 841px) and (max-width: 1200px) {
|
|
133
|
-
.o-nav-list .nav-item[data-v-
|
|
148
|
+
.o-nav-list .nav-item[data-v-2e8364bf] {
|
|
134
149
|
font-size: 14px;
|
|
135
150
|
line-height: 22px;
|
|
136
151
|
}
|
|
137
152
|
}
|
|
138
153
|
@media (min-width: 601px) and (max-width: 840px) {
|
|
139
|
-
.o-nav-list .nav-item[data-v-
|
|
154
|
+
.o-nav-list .nav-item[data-v-2e8364bf] {
|
|
140
155
|
font-size: 14px;
|
|
141
156
|
line-height: 22px;
|
|
142
157
|
}
|
|
143
158
|
}
|
|
144
159
|
@media (max-width: 600px) {
|
|
145
|
-
.o-nav-list .nav-item[data-v-
|
|
160
|
+
.o-nav-list .nav-item[data-v-2e8364bf] {
|
|
146
161
|
font-size: 12px;
|
|
147
162
|
line-height: 18px;
|
|
148
163
|
}
|
|
149
164
|
}
|
|
150
165
|
@media (max-width: 1440px) {
|
|
151
|
-
.o-nav-list .nav-item[data-v-
|
|
166
|
+
.o-nav-list .nav-item[data-v-2e8364bf] {
|
|
152
167
|
padding: 18px 12px;
|
|
153
168
|
}
|
|
154
169
|
}
|
|
155
170
|
@media (min-width: 841px) and (max-width: 1200px) {
|
|
156
|
-
.o-nav-list .nav-item[data-v-
|
|
171
|
+
.o-nav-list .nav-item[data-v-2e8364bf] {
|
|
157
172
|
padding: 14px 8px;
|
|
158
173
|
}
|
|
159
174
|
}
|
|
160
175
|
@media (min-width: 841px) and (max-width: 1000px) {
|
|
161
|
-
.o-nav-list .nav-item.en[data-v-
|
|
176
|
+
.o-nav-list .nav-item.en[data-v-2e8364bf] {
|
|
162
177
|
padding: var(--o-gap-2);
|
|
163
178
|
}
|
|
164
179
|
}
|
|
165
|
-
.o-nav-list .item-other[data-v-
|
|
180
|
+
.o-nav-list .item-other[data-v-2e8364bf] {
|
|
166
181
|
cursor: pointer;
|
|
167
182
|
}
|
|
168
|
-
.o-nav-list .item-other .content-tag[data-v-
|
|
183
|
+
.o-nav-list .item-other .content-tag[data-v-2e8364bf] {
|
|
169
184
|
margin-left: var(--o-gap-2);
|
|
170
185
|
--layout-pkg-radius: var(--o-radius-xs);
|
|
171
186
|
}
|
|
@@ -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-2e8364bf"]]);
|
|
5
5
|
export {
|
|
6
6
|
HeaderNav as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, onMounted, nextTick, onUnmounted, resolveDirective, openBlock, createElementBlock, createElementVNode, normalizeClass, createVNode, unref, withCtx, createCommentVNode, Fragment, renderList, withDirectives, toDisplayString, createBlock, createTextVNode } from "vue";
|
|
1
|
+
import { defineComponent, ref, computed, onMounted, nextTick, onUnmounted, resolveDirective, openBlock, createElementBlock, createElementVNode, normalizeClass, createVNode, unref, withCtx, createCommentVNode, normalizeStyle, Fragment, renderList, withDirectives, toDisplayString, createBlock, createTextVNode } from "vue";
|
|
2
2
|
import { OIcon, OTag } from "@opensig/opendesign";
|
|
3
3
|
import IconCaretLeft from "../../../_virtual/icon-caret-left.mjs";
|
|
4
4
|
import IconCaretRight from "../../../_virtual/icon-caret-right.mjs";
|
|
@@ -30,9 +30,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
30
30
|
const props = __props;
|
|
31
31
|
const navRef = ref();
|
|
32
32
|
const navListRef = ref();
|
|
33
|
-
const resizeTimer = ref(
|
|
33
|
+
const resizeTimer = ref();
|
|
34
34
|
const navVisibleRight = ref(false);
|
|
35
35
|
const navVisibleLeft = ref(false);
|
|
36
|
+
const left = ref(0);
|
|
36
37
|
const hoverIndex = ref();
|
|
37
38
|
const toggleDebounced = useDebounceFn((item, id) => {
|
|
38
39
|
hoverIndex.value = item == null ? void 0 : item.id;
|
|
@@ -64,13 +65,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
64
65
|
navVisibleLeft.value = false;
|
|
65
66
|
};
|
|
66
67
|
const calculateLayout = () => {
|
|
67
|
-
var _a, _b;
|
|
68
|
+
var _a, _b, _c, _d;
|
|
68
69
|
if (((_a = navRef.value) == null ? void 0 : _a.clientWidth) < ((_b = navListRef.value) == null ? void 0 : _b.clientWidth)) {
|
|
70
|
+
left.value = ((_c = navListRef.value) == null ? void 0 : _c.clientWidth) - ((_d = navRef.value) == null ? void 0 : _d.clientWidth);
|
|
69
71
|
navVisibleRight.value = true;
|
|
70
72
|
} else {
|
|
71
73
|
navVisibleRight.value = false;
|
|
72
74
|
}
|
|
73
75
|
};
|
|
76
|
+
const beforeStyle = computed(() => ({
|
|
77
|
+
"--o-before-left": left.value ? `${left.value + 16}px` : void 0
|
|
78
|
+
}));
|
|
74
79
|
let hoverTime = 0;
|
|
75
80
|
let steps = 0;
|
|
76
81
|
const onHoverHeader = () => steps = 0;
|
|
@@ -130,7 +135,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
130
135
|
createElementVNode("div", {
|
|
131
136
|
ref_key: "navRef",
|
|
132
137
|
ref: navRef,
|
|
133
|
-
class: normalizeClass(["o-nav", { "o-nav-scroll": navVisibleLeft.value || !navVisibleRight.value }])
|
|
138
|
+
class: normalizeClass(["o-nav", { "o-nav-scroll": navVisibleLeft.value || !navVisibleRight.value }]),
|
|
139
|
+
style: normalizeStyle(beforeStyle.value)
|
|
134
140
|
}, [
|
|
135
141
|
createElementVNode("ul", {
|
|
136
142
|
ref_key: "navListRef",
|
|
@@ -144,7 +150,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
144
150
|
key: item.id,
|
|
145
151
|
class: normalizeClass({
|
|
146
152
|
"is-selected": hoverIndex.value === item.id || props.hoverId === item.id,
|
|
147
|
-
"is-active": props.activeIndex === idx || props.activeIndex === item.id
|
|
153
|
+
"is-active": props.activeIndex === idx || props.activeIndex === item.id,
|
|
154
|
+
"is-disabled": item == null ? void 0 : item.disabled
|
|
148
155
|
}),
|
|
149
156
|
onMouseenter: ($event) => unref(toggleDebounced)(item, "mouseenter"),
|
|
150
157
|
onMouseleave: ($event) => unref(toggleDebounced)(item, "mouseleave")
|
|
@@ -186,7 +193,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
186
193
|
]);
|
|
187
194
|
}), 128))
|
|
188
195
|
], 544)
|
|
189
|
-
],
|
|
196
|
+
], 6),
|
|
190
197
|
navVisibleRight.value && !navVisibleLeft.value ? (openBlock(), createElementBlock("div", _hoisted_8, [
|
|
191
198
|
createVNode(unref(OIcon), { onClick: scrollNavRight }, {
|
|
192
199
|
default: withCtx(() => [
|