@opendesign-plus-test/components 0.0.1-rc.69 → 0.0.1-rc.70

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opendesign-plus-test/components",
3
- "version": "0.0.1-rc.69",
3
+ "version": "0.0.1-rc.70",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public",
Binary file
@@ -29,6 +29,10 @@ const props = defineProps({
29
29
  type: Boolean,
30
30
  default: true,
31
31
  },
32
+ disabled: {
33
+ type: Boolean,
34
+ default: false,
35
+ },
32
36
  });
33
37
 
34
38
  const { changeLocale, locale } = useLocale();
@@ -66,12 +70,15 @@ const isCommon = computed(() => {
66
70
  <template>
67
71
  <div
68
72
  v-if="isCommon"
69
- :class="options.length <= 1 ? 'hide-lang' : 'header-lang'"
73
+ :class="[options.length <= 1 ? 'hide-lang' : 'header-lang', disabled ? 'is-disabled' : '']"
70
74
  >
71
75
  <ODropdown
72
76
  trigger="hover"
73
77
  optionPosition="bottom"
74
- option-wrap-class="dropdown"
78
+ :optionWrapClass="{
79
+ 'dropdown':true,
80
+ 'is-disabled': disabled,
81
+ }"
75
82
  >
76
83
  <div class="info-wrap">
77
84
  <OIcon class="icon">
@@ -95,7 +102,7 @@ const isCommon = computed(() => {
95
102
 
96
103
  <div
97
104
  v-else
98
- :class="options.length <= 1 ? 'hide-lang' : 'mobile-change-language'"
105
+ :class="[options.length <= 1 ? 'hide-lang' : 'mobile-change-language', disabled ? 'is-disabled' : '']"
99
106
  >
100
107
  <span
101
108
  v-for="item in options"
@@ -150,6 +157,21 @@ const isCommon = computed(() => {
150
157
  }
151
158
  }
152
159
  }
160
+
161
+ &.is-disabled {
162
+ .info-wrap {
163
+ color: var(--o-color-info4);
164
+ cursor: not-allowed;
165
+
166
+ &:hover {
167
+ color: var(--o-color-info4);
168
+ }
169
+
170
+ .o-icon {
171
+ color: inherit;
172
+ }
173
+ }
174
+ }
153
175
  .list {
154
176
  background: var(--o-color-fill2);
155
177
  cursor: pointer;
@@ -207,5 +229,25 @@ const isCommon = computed(() => {
207
229
  }
208
230
  }
209
231
  }
232
+
233
+ &.is-disabled {
234
+ span {
235
+ color: var(--o-color-info4);
236
+ cursor: not-allowed;
237
+ @include hover {
238
+ color: var(--o-color-info4);
239
+ }
240
+
241
+ &:after {
242
+ color: inherit;
243
+ }
244
+ }
245
+ }
246
+ }
247
+ </style>
248
+
249
+ <style lang="scss">
250
+ .o-dropdown-list.is-disabled {
251
+ display: none;
210
252
  }
211
253
  </style>
@@ -17,7 +17,7 @@ import OMeetingCalendarList from './components/OMeetingCalendarList.vue';
17
17
  import IconEvent from '~icons/meeting/icon-event.svg';
18
18
  import IconSummit from '~icons/meeting/icon-summit.svg';
19
19
  import IconMeeting from '~icons/meeting/icon-meet.svg';
20
- import emptyImg from '@/assets/meeting/svg-icons/icon-empty.svg';
20
+ import emptyImg from '@/assets/meeting/empty.png';
21
21
  import { Locales } from '@/i18n';
22
22
  import { useMeetingConfig } from './composables/useMeetingConfig';
23
23
  import {
@@ -845,6 +845,9 @@ defineExpose({
845
845
  @include respond('<=pad_v') {
846
846
  display: inline-flex;
847
847
  }
848
+ @include respond('pad_v') {
849
+ max-width: 160px;
850
+ }
848
851
  @include respond('phone') {
849
852
  display: flex;
850
853
  width: 100%;
@@ -915,8 +918,21 @@ defineExpose({
915
918
  }
916
919
 
917
920
  .empty-result {
918
- --result-image-width: 200px;
919
- --result-image-height: 175px;
921
+ --result-image-width: 240px;
922
+ --result-image-height: 210px;
923
+ --result-desc-gap: var(--o-gap-4);
924
+
925
+ @include respond('laptop') {
926
+ --result-image-width: 200px;
927
+ --result-image-height: 175px;
928
+ --result-desc-gap: var(--o-gap-3);
929
+ }
930
+
931
+ @include respond('<=pad') {
932
+ --result-image-width: 160px;
933
+ --result-image-height: 140px;
934
+ --result-desc-gap: var(--o-gap-2);
935
+ }
920
936
 
921
937
  .o-result-description {
922
938
  @include tip1;
@@ -20,7 +20,7 @@ import { useScreen } from '@opendesign-plus/composables';
20
20
  import { useMeetingConfig } from './composables/useMeetingConfig';
21
21
  import OMeetingCalendarList from '@/components/meeting/components/OMeetingCalendarList.vue';
22
22
  import { formatDate } from '@/components/meeting/utils.ts';
23
- import emptyImg from '@/assets/meeting/svg-icons/icon-empty.svg';
23
+ import emptyImg from '@/assets/meeting/empty.png';
24
24
 
25
25
  const props = defineProps<{
26
26
  sigName: String;
@@ -332,6 +332,10 @@ const computedList = computed<any[]>(() => {
332
332
  display: flex;
333
333
  align-items: center;
334
334
  justify-content: center;
335
+ @include respond('<=pad_v') {
336
+ min-height: auto;
337
+ padding: var(--o-gap-5) 0;
338
+ }
335
339
  }
336
340
 
337
341