@opendesign-plus/components 0.0.1-rc.39 → 0.0.1-rc.40

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.
Files changed (86) hide show
  1. package/dist/chunk-OElCookieNotice.cjs.js +1 -1
  2. package/dist/chunk-OElCookieNotice.es.js +52 -54
  3. package/dist/components/header/OHeader.vue.d.ts +7 -1
  4. package/dist/components/header/OHeaderMobile.vue.d.ts +6 -14
  5. package/dist/components/header/components/HeaderFlatten.vue.d.ts +19 -0
  6. package/dist/components/header/components/HeaderNav.vue.d.ts +3 -0
  7. package/dist/components/header/components/HeaderNavMobile.vue.d.ts +0 -2
  8. package/dist/components/header/index.d.ts +18 -10
  9. package/dist/components/header/types.d.ts +8 -4
  10. package/dist/components/header-search/OHeaderSearch.vue.d.ts +5 -2
  11. package/dist/components/header-search/index.d.ts +3 -0
  12. package/dist/components/header-user/OHeaderUser.vue.d.ts +2 -6
  13. package/dist/components/header-user/index.d.ts +3 -18
  14. package/dist/components/meeting/OMeetingCalendar.vue.d.ts +6 -1
  15. package/dist/components/meeting/index.d.ts +18 -5
  16. package/dist/components/meeting/types.d.ts +1 -0
  17. package/dist/components.cjs.js +39 -39
  18. package/dist/components.css +1 -1
  19. package/dist/components.es.js +10188 -9853
  20. package/dist/treeshaking/_virtual/icon-avatar-line.mjs +1 -2
  21. package/dist/treeshaking/_virtual/icon-chevron-right.mjs +4 -1
  22. package/dist/treeshaking/_virtual/icon-header-search.mjs +4 -10
  23. package/dist/treeshaking/_virtual/icon-locale.mjs +0 -1
  24. package/dist/treeshaking/_virtual/icon-moon.mjs +0 -1
  25. package/dist/treeshaking/_virtual/icon-sun.mjs +0 -1
  26. package/dist/treeshaking/components/element-plus/OElCookieNotice.vue.mjs +1 -1
  27. package/dist/treeshaking/components/element-plus/OElCookieNotice2.css +145 -145
  28. package/dist/treeshaking/components/header/OHeader.css +42 -11
  29. package/dist/treeshaking/components/header/OHeader.vue.d.ts +7 -1
  30. package/dist/treeshaking/components/header/OHeader.vue.mjs +1 -1
  31. package/dist/treeshaking/components/header/OHeader.vue2.mjs +66 -41
  32. package/dist/treeshaking/components/header/OHeaderMobile.vue.d.ts +6 -14
  33. package/dist/treeshaking/components/header/OHeaderMobile.vue2.mjs +2 -1
  34. package/dist/treeshaking/components/header/components/HeaderContent.css +317 -555
  35. package/dist/treeshaking/components/header/components/HeaderContent.vue.mjs +1 -1
  36. package/dist/treeshaking/components/header/components/HeaderContent.vue2.mjs +170 -137
  37. package/dist/treeshaking/components/header/components/HeaderFlatten.css +267 -0
  38. package/dist/treeshaking/components/header/components/HeaderFlatten.vue.d.ts +19 -0
  39. package/dist/treeshaking/components/header/components/HeaderFlatten.vue.mjs +7 -0
  40. package/dist/treeshaking/components/header/components/HeaderFlatten.vue2.mjs +298 -0
  41. package/dist/treeshaking/components/header/components/HeaderNav.css +93 -34
  42. package/dist/treeshaking/components/header/components/HeaderNav.vue.d.ts +3 -0
  43. package/dist/treeshaking/components/header/components/HeaderNav.vue.mjs +1 -1
  44. package/dist/treeshaking/components/header/components/HeaderNav.vue2.mjs +20 -7
  45. package/dist/treeshaking/components/header/components/HeaderNavMobile.css +108 -130
  46. package/dist/treeshaking/components/header/components/HeaderNavMobile.vue.d.ts +0 -2
  47. package/dist/treeshaking/components/header/components/HeaderNavMobile.vue.mjs +1 -1
  48. package/dist/treeshaking/components/header/components/HeaderNavMobile.vue2.mjs +128 -123
  49. package/dist/treeshaking/components/header/index.d.ts +18 -10
  50. package/dist/treeshaking/components/header/types.d.ts +8 -4
  51. package/dist/treeshaking/components/header-language-switcher/OHeaderLanguageSwitcher.css +45 -38
  52. package/dist/treeshaking/components/header-language-switcher/OHeaderLanguageSwitcher.vue.mjs +1 -1
  53. package/dist/treeshaking/components/header-search/OHeaderSearch.css +65 -38
  54. package/dist/treeshaking/components/header-search/OHeaderSearch.vue.d.ts +5 -2
  55. package/dist/treeshaking/components/header-search/OHeaderSearch.vue.mjs +1 -1
  56. package/dist/treeshaking/components/header-search/OHeaderSearch.vue2.mjs +25 -10
  57. package/dist/treeshaking/components/header-search/index.d.ts +3 -0
  58. package/dist/treeshaking/components/header-source-code/OHeaderSourceCode.css +87 -50
  59. package/dist/treeshaking/components/header-source-code/OHeaderSourceCode.vue.mjs +1 -1
  60. package/dist/treeshaking/components/header-user/OHeaderUser.css +105 -50
  61. package/dist/treeshaking/components/header-user/OHeaderUser.vue.d.ts +2 -6
  62. package/dist/treeshaking/components/header-user/OHeaderUser.vue.mjs +1 -1
  63. package/dist/treeshaking/components/header-user/OHeaderUser.vue2.mjs +46 -33
  64. package/dist/treeshaking/components/header-user/OHeaderUser2.css +5 -41
  65. package/dist/treeshaking/components/header-user/index.d.ts +3 -18
  66. package/dist/treeshaking/components/meeting/OMeetingCalendar.css +30 -1
  67. package/dist/treeshaking/components/meeting/OMeetingCalendar.vue.d.ts +6 -1
  68. package/dist/treeshaking/components/meeting/OMeetingCalendar.vue.mjs +58 -33
  69. package/dist/treeshaking/components/meeting/OMeetingForm.vue.mjs +2 -2
  70. package/dist/treeshaking/components/meeting/OMeetingMyCalendar.css +4 -0
  71. package/dist/treeshaking/components/meeting/OMeetingSigCalendar.css +10 -16
  72. package/dist/treeshaking/components/meeting/OMeetingSigCalendar.vue.mjs +25 -72
  73. package/dist/treeshaking/components/meeting/components/OMeetingCalendarList.css +6 -1
  74. package/dist/treeshaking/components/meeting/components/OMeetingCalendarList.vue.mjs +105 -92
  75. package/dist/treeshaking/components/meeting/components/OMeetingSigAside.css +6 -1
  76. package/dist/treeshaking/components/meeting/components/OMeetingSigAside.vue.mjs +59 -50
  77. package/dist/treeshaking/components/meeting/index.d.ts +18 -5
  78. package/dist/treeshaking/components/meeting/types.d.ts +1 -0
  79. package/dist/treeshaking/components/search/internal/SearchImageInput.css +66 -40
  80. package/dist/treeshaking/components/search/internal/SearchImageInput.vue.mjs +1 -1
  81. package/dist/treeshaking/components/search/internal/SearchPanel.css +221 -115
  82. package/dist/treeshaking/components/search/internal/SearchPanel.vue.mjs +1 -1
  83. package/dist/treeshaking/components/search/internal/SearchPanel.vue2.mjs +49 -43
  84. package/dist/treeshaking/i18n/en.mjs +6 -7
  85. package/dist/treeshaking/i18n/zh.mjs +6 -7
  86. package/package.json +1 -1
@@ -1,50 +1,60 @@
1
- .hover-icon-rotate .o-icon[data-v-a97b8e7c] {
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-a97b8e7c] {
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-a97b8e7c] {
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-a97b8e7c] {
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-a97b8e7c] {
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-a97b8e7c] {
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-a97b8e7c] {
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-a97b8e7c] {
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-a97b8e7c] {
40
+ .o-header-search-pos.is-mobile[data-v-bfa0c69c] {
40
41
  display: none;
41
42
  }
42
- .o-header-search-pos.is-pc.is-focus[data-v-a97b8e7c] {
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] {
43
47
  box-shadow: var(--o-shadow-2);
44
48
  top: calc(-1 * var(--o-gap-4));
45
49
  border-radius: var(--o-radius-xs);
46
50
  }
47
- .o-header-search-pos.is-mobile.is-focus[data-v-a97b8e7c] {
51
+ .o-header-search-pos.is-simple.is-focus[data-v-bfa0c69c] {
52
+ display: block;
53
+ box-shadow: var(--o-shadow-2);
54
+ top: calc(-1 * var(--o-gap-4));
55
+ border-radius: var(--o-radius-xs);
56
+ }
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-a97b8e7c] {
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-a97b8e7c] {
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-a97b8e7c] {
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-a97b8e7c] {
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-a97b8e7c] {
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-a97b8e7c] {
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-a97b8e7c] {
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-a97b8e7c] {
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-a97b8e7c] {
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-a97b8e7c] {
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-a97b8e7c] {
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-a97b8e7c]:hover {
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-a97b8e7c] {
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-a97b8e7c] {
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-a97b8e7c]::before {
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-a97b8e7c]::before {
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-a97b8e7c] {
166
+ .o-header-search-mobile-icon[data-v-bfa0c69c] {
156
167
  font-size: 24px;
157
168
  line-height: 28px;
158
- color: var(--o-color-info1);
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-a97b8e7c] {
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-a97b8e7c] {
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-a97b8e7c] {
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-a97b8e7c] {
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-a97b8e7c] {
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-a97b8e7c] {
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-a97b8e7c] {
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-a97b8e7c] {
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,6 +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-a97b8e7c]::before {
209
+ .o-header-search.is-mobile-mode .o-header-search-drawer[data-v-bfa0c69c]::before {
198
210
  display: none;
211
+ }
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;
225
+ }
199
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<{}>;
@@ -253,7 +255,7 @@ declare function __VLS_template(): {
253
255
  type: import('vue').PropType<boolean | ((inputValue: string, lastValidInputValue: string) => string)>;
254
256
  };
255
257
  showPasswordEvent: {
256
- type: import('vue').PropType<"click" | "pointerdown">;
258
+ type: import('vue' /** 强制指定移动端模式,不传时由内部 lePadV 断点自动判断 */).PropType<"click" | "pointerdown">;
257
259
  default: string;
258
260
  };
259
261
  autoWidth: {
@@ -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;
@@ -736,7 +739,7 @@ declare const __VLS_component: import('vue').DefineComponent<OHeaderSearchPropsT
736
739
  type: import('vue').PropType<boolean | ((inputValue: string, lastValidInputValue: string) => string)>;
737
740
  };
738
741
  showPasswordEvent: {
739
- type: import('vue').PropType<"click" | "pointerdown">;
742
+ type: import('vue' /** 强制指定移动端模式,不传时由内部 lePadV 断点自动判断 */).PropType<"click" | "pointerdown">;
740
743
  default: string;
741
744
  };
742
745
  autoWidth: {
@@ -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-a97b8e7c"]]);
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)
@@ -89,12 +92,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
89
92
  }
90
93
  return props.placeholder ?? t("search.placeholder");
91
94
  });
92
- const emitInputDebounced = useDebounceFn((val) => emit("input", val), () => props.debounce);
95
+ const emitInputDebounced = useDebounceFn(
96
+ (val) => emit("input", val),
97
+ () => props.debounce
98
+ );
93
99
  watch(innerValue, (val) => emitInputDebounced(val));
94
- onClickOutside(wrapperRef, () => {
95
- if (isMobileMode.value) return;
96
- closeDrawer();
97
- });
100
+ onClickOutside(
101
+ wrapperRef,
102
+ () => {
103
+ if (isMobileMode.value) return;
104
+ if (isPreviewVisible.value) return;
105
+ closeDrawer();
106
+ },
107
+ { ignore: [previewLayerIgnore] }
108
+ );
98
109
  const openDrawer = () => {
99
110
  isShowDrawer.value = true;
100
111
  };
@@ -213,7 +224,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
213
224
  });
214
225
  return (_ctx, _cache) => {
215
226
  return openBlock(), createElementBlock("div", {
216
- 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 }])
217
228
  }, [
218
229
  createElementVNode("div", {
219
230
  ref_key: "wrapperRef",
@@ -221,6 +232,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
221
232
  class: normalizeClass(["o-header-search-pos", {
222
233
  "is-pc": !isMobileMode.value,
223
234
  "is-mobile": isMobileMode.value,
235
+ "is-simple": props.simple && !isMobileMode.value,
224
236
  "is-left": __props.expandDirection === "left",
225
237
  "is-right": __props.expandDirection === "right",
226
238
  "is-focus": isShowDrawer.value
@@ -264,7 +276,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
264
276
  onImageUploadStart: handleImageUploadStart,
265
277
  onImageUploadSuccess: handleImageUploadSuccess,
266
278
  onImageUploadError: _cache[2] || (_cache[2] = (error, file) => emit("image-upload-error", error, file)),
267
- 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
+ })
268
283
  }, createSlots({
269
284
  prefix: withCtx(() => [
270
285
  renderSlot(_ctx.$slots, "input-prefix", {}, void 0, true)
@@ -321,7 +336,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
321
336
  onHistoryRemove: handleHistoryRemove,
322
337
  onHistoryClear: handleHistoryClear,
323
338
  onHotClick: handleHotClick,
324
- onHotRefresh: _cache[4] || (_cache[4] = ($event) => emit("hot-refresh"))
339
+ onHotRefresh: _cache[5] || (_cache[5] = ($event) => emit("hot-refresh"))
325
340
  }, createSlots({ _: 2 }, [
326
341
  _ctx.$slots["recommend-header"] ? {
327
342
  name: "recommend-header",
@@ -400,7 +415,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
400
415
  _: 3
401
416
  })
402
417
  ], 2),
403
- isMobileMode.value ? (openBlock(), createBlock(unref(OIcon), {
418
+ isMobileMode.value || props.simple ? (openBlock(), createBlock(unref(OIcon), {
404
419
  key: 0,
405
420
  class: "o-header-search-mobile-icon",
406
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;
@@ -1,17 +1,17 @@
1
- .hover-icon-rotate .o-icon[data-v-23114be6] {
1
+ .hover-icon-rotate .o-icon[data-v-b9f5940a] {
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-23114be6] {
5
+ .hover-icon-rotate:hover .o-icon[data-v-b9f5940a] {
6
6
  transform: rotate(-180deg);
7
7
  }
8
8
  }
9
- .source-code[data-v-23114be6] {
9
+ .source-code[data-v-b9f5940a] {
10
10
  height: 100%;
11
11
  display: flex;
12
12
  align-items: center;
13
13
  }
14
- .source-code .info-wrap[data-v-23114be6] {
14
+ .source-code .info-wrap[data-v-b9f5940a] {
15
15
  height: 100%;
16
16
  display: flex;
17
17
  align-items: center;
@@ -19,11 +19,11 @@
19
19
  cursor: pointer;
20
20
  }
21
21
  @media (hover: hover) {
22
- .source-code .info-wrap[data-v-23114be6]:hover {
22
+ .source-code .info-wrap[data-v-b9f5940a]:hover {
23
23
  color: var(--o-color-primary1);
24
24
  }
25
25
  }
26
- .source-code .info-wrap .title[data-v-23114be6] {
26
+ .source-code .info-wrap .title[data-v-b9f5940a] {
27
27
  display: flex;
28
28
  align-items: center;
29
29
  cursor: pointer;
@@ -32,101 +32,138 @@
32
32
  line-height: 22px;
33
33
  }
34
34
  @media (min-width: 1201px) and (max-width: 1680px) {
35
- .source-code .info-wrap .title[data-v-23114be6] {
35
+ .source-code .info-wrap .title[data-v-b9f5940a] {
36
36
  font-size: 12px;
37
37
  line-height: 18px;
38
38
  }
39
39
  }
40
40
  @media (min-width: 841px) and (max-width: 1200px) {
41
- .source-code .info-wrap .title[data-v-23114be6] {
41
+ .source-code .info-wrap .title[data-v-b9f5940a] {
42
42
  font-size: 12px;
43
43
  line-height: 18px;
44
44
  }
45
45
  }
46
46
  @media (min-width: 601px) and (max-width: 840px) {
47
- .source-code .info-wrap .title[data-v-23114be6] {
47
+ .source-code .info-wrap .title[data-v-b9f5940a] {
48
48
  font-size: 12px;
49
49
  line-height: 18px;
50
50
  }
51
51
  }
52
52
  @media (max-width: 600px) {
53
- .source-code .info-wrap .title[data-v-23114be6] {
53
+ .source-code .info-wrap .title[data-v-b9f5940a] {
54
54
  font-size: 12px;
55
55
  line-height: 18px;
56
56
  }
57
57
  }
58
- .source-code .list[data-v-23114be6] {
59
- background: var(--o-color-fill2);
58
+ @media (min-width: 1201px) and (max-width: 1680px) {
59
+ .source-code .info-wrap .title[data-v-b9f5940a] {
60
+ font-size: 16px;
61
+ line-height: 24px;
62
+ }
63
+ }
64
+ @media (min-width: 1201px) and (max-width: 1680px) and (min-width: 1201px) and (max-width: 1680px) {
65
+ .source-code .info-wrap .title[data-v-b9f5940a] {
66
+ font-size: 14px;
67
+ line-height: 22px;
68
+ }
69
+ }
70
+ @media (min-width: 1201px) and (max-width: 1680px) and (min-width: 841px) and (max-width: 1200px) {
71
+ .source-code .info-wrap .title[data-v-b9f5940a] {
72
+ font-size: 14px;
73
+ line-height: 22px;
74
+ }
75
+ }
76
+ @media (min-width: 1201px) and (max-width: 1680px) and (min-width: 601px) and (max-width: 840px) {
77
+ .source-code .info-wrap .title[data-v-b9f5940a] {
78
+ font-size: 14px;
79
+ line-height: 22px;
80
+ }
81
+ }
82
+ @media (min-width: 1201px) and (max-width: 1680px) and (max-width: 600px) {
83
+ .source-code .info-wrap .title[data-v-b9f5940a] {
84
+ font-size: 12px;
85
+ line-height: 18px;
86
+ }
87
+ }
88
+ @media (max-width: 1200px) {
89
+ .source-code .info-wrap .title[data-v-b9f5940a] {
90
+ font-size: 18px;
91
+ line-height: 26px;
92
+ }
93
+ }
94
+ @media (max-width: 1200px) and (min-width: 1201px) and (max-width: 1680px) {
95
+ .source-code .info-wrap .title[data-v-b9f5940a] {
96
+ font-size: 16px;
97
+ line-height: 24px;
98
+ }
99
+ }
100
+ @media (max-width: 1200px) and (min-width: 841px) and (max-width: 1200px) {
101
+ .source-code .info-wrap .title[data-v-b9f5940a] {
102
+ font-size: 14px;
103
+ line-height: 22px;
104
+ }
105
+ }
106
+ @media (max-width: 1200px) and (min-width: 601px) and (max-width: 840px) {
107
+ .source-code .info-wrap .title[data-v-b9f5940a] {
108
+ font-size: 14px;
109
+ line-height: 22px;
110
+ }
111
+ }
112
+ @media (max-width: 1200px) and (max-width: 600px) {
113
+ .source-code .info-wrap .title[data-v-b9f5940a] {
114
+ font-size: 14px;
115
+ line-height: 22px;
116
+ }
117
+ }
118
+ .source-code .list[data-v-b9f5940a] {
119
+ background: var(--o-color-control5-light);
60
120
  cursor: pointer;
61
121
  box-shadow: var(--o-shadow-1);
62
122
  border-radius: var(--o-radius_control-xs);
63
123
  padding: var(--o-gap-1);
64
124
  width: 144px;
65
125
  }
66
- .hover-icon-rotate .o-icon[data-v-23114be6] {
126
+ .hover-icon-rotate .o-icon[data-v-b9f5940a] {
67
127
  transition: all var(--o-duration-m1) var(--o-easing-standard-in);
68
128
  }
69
129
  @media (hover: hover) {
70
- .hover-icon-rotate:hover .o-icon[data-v-23114be6] {
130
+ .hover-icon-rotate:hover .o-icon[data-v-b9f5940a] {
71
131
  transform: rotate(-180deg);
72
132
  }
73
133
  }
74
- .icon[data-v-23114be6] {
134
+ .icon[data-v-b9f5940a] {
75
135
  font-size: var(--o-icon_size_control-xs);
76
136
  margin-left: var(--o-gap-1);
77
137
  }
78
- .o-dropdown[data-v-23114be6] {
138
+ .o-dropdown[data-v-b9f5940a] {
79
139
  height: 100%;
80
140
  }
81
- .dropdown-active .info-wrap[data-v-23114be6] {
141
+ .dropdown-active .info-wrap[data-v-b9f5940a] {
82
142
  color: var(--o-color-primary1);
83
143
  }
84
- .dropdown-active .o-icon[data-v-23114be6] {
144
+ .dropdown-active .o-icon[data-v-b9f5940a] {
85
145
  transform: rotate(-180deg);
86
146
  }
87
- .o-dropdown-item[data-v-23114be6] {
88
- background: var(--o-color-fill2);
147
+ .o-dropdown-item[data-v-b9f5940a] {
148
+ background: var(--o-color-control5-light);
89
149
  cursor: pointer;
90
150
  border-radius: var(--o-radius_control-xs);
91
- padding: var(--o-gap-1) 12px;
151
+ padding: var(--o-gap-1) var(--o-gap-3);
92
152
  height: 32px;
93
- font-size: 14px;
94
- line-height: 22px;
95
- }
96
- @media (min-width: 1201px) and (max-width: 1680px) {
97
- .o-dropdown-item[data-v-23114be6] {
98
- font-size: 12px;
99
- line-height: 18px;
100
- }
101
- }
102
- @media (min-width: 841px) and (max-width: 1200px) {
103
- .o-dropdown-item[data-v-23114be6] {
104
- font-size: 12px;
105
- line-height: 18px;
106
- }
107
- }
108
- @media (min-width: 601px) and (max-width: 840px) {
109
- .o-dropdown-item[data-v-23114be6] {
110
- font-size: 12px;
111
- line-height: 18px;
112
- }
113
- }
114
- @media (max-width: 600px) {
115
- .o-dropdown-item[data-v-23114be6] {
116
- font-size: 12px;
117
- line-height: 18px;
118
- }
153
+ --dropdown-item-text-size: 14px;
154
+ --dropdown-item-text-height: 22px;
155
+ --dropdown-item-color: var(--o-color-info2);
119
156
  }
120
157
  @media (hover: hover) {
121
- .o-dropdown-item[data-v-23114be6]:hover {
158
+ .o-dropdown-item[data-v-b9f5940a]:hover {
122
159
  background: var(--o-color-control2-light);
123
160
  }
124
161
  }
125
- .o-dropdown-item[data-v-23114be6]:active {
162
+ .o-dropdown-item[data-v-b9f5940a]:active {
126
163
  color: var(--o-color-primary1);
127
164
  background: var(--o-color-control3-light);
128
165
  font-weight: 600;
129
166
  }
130
- .dropdown[data-v-23114be6] {
167
+ .dropdown[data-v-b9f5940a] {
131
168
  --dropdown-list-radius: var(--o-radius-xs);
132
169
  }
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./OHeaderSourceCode.vue2.mjs";
2
2
  import './OHeaderSourceCode.css';
3
3
  import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
4
- const _OHeaderSourceCode = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-23114be6"]]);
4
+ const _OHeaderSourceCode = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b9f5940a"]]);
5
5
  export {
6
6
  _OHeaderSourceCode as default
7
7
  };