3h1-ui 1.2.6 → 2.0.0

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 (166) hide show
  1. package/es/{ui/types/global.d.ts → global.d.ts} +102 -102
  2. package/es/{ui/types/index.d.ts → index.d.ts} +28 -28
  3. package/es/index.js +7751 -5410
  4. package/es/style.css +853 -625
  5. package/lib/global.d.ts +102 -0
  6. package/lib/index.d.ts +28 -0
  7. package/lib/index.js +7718 -5380
  8. package/package.json +8 -6
  9. package/es/ui/index.d.ts +0 -20
  10. package/es/ui/src/Basic/index.d.ts +0 -4
  11. package/es/ui/src/Basic/src/BasicHelp.vue.d.ts +0 -99
  12. package/es/ui/src/Basic/src/BasicTitle.vue.d.ts +0 -117
  13. package/es/ui/src/Button/index.d.ts +0 -5
  14. package/es/ui/src/Button/src/BasicButton.vue.d.ts +0 -2
  15. package/es/ui/src/Button/src/PopConfirmButton.vue.d.ts +0 -24
  16. package/es/ui/src/Button/src/props.d.ts +0 -37
  17. package/es/ui/src/ClickOutSide/index.d.ts +0 -2
  18. package/es/ui/src/ClickOutSide/src/ClickOutSide.vue.d.ts +0 -8
  19. package/es/ui/src/Container/index.d.ts +0 -5
  20. package/es/ui/src/Container/src/LazyContainer.vue.d.ts +0 -121
  21. package/es/ui/src/Container/src/ScrollContainer.vue.d.ts +0 -9
  22. package/es/ui/src/Container/src/collapse/CollapseContainer.vue.d.ts +0 -553
  23. package/es/ui/src/Container/src/collapse/CollapseHeader.vue.d.ts +0 -42
  24. package/es/ui/src/Container/src/typing.d.ts +0 -15
  25. package/es/ui/src/ContextMenu/index.d.ts +0 -3
  26. package/es/ui/src/ContextMenu/src/ContextMenu.vue.d.ts +0 -64
  27. package/es/ui/src/ContextMenu/src/createContextMenu.d.ts +0 -3
  28. package/es/ui/src/ContextMenu/src/typing.d.ts +0 -33
  29. package/es/ui/src/ContextMenu/src/useContextMenu.d.ts +0 -3
  30. package/es/ui/src/CountDown/index.d.ts +0 -3
  31. package/es/ui/src/CountDown/src/CountButton.vue.d.ts +0 -35
  32. package/es/ui/src/CountDown/src/CountdownInput.vue.d.ts +0 -41
  33. package/es/ui/src/CountDown/src/useCountdown.d.ts +0 -9
  34. package/es/ui/src/CountTo/index.d.ts +0 -2
  35. package/es/ui/src/CountTo/src/CountTo.vue.d.ts +0 -137
  36. package/es/ui/src/Cropper/index.d.ts +0 -4
  37. package/es/ui/src/Cropper/src/CopperModal.vue.d.ts +0 -39
  38. package/es/ui/src/Cropper/src/Cropper.vue.d.ts +0 -87
  39. package/es/ui/src/Cropper/src/CropperAvatar.vue.d.ts +0 -73
  40. package/es/ui/src/Cropper/src/typing.d.ts +0 -6
  41. package/es/ui/src/Description/index.d.ts +0 -4
  42. package/es/ui/src/Description/src/Description.vue.d.ts +0 -101
  43. package/es/ui/src/Description/src/typing.d.ts +0 -39
  44. package/es/ui/src/Description/src/useDescription.d.ts +0 -2
  45. package/es/ui/src/Drawer/index.d.ts +0 -3
  46. package/es/ui/src/Drawer/src/BasicDrawer.vue.d.ts +0 -170
  47. package/es/ui/src/Drawer/src/components/DrawerFooter.vue.d.ts +0 -95
  48. package/es/ui/src/Drawer/src/props.d.ts +0 -115
  49. package/es/ui/src/Drawer/src/typing.d.ts +0 -177
  50. package/es/ui/src/Drawer/src/useDrawer.d.ts +0 -6
  51. package/es/ui/src/Dropdown/index.d.ts +0 -3
  52. package/es/ui/src/Dropdown/src/typing.d.ts +0 -9
  53. package/es/ui/src/Form/index.d.ts +0 -13
  54. package/es/ui/src/Form/src/BasicForm.vue.d.ts +0 -2
  55. package/es/ui/src/Form/src/componentMap.d.ts +0 -6
  56. package/es/ui/src/Form/src/components/ApiCascader.vue.d.ts +0 -2
  57. package/es/ui/src/Form/src/components/ApiModalSelect/DeptTree.vue.d.ts +0 -130
  58. package/es/ui/src/Form/src/components/ApiModalSelect/Table.vue.d.ts +0 -11
  59. package/es/ui/src/Form/src/components/ApiRadioGroup.vue.d.ts +0 -2
  60. package/es/ui/src/Form/src/components/ApiSelect.vue.d.ts +0 -2
  61. package/es/ui/src/Form/src/components/ApiTransfer.vue.d.ts +0 -2
  62. package/es/ui/src/Form/src/components/ApiTree.vue.d.ts +0 -2
  63. package/es/ui/src/Form/src/components/ApiTreeSelect.vue.d.ts +0 -2
  64. package/es/ui/src/Form/src/components/FormAction.vue.d.ts +0 -2
  65. package/es/ui/src/Form/src/components/FormItem.vue.d.ts +0 -72
  66. package/es/ui/src/Form/src/components/RadioButtonGroup.vue.d.ts +0 -35
  67. package/es/ui/src/Form/src/helper.d.ts +0 -14
  68. package/es/ui/src/Form/src/hooks/useAutoFocus.d.ts +0 -10
  69. package/es/ui/src/Form/src/hooks/useComponentRegister.d.ts +0 -3
  70. package/es/ui/src/Form/src/hooks/useForm.d.ts +0 -10
  71. package/es/ui/src/Form/src/hooks/useFormContext.d.ts +0 -8
  72. package/es/ui/src/Form/src/hooks/useFormEvents.d.ts +0 -28
  73. package/es/ui/src/Form/src/hooks/useFormValues.d.ts +0 -13
  74. package/es/ui/src/Form/src/hooks/useLabelWidth.d.ts +0 -318
  75. package/es/ui/src/Form/src/props.d.ts +0 -2
  76. package/es/ui/src/Form/src/types/hooks.d.ts +0 -6
  77. package/es/ui/src/Icon/data/icons.data.d.ts +0 -2
  78. package/es/ui/src/Icon/index.d.ts +0 -5
  79. package/es/ui/src/Icon/src/SvgIcon.vue.d.ts +0 -45
  80. package/es/ui/src/Loading/index.d.ts +0 -4
  81. package/es/ui/src/Loading/src/Loading.vue.d.ts +0 -57
  82. package/es/ui/src/Loading/src/createLoading.d.ts +0 -13
  83. package/es/ui/src/Loading/src/typing.d.ts +0 -9
  84. package/es/ui/src/Loading/src/useLoading.d.ts +0 -11
  85. package/es/ui/src/Modal/index.d.ts +0 -4
  86. package/es/ui/src/Modal/src/components/BasicHelp.vue.d.ts +0 -99
  87. package/es/ui/src/Modal/src/components/BasicTitle.vue.d.ts +0 -117
  88. package/es/ui/src/Modal/src/components/Modal.d.ts +0 -10
  89. package/es/ui/src/Modal/src/components/ModalClose.vue.d.ts +0 -39
  90. package/es/ui/src/Modal/src/components/ModalFooter.vue.d.ts +0 -14
  91. package/es/ui/src/Modal/src/components/ModalHeader.vue.d.ts +0 -19
  92. package/es/ui/src/Modal/src/components/ModalWrapper.vue.d.ts +0 -95
  93. package/es/ui/src/Modal/src/components/ScrollContainer.vue.d.ts +0 -9
  94. package/es/ui/src/Modal/src/hooks/useAttrs.d.ts +0 -9
  95. package/es/ui/src/Modal/src/hooks/useContext.d.ts +0 -10
  96. package/es/ui/src/Modal/src/hooks/useDesign.d.ts +0 -22
  97. package/es/ui/src/Modal/src/hooks/useI18n.d.ts +0 -15
  98. package/es/ui/src/Modal/src/hooks/useModal.d.ts +0 -6
  99. package/es/ui/src/Modal/src/hooks/useModalContext.d.ts +0 -7
  100. package/es/ui/src/Modal/src/hooks/useModalDrag.d.ts +0 -7
  101. package/es/ui/src/Modal/src/hooks/useModalFullScreen.d.ts +0 -11
  102. package/es/ui/src/Modal/src/hooks/useScrollTo.d.ts +0 -10
  103. package/es/ui/src/Modal/src/hooks/useTimeout.d.ts +0 -10
  104. package/es/ui/src/Modal/src/hooks/useWindowSizeFn.d.ts +0 -7
  105. package/es/ui/src/Modal/src/props.d.ts +0 -34
  106. package/es/ui/src/Modal/src/typing.d.ts +0 -173
  107. package/es/ui/src/Modal/src/utils/index.d.ts +0 -5
  108. package/es/ui/src/Modal/src/utils/is.d.ts +0 -13
  109. package/es/ui/src/Modal/src/utils/log.d.ts +0 -2
  110. package/es/ui/src/Modal/src/utils/tsxHelper.d.ts +0 -13
  111. package/es/ui/src/Page/index.d.ts +0 -4
  112. package/es/ui/src/Page/src/PageFooter.vue.d.ts +0 -5
  113. package/es/ui/src/Scrollbar/index.d.ts +0 -6
  114. package/es/ui/src/Scrollbar/src/Scrollbar.vue.d.ts +0 -72
  115. package/es/ui/src/Scrollbar/src/bar.d.ts +0 -14
  116. package/es/ui/src/Scrollbar/src/types.d.ts +0 -18
  117. package/es/ui/src/Scrollbar/src/util.d.ts +0 -8
  118. package/es/ui/src/StrengthMeter/index.d.ts +0 -2
  119. package/es/ui/src/Table/index.d.ts +0 -11
  120. package/es/ui/src/Table/src/BasicTable.vue.d.ts +0 -2
  121. package/es/ui/src/Table/src/componentMap.d.ts +0 -6
  122. package/es/ui/src/Table/src/components/EditTableHeaderIcon.vue.d.ts +0 -14
  123. package/es/ui/src/Table/src/components/HeaderCell.vue.d.ts +0 -21
  124. package/es/ui/src/Table/src/components/TableAction.vue.d.ts +0 -2
  125. package/es/ui/src/Table/src/components/TableHeader.vue.d.ts +0 -40
  126. package/es/ui/src/Table/src/components/editable/CellComponent.d.ts +0 -10
  127. package/es/ui/src/Table/src/components/editable/helper.d.ts +0 -5
  128. package/es/ui/src/Table/src/components/editable/index.d.ts +0 -22
  129. package/es/ui/src/Table/src/components/settings/ColumnSetting.vue.d.ts +0 -29
  130. package/es/ui/src/Table/src/components/settings/FullScreenSetting.vue.d.ts +0 -6
  131. package/es/ui/src/Table/src/components/settings/ShowSearchSetting.vue.d.ts +0 -5
  132. package/es/ui/src/Table/src/components/settings/SizeSetting.vue.d.ts +0 -11
  133. package/es/ui/src/Table/src/components/settings/index.vue.d.ts +0 -23
  134. package/es/ui/src/Table/src/const.d.ts +0 -22
  135. package/es/ui/src/Table/src/hooks/useCustomRow.d.ts +0 -19
  136. package/es/ui/src/Table/src/hooks/useDataSource.d.ts +0 -28
  137. package/es/ui/src/Table/src/hooks/useLoading.d.ts +0 -6
  138. package/es/ui/src/Table/src/hooks/usePagination.d.ts +0 -10
  139. package/es/ui/src/Table/src/hooks/useRowSelection.d.ts +0 -12
  140. package/es/ui/src/Table/src/hooks/useScrollTo.d.ts +0 -4
  141. package/es/ui/src/Table/src/hooks/useTable.d.ts +0 -17
  142. package/es/ui/src/Table/src/hooks/useTableContext.d.ts +0 -13
  143. package/es/ui/src/Table/src/hooks/useTableExpand.d.ts +0 -14
  144. package/es/ui/src/Table/src/hooks/useTableFooter.d.ts +0 -9
  145. package/es/ui/src/Table/src/hooks/useTableForm.d.ts +0 -8
  146. package/es/ui/src/Table/src/hooks/useTableHeader.d.ts +0 -5
  147. package/es/ui/src/Table/src/hooks/useTableScroll.d.ts +0 -10
  148. package/es/ui/src/Table/src/hooks/useTableStyle.d.ts +0 -5
  149. package/es/ui/src/Table/src/props.d.ts +0 -2
  150. package/es/ui/src/Table/src/types/componentType.d.ts +0 -1
  151. package/es/ui/src/Table/src/types/pagination.d.ts +0 -93
  152. package/es/ui/src/Table/src/types/table.d.ts +0 -372
  153. package/es/ui/src/Table/src/types/tableAction.d.ts +0 -28
  154. package/es/ui/src/Transition/index.d.ts +0 -368
  155. package/es/ui/src/Transition/src/CollapseTransition.vue.d.ts +0 -11
  156. package/es/ui/src/Transition/src/CreateTransition.d.ts +0 -47
  157. package/es/ui/src/Transition/src/ExpandTransition.d.ts +0 -23
  158. package/es/ui/src/Tree/index.d.ts +0 -12
  159. package/es/ui/src/Tree/src/BasicTree.vue.d.ts +0 -94
  160. package/es/ui/src/Tree/src/TreeIcon.d.ts +0 -2
  161. package/es/ui/src/Tree/src/hooks/useTree.d.ts +0 -14
  162. package/es/ui/src/Tree/src/types/tree.d.ts +0 -105
  163. package/es/ui/src/Tree/style/index.d.ts +0 -0
  164. package/es/ui/src/directives/clickOutside.d.ts +0 -3
  165. package/es/ui/src/directives/index.d.ts +0 -1
  166. package/es/ui/src/enums/sizeEnum.d.ts +0 -11
@@ -1,13 +0,0 @@
1
- import { Slots } from 'vue';
2
- /**
3
- * @description: Get slot to prevent empty error
4
- */
5
- export declare function getSlot(slots: Slots, slot?: string, data?: any): import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
6
- [key: string]: any;
7
- }>[];
8
- /**
9
- * extends slots
10
- * @param slots
11
- * @param excludeKeys
12
- */
13
- export declare function extendSlots(slots: Slots, excludeKeys?: string[]): any;
@@ -1,4 +0,0 @@
1
- import PageFooter from './src/PageFooter.vue';
2
- import PageWrapper from './src/PageWrapper.vue';
3
- export { PageFooter, PageWrapper };
4
- export declare const PageWrapperFixedHeightKey = "PageWrapperFixedHeight";
@@ -1,5 +0,0 @@
1
- declare const _sfc_main: import("vue").DefineComponent<{}, {
2
- prefixCls: string;
3
- getCalcContentWidth: string;
4
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
5
- export default _sfc_main;
@@ -1,6 +0,0 @@
1
- /**
2
- * copy from element-ui
3
- */
4
- import Scrollbar from './src/Scrollbar.vue';
5
- export { Scrollbar };
6
- export type { ScrollbarType } from './src/types';
@@ -1,72 +0,0 @@
1
- declare const _sfc_main: import("vue").DefineComponent<{
2
- native: {
3
- type: BooleanConstructor;
4
- default: boolean;
5
- };
6
- wrapStyle: {
7
- type: (StringConstructor | ArrayConstructor)[];
8
- default: string;
9
- };
10
- wrapClass: {
11
- type: (StringConstructor | ArrayConstructor)[];
12
- default: string;
13
- };
14
- viewClass: {
15
- type: (StringConstructor | ArrayConstructor)[];
16
- default: string;
17
- };
18
- viewStyle: {
19
- type: (StringConstructor | ArrayConstructor)[];
20
- default: string;
21
- };
22
- noresize: BooleanConstructor;
23
- tag: {
24
- type: StringConstructor;
25
- default: string;
26
- };
27
- }, {
28
- moveX: import("vue").Ref<number>;
29
- moveY: import("vue").Ref<number>;
30
- sizeWidth: import("vue").Ref<string>;
31
- sizeHeight: import("vue").Ref<string>;
32
- style: import("vue").ComputedRef<string | Recordable<any>>;
33
- wrap: import("vue").Ref<any>;
34
- resize: import("vue").Ref<any>;
35
- update: () => void;
36
- handleScroll: () => void;
37
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
38
- native: {
39
- type: BooleanConstructor;
40
- default: boolean;
41
- };
42
- wrapStyle: {
43
- type: (StringConstructor | ArrayConstructor)[];
44
- default: string;
45
- };
46
- wrapClass: {
47
- type: (StringConstructor | ArrayConstructor)[];
48
- default: string;
49
- };
50
- viewClass: {
51
- type: (StringConstructor | ArrayConstructor)[];
52
- default: string;
53
- };
54
- viewStyle: {
55
- type: (StringConstructor | ArrayConstructor)[];
56
- default: string;
57
- };
58
- noresize: BooleanConstructor;
59
- tag: {
60
- type: StringConstructor;
61
- default: string;
62
- };
63
- }>>, {
64
- native: boolean;
65
- tag: string;
66
- wrapStyle: string | unknown[];
67
- wrapClass: string | unknown[];
68
- viewClass: string | unknown[];
69
- viewStyle: string | unknown[];
70
- noresize: boolean;
71
- }>;
72
- export default _sfc_main;
@@ -1,14 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{
2
- vertical: BooleanConstructor;
3
- size: StringConstructor;
4
- move: NumberConstructor;
5
- }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
6
- [key: string]: any;
7
- }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
8
- vertical: BooleanConstructor;
9
- size: StringConstructor;
10
- move: NumberConstructor;
11
- }>>, {
12
- vertical: boolean;
13
- }>;
14
- export default _default;
@@ -1,18 +0,0 @@
1
- export interface BarMapItem {
2
- offset: string
3
- scroll: string
4
- scrollSize: string
5
- size: string
6
- key: string
7
- axis: string
8
- client: string
9
- direction: string
10
- }
11
- export interface BarMap {
12
- vertical: BarMapItem
13
- horizontal: BarMapItem
14
- }
15
-
16
- export interface ScrollbarType {
17
- wrap: ElRef
18
- }
@@ -1,8 +0,0 @@
1
- import type { BarMap } from './types';
2
- export declare const BAR_MAP: BarMap;
3
- export declare function renderThumbStyle({ move, size, bar }: {
4
- move: any;
5
- size: any;
6
- bar: any;
7
- }): any;
8
- export declare function toObject<T>(arr: Array<T>): Recordable<T>;
@@ -1,2 +0,0 @@
1
- import StrengthMeter from './src/StrengthMeter.vue';
2
- export { StrengthMeter };
@@ -1,11 +0,0 @@
1
- export { default as BasicTable } from './src/BasicTable.vue';
2
- export { default as TableAction } from './src/components/TableAction.vue';
3
- export { default as EditTableHeaderIcon } from './src/components/EditTableHeaderIcon.vue';
4
- export { default as TableImg } from './src/components/TableImg.vue';
5
- export { default as TableDict } from './src/components/TableDict.vue';
6
- export * from './src/types/table';
7
- export * from './src/types/pagination';
8
- export * from './src/types/tableAction';
9
- export { useTable } from './src/hooks/useTable';
10
- export type { FormSchema, FormProps } from '../form/src/types/form';
11
- export type { EditRecordRow } from './src/components/editable';
@@ -1,2 +0,0 @@
1
- declare const _sfc_main: import("vue").DefineComponent<unknown, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<unknown>, {}>;
2
- export default _sfc_main;
@@ -1,6 +0,0 @@
1
- import type { Component } from 'vue';
2
- import type { ComponentType } from './types/componentType';
3
- declare const componentMap: Map<ComponentType, Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>;
4
- export declare function add(compName: ComponentType, component: Component): void;
5
- export declare function del(compName: ComponentType): void;
6
- export { componentMap };
@@ -1,14 +0,0 @@
1
- declare const _sfc_main: import("vue").DefineComponent<{
2
- title: {
3
- type: StringConstructor;
4
- default: string;
5
- };
6
- }, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
7
- title: {
8
- type: StringConstructor;
9
- default: string;
10
- };
11
- }>>, {
12
- title: string;
13
- }>;
14
- export default _sfc_main;
@@ -1,21 +0,0 @@
1
- import type { PropType } from 'vue';
2
- import type { BasicColumn } from '../types/table';
3
- declare const _sfc_main: import("vue").DefineComponent<{
4
- column: {
5
- type: PropType<BasicColumn>;
6
- default: () => {};
7
- };
8
- }, {
9
- prefixCls: string;
10
- getIsEdit: import("vue").ComputedRef<boolean>;
11
- getTitle: import("vue").ComputedRef<any>;
12
- getHelpMessage: import("vue").ComputedRef<any>;
13
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
14
- column: {
15
- type: PropType<BasicColumn>;
16
- default: () => {};
17
- };
18
- }>>, {
19
- column: {};
20
- }>;
21
- export default _sfc_main;
@@ -1,2 +0,0 @@
1
- declare const _sfc_main: import("vue").DefineComponent<unknown, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<unknown>, {}>;
2
- export default _sfc_main;
@@ -1,40 +0,0 @@
1
- import type { TableSetting, ColumnChangeParam } from '../types/table';
2
- import type { PropType } from 'vue';
3
- declare const _sfc_main: import("vue").DefineComponent<{
4
- title: {
5
- type: PropType<string | ((data: Recordable) => string)>;
6
- };
7
- tableSetting: {
8
- type: PropType<TableSetting>;
9
- };
10
- showTableSetting: {
11
- type: BooleanConstructor;
12
- };
13
- titleHelpMessage: {
14
- type: PropType<string | string[]>;
15
- default: string;
16
- };
17
- }, {
18
- prefixCls: string;
19
- handleColumnChange: (data: ColumnChangeParam[]) => void;
20
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "columns-change"[], "columns-change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
21
- title: {
22
- type: PropType<string | ((data: Recordable) => string)>;
23
- };
24
- tableSetting: {
25
- type: PropType<TableSetting>;
26
- };
27
- showTableSetting: {
28
- type: BooleanConstructor;
29
- };
30
- titleHelpMessage: {
31
- type: PropType<string | string[]>;
32
- default: string;
33
- };
34
- }>> & {
35
- "onColumns-change"?: (...args: any[]) => any;
36
- }, {
37
- showTableSetting: boolean;
38
- titleHelpMessage: string | string[];
39
- }>;
40
- export default _sfc_main;
@@ -1,10 +0,0 @@
1
- import type { FunctionalComponent } from 'vue';
2
- import type { ComponentType } from '../../types/componentType';
3
- export interface ComponentProps {
4
- component: ComponentType;
5
- rule: boolean;
6
- popoverVisible: boolean;
7
- ruleMessage: string;
8
- getPopupContainer?: Fn;
9
- }
10
- export declare const CellComponent: FunctionalComponent;
@@ -1,5 +0,0 @@
1
- import { ComponentType } from '../../types/componentType';
2
- /**
3
- * @description: 生成placeholder
4
- */
5
- export declare function createPlaceholderMessage(component: ComponentType): "" | "请输入" | "请选择";
@@ -1,22 +0,0 @@
1
- import type { BasicColumn } from '../../types/table';
2
- import { Ref } from 'vue';
3
- interface Params {
4
- text: string;
5
- record: Recordable;
6
- index: number;
7
- }
8
- export declare function renderEditCell(column: BasicColumn): ({ text, record, index }: Params) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
9
- [key: string]: any;
10
- }>;
11
- export declare type EditRecordRow<T = Recordable> = Partial<{
12
- onEdit: (editable: boolean, submit?: boolean) => Promise<boolean>;
13
- onValid: () => Promise<boolean>;
14
- editable: boolean;
15
- onCancel: Fn;
16
- onSubmit: Fn;
17
- submitCbs: Fn[];
18
- cancelCbs: Fn[];
19
- validCbs: Fn[];
20
- editValueRefs: Recordable<Ref>;
21
- } & T>;
22
- export {};
@@ -1,29 +0,0 @@
1
- import type { BasicColumn } from '../../types/table';
2
- import type { CheckboxChangeEvent } from 'ant-design-vue/lib/checkbox/interface';
3
- declare const _sfc_main: import("vue").DefineComponent<{}, {
4
- indeterminate: import("vue").ComputedRef<boolean>;
5
- onCheckAllChange: (e: CheckboxChangeEvent) => void;
6
- onChange: (checkedList: string[]) => void;
7
- plainOptions: any;
8
- reset: () => void;
9
- prefixCls: string;
10
- columnListRef: import("vue").Ref<{
11
- $el: HTMLDivElement;
12
- }>;
13
- handleVisibleChange: () => void;
14
- checkIndex: import("vue").Ref<boolean>;
15
- checkSelect: import("vue").Ref<boolean>;
16
- handleIndexCheckChange: (e: CheckboxChangeEvent) => void;
17
- handleSelectCheckChange: (e: CheckboxChangeEvent) => void;
18
- defaultRowSelection: Pick<import("../../types/table").TableRowSelection<Recordable<any>>, "type" | "onChange" | "onSelect" | "fixed" | "checkStrictly" | "columnWidth" | "onSelectAll" | "onSelectInvert" | "preserveSelectedRowKeys" | "defaultSelectedRowKeys" | "getCheckboxProps" | "onSelectMultiple" | "onSelectNone" | "selections" | "hideSelectAll" | "columnTitle" | "renderCell">;
19
- handleColumnFixed: (item: BasicColumn, fixed?: 'left' | 'right') => void;
20
- getPopupContainer: () => any;
21
- checkAll: import("vue").Ref<boolean>;
22
- isInit?: import("vue").Ref<boolean>;
23
- checkedList: import("vue").Ref<string[]>;
24
- defaultCheckList: import("vue").Ref<string[]>;
25
- t: (key: any) => any;
26
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "columns-change"[], "columns-change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
27
- "onColumns-change"?: (...args: any[]) => any;
28
- }, {}>;
29
- export default _sfc_main;
@@ -1,6 +0,0 @@
1
- declare const _sfc_main: import("vue").DefineComponent<{}, {
2
- toggle: () => Promise<void>;
3
- isFullscreen: import("vue").Ref<boolean>;
4
- t: (key: any) => any;
5
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
6
- export default _sfc_main;
@@ -1,5 +0,0 @@
1
- declare const _sfc_main: import("vue").DefineComponent<{}, {
2
- redo: () => void;
3
- t: (key: any) => any;
4
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
5
- export default _sfc_main;
@@ -1,11 +0,0 @@
1
- import type { SizeType } from '../../types/table';
2
- import { getPopupContainer } from '@shy-plugins/utils';
3
- declare const _sfc_main: import("vue").DefineComponent<{}, {
4
- handleTitleClick: ({ key }: {
5
- key: SizeType;
6
- }) => void;
7
- selectedKeysRef: import("vue").Ref<SizeType[]>;
8
- getPopupContainer: typeof getPopupContainer;
9
- t: (key: any) => any;
10
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
11
- export default _sfc_main;
@@ -1,23 +0,0 @@
1
- import type { PropType } from 'vue';
2
- import type { TableSetting, ColumnChangeParam } from '../../types/table';
3
- declare const _sfc_main: import("vue").DefineComponent<{
4
- setting: {
5
- type: PropType<TableSetting>;
6
- default: () => {};
7
- };
8
- }, {
9
- getSetting: import("vue").ComputedRef<TableSetting>;
10
- handleColumnChange: (data: ColumnChangeParam[]) => void;
11
- getTableContainer: () => HTMLElement;
12
- getBindValues: import("vue").ComputedRef<import("../../types/table").BasicTableProps<any>>;
13
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "columns-change"[], "columns-change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
14
- setting: {
15
- type: PropType<TableSetting>;
16
- default: () => {};
17
- };
18
- }>> & {
19
- "onColumns-change"?: (...args: any[]) => any;
20
- }, {
21
- setting: {};
22
- }>;
23
- export default _sfc_main;
@@ -1,22 +0,0 @@
1
- import { SorterResult } from './types/table';
2
- export declare const ROW_KEY = "key";
3
- export declare const PAGE_SIZE_OPTIONS: string[];
4
- export declare const PAGE_SIZE: number;
5
- export declare const FETCH_SETTING: {
6
- pageField: string;
7
- sizeField: string;
8
- listField: string;
9
- totalField: string;
10
- };
11
- export declare const DEFAULT_SIZE: string;
12
- export declare const DEFAULT_SORT_FN: (sortInfo: SorterResult) => {
13
- field: string;
14
- order: import("./types/table").SortOrder;
15
- } | {
16
- field?: undefined;
17
- order?: undefined;
18
- };
19
- export declare const DEFAULT_FILTER_FN: (data: Partial<Recordable<string[]>>) => Partial<Recordable<string[]>>;
20
- export declare const DEFAULT_ALIGN = "center";
21
- export declare const INDEX_COLUMN_FLAG = "INDEX";
22
- export declare const ACTION_COLUMN_FLAG = "ACTION";
@@ -1,19 +0,0 @@
1
- import type { ComputedRef } from 'vue';
2
- import type { BasicTableProps } from '../types/table';
3
- interface Options {
4
- setSelectedRowKeys: (keys: string[]) => void;
5
- getSelectRowKeys: () => string[];
6
- clearSelectedRowKeys: () => void;
7
- emit: EmitType;
8
- getAutoCreateKey: ComputedRef<boolean | undefined>;
9
- }
10
- export declare function useCustomRow(propsRef: ComputedRef<BasicTableProps>, { setSelectedRowKeys, getSelectRowKeys, getAutoCreateKey, clearSelectedRowKeys, emit }: Options): {
11
- customRow: (record: Recordable, index: number) => {
12
- onClick: (e: Event) => void;
13
- onDblclick: (event: Event) => void;
14
- onContextmenu: (event: Event) => void;
15
- onMouseenter: (event: Event) => void;
16
- onMouseleave: (event: Event) => void;
17
- };
18
- };
19
- export {};
@@ -1,28 +0,0 @@
1
- import type { BasicTableProps, FetchParams, SorterResult } from '../types/table';
2
- import type { PaginationProps } from '../types/pagination';
3
- import { ComputedRef, Ref } from 'vue';
4
- interface ActionType {
5
- getPaginationInfo: ComputedRef<boolean | PaginationProps>;
6
- setPagination: (info: Partial<PaginationProps>) => void;
7
- setLoading: (loading: boolean) => void;
8
- getFieldsValue: () => Recordable;
9
- clearSelectedRowKeys: () => void;
10
- tableData: Ref<Recordable[]>;
11
- }
12
- export declare function useDataSource(propsRef: ComputedRef<BasicTableProps>, { getPaginationInfo, setPagination, setLoading, getFieldsValue, clearSelectedRowKeys, tableData }: ActionType, emit: EmitType): {
13
- getDataSourceRef: ComputedRef<Recordable<any>[]>;
14
- getDataSource: <T = Recordable<any>>() => T[];
15
- getRawDataSource: <T_1 = Recordable<any>>() => T_1;
16
- getRowKey: ComputedRef<string | ((record: Recordable<any>) => string)>;
17
- setTableData: <T_2 = Recordable<any>>(values: T_2[]) => void;
18
- getAutoCreateKey: ComputedRef<boolean>;
19
- fetch: (opt?: FetchParams) => any;
20
- reload: (opt?: FetchParams) => Promise<any>;
21
- updateTableData: (index: number, key: string, value: any) => Promise<Recordable<any>>;
22
- updateTableDataRecord: (rowKey: string | number, record: Recordable) => Recordable | undefined;
23
- deleteTableDataRecord: (rowKey: string | number | string[] | number[]) => void;
24
- insertTableDataRecord: (record: Recordable, index: number) => Recordable | undefined;
25
- findTableDataRecord: (rowKey: string | number) => any;
26
- handleTableChange: (pagination: PaginationProps, filters: Partial<Recordable<string[]>>, sorter: SorterResult) => void;
27
- };
28
- export {};
@@ -1,6 +0,0 @@
1
- import { ComputedRef } from 'vue';
2
- import type { BasicTableProps } from '../types/table';
3
- export declare function useLoading(props: ComputedRef<BasicTableProps>): {
4
- getLoading: ComputedRef<boolean>;
5
- setLoading: (loading: boolean) => void;
6
- };
@@ -1,10 +0,0 @@
1
- import type { PaginationProps } from '../types/pagination';
2
- import type { BasicTableProps } from '../types/table';
3
- import { ComputedRef } from 'vue';
4
- export declare function usePagination(refProps: ComputedRef<BasicTableProps>): {
5
- getPagination: () => boolean | PaginationProps;
6
- getPaginationInfo: ComputedRef<boolean | PaginationProps>;
7
- setShowPagination: (flag: boolean) => Promise<void>;
8
- getShowPagination: () => boolean;
9
- setPagination: (info: Partial<PaginationProps>) => void;
10
- };
@@ -1,12 +0,0 @@
1
- import type { BasicTableProps, TableRowSelection } from '../types/table';
2
- import { ComputedRef, Ref } from 'vue';
3
- export declare function useRowSelection(propsRef: ComputedRef<BasicTableProps>, tableData: Ref<Recordable[]>, emit: EmitType): {
4
- getRowSelection: () => TableRowSelection<any>;
5
- getRowSelectionRef: ComputedRef<TableRowSelection<any>>;
6
- getSelectRows: <T = Recordable<any>>() => T[];
7
- getSelectRowKeys: () => string[];
8
- setSelectedRowKeys: (rowKeys: string[]) => void;
9
- clearSelectedRowKeys: () => void;
10
- deleteSelectRowByKey: (key: string) => void;
11
- setSelectedRows: (rows: Recordable[]) => void;
12
- };
@@ -1,4 +0,0 @@
1
- import type { ComputedRef, Ref } from 'vue';
2
- export declare function useTableScrollTo(tableElRef: Ref<ComponentRef>, getDataSourceRef: ComputedRef<Recordable[]>): {
3
- scrollTo: (pos: string) => void;
4
- };
@@ -1,17 +0,0 @@
1
- import type { BasicTableProps, TableActionType } from '../types/table';
2
- import type { FormActionType } from '../../../Form/src/types/form';
3
- import type { ComputedRef, Ref } from 'vue';
4
- declare type DynamicProps<T> = {
5
- [P in keyof T]: Ref<T[P]> | T[P] | ComputedRef<T[P]>;
6
- };
7
- declare type Props = Partial<DynamicProps<BasicTableProps>>;
8
- declare type UseTableMethod = TableActionType & {
9
- getForm: () => FormActionType;
10
- };
11
- export declare function useTable(tableProps?: Props): [
12
- (instance: TableActionType, formInstance: UseTableMethod) => void,
13
- TableActionType & {
14
- getForm: () => FormActionType;
15
- }
16
- ];
17
- export {};
@@ -1,13 +0,0 @@
1
- import type { Ref } from 'vue';
2
- import type { BasicTableProps, TableActionType } from '../types/table';
3
- import { ComputedRef } from 'vue';
4
- declare type Instance = TableActionType & {
5
- wrapRef: Ref<Nullable<HTMLElement>>;
6
- getBindValues: ComputedRef<Recordable>;
7
- };
8
- declare type RetInstance = Omit<Instance, 'getBindValues'> & {
9
- getBindValues: ComputedRef<BasicTableProps>;
10
- };
11
- export declare function createTableContext(instance: Instance): void;
12
- export declare function useTableContext(): RetInstance;
13
- export {};
@@ -1,14 +0,0 @@
1
- import type { ComputedRef, Ref } from 'vue';
2
- import type { BasicTableProps } from '../types/table';
3
- export declare function useTableExpand(propsRef: ComputedRef<BasicTableProps>, tableData: Ref<Recordable[]>, emit: EmitType): {
4
- getExpandOption: ComputedRef<{
5
- expandedRowKeys?: undefined;
6
- onExpandedRowsChange?: undefined;
7
- } | {
8
- expandedRowKeys: string[];
9
- onExpandedRowsChange: (keys: string[]) => void;
10
- }>;
11
- expandAll: () => void;
12
- expandRows: (keys: string[]) => void;
13
- collapseAll: () => void;
14
- };
@@ -1,9 +0,0 @@
1
- import type { ComputedRef, Ref } from 'vue';
2
- import type { BasicTableProps } from '../types/table';
3
- export declare function useTableFooter(propsRef: ComputedRef<BasicTableProps>, scrollRef: ComputedRef<{
4
- x: string | number | true;
5
- y: string | number | null;
6
- scrollToFirstRowOnChange: boolean;
7
- }>, tableElRef: Ref<ComponentRef>, getDataSourceRef: ComputedRef<Recordable>): {
8
- getFooterProps: ComputedRef<Recordable<any>>;
9
- };
@@ -1,8 +0,0 @@
1
- import type { ComputedRef, Slots } from 'vue';
2
- import type { BasicTableProps, FetchParams } from '../types/table';
3
- export declare function useTableForm(propsRef: ComputedRef<BasicTableProps>, slots: Slots, fetch: (opt?: FetchParams | undefined) => Promise<void>, getLoading: ComputedRef<boolean | undefined>): {
4
- getFormProps: ComputedRef<FormProps>;
5
- replaceFormSlotKey: (key: string) => string;
6
- getFormSlotKeys: ComputedRef<string[]>;
7
- handleSearchInfoChange: (info: Recordable) => void;
8
- };
@@ -1,5 +0,0 @@
1
- import type { ComputedRef, Slots } from 'vue';
2
- import type { BasicTableProps, InnerHandlers } from '../types/table';
3
- export declare function useTableHeader(propsRef: ComputedRef<BasicTableProps>, slots: Slots, handlers: InnerHandlers): {
4
- getHeaderProps: ComputedRef<Recordable<any>>;
5
- };
@@ -1,10 +0,0 @@
1
- import type { BasicTableProps, TableRowSelection, BasicColumn } from '../types/table';
2
- import { Ref, ComputedRef } from 'vue';
3
- export declare function useTableScroll(propsRef: ComputedRef<BasicTableProps>, tableElRef: Ref<ComponentRef>, columnsRef: ComputedRef<BasicColumn[]>, rowSelectionRef: ComputedRef<TableRowSelection | null>, getDataSourceRef: ComputedRef<Recordable[]>, wrapRef: Ref<HTMLElement | null>, formRef: Ref<ComponentRef>): {
4
- getScrollRef: ComputedRef<{
5
- x: string | number | true;
6
- y: string | number;
7
- scrollToFirstRowOnChange: boolean;
8
- }>;
9
- redoHeight: () => void;
10
- };
@@ -1,5 +0,0 @@
1
- import type { ComputedRef } from 'vue';
2
- import type { BasicTableProps, TableCustomRecord } from '../types/table';
3
- export declare function useTableStyle(propsRef: ComputedRef<BasicTableProps>, prefixCls: string): {
4
- getRowClassName: (record: TableCustomRecord, index: number) => string;
5
- };
@@ -1,2 +0,0 @@
1
- import VueTypes from 'vue-types';
2
- export declare const basicProps: VueTypes;
@@ -1 +0,0 @@
1
- export declare type ComponentType = 'Input' | 'InputNumber' | 'Select' | 'ApiSelect' | 'AutoComplete' | 'ApiTreeSelect' | 'Checkbox' | 'Switch' | 'DatePicker' | 'TimePicker' | 'RadioGroup' | 'RadioButtonGroup' | 'ApiRadioGroup';