@opendesign-plus-test/components 0.0.1-rc.100 → 0.0.1-rc.101

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 (27) hide show
  1. package/dist/components/header/OHeader.vue.d.ts +3 -0
  2. package/dist/components/header/components/HeaderNav.vue.d.ts +3 -0
  3. package/dist/components/header/index.d.ts +5 -0
  4. package/dist/components/header-user/OHeaderUser.vue.d.ts +2 -6
  5. package/dist/components/header-user/index.d.ts +3 -18
  6. package/dist/components.cjs.js +32 -32
  7. package/dist/components.css +1 -1
  8. package/dist/components.es.js +2435 -2431
  9. package/dist/treeshaking/_virtual/icon-locale.mjs +0 -1
  10. package/dist/treeshaking/components/header/OHeader.css +15 -15
  11. package/dist/treeshaking/components/header/OHeader.vue.d.ts +3 -0
  12. package/dist/treeshaking/components/header/OHeader.vue.mjs +1 -1
  13. package/dist/treeshaking/components/header/OHeader.vue2.mjs +8 -3
  14. package/dist/treeshaking/components/header/components/HeaderNav.css +53 -39
  15. package/dist/treeshaking/components/header/components/HeaderNav.vue.d.ts +3 -0
  16. package/dist/treeshaking/components/header/components/HeaderNav.vue.mjs +1 -1
  17. package/dist/treeshaking/components/header/components/HeaderNav.vue2.mjs +8 -2
  18. package/dist/treeshaking/components/header/index.d.ts +5 -0
  19. package/dist/treeshaking/components/header-user/OHeaderUser.css +43 -34
  20. package/dist/treeshaking/components/header-user/OHeaderUser.vue.d.ts +2 -6
  21. package/dist/treeshaking/components/header-user/OHeaderUser.vue.mjs +1 -1
  22. package/dist/treeshaking/components/header-user/OHeaderUser.vue2.mjs +20 -13
  23. package/dist/treeshaking/components/header-user/index.d.ts +3 -18
  24. package/dist/treeshaking/components/search/internal/SearchPanel.css +222 -104
  25. package/dist/treeshaking/components/search/internal/SearchPanel.vue.mjs +1 -1
  26. package/dist/treeshaking/components/search/internal/SearchPanel.vue2.mjs +3 -9
  27. package/package.json +3 -3
@@ -1,12 +1,12 @@
1
- .hover-icon-rotate .o-icon[data-v-ecfe3e64] {
1
+ .hover-icon-rotate .o-icon[data-v-3a35e509] {
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-ecfe3e64] {
5
+ .hover-icon-rotate:hover .o-icon[data-v-3a35e509] {
6
6
  transform: rotate(-180deg);
7
7
  }
8
8
  }
9
- .header-user[data-v-ecfe3e64] {
9
+ .header-user[data-v-3a35e509] {
10
10
  display: flex;
11
11
  align-items: center;
12
12
  height: 100%;
@@ -14,33 +14,38 @@
14
14
  opacity: 1;
15
15
  transition: opacity 0.15s;
16
16
  }
17
- .user-info[data-v-ecfe3e64] {
17
+ .user-info[data-v-3a35e509] {
18
18
  height: 100%;
19
19
  min-width: 32px;
20
20
  display: flex;
21
21
  cursor: pointer;
22
22
  }
23
- .info-wrap[data-v-ecfe3e64] {
23
+ .info-wrap[data-v-3a35e509] {
24
24
  height: calc(100% - 10px);
25
25
  margin: 5px 0;
26
26
  display: flex;
27
27
  align-items: center;
28
28
  }
29
- .info-wrap .icon[data-v-ecfe3e64] {
29
+ .info-wrap .icon[data-v-3a35e509] {
30
30
  margin-left: 4px;
31
31
  }
32
- .user-avatar[data-v-ecfe3e64] {
32
+ .user-avatar[data-v-3a35e509] {
33
33
  margin-right: 4px;
34
34
  }
35
- .user-avatar[data-v-ecfe3e64] .o-badge-content {
35
+ .user-avatar[data-v-3a35e509] .o-badge-content {
36
36
  --badge-dot-size: 6px;
37
37
  right: 7px;
38
38
  top: 2px;
39
39
  }
40
- .o-badge[data-v-ecfe3e64] {
40
+ .o-badge[data-v-3a35e509] {
41
41
  display: flex;
42
42
  }
43
- .o-dropdown-item[data-v-ecfe3e64] {
43
+ .o-dropdown[data-v-3a35e509] {
44
+ height: 100%;
45
+ display: flex;
46
+ align-items: center;
47
+ }
48
+ .o-dropdown-item[data-v-3a35e509] {
44
49
  white-space: nowrap;
45
50
  background: var(--o-color-control5-light);
46
51
  --dropdown-item-color: var(--o-color-info2);
@@ -51,19 +56,19 @@
51
56
  --dropdown-item-text-height: 22px;
52
57
  }
53
58
  @media (hover: hover) {
54
- .o-dropdown-item[data-v-ecfe3e64]:hover {
59
+ .o-dropdown-item[data-v-3a35e509]:hover {
55
60
  background: var(--o-color-control2-light);
56
61
  }
57
62
  }
58
- .o-dropdown-item[data-v-ecfe3e64]:active {
63
+ .o-dropdown-item[data-v-3a35e509]:active {
59
64
  color: var(--o-color-primary1);
60
65
  background: var(--o-color-control3-light);
61
66
  font-weight: 600;
62
67
  }
63
- .notice-not[data-v-ecfe3e64] .o-badge-content {
68
+ .notice-not[data-v-3a35e509] .o-badge-content {
64
69
  display: none;
65
70
  }
66
- .user-account[data-v-ecfe3e64] {
71
+ .user-account[data-v-3a35e509] {
67
72
  color: var(--o-color-info1);
68
73
  max-width: 96px;
69
74
  font-weight: 500;
@@ -71,30 +76,30 @@
71
76
  line-height: 22px;
72
77
  }
73
78
  @media (min-width: 1201px) and (max-width: 1680px) {
74
- .user-account[data-v-ecfe3e64] {
79
+ .user-account[data-v-3a35e509] {
75
80
  font-size: 12px;
76
81
  line-height: 18px;
77
82
  }
78
83
  }
79
84
  @media (min-width: 841px) and (max-width: 1200px) {
80
- .user-account[data-v-ecfe3e64] {
85
+ .user-account[data-v-3a35e509] {
81
86
  font-size: 12px;
82
87
  line-height: 18px;
83
88
  }
84
89
  }
85
90
  @media (min-width: 601px) and (max-width: 840px) {
86
- .user-account[data-v-ecfe3e64] {
91
+ .user-account[data-v-3a35e509] {
87
92
  font-size: 12px;
88
93
  line-height: 18px;
89
94
  }
90
95
  }
91
96
  @media (max-width: 600px) {
92
- .user-account[data-v-ecfe3e64] {
97
+ .user-account[data-v-3a35e509] {
93
98
  font-size: 12px;
94
99
  line-height: 18px;
95
100
  }
96
101
  }
97
- .user-account[data-v-ecfe3e64] {
102
+ .user-account[data-v-3a35e509] {
98
103
  overflow: hidden;
99
104
  text-overflow: ellipsis;
100
105
  word-break: break-all;
@@ -103,79 +108,83 @@
103
108
  -webkit-line-clamp: 1;
104
109
  }
105
110
  @media (min-width: 1201px) and (max-width: 1680px) {
106
- .user-account[data-v-ecfe3e64] {
111
+ .user-account[data-v-3a35e509] {
107
112
  font-size: 16px;
108
113
  line-height: 24px;
109
114
  }
110
115
  }
111
116
  @media (min-width: 1201px) and (max-width: 1680px) and (min-width: 1201px) and (max-width: 1680px) {
112
- .user-account[data-v-ecfe3e64] {
117
+ .user-account[data-v-3a35e509] {
113
118
  font-size: 14px;
114
119
  line-height: 22px;
115
120
  }
116
121
  }
117
122
  @media (min-width: 1201px) and (max-width: 1680px) and (min-width: 841px) and (max-width: 1200px) {
118
- .user-account[data-v-ecfe3e64] {
123
+ .user-account[data-v-3a35e509] {
119
124
  font-size: 14px;
120
125
  line-height: 22px;
121
126
  }
122
127
  }
123
128
  @media (min-width: 1201px) and (max-width: 1680px) and (min-width: 601px) and (max-width: 840px) {
124
- .user-account[data-v-ecfe3e64] {
129
+ .user-account[data-v-3a35e509] {
125
130
  font-size: 14px;
126
131
  line-height: 22px;
127
132
  }
128
133
  }
129
134
  @media (min-width: 1201px) and (max-width: 1680px) and (max-width: 600px) {
130
- .user-account[data-v-ecfe3e64] {
135
+ .user-account[data-v-3a35e509] {
131
136
  font-size: 12px;
132
137
  line-height: 18px;
133
138
  }
134
139
  }
135
140
  @media (max-width: 1200px) {
136
- .user-account[data-v-ecfe3e64] {
141
+ .user-account[data-v-3a35e509] {
137
142
  font-size: 18px;
138
143
  line-height: 26px;
139
144
  }
140
145
  }
141
146
  @media (max-width: 1200px) and (min-width: 1201px) and (max-width: 1680px) {
142
- .user-account[data-v-ecfe3e64] {
147
+ .user-account[data-v-3a35e509] {
143
148
  font-size: 16px;
144
149
  line-height: 24px;
145
150
  }
146
151
  }
147
152
  @media (max-width: 1200px) and (min-width: 841px) and (max-width: 1200px) {
148
- .user-account[data-v-ecfe3e64] {
153
+ .user-account[data-v-3a35e509] {
149
154
  font-size: 14px;
150
155
  line-height: 22px;
151
156
  }
152
157
  }
153
158
  @media (max-width: 1200px) and (min-width: 601px) and (max-width: 840px) {
154
- .user-account[data-v-ecfe3e64] {
159
+ .user-account[data-v-3a35e509] {
155
160
  font-size: 14px;
156
161
  line-height: 22px;
157
162
  }
158
163
  }
159
164
  @media (max-width: 1200px) and (max-width: 600px) {
160
- .user-account[data-v-ecfe3e64] {
165
+ .user-account[data-v-3a35e509] {
161
166
  font-size: 14px;
162
167
  line-height: 22px;
163
168
  }
164
169
  }
165
170
  @media (max-width: 840px) {
166
- .header-user[data-v-ecfe3e64] {
171
+ .header-user[data-v-3a35e509] {
167
172
  min-width: auto;
168
173
  }
169
- .header-user .user-info[data-v-ecfe3e64] {
174
+ .header-user .user-info[data-v-3a35e509] {
170
175
  min-width: 24px;
171
176
  }
172
- .header-user .user-info .info-wrap .user-avatar[data-v-ecfe3e64] {
177
+ .header-user .user-info .info-wrap[data-v-3a35e509] {
178
+ height: auto;
179
+ margin: 0;
180
+ }
181
+ .header-user .user-info .info-wrap .user-avatar[data-v-3a35e509] {
173
182
  margin-right: 0;
174
183
  }
175
- .header-user .user-info .info-wrap .user-account[data-v-ecfe3e64] {
184
+ .header-user .user-info .info-wrap .user-account[data-v-3a35e509] {
176
185
  display: none;
177
186
  }
178
- .header-user .user-info .info-wrap .icon[data-v-ecfe3e64] {
187
+ .header-user .user-info .info-wrap .icon[data-v-3a35e509] {
179
188
  display: none;
180
189
  }
181
190
  }
@@ -18,6 +18,7 @@ export interface UserPropsT {
18
18
  userInfo?: UserInfoT;
19
19
  options?: OptionsItemT[];
20
20
  customSize?: number;
21
+ simple?: boolean;
21
22
  }
22
23
  export interface OHeaderUserEmitsT {
23
24
  (e: 'login'): void;
@@ -30,11 +31,6 @@ declare const _default: import('vue').DefineComponent<UserPropsT, {}, {}, {}, {}
30
31
  onLogin?: (() => any) | undefined;
31
32
  onLogout?: (() => any) | undefined;
32
33
  }>, {
33
- options: OptionsItemT[];
34
- lang: string;
35
- customSize: number;
36
- token: string;
37
- noticeTotal: number;
38
- userInfo: UserInfoT;
34
+ simple: boolean;
39
35
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
40
36
  export default _default;
@@ -2,7 +2,7 @@ import _sfc_main from "./OHeaderUser.vue2.mjs";
2
2
  import './OHeaderUser.css';
3
3
  import './OHeaderUser2.css';
4
4
  import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
5
- const _OHeaderUser = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ecfe3e64"]]);
5
+ const _OHeaderUser = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3a35e509"]]);
6
6
  export {
7
7
  _OHeaderUser as default
8
8
  };
@@ -10,17 +10,21 @@ const _hoisted_2 = {
10
10
  class: "user-info"
11
11
  };
12
12
  const _hoisted_3 = { class: "info-wrap hover-icon-rotate" };
13
- const _hoisted_4 = { class: "user-account" };
13
+ const _hoisted_4 = {
14
+ key: 0,
15
+ class: "user-account"
16
+ };
14
17
  const _hoisted_5 = { key: 1 };
15
18
  const _sfc_main = /* @__PURE__ */ defineComponent({
16
19
  __name: "OHeaderUser",
17
20
  props: {
18
- token: { default: void 0 },
19
- lang: { default: void 0 },
20
- noticeTotal: { default: void 0 },
21
- userInfo: { default: void 0 },
22
- options: { default: void 0 },
23
- customSize: { default: void 0 }
21
+ token: {},
22
+ lang: {},
23
+ noticeTotal: {},
24
+ userInfo: {},
25
+ options: {},
26
+ customSize: {},
27
+ simple: { type: Boolean, default: false }
24
28
  },
25
29
  emits: ["login", "logout"],
26
30
  setup(__props, { emit: __emit }) {
@@ -81,7 +85,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
81
85
  }), 128))
82
86
  ]),
83
87
  default: withCtx(() => {
84
- var _a;
88
+ var _a, _b, _c;
85
89
  return [
86
90
  createElementVNode("div", _hoisted_3, [
87
91
  createVNode(unref(OBadge), {
@@ -91,24 +95,27 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
91
95
  class: normalizeClass(["header-message user-avatar", { "notice-not": !__props.noticeTotal }])
92
96
  }, {
93
97
  default: withCtx(() => {
94
- var _a2, _b;
98
+ var _a2, _b2;
95
99
  return [
96
100
  createVNode(AppAvatar, {
97
101
  avatar: (_a2 = __props.userInfo) == null ? void 0 : _a2.photo,
98
- name: (_b = __props.userInfo) == null ? void 0 : _b.username,
102
+ name: (_b2 = __props.userInfo) == null ? void 0 : _b2.username,
99
103
  "custom-size": __props.customSize
100
104
  }, null, 8, ["avatar", "name", "custom-size"])
101
105
  ];
102
106
  }),
103
107
  _: 1
104
108
  }, 8, ["value", "class"]),
105
- createElementVNode("p", _hoisted_4, toDisplayString((_a = __props.userInfo) == null ? void 0 : _a.username), 1),
106
- createVNode(unref(OIcon), { class: "icon" }, {
109
+ !__props.simple && !unref(lePadV) && ((_a = __props.userInfo) == null ? void 0 : _a.username) ? (openBlock(), createElementBlock("p", _hoisted_4, toDisplayString((_b = __props.userInfo) == null ? void 0 : _b.username), 1)) : createCommentVNode("", true),
110
+ !__props.simple && !unref(lePadV) && ((_c = __props.userInfo) == null ? void 0 : _c.username) ? (openBlock(), createBlock(unref(OIcon), {
111
+ key: 1,
112
+ class: "icon"
113
+ }, {
107
114
  default: withCtx(() => [
108
115
  createVNode(unref(IconChevronDown))
109
116
  ]),
110
117
  _: 1
111
- })
118
+ })) : createCommentVNode("", true)
112
119
  ])
113
120
  ];
114
121
  }),
@@ -7,12 +7,7 @@ declare const OHeaderUser: {
7
7
  login: () => any;
8
8
  logout: () => any;
9
9
  }, import('vue').PublicProps, {
10
- options: import('./OHeaderUser.vue').OptionsItemT[];
11
- lang: string;
12
- customSize: number;
13
- token: string;
14
- noticeTotal: number;
15
- userInfo: import('./OHeaderUser.vue').UserInfoT;
10
+ simple: boolean;
16
11
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
17
12
  P: {};
18
13
  B: {};
@@ -24,12 +19,7 @@ declare const OHeaderUser: {
24
19
  onLogin?: (() => any) | undefined;
25
20
  onLogout?: (() => any) | undefined;
26
21
  }>, {}, {}, {}, {}, {
27
- options: import('./OHeaderUser.vue').OptionsItemT[];
28
- lang: string;
29
- customSize: number;
30
- token: string;
31
- noticeTotal: number;
32
- userInfo: import('./OHeaderUser.vue').UserInfoT;
22
+ simple: boolean;
33
23
  }>;
34
24
  __isFragment?: never;
35
25
  __isTeleport?: never;
@@ -41,12 +31,7 @@ declare const OHeaderUser: {
41
31
  login: () => any;
42
32
  logout: () => any;
43
33
  }, string, {
44
- options: import('./OHeaderUser.vue').OptionsItemT[];
45
- lang: string;
46
- customSize: number;
47
- token: string;
48
- noticeTotal: number;
49
- userInfo: import('./OHeaderUser.vue').UserInfoT;
34
+ simple: boolean;
50
35
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
51
36
  install(app: App): void;
52
37
  };