@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,43 +1,43 @@
|
|
|
1
|
-
.hover-icon-rotate .o-icon[data-v-
|
|
1
|
+
.hover-icon-rotate .o-icon[data-v-9ed8b351] {
|
|
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-9ed8b351] {
|
|
6
6
|
transform: rotate(-180deg);
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
|
-
.hide-lang[data-v-
|
|
9
|
+
.hide-lang[data-v-9ed8b351] {
|
|
10
10
|
display: none;
|
|
11
11
|
}
|
|
12
|
-
.header-lang[data-v-
|
|
13
|
-
height:
|
|
12
|
+
.header-lang[data-v-9ed8b351] {
|
|
13
|
+
height: 100%;
|
|
14
14
|
display: flex;
|
|
15
15
|
align-items: center;
|
|
16
16
|
}
|
|
17
|
-
.header-lang .info-wrap[data-v-
|
|
17
|
+
.header-lang .info-wrap[data-v-9ed8b351] {
|
|
18
18
|
height: 100%;
|
|
19
19
|
display: flex;
|
|
20
20
|
align-items: center;
|
|
21
21
|
cursor: pointer;
|
|
22
22
|
}
|
|
23
|
-
.header-lang .info-wrap .icon[data-v-
|
|
23
|
+
.header-lang .info-wrap .icon[data-v-9ed8b351] {
|
|
24
24
|
font-size: var(--o-icon_size_control-m);
|
|
25
25
|
position: relative;
|
|
26
|
-
color: var(--o-color-
|
|
26
|
+
color: var(--o-color-info2);
|
|
27
27
|
}
|
|
28
28
|
@media (hover: hover) {
|
|
29
|
-
.header-lang .info-wrap .icon[data-v-
|
|
30
|
-
color: var(--o-color-
|
|
29
|
+
.header-lang .info-wrap .icon[data-v-9ed8b351]:hover {
|
|
30
|
+
color: var(--o-color-primary2);
|
|
31
31
|
background-color: var(--o-color-control2-light);
|
|
32
32
|
border-radius: var(--o-radius-xs);
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
@media (max-width: 1200px) {
|
|
36
|
-
.header-lang .info-wrap .icon[data-v-
|
|
36
|
+
.header-lang .info-wrap .icon[data-v-9ed8b351] {
|
|
37
37
|
font-size: var(--o-icon_size_control-s);
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
-
.header-lang .info-wrap .locale-tag[data-v-
|
|
40
|
+
.header-lang .info-wrap .locale-tag[data-v-9ed8b351] {
|
|
41
41
|
position: absolute;
|
|
42
42
|
font-size: 10px;
|
|
43
43
|
height: 12px;
|
|
@@ -49,25 +49,25 @@
|
|
|
49
49
|
left: 12px;
|
|
50
50
|
top: 11px;
|
|
51
51
|
}
|
|
52
|
-
.header-lang .info-wrap .locale-tag.is-en[data-v-
|
|
52
|
+
.header-lang .info-wrap .locale-tag.is-en[data-v-9ed8b351] {
|
|
53
53
|
width: 16px;
|
|
54
54
|
}
|
|
55
|
-
.header-lang.is-disabled .info-wrap[data-v-
|
|
55
|
+
.header-lang.is-disabled .info-wrap[data-v-9ed8b351] {
|
|
56
56
|
color: var(--o-color-info4);
|
|
57
57
|
cursor: not-allowed;
|
|
58
58
|
}
|
|
59
|
-
.header-lang.is-disabled .info-wrap[data-v-
|
|
59
|
+
.header-lang.is-disabled .info-wrap[data-v-9ed8b351]:hover {
|
|
60
60
|
color: var(--o-color-info4);
|
|
61
61
|
}
|
|
62
|
-
.header-lang.is-disabled .info-wrap .o-icon[data-v-
|
|
62
|
+
.header-lang.is-disabled .info-wrap .o-icon[data-v-9ed8b351] {
|
|
63
63
|
color: inherit;
|
|
64
64
|
}
|
|
65
65
|
@media (hover: hover) {
|
|
66
|
-
.header-lang.is-disabled .info-wrap .o-icon[data-v-
|
|
66
|
+
.header-lang.is-disabled .info-wrap .o-icon[data-v-9ed8b351]:hover {
|
|
67
67
|
background-color: transparent;
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
.header-lang .list[data-v-
|
|
70
|
+
.header-lang .list[data-v-9ed8b351] {
|
|
71
71
|
background: var(--o-color-control5-light);
|
|
72
72
|
cursor: pointer;
|
|
73
73
|
box-shadow: var(--o-shadow-1);
|
|
@@ -75,39 +75,46 @@
|
|
|
75
75
|
padding: var(--o-gap-1);
|
|
76
76
|
width: 144px;
|
|
77
77
|
}
|
|
78
|
-
.o-dropdown[data-v-
|
|
78
|
+
.o-dropdown[data-v-9ed8b351] {
|
|
79
79
|
height: 100%;
|
|
80
80
|
}
|
|
81
|
-
.o-dropdown-item[data-v-
|
|
81
|
+
.o-dropdown-item[data-v-9ed8b351] {
|
|
82
82
|
background: var(--o-color-control5-light);
|
|
83
83
|
cursor: pointer;
|
|
84
84
|
border-radius: var(--o-radius_control-xs);
|
|
85
|
-
|
|
86
|
-
padding
|
|
87
|
-
|
|
85
|
+
--dropdown-item-color: var(--o-color-info2);
|
|
86
|
+
padding: var(--o-gap-1) var(--o-gap-3);
|
|
87
|
+
height: 32px;
|
|
88
|
+
--dropdown-item-text-size: 14px;
|
|
89
|
+
--dropdown-item-text-height: 22px;
|
|
88
90
|
}
|
|
89
91
|
@media (hover: hover) {
|
|
90
|
-
.o-dropdown-item[data-v-
|
|
92
|
+
.o-dropdown-item[data-v-9ed8b351]:hover {
|
|
91
93
|
background: var(--o-color-control2-light);
|
|
92
94
|
}
|
|
93
95
|
}
|
|
94
|
-
.o-dropdown-item
|
|
96
|
+
.o-dropdown-item[data-v-9ed8b351]:active {
|
|
97
|
+
color: var(--o-color-primary1);
|
|
98
|
+
background: var(--o-color-control3-light);
|
|
99
|
+
font-weight: 600;
|
|
100
|
+
}
|
|
101
|
+
.o-dropdown-item.is-active[data-v-9ed8b351] {
|
|
95
102
|
color: var(--o-color-primary1);
|
|
96
103
|
background: var(--o-color-control3-light);
|
|
97
104
|
}
|
|
98
|
-
.dropdown[data-v-
|
|
105
|
+
.dropdown[data-v-9ed8b351] {
|
|
99
106
|
--dropdown-list-radius: var(--o-radius-xs);
|
|
100
107
|
}
|
|
101
|
-
.mobile-change-language[data-v-
|
|
108
|
+
.mobile-change-language[data-v-9ed8b351] {
|
|
102
109
|
display: flex;
|
|
103
110
|
align-items: center;
|
|
104
111
|
}
|
|
105
|
-
.mobile-change-language .o-divider[data-v-
|
|
112
|
+
.mobile-change-language .o-divider[data-v-9ed8b351] {
|
|
106
113
|
margin: 0;
|
|
107
114
|
height: 8px;
|
|
108
115
|
background-color: var(--o-color-control4);
|
|
109
116
|
}
|
|
110
|
-
.mobile-change-language span[data-v-
|
|
117
|
+
.mobile-change-language span[data-v-9ed8b351] {
|
|
111
118
|
color: var(--o-color-info1);
|
|
112
119
|
text-align: center;
|
|
113
120
|
cursor: pointer;
|
|
@@ -116,39 +123,39 @@
|
|
|
116
123
|
line-height: 24px;
|
|
117
124
|
}
|
|
118
125
|
@media (min-width: 1201px) and (max-width: 1680px) {
|
|
119
|
-
.mobile-change-language span[data-v-
|
|
126
|
+
.mobile-change-language span[data-v-9ed8b351] {
|
|
120
127
|
font-size: 14px;
|
|
121
128
|
line-height: 22px;
|
|
122
129
|
}
|
|
123
130
|
}
|
|
124
131
|
@media (min-width: 841px) and (max-width: 1200px) {
|
|
125
|
-
.mobile-change-language span[data-v-
|
|
132
|
+
.mobile-change-language span[data-v-9ed8b351] {
|
|
126
133
|
font-size: 14px;
|
|
127
134
|
line-height: 22px;
|
|
128
135
|
}
|
|
129
136
|
}
|
|
130
137
|
@media (min-width: 601px) and (max-width: 840px) {
|
|
131
|
-
.mobile-change-language span[data-v-
|
|
138
|
+
.mobile-change-language span[data-v-9ed8b351] {
|
|
132
139
|
font-size: 14px;
|
|
133
140
|
line-height: 22px;
|
|
134
141
|
}
|
|
135
142
|
}
|
|
136
143
|
@media (max-width: 600px) {
|
|
137
|
-
.mobile-change-language span[data-v-
|
|
144
|
+
.mobile-change-language span[data-v-9ed8b351] {
|
|
138
145
|
font-size: 12px;
|
|
139
146
|
line-height: 18px;
|
|
140
147
|
}
|
|
141
148
|
}
|
|
142
|
-
.mobile-change-language span.active[data-v-
|
|
149
|
+
.mobile-change-language span.active[data-v-9ed8b351] {
|
|
143
150
|
color: var(--o-color-primary1);
|
|
144
151
|
font-weight: 500;
|
|
145
152
|
}
|
|
146
|
-
.mobile-change-language.is-disabled span[data-v-
|
|
153
|
+
.mobile-change-language.is-disabled span[data-v-9ed8b351] {
|
|
147
154
|
color: var(--o-color-info4);
|
|
148
155
|
cursor: not-allowed;
|
|
149
156
|
}
|
|
150
157
|
@media (hover: hover) {
|
|
151
|
-
.mobile-change-language.is-disabled span[data-v-
|
|
158
|
+
.mobile-change-language.is-disabled span[data-v-9ed8b351]:hover {
|
|
152
159
|
color: var(--o-color-info4);
|
|
153
160
|
}
|
|
154
161
|
}
|
package/dist/treeshaking/components/header-language-switcher/OHeaderLanguageSwitcher.vue.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import _sfc_main from "./OHeaderLanguageSwitcher.vue2.mjs";
|
|
|
2
2
|
import './OHeaderLanguageSwitcher.css';
|
|
3
3
|
import './OHeaderLanguageSwitcher2.css';
|
|
4
4
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
5
|
-
const _OHeaderLanguageSwitcher = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
5
|
+
const _OHeaderLanguageSwitcher = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-9ed8b351"]]);
|
|
6
6
|
export {
|
|
7
7
|
_OHeaderLanguageSwitcher as default
|
|
8
8
|
};
|
|
@@ -1,50 +1,60 @@
|
|
|
1
|
-
.hover-icon-rotate .o-icon[data-v-
|
|
1
|
+
.hover-icon-rotate .o-icon[data-v-bfa0c69c] {
|
|
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-bfa0c69c] {
|
|
6
6
|
transform: rotate(-180deg);
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
|
-
.o-header-search[data-v-
|
|
9
|
+
.o-header-search[data-v-bfa0c69c] {
|
|
10
10
|
position: relative;
|
|
11
11
|
width: 160px;
|
|
12
12
|
height: 32px;
|
|
13
13
|
}
|
|
14
14
|
@media (max-width: 1440px) {
|
|
15
|
-
.o-header-search[data-v-
|
|
15
|
+
.o-header-search[data-v-bfa0c69c] {
|
|
16
16
|
width: 120px;
|
|
17
|
+
height: 32px;
|
|
17
18
|
}
|
|
18
19
|
}
|
|
19
20
|
@media (max-width: 840px) {
|
|
20
|
-
.o-header-search[data-v-
|
|
21
|
+
.o-header-search[data-v-bfa0c69c] {
|
|
21
22
|
width: 24px;
|
|
22
23
|
height: 24px;
|
|
23
24
|
margin-left: auto;
|
|
24
25
|
}
|
|
25
26
|
}
|
|
26
|
-
.o-header-search-pos[data-v-
|
|
27
|
+
.o-header-search-pos[data-v-bfa0c69c] {
|
|
27
28
|
position: absolute;
|
|
28
29
|
top: 0;
|
|
29
30
|
width: fit-content;
|
|
30
31
|
background-color: var(--o-color-fill2);
|
|
31
32
|
z-index: 100;
|
|
32
33
|
}
|
|
33
|
-
.o-header-search-pos.is-left[data-v-
|
|
34
|
+
.o-header-search-pos.is-left[data-v-bfa0c69c] {
|
|
34
35
|
right: 0;
|
|
35
36
|
}
|
|
36
|
-
.o-header-search-pos.is-right[data-v-
|
|
37
|
+
.o-header-search-pos.is-right[data-v-bfa0c69c] {
|
|
37
38
|
left: 0;
|
|
38
39
|
}
|
|
39
|
-
.o-header-search-pos.is-mobile[data-v-
|
|
40
|
+
.o-header-search-pos.is-mobile[data-v-bfa0c69c] {
|
|
40
41
|
display: none;
|
|
41
42
|
}
|
|
42
|
-
.o-header-search-pos.is-
|
|
43
|
+
.o-header-search-pos.is-simple[data-v-bfa0c69c] {
|
|
44
|
+
display: none;
|
|
45
|
+
}
|
|
46
|
+
.o-header-search-pos.is-pc.is-focus[data-v-bfa0c69c] {
|
|
47
|
+
box-shadow: var(--o-shadow-2);
|
|
48
|
+
top: calc(-1 * var(--o-gap-4));
|
|
49
|
+
border-radius: var(--o-radius-xs);
|
|
50
|
+
}
|
|
51
|
+
.o-header-search-pos.is-simple.is-focus[data-v-bfa0c69c] {
|
|
52
|
+
display: block;
|
|
43
53
|
box-shadow: var(--o-shadow-2);
|
|
44
54
|
top: calc(-1 * var(--o-gap-4));
|
|
45
55
|
border-radius: var(--o-radius-xs);
|
|
46
56
|
}
|
|
47
|
-
.o-header-search-pos.is-mobile.is-focus[data-v-
|
|
57
|
+
.o-header-search-pos.is-mobile.is-focus[data-v-bfa0c69c] {
|
|
48
58
|
position: fixed;
|
|
49
59
|
top: 0;
|
|
50
60
|
right: 0;
|
|
@@ -57,56 +67,57 @@
|
|
|
57
67
|
z-index: 100;
|
|
58
68
|
overflow-y: auto;
|
|
59
69
|
}
|
|
60
|
-
.o-header-search-row[data-v-
|
|
70
|
+
.o-header-search-row[data-v-bfa0c69c] {
|
|
61
71
|
display: flex;
|
|
62
72
|
align-items: start;
|
|
63
73
|
}
|
|
64
|
-
.o-header-search-row.is-focus[data-v-
|
|
74
|
+
.o-header-search-row.is-focus[data-v-bfa0c69c] {
|
|
65
75
|
padding: var(--o-gap-4);
|
|
66
76
|
border-radius: var(--o-radius-xs);
|
|
67
77
|
}
|
|
68
78
|
@media (max-width: 840px) {
|
|
69
|
-
.o-header-search-row.is-focus[data-v-
|
|
79
|
+
.o-header-search-row.is-focus[data-v-bfa0c69c] {
|
|
80
|
+
align-items: center;
|
|
70
81
|
gap: var(--o-gap-4);
|
|
71
82
|
padding: 10px var(--o-gap-4) var(--o-gap-4) var(--o-gap-4);
|
|
72
83
|
border-radius: unset;
|
|
73
84
|
}
|
|
74
85
|
}
|
|
75
|
-
.o-header-search-input[data-v-
|
|
86
|
+
.o-header-search-input[data-v-bfa0c69c] {
|
|
76
87
|
width: 160px;
|
|
77
88
|
transition: width var(--o-duration-m2) var(--o-easing-standard-in);
|
|
78
89
|
}
|
|
79
90
|
@media (max-width: 1440px) {
|
|
80
|
-
.o-header-search-input[data-v-
|
|
91
|
+
.o-header-search-input[data-v-bfa0c69c] {
|
|
81
92
|
width: 120px;
|
|
82
93
|
}
|
|
83
94
|
}
|
|
84
|
-
.o-header-search-row.is-focus .o-header-search-input[data-v-
|
|
95
|
+
.o-header-search-row.is-focus .o-header-search-input[data-v-bfa0c69c] {
|
|
85
96
|
width: 480px;
|
|
86
97
|
}
|
|
87
98
|
@media (min-width: 1201px) and (max-width: 1440px) {
|
|
88
|
-
.o-header-search-row.is-focus .o-header-search-input[data-v-
|
|
99
|
+
.o-header-search-row.is-focus .o-header-search-input[data-v-bfa0c69c] {
|
|
89
100
|
width: 360px;
|
|
90
101
|
}
|
|
91
102
|
}
|
|
92
103
|
@media (min-width: 841px) and (max-width: 1200px) {
|
|
93
|
-
.o-header-search-row.is-focus .o-header-search-input[data-v-
|
|
104
|
+
.o-header-search-row.is-focus .o-header-search-input[data-v-bfa0c69c] {
|
|
94
105
|
width: 272px;
|
|
95
106
|
}
|
|
96
107
|
}
|
|
97
108
|
@media (max-width: 840px) {
|
|
98
|
-
.o-header-search-row.is-focus .o-header-search-input[data-v-
|
|
109
|
+
.o-header-search-row.is-focus .o-header-search-input[data-v-bfa0c69c] {
|
|
99
110
|
flex: 1;
|
|
100
111
|
width: auto;
|
|
101
112
|
}
|
|
102
113
|
}
|
|
103
|
-
.o-header-search-back-icon[data-v-
|
|
114
|
+
.o-header-search-back-icon[data-v-bfa0c69c] {
|
|
104
115
|
cursor: pointer;
|
|
105
116
|
color: var(--o-color-info1);
|
|
106
117
|
font-size: 20px;
|
|
107
118
|
height: 30px;
|
|
108
119
|
}
|
|
109
|
-
.o-header-search-text[data-v-
|
|
120
|
+
.o-header-search-text[data-v-bfa0c69c] {
|
|
110
121
|
white-space: nowrap;
|
|
111
122
|
font-size: 16px;
|
|
112
123
|
line-height: 24px;
|
|
@@ -115,11 +126,11 @@
|
|
|
115
126
|
height: 30px;
|
|
116
127
|
}
|
|
117
128
|
@media (hover: hover) {
|
|
118
|
-
.o-header-search-text[data-v-
|
|
129
|
+
.o-header-search-text[data-v-bfa0c69c]:hover {
|
|
119
130
|
color: var(--o-color-primary1);
|
|
120
131
|
}
|
|
121
132
|
}
|
|
122
|
-
.o-header-search-drawer[data-v-
|
|
133
|
+
.o-header-search-drawer[data-v-bfa0c69c] {
|
|
123
134
|
position: absolute;
|
|
124
135
|
width: 100%;
|
|
125
136
|
padding: var(--o-gap-4);
|
|
@@ -129,7 +140,7 @@
|
|
|
129
140
|
border-radius: 0 0 var(--o-radius-xs) var(--o-radius-xs);
|
|
130
141
|
}
|
|
131
142
|
@media (max-width: 840px) {
|
|
132
|
-
.o-header-search-drawer[data-v-
|
|
143
|
+
.o-header-search-drawer[data-v-bfa0c69c] {
|
|
133
144
|
position: static;
|
|
134
145
|
height: calc(100vh - 50px);
|
|
135
146
|
padding-top: 0;
|
|
@@ -138,7 +149,7 @@
|
|
|
138
149
|
border-radius: unset;
|
|
139
150
|
}
|
|
140
151
|
}
|
|
141
|
-
.o-header-search-drawer[data-v-
|
|
152
|
+
.o-header-search-drawer[data-v-bfa0c69c]::before {
|
|
142
153
|
content: "";
|
|
143
154
|
position: absolute;
|
|
144
155
|
left: 0;
|
|
@@ -148,45 +159,46 @@
|
|
|
148
159
|
background-color: var(--o-color-fill2);
|
|
149
160
|
}
|
|
150
161
|
@media (max-width: 840px) {
|
|
151
|
-
.o-header-search-drawer[data-v-
|
|
162
|
+
.o-header-search-drawer[data-v-bfa0c69c]::before {
|
|
152
163
|
display: none;
|
|
153
164
|
}
|
|
154
165
|
}
|
|
155
|
-
.o-header-search-mobile-icon[data-v-
|
|
166
|
+
.o-header-search-mobile-icon[data-v-bfa0c69c] {
|
|
156
167
|
font-size: 24px;
|
|
157
168
|
line-height: 28px;
|
|
158
|
-
color: var(--o-color-
|
|
169
|
+
color: var(--o-color-info2);
|
|
159
170
|
cursor: pointer;
|
|
160
171
|
display: none;
|
|
161
172
|
}
|
|
162
173
|
@media (max-width: 840px) {
|
|
163
|
-
.o-header-search-mobile-icon[data-v-
|
|
174
|
+
.o-header-search-mobile-icon[data-v-bfa0c69c] {
|
|
164
175
|
display: block;
|
|
165
176
|
}
|
|
166
177
|
}
|
|
167
|
-
.o-header-search-drawer-enter-active[data-v-
|
|
178
|
+
.o-header-search-drawer-enter-active[data-v-bfa0c69c] {
|
|
168
179
|
transition: opacity var(--o-duration-m1);
|
|
169
180
|
}
|
|
170
|
-
.o-header-search-drawer-enter-from[data-v-
|
|
181
|
+
.o-header-search-drawer-enter-from[data-v-bfa0c69c] {
|
|
171
182
|
opacity: 0;
|
|
172
183
|
}
|
|
173
|
-
.o-header-search.is-mobile-mode[data-v-
|
|
184
|
+
.o-header-search.is-mobile-mode[data-v-bfa0c69c] {
|
|
174
185
|
width: 24px;
|
|
175
186
|
height: 24px;
|
|
176
187
|
}
|
|
177
|
-
.o-header-search.is-mobile-mode .o-header-search-mobile-icon[data-v-
|
|
188
|
+
.o-header-search.is-mobile-mode .o-header-search-mobile-icon[data-v-bfa0c69c] {
|
|
178
189
|
display: block;
|
|
179
190
|
}
|
|
180
|
-
.o-header-search.is-mobile-mode .o-header-search-row.is-focus[data-v-
|
|
191
|
+
.o-header-search.is-mobile-mode .o-header-search-row.is-focus[data-v-bfa0c69c] {
|
|
192
|
+
align-items: center;
|
|
181
193
|
gap: var(--o-gap-4);
|
|
182
194
|
padding: 10px var(--o-gap-4) var(--o-gap-4) var(--o-gap-4);
|
|
183
195
|
border-radius: unset;
|
|
184
196
|
}
|
|
185
|
-
.o-header-search.is-mobile-mode .o-header-search-row.is-focus .o-header-search-input[data-v-
|
|
197
|
+
.o-header-search.is-mobile-mode .o-header-search-row.is-focus .o-header-search-input[data-v-bfa0c69c] {
|
|
186
198
|
flex: 1;
|
|
187
199
|
width: auto;
|
|
188
200
|
}
|
|
189
|
-
.o-header-search.is-mobile-mode .o-header-search-drawer[data-v-
|
|
201
|
+
.o-header-search.is-mobile-mode .o-header-search-drawer[data-v-bfa0c69c] {
|
|
190
202
|
position: static;
|
|
191
203
|
height: calc(100vh - 50px);
|
|
192
204
|
padding-top: 0;
|
|
@@ -194,11 +206,21 @@
|
|
|
194
206
|
box-shadow: unset;
|
|
195
207
|
border-radius: unset;
|
|
196
208
|
}
|
|
197
|
-
.o-header-search.is-mobile-mode .o-header-search-drawer[data-v-
|
|
209
|
+
.o-header-search.is-mobile-mode .o-header-search-drawer[data-v-bfa0c69c]::before {
|
|
198
210
|
display: none;
|
|
199
211
|
}
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
212
|
+
.o-header-search.is-simple[data-v-bfa0c69c] {
|
|
213
|
+
width: 24px;
|
|
214
|
+
height: 24px;
|
|
215
|
+
}
|
|
216
|
+
.o-header-search.is-simple .o-header-search-mobile-icon[data-v-bfa0c69c] {
|
|
217
|
+
display: block;
|
|
218
|
+
}
|
|
219
|
+
[data-v-bfa0c69c] .o-input.o_box-medium {
|
|
220
|
+
--_box-height: 32px;
|
|
221
|
+
}
|
|
222
|
+
@media (max-width: 840px) {
|
|
223
|
+
[data-v-bfa0c69c] .o-input.o_box-medium {
|
|
224
|
+
--_box-height: 40px;
|
|
203
225
|
}
|
|
204
226
|
}
|
|
@@ -39,6 +39,8 @@ export interface OHeaderSearchPropsT {
|
|
|
39
39
|
allowedImageTypes?: string[];
|
|
40
40
|
/** 强制指定移动端模式,不传时由内部 lePadV 断点自动判断 */
|
|
41
41
|
mobile?: boolean;
|
|
42
|
+
/** 简洁模式:PC 端也仅展示搜索图标,点击后展开输入框,默认 false */
|
|
43
|
+
simple?: boolean;
|
|
42
44
|
}
|
|
43
45
|
declare function __VLS_template(): {
|
|
44
46
|
attrs: Partial<{}>;
|
|
@@ -559,6 +561,7 @@ declare const __VLS_component: import('vue').DefineComponent<OHeaderSearchPropsT
|
|
|
559
561
|
modelValue: string;
|
|
560
562
|
clearable: boolean;
|
|
561
563
|
debounce: number;
|
|
564
|
+
simple: boolean;
|
|
562
565
|
imageUrl: string;
|
|
563
566
|
enableImageSearch: boolean;
|
|
564
567
|
maxImageSize: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./OHeaderSearch.vue2.mjs";
|
|
2
2
|
import './OHeaderSearch.css';
|
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const _OHeaderSearch = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const _OHeaderSearch = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-bfa0c69c"]]);
|
|
5
5
|
export {
|
|
6
6
|
_OHeaderSearch as default
|
|
7
7
|
};
|
|
@@ -12,6 +12,7 @@ const _hoisted_1 = {
|
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "o-header-search-drawer"
|
|
14
14
|
};
|
|
15
|
+
const previewLayerIgnore = ".o-layer";
|
|
15
16
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
16
17
|
__name: "OHeaderSearch",
|
|
17
18
|
props: {
|
|
@@ -47,7 +48,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
47
48
|
autoSaveHistory: { type: Boolean, default: true },
|
|
48
49
|
showSuggestEmpty: { type: Boolean, default: true },
|
|
49
50
|
allowedImageTypes: {},
|
|
50
|
-
mobile: { type: Boolean }
|
|
51
|
+
mobile: { type: Boolean },
|
|
52
|
+
simple: { type: Boolean, default: false }
|
|
51
53
|
},
|
|
52
54
|
emits: ["update:modelValue", "update:historyItems", "update:imageUrl", "focus", "blur", "input", "clear", "search", "recommend-click", "onestep-click", "history-click", "hot-click", "hot-refresh", "delete-history", "delete-history-item", "image-upload-start", "image-upload-success", "image-upload-error", "image-validate-error"],
|
|
53
55
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
@@ -62,6 +64,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
62
64
|
const internalImageStaged = ref(false);
|
|
63
65
|
const internalImageUrl = ref("");
|
|
64
66
|
const hasImage = computed(() => !!props.imageUrl || internalImageStaged.value);
|
|
67
|
+
const isPreviewVisible = ref(false);
|
|
65
68
|
const innerValue = computed({
|
|
66
69
|
get: () => props.modelValue,
|
|
67
70
|
set: (val) => emit("update:modelValue", val)
|
|
@@ -94,10 +97,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
94
97
|
() => props.debounce
|
|
95
98
|
);
|
|
96
99
|
watch(innerValue, (val) => emitInputDebounced(val));
|
|
97
|
-
onClickOutside(
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
100
|
+
onClickOutside(
|
|
101
|
+
wrapperRef,
|
|
102
|
+
() => {
|
|
103
|
+
if (isMobileMode.value) return;
|
|
104
|
+
if (isPreviewVisible.value) return;
|
|
105
|
+
closeDrawer();
|
|
106
|
+
},
|
|
107
|
+
{ ignore: [previewLayerIgnore] }
|
|
108
|
+
);
|
|
101
109
|
const openDrawer = () => {
|
|
102
110
|
isShowDrawer.value = true;
|
|
103
111
|
};
|
|
@@ -216,7 +224,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
216
224
|
});
|
|
217
225
|
return (_ctx, _cache) => {
|
|
218
226
|
return openBlock(), createElementBlock("div", {
|
|
219
|
-
class: normalizeClass(["o-header-search", { "is-mobile-mode": isMobileMode.value }])
|
|
227
|
+
class: normalizeClass(["o-header-search", { "is-mobile-mode": isMobileMode.value, "is-simple": props.simple && !isMobileMode.value }])
|
|
220
228
|
}, [
|
|
221
229
|
createElementVNode("div", {
|
|
222
230
|
ref_key: "wrapperRef",
|
|
@@ -224,6 +232,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
224
232
|
class: normalizeClass(["o-header-search-pos", {
|
|
225
233
|
"is-pc": !isMobileMode.value,
|
|
226
234
|
"is-mobile": isMobileMode.value,
|
|
235
|
+
"is-simple": props.simple && !isMobileMode.value,
|
|
227
236
|
"is-left": __props.expandDirection === "left",
|
|
228
237
|
"is-right": __props.expandDirection === "right",
|
|
229
238
|
"is-focus": isShowDrawer.value
|
|
@@ -267,7 +276,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
267
276
|
onImageUploadStart: handleImageUploadStart,
|
|
268
277
|
onImageUploadSuccess: handleImageUploadSuccess,
|
|
269
278
|
onImageUploadError: _cache[2] || (_cache[2] = (error, file) => emit("image-upload-error", error, file)),
|
|
270
|
-
onImageValidateError: _cache[3] || (_cache[3] = (reason, file) => emit("image-validate-error", reason, file))
|
|
279
|
+
onImageValidateError: _cache[3] || (_cache[3] = (reason, file) => emit("image-validate-error", reason, file)),
|
|
280
|
+
onPreviewChange: _cache[4] || (_cache[4] = (visible) => {
|
|
281
|
+
isPreviewVisible.value = visible;
|
|
282
|
+
})
|
|
271
283
|
}, createSlots({
|
|
272
284
|
prefix: withCtx(() => [
|
|
273
285
|
renderSlot(_ctx.$slots, "input-prefix", {}, void 0, true)
|
|
@@ -324,7 +336,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
324
336
|
onHistoryRemove: handleHistoryRemove,
|
|
325
337
|
onHistoryClear: handleHistoryClear,
|
|
326
338
|
onHotClick: handleHotClick,
|
|
327
|
-
onHotRefresh: _cache[
|
|
339
|
+
onHotRefresh: _cache[5] || (_cache[5] = ($event) => emit("hot-refresh"))
|
|
328
340
|
}, createSlots({ _: 2 }, [
|
|
329
341
|
_ctx.$slots["recommend-header"] ? {
|
|
330
342
|
name: "recommend-header",
|
|
@@ -403,7 +415,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
403
415
|
_: 3
|
|
404
416
|
})
|
|
405
417
|
], 2),
|
|
406
|
-
isMobileMode.value ? (openBlock(), createBlock(unref(OIcon), {
|
|
418
|
+
isMobileMode.value || props.simple ? (openBlock(), createBlock(unref(OIcon), {
|
|
407
419
|
key: 0,
|
|
408
420
|
class: "o-header-search-mobile-icon",
|
|
409
421
|
onClick: openDrawer
|
|
@@ -16,6 +16,7 @@ declare const OHeaderSearch: {
|
|
|
16
16
|
modelValue: string;
|
|
17
17
|
clearable: boolean;
|
|
18
18
|
debounce: number;
|
|
19
|
+
simple: boolean;
|
|
19
20
|
imageUrl: string;
|
|
20
21
|
enableImageSearch: boolean;
|
|
21
22
|
maxImageSize: number;
|
|
@@ -498,6 +499,7 @@ declare const OHeaderSearch: {
|
|
|
498
499
|
modelValue: string;
|
|
499
500
|
clearable: boolean;
|
|
500
501
|
debounce: number;
|
|
502
|
+
simple: boolean;
|
|
501
503
|
imageUrl: string;
|
|
502
504
|
enableImageSearch: boolean;
|
|
503
505
|
maxImageSize: number;
|
|
@@ -534,6 +536,7 @@ declare const OHeaderSearch: {
|
|
|
534
536
|
modelValue: string;
|
|
535
537
|
clearable: boolean;
|
|
536
538
|
debounce: number;
|
|
539
|
+
simple: boolean;
|
|
537
540
|
imageUrl: string;
|
|
538
541
|
enableImageSearch: boolean;
|
|
539
542
|
maxImageSize: number;
|