@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/dist/components/header-language-switcher/OHeaderLanguageSwitcher.vue.d.ts +9 -0
- package/dist/components/header-language-switcher/index.d.ts +15 -0
- package/dist/components.cjs.js +38 -38
- package/dist/components.css +1 -1
- package/dist/components.es.js +5999 -5992
- package/package.json +1 -1
- package/src/assets/meeting/empty.png +0 -0
- package/src/components/header-language-switcher/OHeaderLanguageSwitcher.vue +45 -3
- package/src/components/meeting/OMeetingCalendar.vue +19 -3
- package/src/components/meeting/OMeetingSigCalendar.vue +1 -1
- package/src/components/meeting/components/OMeetingCalendarList.vue +4 -0
package/package.json
CHANGED
|
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
|
-
|
|
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/
|
|
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:
|
|
919
|
-
--result-image-height:
|
|
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/
|
|
23
|
+
import emptyImg from '@/assets/meeting/empty.png';
|
|
24
24
|
|
|
25
25
|
const props = defineProps<{
|
|
26
26
|
sigName: String;
|