yc-pro-components 0.0.41 → 0.0.43

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 (119) hide show
  1. package/es/component.mjs +2 -0
  2. package/es/components/index.d.ts +1 -0
  3. package/es/components/index.mjs +4 -0
  4. package/es/components/layout/index.d.ts +20 -20
  5. package/es/components/layout/src/index.vue.d.ts +1 -1
  6. package/es/components/page/index.d.ts +3568 -1940
  7. package/es/components/page/src/index.vue.d.ts +594 -19
  8. package/es/components/page/src/index.vue2.mjs +101 -30
  9. package/es/components/virtual-table/index.d.ts +646 -0
  10. package/es/components/virtual-table/index.mjs +8 -0
  11. package/es/components/virtual-table/src/index.vue.d.ts +139 -0
  12. package/es/components/virtual-table/src/index.vue.mjs +6 -0
  13. package/es/components/virtual-table/src/index.vue2.mjs +327 -0
  14. package/es/components/virtual-table/src/type.d.ts +295 -0
  15. package/es/components/virtual-table/src/type.mjs +1 -0
  16. package/es/components/virtual-table/src/use-column-adapter.d.ts +40 -0
  17. package/es/components/virtual-table/src/use-column-adapter.mjs +137 -0
  18. package/es/components/virtual-table/src/use-virtual-scroll.d.ts +35 -0
  19. package/es/components/virtual-table/src/use-virtual-scroll.mjs +71 -0
  20. package/es/components/virtual-table/src/use-virtual-selection.d.ts +40 -0
  21. package/es/components/virtual-table/src/use-virtual-selection.mjs +112 -0
  22. package/es/components/virtual-table/src/virtual-table-action-bar.d.ts +11 -0
  23. package/es/components/virtual-table/src/virtual-table-action-bar.mjs +121 -0
  24. package/es/components/virtual-table/src/virtual-table-cell-renderer.d.ts +16 -0
  25. package/es/components/virtual-table/src/virtual-table-cell-renderer.mjs +170 -0
  26. package/es/components/virtual-table/src/virtual-table-header-renderer.d.ts +10 -0
  27. package/es/components/virtual-table/src/virtual-table-header-renderer.mjs +51 -0
  28. package/es/components/virtual-table/style/css.d.ts +3 -0
  29. package/es/components/virtual-table/style/css.mjs +1 -0
  30. package/es/components/virtual-table/style/index.d.ts +12 -0
  31. package/es/components/virtual-table/style/index.mjs +1 -0
  32. package/es/components/yc-plus-page/src/index.vue.d.ts +2393 -1378
  33. package/es/components/yc-plus-page/src/index.vue.mjs +1 -1
  34. package/es/components/yc-plus-page/src/type.d.ts +8 -2
  35. package/es/dict/createDictStore.d.ts +55 -0
  36. package/es/dict/createDictStore.mjs +207 -0
  37. package/es/dict/index.d.ts +28 -0
  38. package/es/dict/index.mjs +1 -0
  39. package/es/dict/types.d.ts +150 -0
  40. package/es/dict/types.mjs +1 -0
  41. package/es/index.css +20 -1
  42. package/es/index.d.ts +2 -0
  43. package/es/index.mjs +5 -0
  44. package/es/yc-components/index.d.ts +2 -0
  45. package/index.css +111 -6
  46. package/index.js +2085 -177
  47. package/index.min.css +2 -1
  48. package/index.min.js +18 -7
  49. package/index.min.mjs +18 -7
  50. package/index.mjs +2083 -180
  51. package/lib/component.js +42 -40
  52. package/lib/components/index.d.ts +1 -0
  53. package/lib/components/index.js +98 -90
  54. package/lib/components/layout/index.d.ts +20 -20
  55. package/lib/components/layout/src/index.vue.d.ts +1 -1
  56. package/lib/components/page/index.d.ts +3568 -1940
  57. package/lib/components/page/src/index.vue.d.ts +594 -19
  58. package/lib/components/page/src/index.vue2.js +106 -35
  59. package/lib/components/virtual-table/index.d.ts +646 -0
  60. package/lib/components/virtual-table/index.js +13 -0
  61. package/lib/components/virtual-table/src/index.vue.d.ts +139 -0
  62. package/lib/components/virtual-table/src/index.vue.js +10 -0
  63. package/lib/components/virtual-table/src/index.vue2.js +331 -0
  64. package/lib/components/virtual-table/src/type.d.ts +295 -0
  65. package/lib/components/virtual-table/src/type.js +2 -0
  66. package/lib/components/virtual-table/src/use-column-adapter.d.ts +40 -0
  67. package/lib/components/virtual-table/src/use-column-adapter.js +139 -0
  68. package/lib/components/virtual-table/src/use-virtual-scroll.d.ts +35 -0
  69. package/lib/components/virtual-table/src/use-virtual-scroll.js +73 -0
  70. package/lib/components/virtual-table/src/use-virtual-selection.d.ts +40 -0
  71. package/lib/components/virtual-table/src/use-virtual-selection.js +114 -0
  72. package/lib/components/virtual-table/src/virtual-table-action-bar.d.ts +11 -0
  73. package/lib/components/virtual-table/src/virtual-table-action-bar.js +123 -0
  74. package/lib/components/virtual-table/src/virtual-table-cell-renderer.d.ts +16 -0
  75. package/lib/components/virtual-table/src/virtual-table-cell-renderer.js +172 -0
  76. package/lib/components/virtual-table/src/virtual-table-header-renderer.d.ts +10 -0
  77. package/lib/components/virtual-table/src/virtual-table-header-renderer.js +53 -0
  78. package/lib/components/virtual-table/style/css.d.ts +3 -0
  79. package/lib/components/virtual-table/style/css.js +2 -0
  80. package/lib/components/virtual-table/style/index.d.ts +12 -0
  81. package/lib/components/virtual-table/style/index.js +2 -0
  82. package/lib/components/yc-plus-page/src/index.vue.d.ts +2393 -1378
  83. package/lib/components/yc-plus-page/src/index.vue.js +1 -1
  84. package/lib/components/yc-plus-page/src/type.d.ts +8 -2
  85. package/lib/dict/createDictStore.d.ts +55 -0
  86. package/lib/dict/createDictStore.js +209 -0
  87. package/lib/dict/index.d.ts +28 -0
  88. package/lib/dict/index.js +7 -0
  89. package/lib/dict/types.d.ts +150 -0
  90. package/lib/dict/types.js +2 -0
  91. package/lib/index.css +20 -1
  92. package/lib/index.d.ts +2 -0
  93. package/lib/index.js +145 -135
  94. package/lib/yc-components/index.d.ts +2 -0
  95. package/locale/en.js +1 -1
  96. package/locale/en.min.js +1 -1
  97. package/locale/en.min.mjs +1 -1
  98. package/locale/en.mjs +1 -1
  99. package/locale/ja.js +1 -1
  100. package/locale/ja.min.js +1 -1
  101. package/locale/ja.min.mjs +1 -1
  102. package/locale/ja.mjs +1 -1
  103. package/locale/ko.js +1 -1
  104. package/locale/ko.min.js +1 -1
  105. package/locale/ko.min.mjs +1 -1
  106. package/locale/ko.mjs +1 -1
  107. package/locale/zh-cn.js +1 -1
  108. package/locale/zh-cn.min.js +1 -1
  109. package/locale/zh-cn.min.mjs +1 -1
  110. package/locale/zh-cn.mjs +1 -1
  111. package/locale/zh-tw.js +1 -1
  112. package/locale/zh-tw.min.js +1 -1
  113. package/locale/zh-tw.min.mjs +1 -1
  114. package/locale/zh-tw.mjs +1 -1
  115. package/package.json +3 -2
  116. package/theme-chalk/index.css +1 -1
  117. package/theme-chalk/plus-virtual-table.css +1 -0
  118. package/theme-chalk/src/index.scss +3 -0
  119. package/theme-chalk/src/virtual-table.scss +128 -0
package/es/component.mjs CHANGED
@@ -20,6 +20,7 @@ import { PlusHeader } from './components/header/index.mjs';
20
20
  import { PlusLayout } from './components/layout/index.mjs';
21
21
  import { PlusCheckCard } from './components/check-card/index.mjs';
22
22
  import { PlusCheckCardGroup } from './components/check-card-group/index.mjs';
23
+ import { PlusVirtualTable } from './components/virtual-table/index.mjs';
23
24
  import { YcConfigProvider } from './components/yc-config-provider/index.mjs';
24
25
  import { YcPlusPage } from './components/yc-plus-page/index.mjs';
25
26
  import YcSelectV2 from './components/yc-select-v2/src/index.vue.mjs';
@@ -77,6 +78,7 @@ const plugins = [
77
78
  PlusLayout,
78
79
  PlusCheckCard,
79
80
  PlusCheckCardGroup,
81
+ PlusVirtualTable,
80
82
  // Yc 组件
81
83
  YcConfigProvider,
82
84
  YcPlusPage,
@@ -20,6 +20,7 @@ export * from './header';
20
20
  export * from './layout';
21
21
  export * from './check-card';
22
22
  export * from './check-card-group';
23
+ export * from './virtual-table';
23
24
  export * from './yc-config-provider';
24
25
  export * from './yc-plus-page';
25
26
  export * from './yc-select-v2';
@@ -20,6 +20,7 @@ export { PlusHeader } from './header/index.mjs';
20
20
  export { PlusLayout } from './layout/index.mjs';
21
21
  export { PlusCheckCard } from './check-card/index.mjs';
22
22
  export { PlusCheckCardGroup } from './check-card-group/index.mjs';
23
+ export { PlusVirtualTable } from './virtual-table/index.mjs';
23
24
  export { YcConfigProvider as ReConfigProvider, YcConfigProvider } from './yc-config-provider/index.mjs';
24
25
  export { RePlusPage, YcPlusPage, YcTableHeaderFilterCell } from './yc-plus-page/index.mjs';
25
26
  export { RePlusTree, YcPlusTree } from './yc-plus-tree/index.mjs';
@@ -39,6 +40,9 @@ export { YcSegmentedWithInstall } from './yc-segmented/index.mjs';
39
40
  export { YcAnimateSelectorWithInstall } from './yc-animate-selector/index.mjs';
40
41
  export { YcDownloadDialogWithInstall } from './yc-download-dialog/index.mjs';
41
42
  export { YcTabsWithFilterWithInstall } from './yc-tabs-with-filter/index.mjs';
43
+ export { useColumnAdapter } from './virtual-table/src/use-column-adapter.mjs';
44
+ export { useVirtualSelection } from './virtual-table/src/use-virtual-selection.mjs';
45
+ export { useVirtualScroll } from './virtual-table/src/use-virtual-scroll.mjs';
42
46
  export { DEFAULT_CDN_CONFIG, DEFAULT_YC_CONFIG, YC_CONFIG_KEY } from './yc-config-provider/src/type.mjs';
43
47
  export { useYcAuth, useYcCdn, useYcCdnUrl, useYcComponentConfig, useYcConfig, useYcPerms, useYcShowPageSearch, useYcTranslate } from './yc-config-provider/src/useYcConfig.mjs';
44
48
  export { useHeaderFilter } from './yc-plus-page/src/use-header-filter.mjs';
@@ -1,11 +1,15 @@
1
1
  import { NavigationFailure } from 'vue-router';
2
2
  import { EpPropFinalized, EpPropMergeType } from 'element-plus/es/utils';
3
3
  import { ScrollbarProps, BacktopProps, PopperEffect, MenuItemClicked } from 'element-plus';
4
- import { Mutable, RecordType, PlusSidebarProps, PlusHeaderProps, PlusBreadcrumbProps, PlusRouteRecordRaw, RenderTypes } from 'packages/yc-components';
4
+ import { PlusHeaderProps, Mutable, RecordType, PlusSidebarProps, PlusBreadcrumbProps, PlusRouteRecordRaw, RenderTypes } from 'packages/yc-components';
5
5
  import { CreateComponentPublicInstance, ExtractPropTypes, PropType, CSSProperties, Ref, ComponentInternalInstance, ComputedRef, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, Component, VNode, RendererNode, RendererElement, ComponentOptionsMixin, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties } from 'vue';
6
6
  export type { PlusLayoutProps } from './src/index.vue';
7
7
  export declare const PlusLayout: {
8
8
  new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
9
+ headerProps: {
10
+ type: PropType<PlusHeaderProps>;
11
+ default: undefined;
12
+ };
9
13
  scrollbarProps: {
10
14
  type: PropType<Partial< Mutable<ScrollbarProps> & {
11
15
  style?: CSSProperties | undefined;
@@ -31,10 +35,6 @@ export declare const PlusLayout: {
31
35
  type: PropType<PlusSidebarProps>;
32
36
  default: undefined;
33
37
  };
34
- headerProps: {
35
- type: PropType<PlusHeaderProps>;
36
- default: undefined;
37
- };
38
38
  breadcrumbProps: {
39
39
  type: PropType<PlusBreadcrumbProps>;
40
40
  default: undefined;
@@ -558,6 +558,10 @@ export declare const PlusLayout: {
558
558
  };
559
559
  }) | null | undefined>;
560
560
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
561
+ headerProps: {
562
+ type: PropType<PlusHeaderProps>;
563
+ default: undefined;
564
+ };
561
565
  scrollbarProps: {
562
566
  type: PropType<Partial< Mutable<ScrollbarProps> & {
563
567
  style?: CSSProperties | undefined;
@@ -583,10 +587,6 @@ export declare const PlusLayout: {
583
587
  type: PropType<PlusSidebarProps>;
584
588
  default: undefined;
585
589
  };
586
- headerProps: {
587
- type: PropType<PlusHeaderProps>;
588
- default: undefined;
589
- };
590
590
  breadcrumbProps: {
591
591
  type: PropType<PlusBreadcrumbProps>;
592
592
  default: undefined;
@@ -599,6 +599,7 @@ export declare const PlusLayout: {
599
599
  default: boolean;
600
600
  };
601
601
  }>>, {
602
+ headerProps: PlusHeaderProps;
602
603
  scrollbarProps: Partial< Mutable<ScrollbarProps> & {
603
604
  style?: CSSProperties | undefined;
604
605
  class?: any;
@@ -607,7 +608,6 @@ export declare const PlusLayout: {
607
608
  hasHeader: boolean;
608
609
  hasBreadcrumb: boolean;
609
610
  sidebarProps: PlusSidebarProps;
610
- headerProps: PlusHeaderProps;
611
611
  breadcrumbProps: PlusBreadcrumbProps;
612
612
  backtop: boolean | Partial< Mutable<BacktopProps> & {
613
613
  style?: CSSProperties | undefined;
@@ -621,6 +621,10 @@ export declare const PlusLayout: {
621
621
  M: {};
622
622
  Defaults: {};
623
623
  }, Readonly< ExtractPropTypes<{
624
+ headerProps: {
625
+ type: PropType<PlusHeaderProps>;
626
+ default: undefined;
627
+ };
624
628
  scrollbarProps: {
625
629
  type: PropType<Partial< Mutable<ScrollbarProps> & {
626
630
  style?: CSSProperties | undefined;
@@ -646,10 +650,6 @@ export declare const PlusLayout: {
646
650
  type: PropType<PlusSidebarProps>;
647
651
  default: undefined;
648
652
  };
649
- headerProps: {
650
- type: PropType<PlusHeaderProps>;
651
- default: undefined;
652
- };
653
653
  breadcrumbProps: {
654
654
  type: PropType<PlusBreadcrumbProps>;
655
655
  default: undefined;
@@ -1173,6 +1173,7 @@ export declare const PlusLayout: {
1173
1173
  };
1174
1174
  }) | null | undefined>;
1175
1175
  }, {}, {}, {}, {
1176
+ headerProps: PlusHeaderProps;
1176
1177
  scrollbarProps: Partial< Mutable<ScrollbarProps> & {
1177
1178
  style?: CSSProperties | undefined;
1178
1179
  class?: any;
@@ -1181,7 +1182,6 @@ export declare const PlusLayout: {
1181
1182
  hasHeader: boolean;
1182
1183
  hasBreadcrumb: boolean;
1183
1184
  sidebarProps: PlusSidebarProps;
1184
- headerProps: PlusHeaderProps;
1185
1185
  breadcrumbProps: PlusBreadcrumbProps;
1186
1186
  backtop: boolean | Partial< Mutable<BacktopProps> & {
1187
1187
  style?: CSSProperties | undefined;
@@ -1192,6 +1192,10 @@ export declare const PlusLayout: {
1192
1192
  __isTeleport?: undefined;
1193
1193
  __isSuspense?: undefined;
1194
1194
  } & ComponentOptionsBase<Readonly< ExtractPropTypes<{
1195
+ headerProps: {
1196
+ type: PropType<PlusHeaderProps>;
1197
+ default: undefined;
1198
+ };
1195
1199
  scrollbarProps: {
1196
1200
  type: PropType<Partial< Mutable<ScrollbarProps> & {
1197
1201
  style?: CSSProperties | undefined;
@@ -1217,10 +1221,6 @@ export declare const PlusLayout: {
1217
1221
  type: PropType<PlusSidebarProps>;
1218
1222
  default: undefined;
1219
1223
  };
1220
- headerProps: {
1221
- type: PropType<PlusHeaderProps>;
1222
- default: undefined;
1223
- };
1224
1224
  breadcrumbProps: {
1225
1225
  type: PropType<PlusBreadcrumbProps>;
1226
1226
  default: undefined;
@@ -1744,6 +1744,7 @@ export declare const PlusLayout: {
1744
1744
  };
1745
1745
  }) | null | undefined>;
1746
1746
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
1747
+ headerProps: PlusHeaderProps;
1747
1748
  scrollbarProps: Partial< Mutable<ScrollbarProps> & {
1748
1749
  style?: CSSProperties | undefined;
1749
1750
  class?: any;
@@ -1752,7 +1753,6 @@ export declare const PlusLayout: {
1752
1753
  hasHeader: boolean;
1753
1754
  hasBreadcrumb: boolean;
1754
1755
  sidebarProps: PlusSidebarProps;
1755
- headerProps: PlusHeaderProps;
1756
1756
  breadcrumbProps: PlusBreadcrumbProps;
1757
1757
  backtop: boolean | Partial< Mutable<BacktopProps> & {
1758
1758
  style?: CSSProperties | undefined;
@@ -560,6 +560,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
560
560
  always: boolean;
561
561
  };
562
562
  }>>>, {
563
+ headerProps: PlusHeaderProps;
563
564
  scrollbarProps: Partial<Mutable<ScrollbarProps> & {
564
565
  style?: CSSProperties | undefined;
565
566
  class?: any;
@@ -568,7 +569,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
568
569
  hasHeader: boolean;
569
570
  hasBreadcrumb: boolean;
570
571
  sidebarProps: PlusSidebarProps;
571
- headerProps: PlusHeaderProps;
572
572
  breadcrumbProps: PlusBreadcrumbProps;
573
573
  backtop: boolean | Partial<Mutable<BacktopProps> & {
574
574
  style?: CSSProperties | undefined;