@opendesign-plus-test/components 0.0.1-rc.61 → 0.0.1-rc.62

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 (64) hide show
  1. package/dist/chunk-OElCookieNotice.cjs.js +1 -1
  2. package/dist/chunk-OElCookieNotice.es.js +148 -148
  3. package/dist/components/activity/OActivityApproval.vue.d.ts +8 -8
  4. package/dist/components/activity/OActivityForm.vue.d.ts +6 -6
  5. package/dist/components/activity/OActivityMyCalendar.vue.d.ts +2 -2
  6. package/dist/components/activity/index.d.ts +14 -14
  7. package/dist/components/{OPlusConfigProvider.vue.d.ts → config-provider/OPlusConfigProvider.vue.d.ts} +2 -2
  8. package/dist/components/config-provider/index.d.ts +27 -0
  9. package/dist/components/cookie-notice/OCookieNotice.vue.d.ts +17 -0
  10. package/dist/components/cookie-notice/index.d.ts +53 -0
  11. package/dist/components/{OFooter.vue.d.ts → footer/OFooter.vue.d.ts} +3 -3
  12. package/dist/components/footer/index.d.ts +89 -0
  13. package/dist/components/{OLanguageSwitcher.vue.d.ts → header/OHeaderLanguageSwitcher.vue.d.ts} +4 -4
  14. package/dist/components/{OHeaderSearch.vue.d.ts → header/OHeaderSearch.vue.d.ts} +145 -145
  15. package/dist/components/header/OHeaderSourceCode.vue.d.ts +18 -0
  16. package/dist/components/header/OHeaderTheme.vue.d.ts +25 -0
  17. package/dist/components/{OHeaderUser.vue.d.ts → header/OHeaderUser.vue.d.ts} +7 -7
  18. package/dist/components/header/index.d.ts +805 -1
  19. package/dist/components/meeting/OMeetingCalendar.vue.d.ts +2 -2
  20. package/dist/components/meeting/OMeetingForm.vue.d.ts +4 -4
  21. package/dist/components/meeting/OMeetingMyCalendar.vue.d.ts +2 -2
  22. package/dist/components/meeting/OMeetingPlayback.vue.d.ts +4 -4
  23. package/dist/components/meeting/components/OMeetingCalendarSelector.vue.d.ts +1 -1
  24. package/dist/components/meeting/components/OMeetingPlaybackVideo.vue.d.ts +1 -1
  25. package/dist/components/meeting/index.d.ts +8 -8
  26. package/dist/components/search/OSearchInput.vue.d.ts +34 -34
  27. package/dist/components/search/index.d.ts +22 -22
  28. package/dist/components/search/internal/SearchImageInput.vue.d.ts +21 -21
  29. package/dist/components/search/internal/SearchPanel.vue.d.ts +1 -1
  30. package/dist/components/{OSection.vue.d.ts → section/OSection.vue.d.ts} +4 -4
  31. package/dist/components/section/index.d.ts +47 -0
  32. package/dist/components.cjs.js +36 -36
  33. package/dist/components.css +1 -1
  34. package/dist/components.es.js +13221 -13200
  35. package/dist/index.d.ts +4 -14
  36. package/docs/design.md +2 -2
  37. package/package.json +1 -1
  38. package/scripts/generate-components-index.js +2 -44
  39. package/src/components/common/ClientOnly.vue +13 -0
  40. package/src/components/{OPlusConfigProvider.vue → config-provider/OPlusConfigProvider.vue} +2 -2
  41. package/src/components/config-provider/index.ts +10 -0
  42. package/src/components/{OCookieNotice.vue → cookie-notice/OCookieNotice.vue} +1 -1
  43. package/src/components/cookie-notice/index.ts +10 -0
  44. package/src/components/element-plus/OElCookieNotice.vue +1 -1
  45. package/src/components/events/OEventsApply.vue +87 -1
  46. package/src/components/events/OEventsList.vue +47 -2
  47. package/src/components/{OFooter.vue → footer/OFooter.vue} +4 -4
  48. package/src/components/footer/index.ts +10 -0
  49. package/src/components/{OHeaderSearch.vue → header/OHeaderSearch.vue} +4 -4
  50. package/src/components/{OSourceCode.vue → header/OHeaderSourceCode.vue} +2 -2
  51. package/src/components/{OThemeSwitcher.vue → header/OHeaderTheme.vue} +4 -4
  52. package/src/components/{OHeaderUser.vue → header/OHeaderUser.vue} +4 -4
  53. package/src/components/header/index.ts +38 -1
  54. package/src/components/meeting/OMeetingMyCalendar.vue +3 -9
  55. package/src/components/meeting/components/OMeetingCalendarList.vue +1 -0
  56. package/src/components/{OSection.vue → section/OSection.vue} +1 -1
  57. package/src/components/section/index.ts +10 -0
  58. package/src/i18n/zh.ts +2 -0
  59. package/src/index.ts +4 -38
  60. package/dist/components/OCookieNotice.vue.d.ts +0 -17
  61. package/dist/components/OSourceCode.vue.d.ts +0 -18
  62. package/dist/components/OThemeSwitcher.vue.d.ts +0 -25
  63. package/src/components/common/ClientOnlyWrapper.ts +0 -21
  64. /package/src/components/{OLanguageSwitcher.vue → header/OHeaderLanguageSwitcher.vue} +0 -0
@@ -59,10 +59,6 @@ const emits = defineEmits(['edit']);
59
59
  const nextLoading = ref(false);
60
60
  const bottomReached = ref(false);
61
61
  const headerRef = ref();
62
- const headerHeight = ref(0);
63
- const getHeaderHeight = () => {
64
- headerHeight.value = headerRef.value?.clientHeight || 0;
65
- };
66
62
 
67
63
  const getList = async () => {
68
64
  if (!props.getMeetingListRequest) {
@@ -597,7 +593,6 @@ const cancelActions = computed<DialogActionT[]>(() => {
597
593
  ref="scrollerRef"
598
594
  @scrollend="load"
599
595
  v-if="list.length"
600
- :style="{ '--header-height': headerHeight }"
601
596
  class="scroller-container"
602
597
  show-type="hover"
603
598
  >
@@ -817,7 +812,7 @@ const cancelActions = computed<DialogActionT[]>(() => {
817
812
  @include respond('phone') {
818
813
  flex-direction: column;
819
814
  gap: var(--o-gap-3);
820
- --phone-padding-top: calc(var(--o-gap-5) + var(--o-gap-3) + var(--o-gap-3));
815
+ --phone-padding-top: 56px;
821
816
  }
822
817
 
823
818
  .o-loading {
@@ -855,9 +850,7 @@ const cancelActions = computed<DialogActionT[]>(() => {
855
850
  }
856
851
 
857
852
  @include respond('phone') {
858
- padding-top: var(--o-gap-7);
859
853
  background-color: var(--o-color-fill1);
860
- padding-bottom: var(--o-gap-4);
861
854
  display: flex;
862
855
  position: fixed;
863
856
  height: var(--phone-padding-top);
@@ -1072,7 +1065,7 @@ const cancelActions = computed<DialogActionT[]>(() => {
1072
1065
 
1073
1066
  .scroller-container {
1074
1067
  height: 100%;
1075
- max-height: calc(var(--layout-left-height, 900px) - 4 * var(--o-gap-5) - var(--header-height) * 1px);
1068
+ max-height: calc(var(--layout-left-height, 900px) - 4 * var(--o-gap-5) - var(--header-height, 64) * 1px);
1076
1069
 
1077
1070
  @include respond('phone') {
1078
1071
  max-height: fit-content;
@@ -1374,6 +1367,7 @@ const cancelActions = computed<DialogActionT[]>(() => {
1374
1367
  .o-tag {
1375
1368
  background-color: var(--o-color-control2-light);
1376
1369
  border: none;
1370
+ font-weight: 400;
1377
1371
  }
1378
1372
  }
1379
1373
 
@@ -496,6 +496,7 @@ const computedList = computed<any[]>(() => {
496
496
  .o-tag {
497
497
  background-color: var(--o-color-control2-light);
498
498
  border: none;
499
+ font-weight: 400;
499
500
  }
500
501
  }
501
502
 
@@ -2,7 +2,7 @@
2
2
  import { isArray, OLink, OIcon } from '@opensig/opendesign';
3
3
  import IconChevronRight from '~icons/components/icon-chevron-right.svg';
4
4
 
5
- interface SectionPropsT {
5
+ export interface SectionPropsT {
6
6
  title?: string | Array<string>;
7
7
  subtitle?: string;
8
8
  full?: boolean;
@@ -0,0 +1,10 @@
1
+ import _OSection from './OSection.vue';
2
+ import type { App } from 'vue';
3
+
4
+ const OSection = Object.assign(_OSection, {
5
+ install(app: App) {
6
+ app.component('OSection', _OSection);
7
+ },
8
+ });
9
+
10
+ export { OSection };
package/src/i18n/zh.ts CHANGED
@@ -165,6 +165,8 @@ export default {
165
165
  'common.more': '更多',
166
166
  'cookie.desc': '我们使用cookie来确保您的高速浏览体验。继续浏览本站,即表示您同意我们使用cookie。',
167
167
  'cookie.about': '查看详情',
168
+ 'cookie.acceptAll': '全部接受',
169
+ 'cookie.saveSetting': '保存设置',
168
170
  'meeting.create': '创建',
169
171
  'meeting.createMeeting': '创建会议',
170
172
  'meeting.createActivity': '创建活动',
package/src/index.ts CHANGED
@@ -1,47 +1,13 @@
1
1
  // OpenDesignPlus Components 库入口文件
2
2
  // 此文件由 scripts/generate-components-index.js 自动生成
3
-
4
- import OCookieNotice from './components/OCookieNotice.vue';
5
- import OFooter from './components/OFooter.vue';
6
- import OHeaderSearch from './components/OHeaderSearch.vue';
7
- import OHeaderUser from './components/OHeaderUser.vue';
8
- import OLanguageSwitcher from './components/OLanguageSwitcher.vue';
9
- import OPlusConfigProvider from './components/OPlusConfigProvider.vue';
10
- import OSection from './components/OSection.vue';
11
- import OSourceCode from './components/OSourceCode.vue';
12
- import OThemeSwitcher from './components/OThemeSwitcher.vue';
13
-
14
- // 导出组件
15
- const components = {
16
- OCookieNotice,
17
- OFooter,
18
- OHeaderSearch,
19
- OHeaderUser,
20
- OLanguageSwitcher,
21
- OPlusConfigProvider,
22
- OSection,
23
- OSourceCode,
24
- OThemeSwitcher
25
- };
26
-
27
- // 导出单个组件
28
- export { OCookieNotice, OFooter, OHeaderSearch, OHeaderUser, OLanguageSwitcher, OPlusConfigProvider, OSection, OSourceCode, OThemeSwitcher };
29
-
30
- // 重新导出子目录中的组件
31
3
  export * from './components/activity';
32
4
  export * from './components/banner';
5
+ export * from './components/config-provider';
6
+ export * from './components/cookie-notice';
33
7
  export * from './components/element-plus';
34
8
  export * from './components/events';
9
+ export * from './components/footer';
35
10
  export * from './components/header';
36
11
  export * from './components/meeting';
37
12
  export * from './components/search';
38
-
39
- // 默认导出(用于Vue插件安装)
40
- export default {
41
- install: (app: any) => {
42
- // 注册所有组件
43
- Object.entries(components).forEach(([name, component]) => {
44
- app.component(name, component);
45
- });
46
- }
47
- };
13
+ export * from './components/section';
@@ -1,17 +0,0 @@
1
- type __VLS_Props = {
2
- visible?: boolean;
3
- community: string;
4
- detailUrl: string;
5
- wrapper?: string | HTMLElement;
6
- cookieDomain: string;
7
- };
8
- declare const _default: import('../../vue/dist/vue.esm-bundler.js').DefineComponent<__VLS_Props, {
9
- check(): void;
10
- }, {}, {}, {}, import('../../vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, import('../../vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, {} & {
11
- "update:visible": (value: boolean) => any;
12
- }, string, import('../../vue/dist/vue.esm-bundler.js').PublicProps, Readonly<__VLS_Props> & Readonly<{
13
- "onUpdate:visible"?: ((value: boolean) => any) | undefined;
14
- }>, {}, {}, {}, {}, string, import('../../vue/dist/vue.esm-bundler.js').ComponentProvideOptions, false, {
15
- cookieNoticeRef: HTMLDivElement;
16
- }, any>;
17
- export default _default;
@@ -1,18 +0,0 @@
1
- interface CodeItemT {
2
- label: string;
3
- href: string;
4
- icon?: string;
5
- target?: string;
6
- }
7
- interface CodePropsT {
8
- title?: string;
9
- options?: CodeItemT[];
10
- href?: string;
11
- target?: string;
12
- icon?: string;
13
- justify?: string;
14
- }
15
- declare const _default: import('../../vue/dist/vue.esm-bundler.js').DefineComponent<CodePropsT, {}, {}, {}, {}, import('../../vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, import('../../vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, {}, string, import('../../vue/dist/vue.esm-bundler.js').PublicProps, Readonly<CodePropsT> & Readonly<{}>, {
16
- justify: string;
17
- }, {}, {}, {}, string, import('../../vue/dist/vue.esm-bundler.js').ComponentProvideOptions, false, {}, HTMLDivElement>;
18
- export default _default;
@@ -1,25 +0,0 @@
1
- export interface OThemeSwitcherPropsT {
2
- theme?: string;
3
- type?: 'auto' | 'common' | 'mobile';
4
- lightValue?: string;
5
- darkValue?: string;
6
- disabled?: boolean;
7
- }
8
- export interface OThemeSwitcherEmitsT {
9
- (e: 'update:theme', value: string): void;
10
- (e: 'change', val: string): void;
11
- }
12
- declare const _default: import('../../vue/dist/vue.esm-bundler.js').DefineComponent<OThemeSwitcherPropsT, {}, {}, {}, {}, import('../../vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, import('../../vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, {} & {
13
- change: (val: string) => any;
14
- "update:theme": (value: string) => any;
15
- }, string, import('../../vue/dist/vue.esm-bundler.js').PublicProps, Readonly<OThemeSwitcherPropsT> & Readonly<{
16
- onChange?: ((val: string) => any) | undefined;
17
- "onUpdate:theme"?: ((value: string) => any) | undefined;
18
- }>, {
19
- disabled: boolean;
20
- type: "auto" | "common" | "mobile";
21
- theme: string;
22
- lightValue: string;
23
- darkValue: string;
24
- }, {}, {}, {}, string, import('../../vue/dist/vue.esm-bundler.js').ComponentProvideOptions, false, {}, HTMLDivElement>;
25
- export default _default;
@@ -1,21 +0,0 @@
1
- import { defineComponent, onMounted, ref, h, resolveComponent } from 'vue';
2
-
3
- const fallback = (slots: any) => {
4
- const show = ref(false);
5
-
6
- onMounted(() => {
7
- show.value = true;
8
- });
9
-
10
- return () => (show.value && slots.default ? slots.default() : null);
11
- };
12
-
13
- export default defineComponent({
14
- setup(_, { slots }) {
15
- const BuiltIn = resolveComponent('ClientOnly');
16
- if (BuiltIn && typeof BuiltIn !== 'string') {
17
- return () => h(BuiltIn, null, { default: () => slots.default ? slots.default() : null });
18
- }
19
- return fallback(slots);
20
- },
21
- });