@opendesign-plus-test/components 0.0.1-rc.26 → 0.0.1-rc.27
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/chunk-OElCookieNotice.cjs.js +1 -1
- package/dist/chunk-OElCookieNotice.es.js +262 -194
- package/dist/components/OCookieNotice.vue.d.ts +3 -2
- package/dist/components/OFooter.vue.d.ts +22 -1
- package/dist/components/OHeaderUser.vue.d.ts +0 -2
- package/dist/components/activity/OMyActivityCalendar.vue.d.ts +6 -6
- package/dist/components/activity/index.d.ts +3 -3
- package/dist/components/element-plus/OElCookieNotice.vue.d.ts +6 -3
- package/dist/components/{OHeader.vue.d.ts → header/OHeader.vue.d.ts} +2 -1
- package/dist/components/{OHeaderMoblie.vue.d.ts → header/OHeaderMoblie.vue.d.ts} +2 -2
- package/dist/components/header/components/HeaderContent.vue.d.ts +6 -0
- package/dist/components/header/components/HeaderNav.vue.d.ts +7 -0
- package/dist/components/header/components/HeaderNavMoblie.vue.d.ts +17 -0
- package/dist/components/header/components/HeaderUbmcNav.vue.d.ts +2 -0
- package/dist/components/header/index.d.ts +22 -0
- package/dist/components/meeting/OMeetingForm.vue.d.ts +3 -15
- package/dist/components/meeting/OMyMeetingCalendar.vue.d.ts +6 -6
- package/dist/components/meeting/types.d.ts +11 -4
- package/dist/components.cjs.js +47 -47
- package/dist/components.css +1 -1
- package/dist/components.es.js +17957 -17829
- package/dist/index.d.ts +2 -3
- package/package.json +1 -1
- package/src/assets/svg-icons/icon-chevron-down.svg +1 -1
- package/src/components/OCookieNotice.vue +270 -118
- package/src/components/OFooter.vue +11 -1
- package/src/components/OHeaderUser.vue +14 -81
- package/src/components/OSourceCode.vue +1 -1
- package/src/components/activity/OMyActivityCalendar.vue +14 -13
- package/src/components/common/MoreText.vue +3 -2
- package/src/components/element-plus/OElCookieNotice.vue +306 -115
- package/src/components/events/OEventsApply.vue +16 -0
- package/src/components/events/OEventsList.vue +3 -0
- package/src/components/header/OHeader.vue +175 -0
- package/src/components/{OHeaderMoblie.vue → header/OHeaderMoblie.vue} +6 -3
- package/src/components/{common/HeaderEulerNav.vue → header/components/HeaderContent.vue} +375 -551
- package/src/components/header/components/HeaderNav.vue +280 -0
- package/src/components/{common → header/components}/HeaderNavMoblie.vue +20 -18
- package/src/components/{common → header/components}/HeaderUbmcNav.vue +6 -63
- package/src/components/header/index.ts +16 -0
- package/src/components/meeting/OMeetingCalendar.vue +16 -2
- package/src/components/meeting/OMeetingForm.vue +17 -24
- package/src/components/meeting/OMeetingPlayback.vue +1 -1
- package/src/components/meeting/OMyMeetingCalendar.vue +5 -6
- package/src/components/meeting/components/OMeetingCalendarList.vue +1 -1
- package/src/components/meeting/types.ts +11 -5
- package/src/index.ts +2 -5
- package/dist/components/activity/data.d.ts +0 -51
- package/src/components/OHeader.vue +0 -97
- package/src/components/activity/data.ts +0 -365
- package/src/components/meeting/components/OMyCalendarWrapper.vue +0 -160
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
} from '@opensig/opendesign';
|
|
20
20
|
import IconHelp from '~icons/meeting/icon-help.svg';
|
|
21
21
|
import IconTip from '~icons/meeting/icon-tip.svg';
|
|
22
|
-
import
|
|
22
|
+
import { MeetingFormPropsT, MeetingPostT, OptionItemT } from './types';
|
|
23
23
|
import dayjs from 'dayjs';
|
|
24
24
|
import { findLabelFromOptions, formatDateNumber, getDateNumber } from './utils';
|
|
25
25
|
import {
|
|
@@ -36,18 +36,7 @@ import { useI18n } from '@/i18n';
|
|
|
36
36
|
|
|
37
37
|
const { t, locale } = useI18n();
|
|
38
38
|
|
|
39
|
-
const props = withDefaults(defineProps<{
|
|
40
|
-
data?: MeetingItemT;
|
|
41
|
-
isSub?: boolean;
|
|
42
|
-
isEdit?: boolean;
|
|
43
|
-
subId?: string;
|
|
44
|
-
createMeetingRequest: any,
|
|
45
|
-
editMeetingRequest: any;
|
|
46
|
-
editSubMeetingRequest: any;
|
|
47
|
-
getPlatformsRequest: any;
|
|
48
|
-
getGroupsRequest: any;
|
|
49
|
-
showBtns?: boolean
|
|
50
|
-
}>(), {
|
|
39
|
+
const props = withDefaults(defineProps<MeetingFormPropsT>(), {
|
|
51
40
|
isSub: false,
|
|
52
41
|
isEdit: false,
|
|
53
42
|
showBtns: true,
|
|
@@ -78,7 +67,7 @@ const initForm = {
|
|
|
78
67
|
cycle_interval: 1,
|
|
79
68
|
cycle_type: INTERVAL_DAY,
|
|
80
69
|
cycle_point: [],
|
|
81
|
-
}
|
|
70
|
+
};
|
|
82
71
|
const form = ref<MeetingPostT>(Object.assign({}, initForm) as unknown as MeetingPostT); // 表单数据
|
|
83
72
|
const formRef = ref(null); // 表单实例
|
|
84
73
|
const loading = ref(false); // 提交状态
|
|
@@ -694,12 +683,6 @@ defineExpose({
|
|
|
694
683
|
|
|
695
684
|
<style lang="scss">
|
|
696
685
|
.o-meeting-form {
|
|
697
|
-
.el-input {
|
|
698
|
-
--el-border-color: var(--o-color-control1);
|
|
699
|
-
--el-input-border-color: var(--o-color-control1);
|
|
700
|
-
--el-input-hover-border-color:var(--o-color-control2);
|
|
701
|
-
--el-input-focus-border-color:var(--o-color-control3);
|
|
702
|
-
}
|
|
703
686
|
.form-wrapper {
|
|
704
687
|
& > .o-form-item {
|
|
705
688
|
max-width: 592px;
|
|
@@ -718,6 +701,7 @@ defineExpose({
|
|
|
718
701
|
|
|
719
702
|
&.o-form-layout-v {
|
|
720
703
|
--form-item-gap: var(--o-gap-3);
|
|
704
|
+
|
|
721
705
|
.o-form-item-label {
|
|
722
706
|
margin-bottom: var(--o-gap-2);
|
|
723
707
|
}
|
|
@@ -741,6 +725,13 @@ defineExpose({
|
|
|
741
725
|
}
|
|
742
726
|
}
|
|
743
727
|
|
|
728
|
+
.o-select {
|
|
729
|
+
--select-bd-color: var(--o-color-control1);
|
|
730
|
+
--select-bd-color-hover: var(--o-color-primary2);
|
|
731
|
+
--select-bd-color-focus: var(--o-color-primary3);
|
|
732
|
+
--select-bd-color-disabled: var(--o-color-control4);
|
|
733
|
+
}
|
|
734
|
+
|
|
744
735
|
.o-form-item-label {
|
|
745
736
|
flex: 0 0 100px;
|
|
746
737
|
height: var(--o-control_size-l);
|
|
@@ -766,6 +757,7 @@ defineExpose({
|
|
|
766
757
|
|
|
767
758
|
.o-form-item-label {
|
|
768
759
|
margin: 0;
|
|
760
|
+
align-items: flex-start;
|
|
769
761
|
}
|
|
770
762
|
|
|
771
763
|
.o-form-item-main {
|
|
@@ -835,7 +827,7 @@ defineExpose({
|
|
|
835
827
|
display: flex;
|
|
836
828
|
align-items: center;
|
|
837
829
|
border: 1px solid var(--o-color-control1);
|
|
838
|
-
border-radius: var(--o-
|
|
830
|
+
border-radius: var(--o-radius-xs);
|
|
839
831
|
padding: 0 15px;
|
|
840
832
|
background-color: var(--o-color-fill2);
|
|
841
833
|
|
|
@@ -844,7 +836,7 @@ defineExpose({
|
|
|
844
836
|
}
|
|
845
837
|
|
|
846
838
|
&:hover {
|
|
847
|
-
border-color: var(--o-color-
|
|
839
|
+
border-color: var(--o-color-primary2);
|
|
848
840
|
}
|
|
849
841
|
|
|
850
842
|
@include respond-to('phone') {
|
|
@@ -921,7 +913,7 @@ defineExpose({
|
|
|
921
913
|
}
|
|
922
914
|
|
|
923
915
|
.repeat-config {
|
|
924
|
-
background-color: var(--o-color-control2-light);
|
|
916
|
+
background-color: color-mix(in srgb, var(--o-color-control2-light), transparent 60%);
|
|
925
917
|
padding: var(--o-gap-5);
|
|
926
918
|
border-radius: var(--o-radius-xs);
|
|
927
919
|
@include respond-to('<=pad_v') {
|
|
@@ -989,13 +981,14 @@ defineExpose({
|
|
|
989
981
|
</style>
|
|
990
982
|
|
|
991
983
|
<style lang="scss">
|
|
992
|
-
.meeting-form-time-popover, o-meeting-form-date-picker-popper {
|
|
984
|
+
.meeting-form-time-popover, .o-meeting-form-date-picker-popper {
|
|
993
985
|
--el-color-primary: var(--o-color-primary1);
|
|
994
986
|
--el-datepicker-active-color: var(--o-color-primary1);
|
|
995
987
|
--el-fill-color-light: var(--o-color-control2-light);
|
|
996
988
|
--el-input-bg-color: var(--o-color-control-light);
|
|
997
989
|
--el-fill-color-blank: var(--o-color-control-light);
|
|
998
990
|
}
|
|
991
|
+
|
|
999
992
|
.o-meeting-form-popover-content {
|
|
1000
993
|
max-width: 256px;
|
|
1001
994
|
text-align: left;
|
|
@@ -14,7 +14,7 @@ const props = withDefaults(defineProps<MeetingPlaybackPropsT>(), {
|
|
|
14
14
|
detail: () => ({}) as any,
|
|
15
15
|
});
|
|
16
16
|
const emits = defineEmits(['change-date']);
|
|
17
|
-
|
|
17
|
+
const { t } = useI18n();
|
|
18
18
|
const playbackInstance = ref(null);
|
|
19
19
|
const getInstance = (instance: any) => {
|
|
20
20
|
playbackInstance.value = instance;
|
|
@@ -835,12 +835,11 @@ const cancelActions = computed<DialogActionT[]>(() => {
|
|
|
835
835
|
.list-calendar {
|
|
836
836
|
width: 334px;
|
|
837
837
|
flex-shrink: 0;
|
|
838
|
-
--table-bg: var(--o-color-control2-light);
|
|
839
838
|
|
|
840
839
|
.el-calendar {
|
|
841
840
|
min-height: 460px;
|
|
842
841
|
height: calc(100% - 54px);
|
|
843
|
-
background-color: var(--
|
|
842
|
+
background-color: color-mix(in srgb, var(--o-color-control2-light), transparent 60%);
|
|
844
843
|
border-radius: var(--o-radius-xs);
|
|
845
844
|
|
|
846
845
|
.el-calendar__header {
|
|
@@ -871,17 +870,17 @@ const cancelActions = computed<DialogActionT[]>(() => {
|
|
|
871
870
|
.el-calendar__body {
|
|
872
871
|
.el-calendar-table {
|
|
873
872
|
tr {
|
|
874
|
-
background: var(--
|
|
873
|
+
background-color: color-mix(in srgb, var(--o-color-control2-light), transparent 60%) !important;
|
|
875
874
|
}
|
|
876
875
|
|
|
877
876
|
th {
|
|
878
877
|
text-align: center;
|
|
879
|
-
background: var(--
|
|
878
|
+
background-color: color-mix(in srgb, var(--o-color-control2-light), transparent 60%) !important;
|
|
880
879
|
border: none;
|
|
881
880
|
}
|
|
882
881
|
|
|
883
882
|
td {
|
|
884
|
-
background: var(--
|
|
883
|
+
background-color: color-mix(in srgb, var(--o-color-control2-light), transparent 60%) !important;
|
|
885
884
|
border: none;
|
|
886
885
|
text-align: center;
|
|
887
886
|
transition: none;
|
|
@@ -1237,7 +1236,7 @@ const cancelActions = computed<DialogActionT[]>(() => {
|
|
|
1237
1236
|
}
|
|
1238
1237
|
|
|
1239
1238
|
&.o-collapse-item-expanded {
|
|
1240
|
-
background-color: var(--o-color-control2-light);
|
|
1239
|
+
background-color: color-mix(in srgb, var(--o-color-control2-light), transparent 60%) !important;
|
|
1241
1240
|
}
|
|
1242
1241
|
}
|
|
1243
1242
|
|
|
@@ -322,7 +322,7 @@ const computedList = computed(() => {
|
|
|
322
322
|
}
|
|
323
323
|
|
|
324
324
|
.o-collapse-item-body {
|
|
325
|
-
background-color: var(--o-color-control2-light);
|
|
325
|
+
background-color: color-mix(in srgb, var(--o-color-control2-light), transparent 60%);
|
|
326
326
|
margin-bottom: 0;
|
|
327
327
|
|
|
328
328
|
a {
|
|
@@ -63,11 +63,17 @@ export interface MeetingPostT {
|
|
|
63
63
|
is_notify?: boolean;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
66
|
+
export interface MeetingFormPropsT {
|
|
67
|
+
data?: MeetingItemT;
|
|
68
|
+
isSub?: boolean;
|
|
69
|
+
isEdit?: boolean;
|
|
70
|
+
subId?: string;
|
|
71
|
+
createMeetingRequest: any,
|
|
72
|
+
editMeetingRequest: any;
|
|
73
|
+
editSubMeetingRequest: any;
|
|
74
|
+
getPlatformsRequest: any;
|
|
75
|
+
getGroupsRequest: any;
|
|
76
|
+
showBtns?: boolean
|
|
71
77
|
}
|
|
72
78
|
|
|
73
79
|
// 会议详情
|
package/src/index.ts
CHANGED
|
@@ -4,8 +4,6 @@
|
|
|
4
4
|
import OBanner from './components/OBanner.vue';
|
|
5
5
|
import OCookieNotice from './components/OCookieNotice.vue';
|
|
6
6
|
import OFooter from './components/OFooter.vue';
|
|
7
|
-
import OHeader from './components/OHeader.vue';
|
|
8
|
-
import OHeaderMoblie from './components/OHeaderMoblie.vue';
|
|
9
7
|
import OHeaderSearch from './components/OHeaderSearch.vue';
|
|
10
8
|
import OHeaderUser from './components/OHeaderUser.vue';
|
|
11
9
|
import OPlusConfigProvider from './components/OPlusConfigProvider.vue';
|
|
@@ -18,8 +16,6 @@ const components = {
|
|
|
18
16
|
OBanner,
|
|
19
17
|
OCookieNotice,
|
|
20
18
|
OFooter,
|
|
21
|
-
OHeader,
|
|
22
|
-
OHeaderMoblie,
|
|
23
19
|
OHeaderSearch,
|
|
24
20
|
OHeaderUser,
|
|
25
21
|
OPlusConfigProvider,
|
|
@@ -29,12 +25,13 @@ const components = {
|
|
|
29
25
|
};
|
|
30
26
|
|
|
31
27
|
// 导出单个组件
|
|
32
|
-
export { OBanner, OCookieNotice, OFooter,
|
|
28
|
+
export { OBanner, OCookieNotice, OFooter, OHeaderSearch, OHeaderUser, OPlusConfigProvider, OSection, OSourceCode, OThemeSwitcher };
|
|
33
29
|
|
|
34
30
|
// 重新导出子目录中的组件
|
|
35
31
|
export * from './components/activity';
|
|
36
32
|
export * from './components/element-plus';
|
|
37
33
|
export * from './components/events';
|
|
34
|
+
export * from './components/header';
|
|
38
35
|
export * from './components/meeting';
|
|
39
36
|
|
|
40
37
|
// 默认导出(用于Vue插件安装)
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
export declare const approveListRes: {
|
|
2
|
-
total: number;
|
|
3
|
-
page: string;
|
|
4
|
-
size: number;
|
|
5
|
-
data: {
|
|
6
|
-
id: number;
|
|
7
|
-
title: string;
|
|
8
|
-
start_date: string;
|
|
9
|
-
end_date: string;
|
|
10
|
-
activity_type: number;
|
|
11
|
-
synopsis: string;
|
|
12
|
-
activity_mode: number;
|
|
13
|
-
status: number;
|
|
14
|
-
create_time: string;
|
|
15
|
-
is_delete: number;
|
|
16
|
-
address: string;
|
|
17
|
-
sponsor: string;
|
|
18
|
-
start: string;
|
|
19
|
-
end: string;
|
|
20
|
-
register_url: string;
|
|
21
|
-
content_url: string;
|
|
22
|
-
update_activity_id: null;
|
|
23
|
-
register_end_date: string;
|
|
24
|
-
}[];
|
|
25
|
-
};
|
|
26
|
-
export declare const listRes: {
|
|
27
|
-
total: number;
|
|
28
|
-
page: string;
|
|
29
|
-
size: number;
|
|
30
|
-
data: {
|
|
31
|
-
id: number;
|
|
32
|
-
title: string;
|
|
33
|
-
start_date: string;
|
|
34
|
-
end_date: string;
|
|
35
|
-
activity_type: number;
|
|
36
|
-
synopsis: string;
|
|
37
|
-
activity_mode: number;
|
|
38
|
-
create_time: string;
|
|
39
|
-
address: string;
|
|
40
|
-
status: number;
|
|
41
|
-
sponsor: string;
|
|
42
|
-
is_delete: number;
|
|
43
|
-
start: string;
|
|
44
|
-
end: string;
|
|
45
|
-
register_url: string;
|
|
46
|
-
content_url: string;
|
|
47
|
-
register_end_date: string;
|
|
48
|
-
update_activity_id: null;
|
|
49
|
-
approver: string;
|
|
50
|
-
}[];
|
|
51
|
-
};
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import ContentWrapper from './common/ContentWrapper.vue';
|
|
3
|
-
import HeaderEulerNav from './common/HeaderEulerNav.vue';
|
|
4
|
-
import HeaderUbmcNav from './common/HeaderUbmcNav.vue';
|
|
5
|
-
|
|
6
|
-
export interface OHeaderT {
|
|
7
|
-
(e: 'go-home'): void;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
const emit = defineEmits<OHeaderT>();
|
|
11
|
-
|
|
12
|
-
const props = defineProps({
|
|
13
|
-
logo: undefined,
|
|
14
|
-
lang: undefined,
|
|
15
|
-
community: undefined,
|
|
16
|
-
navData: undefined,
|
|
17
|
-
bgLeft: undefined,
|
|
18
|
-
bgRight: undefined,
|
|
19
|
-
tagMap: undefined,
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
const goHome = () => {
|
|
23
|
-
emit('go-home');
|
|
24
|
-
};
|
|
25
|
-
</script>
|
|
26
|
-
|
|
27
|
-
<template>
|
|
28
|
-
<div class="header">
|
|
29
|
-
<ContentWrapper class="header-wrap">
|
|
30
|
-
<!-- logo -->
|
|
31
|
-
<div class="header-logo" @click="goHome">
|
|
32
|
-
<slot name="logo">
|
|
33
|
-
<img v-if="props.logo" class="logo" alt="logo" :src="props.logo" />
|
|
34
|
-
</slot>
|
|
35
|
-
</div>
|
|
36
|
-
<!-- openEuler nav -->
|
|
37
|
-
<div v-if="props.community === 'openEuler'" class="header-nav">
|
|
38
|
-
<slot name="nav">
|
|
39
|
-
<HeaderEulerNav v-if="props.navData" :nav-data="props.navData" :bg-left="props.bgLeft" :bg-right="props.bgRight" />
|
|
40
|
-
</slot>
|
|
41
|
-
</div>
|
|
42
|
-
<!-- openUBMC nav -->
|
|
43
|
-
<div v-if="props.community === 'openUBMC'" class="header-content">
|
|
44
|
-
<slot name="nav">
|
|
45
|
-
<HeaderUbmcNav v-if="props.navData" :nav-data="props.navData" :has-perm="true" :tag-map="tagMap" />
|
|
46
|
-
</slot>
|
|
47
|
-
</div>
|
|
48
|
-
<!-- toolbar -->
|
|
49
|
-
<div v-if="$slots.toolbar" class="header-toolbar">
|
|
50
|
-
<slot name="toolbar"></slot>
|
|
51
|
-
</div>
|
|
52
|
-
</ContentWrapper>
|
|
53
|
-
</div>
|
|
54
|
-
</template>
|
|
55
|
-
|
|
56
|
-
<style lang="scss" scoped>
|
|
57
|
-
.header {
|
|
58
|
-
background-color: var(--o-color-fill2);
|
|
59
|
-
position: relative;
|
|
60
|
-
z-index: 999;
|
|
61
|
-
box-shadow: 0 3px 9px 0 rgba(0, 18, 85, 0.08);
|
|
62
|
-
backdrop-filter: blur(5px);
|
|
63
|
-
--o-header-height: 72px;
|
|
64
|
-
}
|
|
65
|
-
.header-wrap {
|
|
66
|
-
display: flex;
|
|
67
|
-
align-items: center;
|
|
68
|
-
height: var(--o-header-height);
|
|
69
|
-
}
|
|
70
|
-
.header-logo {
|
|
71
|
-
height: 100%;
|
|
72
|
-
display: flex;
|
|
73
|
-
align-items: center;
|
|
74
|
-
cursor: pointer;
|
|
75
|
-
margin-right: 24px;
|
|
76
|
-
flex-shrink: 0;
|
|
77
|
-
@include respond-to('<=pad_v') {
|
|
78
|
-
width: 100%;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
.logo {
|
|
82
|
-
height: 32px;
|
|
83
|
-
}
|
|
84
|
-
.header-nav {
|
|
85
|
-
flex: 1;
|
|
86
|
-
height: 100%;
|
|
87
|
-
overflow: hidden;
|
|
88
|
-
}
|
|
89
|
-
.header-content {
|
|
90
|
-
flex: 1;
|
|
91
|
-
min-width: 0;
|
|
92
|
-
height: 100%;
|
|
93
|
-
}
|
|
94
|
-
.header-toolbar {
|
|
95
|
-
height: 100%;
|
|
96
|
-
}
|
|
97
|
-
</style>
|