zjh-web-ui 1.0.10

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 (175) hide show
  1. package/README.md +1 -0
  2. package/config/resolver.js +21 -0
  3. package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
  4. package/dist/components/AMapConfig.js +23 -0
  5. package/dist/components/HuiAMapMassMarkers/HuiAMapMassMarkers.vue.js +82 -0
  6. package/dist/components/HuiAMapMassMarkers/HuiAMapMassMarkers.vue2.js +4 -0
  7. package/dist/components/HuiAMapMassMarkers/index.js +7 -0
  8. package/dist/components/HuiAMapSearchAddress/HuiAMapSearchAddress.vue.js +7 -0
  9. package/dist/components/HuiAMapSearchAddress/HuiAMapSearchAddress.vue2.js +190 -0
  10. package/dist/components/HuiAMapSearchAddress/index.js +7 -0
  11. package/dist/components/HuiAMapSearchAddressDialog/HuiAMapSearchAddressDialog.vue.js +83 -0
  12. package/dist/components/HuiAMapSearchAddressDialog/HuiAMapSearchAddressDialog.vue2.js +4 -0
  13. package/dist/components/HuiAMapSearchAddressDialog/index.js +7 -0
  14. package/dist/components/HuiAMapSelectAddress/HuiAMapSelectAddress.vue.js +7 -0
  15. package/dist/components/HuiAMapSelectAddress/HuiAMapSelectAddress.vue2.js +178 -0
  16. package/dist/components/HuiAMapSelectAddress/index.js +7 -0
  17. package/dist/components/HuiAMapSelectAddressDialog/HuiAMapSelectAddressDialog.vue.js +83 -0
  18. package/dist/components/HuiAMapSelectAddressDialog/HuiAMapSelectAddressDialog.vue2.js +4 -0
  19. package/dist/components/HuiAMapSelectAddressDialog/index.js +7 -0
  20. package/dist/components/HuiCountDownButton/HuiCountDownButton.vue.js +63 -0
  21. package/dist/components/HuiCountDownButton/HuiCountDownButton.vue2.js +4 -0
  22. package/dist/components/HuiCountDownButton/index.js +7 -0
  23. package/dist/components/HuiDataView/HuiDataView.vue.js +7 -0
  24. package/dist/components/HuiDataView/HuiDataView.vue2.js +84 -0
  25. package/dist/components/HuiDataView/index.js +7 -0
  26. package/dist/components/HuiGridForm/HuiGridForm.vue.js +7 -0
  27. package/dist/components/HuiGridForm/HuiGridForm.vue2.js +223 -0
  28. package/dist/components/HuiGridForm/HuiGridFormHooks.js +21 -0
  29. package/dist/components/HuiGridForm/index.js +7 -0
  30. package/dist/components/HuiLineEditDialog/HuiLineEditDialog.vue.js +7 -0
  31. package/dist/components/HuiLineEditDialog/HuiLineEditDialog.vue2.js +167 -0
  32. package/dist/components/HuiLineEditDialog/index.js +7 -0
  33. package/dist/components/HuiLineEditPopover/HuiLineEditPopover.vue.js +7 -0
  34. package/dist/components/HuiLineEditPopover/HuiLineEditPopover.vue2.js +128 -0
  35. package/dist/components/HuiLineEditPopover/index.js +7 -0
  36. package/dist/components/HuiPreviewRichTextDialog/HuiPreviewRichTextDialog.vue.js +65 -0
  37. package/dist/components/HuiPreviewRichTextDialog/HuiPreviewRichTextDialog.vue2.js +4 -0
  38. package/dist/components/HuiPreviewRichTextDialog/index.js +7 -0
  39. package/dist/components/HuiRegionTreeDialog/HuiRegionTreeDialog.vue.js +118 -0
  40. package/dist/components/HuiRegionTreeDialog/HuiRegionTreeDialog.vue2.js +4 -0
  41. package/dist/components/HuiRegionTreeDialog/index.js +7 -0
  42. package/dist/components/HuiRegionTreeSelect/HuiRegionTreeSelect.vue.js +7 -0
  43. package/dist/components/HuiRegionTreeSelect/HuiRegionTreeSelect.vue2.js +59 -0
  44. package/dist/components/HuiRegionTreeSelect/index.js +7 -0
  45. package/dist/components/HuiSelectLoadStatus/HuiSelectLoadStatus.vue.js +44 -0
  46. package/dist/components/HuiSelectLoadStatus/HuiSelectLoadStatus.vue2.js +4 -0
  47. package/dist/components/HuiSelectLoadStatus/index.js +7 -0
  48. package/dist/components/HuiShowUrlDialog/HuiShowUrlDialog.vue.js +50 -0
  49. package/dist/components/HuiShowUrlDialog/HuiShowUrlDialog.vue2.js +4 -0
  50. package/dist/components/HuiShowUrlDialog/index.js +7 -0
  51. package/dist/components/HuiStringArrayInputDialog/HuiStringArrayInputDialog.vue.js +118 -0
  52. package/dist/components/HuiStringArrayInputDialog/HuiStringArrayInputDialog.vue2.js +4 -0
  53. package/dist/components/HuiStringArrayInputDialog/index.js +7 -0
  54. package/dist/components/HuiTags/HuiTags.vue.js +7 -0
  55. package/dist/components/HuiTags/HuiTags.vue2.js +28 -0
  56. package/dist/components/HuiTags/index.js +7 -0
  57. package/dist/components/HuiTagsMore/HuiTagsMore.vue.js +188 -0
  58. package/dist/components/HuiTagsMore/HuiTagsMore.vue2.js +4 -0
  59. package/dist/components/HuiTagsMore/index.js +7 -0
  60. package/dist/components/HuiTinymce/HuiTinymce.vue.js +37 -0
  61. package/dist/components/HuiTinymce/HuiTinymce.vue3.js +5 -0
  62. package/dist/components/HuiTinymce/HuiTinymceLinkHooks.js +99 -0
  63. package/dist/components/HuiTinymce/HuiTinymceSettingHooks.js +104 -0
  64. package/dist/components/HuiTinymce/index.js +8 -0
  65. package/dist/components/HuiTinymceDialog/HuiTinymceDialog.vue.js +96 -0
  66. package/dist/components/HuiTinymceDialog/HuiTinymceDialog.vue2.js +4 -0
  67. package/dist/components/HuiTinymceDialog/index.js +7 -0
  68. package/dist/components/HuiTip/HuiTip.vue.js +52 -0
  69. package/dist/components/HuiTip/HuiTip.vue2.js +4 -0
  70. package/dist/components/HuiTip/index.js +7 -0
  71. package/dist/components-install-list.js +47 -0
  72. package/dist/delegate.js +13 -0
  73. package/dist/directives/install-loadmore.js +7 -0
  74. package/dist/directives/select-loadmore.js +25 -0
  75. package/dist/hooks/useHuiDialog/useHuiDialog.js +20 -0
  76. package/dist/hooks/useHuiFormDialog/formDialogPropsDef.js +6 -0
  77. package/dist/hooks/useHuiFormDialog/useHuiFormDialog.js +109 -0
  78. package/dist/index.js +62 -0
  79. package/dist/install-helper/install.js +21 -0
  80. package/dist/style.css +1 -0
  81. package/dist/utils/hui-rules.js +142 -0
  82. package/dist/utils/hui-tool/index.js +7 -0
  83. package/dist/utils/hui-tool/message-box/index.js +33 -0
  84. package/dist/utils/hui-tool/message-box/message-box.vue.js +112 -0
  85. package/dist/utils/hui-tool/message-box/message-box.vue3.js +5 -0
  86. package/dist/utils/hui-tool/msg-tool.js +39 -0
  87. package/global.d.ts +40 -0
  88. package/package.json +44 -0
  89. package/src/css/common-font.scss +104 -0
  90. package/src/css/index.scss +1 -0
  91. package/types/components/AMapConfig.d.ts +2 -0
  92. package/types/components/HuiAMapMassMarkers/HuiAMapMassMarkers.vue.d.ts +105 -0
  93. package/types/components/HuiAMapMassMarkers/index.d.ts +107 -0
  94. package/types/components/HuiAMapMassMarkers/type.d.ts +58 -0
  95. package/types/components/HuiAMapSearchAddress/HuiAMapSearchAddress.vue.d.ts +76 -0
  96. package/types/components/HuiAMapSearchAddress/index.d.ts +77 -0
  97. package/types/components/HuiAMapSearchAddress/type.d.ts +19 -0
  98. package/types/components/HuiAMapSearchAddressDialog/HuiAMapSearchAddressDialog.vue.d.ts +38 -0
  99. package/types/components/HuiAMapSearchAddressDialog/index.d.ts +71 -0
  100. package/types/components/HuiAMapSearchAddressDialog/type.d.ts +17 -0
  101. package/types/components/HuiAMapSelectAddress/HuiAMapSelectAddress.vue.d.ts +76 -0
  102. package/types/components/HuiAMapSelectAddress/index.d.ts +77 -0
  103. package/types/components/HuiAMapSelectAddress/type.d.ts +19 -0
  104. package/types/components/HuiAMapSelectAddressDialog/HuiAMapSelectAddressDialog.vue.d.ts +38 -0
  105. package/types/components/HuiAMapSelectAddressDialog/index.d.ts +71 -0
  106. package/types/components/HuiAMapSelectAddressDialog/type.d.ts +17 -0
  107. package/types/components/HuiCountDownButton/HuiCountDownButton.vue.d.ts +44 -0
  108. package/types/components/HuiCountDownButton/index.d.ts +76 -0
  109. package/types/components/HuiCountDownButton/type.d.ts +20 -0
  110. package/types/components/HuiDataView/HuiDataView.vue.d.ts +60 -0
  111. package/types/components/HuiDataView/index.d.ts +109 -0
  112. package/types/components/HuiDataView/type.d.ts +49 -0
  113. package/types/components/HuiGridForm/HuiGridForm.vue.d.ts +77 -0
  114. package/types/components/HuiGridForm/HuiGridFormHooks.d.ts +4 -0
  115. package/types/components/HuiGridForm/index.d.ts +175 -0
  116. package/types/components/HuiGridForm/type.d.ts +67 -0
  117. package/types/components/HuiLineEditDialog/HuiLineEditDialog.vue.d.ts +75 -0
  118. package/types/components/HuiLineEditDialog/index.d.ts +173 -0
  119. package/types/components/HuiLineEditDialog/type.d.ts +86 -0
  120. package/types/components/HuiLineEditPopover/HuiLineEditPopover.vue.d.ts +74 -0
  121. package/types/components/HuiLineEditPopover/index.d.ts +133 -0
  122. package/types/components/HuiLineEditPopover/type.d.ts +23 -0
  123. package/types/components/HuiPreviewRichTextDialog/HuiPreviewRichTextDialog.vue.d.ts +31 -0
  124. package/types/components/HuiPreviewRichTextDialog/index.d.ts +22 -0
  125. package/types/components/HuiPreviewRichTextDialog/type.d.ts +4 -0
  126. package/types/components/HuiRegionTreeDialog/HuiRegionTreeDialog.vue.d.ts +53 -0
  127. package/types/components/HuiRegionTreeDialog/index.d.ts +68 -0
  128. package/types/components/HuiRegionTreeDialog/type.d.ts +24 -0
  129. package/types/components/HuiRegionTreeSelect/HuiRegionTreeSelect.vue.d.ts +25 -0
  130. package/types/components/HuiRegionTreeSelect/index.d.ts +29 -0
  131. package/types/components/HuiRegionTreeSelect/type.d.ts +6 -0
  132. package/types/components/HuiSelectLoadStatus/HuiSelectLoadStatus.vue.d.ts +14 -0
  133. package/types/components/HuiSelectLoadStatus/index.d.ts +33 -0
  134. package/types/components/HuiSelectLoadStatus/type.d.ts +11 -0
  135. package/types/components/HuiShowUrlDialog/HuiShowUrlDialog.vue.d.ts +37 -0
  136. package/types/components/HuiShowUrlDialog/index.d.ts +40 -0
  137. package/types/components/HuiShowUrlDialog/type.d.ts +11 -0
  138. package/types/components/HuiStringArrayInputDialog/HuiStringArrayInputDialog.vue.d.ts +44 -0
  139. package/types/components/HuiStringArrayInputDialog/index.d.ts +67 -0
  140. package/types/components/HuiStringArrayInputDialog/type.d.ts +33 -0
  141. package/types/components/HuiTags/HuiTags.vue.d.ts +37 -0
  142. package/types/components/HuiTags/index.d.ts +36 -0
  143. package/types/components/HuiTagsMore/HuiTagsMore.vue.d.ts +93 -0
  144. package/types/components/HuiTagsMore/index.d.ts +92 -0
  145. package/types/components/HuiTinymce/HuiTinymce.vue.d.ts +62 -0
  146. package/types/components/HuiTinymce/HuiTinymceLinkHooks.d.ts +3 -0
  147. package/types/components/HuiTinymce/HuiTinymceSettingHooks.d.ts +3 -0
  148. package/types/components/HuiTinymce/index.d.ts +66 -0
  149. package/types/components/HuiTinymce/type.d.ts +51 -0
  150. package/types/components/HuiTinymceDialog/HuiTinymceDialog.vue.d.ts +53 -0
  151. package/types/components/HuiTinymceDialog/index.d.ts +78 -0
  152. package/types/components/HuiTinymceDialog/type.d.ts +12 -0
  153. package/types/components/HuiTip/HuiTip.vue.d.ts +22 -0
  154. package/types/components/HuiTip/index.d.ts +99 -0
  155. package/types/components/HuiTip/type.d.ts +14 -0
  156. package/types/components-install-list.d.ts +3328 -0
  157. package/types/components.d.ts +21 -0
  158. package/types/delegate.d.ts +41 -0
  159. package/types/directives/index.d.ts +4 -0
  160. package/types/directives/install-loadmore.d.ts +7 -0
  161. package/types/directives/select-loadmore.d.ts +7 -0
  162. package/types/hooks/index.d.ts +3 -0
  163. package/types/hooks/useHuiDialog/useHuiDialog.d.ts +18 -0
  164. package/types/hooks/useHuiFormDialog/formDialogPropsDef.d.ts +3 -0
  165. package/types/hooks/useHuiFormDialog/type.d.ts +90 -0
  166. package/types/hooks/useHuiFormDialog/useHuiFormDialog.d.ts +32 -0
  167. package/types/index.d.ts +13 -0
  168. package/types/install-helper/install.d.ts +18 -0
  169. package/types/install-helper/typescript.d.ts +14 -0
  170. package/types/utils/hui-rules.d.ts +80 -0
  171. package/types/utils/hui-tool/index.d.ts +8 -0
  172. package/types/utils/hui-tool/message-box/index.d.ts +18 -0
  173. package/types/utils/hui-tool/message-box/message-box.vue.d.ts +36 -0
  174. package/types/utils/hui-tool/msg-tool.d.ts +26 -0
  175. package/types/utils/index.d.ts +2 -0
@@ -0,0 +1,71 @@
1
+ import { SFCWithInstall } from '../../install-helper/typescript';
2
+ import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ /**
4
+ * 地图选择位置弹窗
5
+ */
6
+ export declare const HuiAMapSelectAddressDialog: SFCWithInstall<DefineComponent<ExtractPropTypes<{
7
+ title: {
8
+ type: PropType<string>;
9
+ default: string;
10
+ };
11
+ iconPath: {
12
+ type: PropType<string>;
13
+ };
14
+ value: {
15
+ type: PropType<any>;
16
+ };
17
+ width: {
18
+ type: PropType<string>;
19
+ default: string;
20
+ };
21
+ height: {
22
+ type: PropType<string>;
23
+ };
24
+ disabled: {
25
+ type: PropType<boolean>;
26
+ };
27
+ showInput: {
28
+ type: PropType<boolean>;
29
+ };
30
+ iconClass: {
31
+ type: PropType<string>;
32
+ };
33
+ }>, {
34
+ open: (dataId?: string, info?: {}) => void;
35
+ close: () => void;
36
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
37
+ onSubmit: (poi: any) => void;
38
+ }, string, PublicProps, Readonly< ExtractPropTypes<{
39
+ title: {
40
+ type: PropType<string>;
41
+ default: string;
42
+ };
43
+ iconPath: {
44
+ type: PropType<string>;
45
+ };
46
+ value: {
47
+ type: PropType<any>;
48
+ };
49
+ width: {
50
+ type: PropType<string>;
51
+ default: string;
52
+ };
53
+ height: {
54
+ type: PropType<string>;
55
+ };
56
+ disabled: {
57
+ type: PropType<boolean>;
58
+ };
59
+ showInput: {
60
+ type: PropType<boolean>;
61
+ };
62
+ iconClass: {
63
+ type: PropType<string>;
64
+ };
65
+ }>> & Readonly<{
66
+ onOnSubmit?: (poi: any) => any;
67
+ }>, {
68
+ title: string;
69
+ width: string;
70
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>> & Record<string, any>;
71
+ export default HuiAMapSelectAddressDialog;
@@ -0,0 +1,17 @@
1
+ import { HuiAMapSelectAddressPropsType } from '../HuiAMapSelectAddress/type';
2
+
3
+ /**
4
+ * HuiAMapSelectAddressDialogPropsType 需要的props参数
5
+ */
6
+ export type HuiAMapSelectAddressDialogPropsType = HuiAMapSelectAddressPropsType & {
7
+ /** 弹窗宽度 */
8
+ width?: string;
9
+ /** 弹窗标题 */
10
+ title?: string;
11
+ };
12
+ /**
13
+ * HuiAMapSelectAddressDialog emit事件
14
+ */
15
+ export type HuiTinymceDialogEmitType = {
16
+ onSubmit: [poi: any];
17
+ };
@@ -0,0 +1,44 @@
1
+ import { HuiCountDownButtonPropsType } from './type.ts';
2
+ import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, PropType } from 'vue';
3
+
4
+ declare function resetState(): void;
5
+ declare const _default: DefineComponent<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<HuiCountDownButtonPropsType>, {
6
+ timeCount: number;
7
+ enableClass: string;
8
+ disableClass: string;
9
+ type: string;
10
+ }>>, {
11
+ resetState: typeof resetState;
12
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
13
+ click: (callback: (isStart?: boolean) => void) => void;
14
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<HuiCountDownButtonPropsType>, {
15
+ timeCount: number;
16
+ enableClass: string;
17
+ disableClass: string;
18
+ type: string;
19
+ }>>> & Readonly<{
20
+ onClick?: (callback: (isStart?: boolean) => void) => any;
21
+ }>, {
22
+ type: "button" | "text";
23
+ timeCount: string | number;
24
+ enableClass: string;
25
+ disableClass: string;
26
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
27
+ export default _default;
28
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
29
+ type __VLS_TypePropsToRuntimeProps<T> = {
30
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
31
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
32
+ } : {
33
+ type: PropType<T[K]>;
34
+ required: true;
35
+ };
36
+ };
37
+ type __VLS_WithDefaults<P, D> = {
38
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
39
+ default: D[K];
40
+ }> : P[K];
41
+ };
42
+ type __VLS_Prettify<T> = {
43
+ [K in keyof T]: T[K];
44
+ } & {};
@@ -0,0 +1,76 @@
1
+ import { SFCWithInstall } from '../../install-helper/typescript';
2
+ import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ /**
4
+ * 倒计时按钮
5
+ */
6
+ export declare const HuiCountDownButton: SFCWithInstall<DefineComponent<ExtractPropTypes<{
7
+ title: {
8
+ type: PropType<string>;
9
+ required: true;
10
+ };
11
+ type: {
12
+ type: PropType<"button" | "text">;
13
+ required: true;
14
+ default: string;
15
+ };
16
+ baseClass: {
17
+ type: PropType<string>;
18
+ required: true;
19
+ };
20
+ timeCount: {
21
+ type: PropType<string | number>;
22
+ required: true;
23
+ default: number;
24
+ };
25
+ enableClass: {
26
+ type: PropType<string>;
27
+ required: true;
28
+ default: string;
29
+ };
30
+ disableClass: {
31
+ type: PropType<string>;
32
+ required: true;
33
+ default: string;
34
+ };
35
+ }>, {
36
+ resetState: () => void;
37
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
38
+ click: (callback: (isStart?: boolean) => void) => void;
39
+ }, string, PublicProps, Readonly< ExtractPropTypes<{
40
+ title: {
41
+ type: PropType<string>;
42
+ required: true;
43
+ };
44
+ type: {
45
+ type: PropType<"button" | "text">;
46
+ required: true;
47
+ default: string;
48
+ };
49
+ baseClass: {
50
+ type: PropType<string>;
51
+ required: true;
52
+ };
53
+ timeCount: {
54
+ type: PropType<string | number>;
55
+ required: true;
56
+ default: number;
57
+ };
58
+ enableClass: {
59
+ type: PropType<string>;
60
+ required: true;
61
+ default: string;
62
+ };
63
+ disableClass: {
64
+ type: PropType<string>;
65
+ required: true;
66
+ default: string;
67
+ };
68
+ }>> & Readonly<{
69
+ onClick?: (callback: (isStart?: boolean) => void) => any;
70
+ }>, {
71
+ type: "button" | "text";
72
+ timeCount: string | number;
73
+ enableClass: string;
74
+ disableClass: string;
75
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>> & Record<string, any>;
76
+ export default HuiCountDownButton;
@@ -0,0 +1,20 @@
1
+ /**
2
+ * 接受的 props
3
+ */
4
+ export interface HuiCountDownButtonPropsType {
5
+ /** 按钮提示文本 */
6
+ title: string;
7
+ /** 基础样式 */
8
+ baseClass: string;
9
+ /** 倒计时时间 */
10
+ timeCount: number | string;
11
+ /** 倒计时未开始时的样式 */
12
+ enableClass: string;
13
+ /** 倒计时开始后的样式 */
14
+ disableClass: string;
15
+ /** 显示的类型 */
16
+ type: 'text' | 'button';
17
+ }
18
+ export type HuiCountDownButtonEmitType = {
19
+ "click": [callback: (isStart?: boolean) => void];
20
+ };
@@ -0,0 +1,60 @@
1
+ import { HuiDataViewProp } from './type';
2
+ import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, PropType } from 'vue';
3
+
4
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<HuiDataViewProp>, {
5
+ lineCount: number;
6
+ titleWidth: string;
7
+ }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<HuiDataViewProp>, {
8
+ lineCount: number;
9
+ titleWidth: string;
10
+ }>>> & Readonly<{}>, {
11
+ lineCount: number;
12
+ titleWidth: string | number;
13
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, Partial<Record<string, (_: {
14
+ prop: string;
15
+ value: string | string[];
16
+ title: string;
17
+ rightText?: string;
18
+ class?: string;
19
+ handler?: (item: any) => void;
20
+ type?: string;
21
+ }) => any>> & Partial<Record<string, (_: {
22
+ prop: string;
23
+ value: string | string[];
24
+ title: string;
25
+ rightText?: string;
26
+ class?: string;
27
+ handler?: (item: any) => void;
28
+ type?: string;
29
+ }) => any>> & Partial<Record<string, (_: {
30
+ prop: string;
31
+ value: string | string[];
32
+ title: string;
33
+ rightText?: string;
34
+ class?: string;
35
+ handler?: (item: any) => void;
36
+ type?: string;
37
+ }) => any>>>;
38
+ export default _default;
39
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
40
+ type __VLS_TypePropsToRuntimeProps<T> = {
41
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
42
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
43
+ } : {
44
+ type: PropType<T[K]>;
45
+ required: true;
46
+ };
47
+ };
48
+ type __VLS_WithDefaults<P, D> = {
49
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
50
+ default: D[K];
51
+ }> : P[K];
52
+ };
53
+ type __VLS_Prettify<T> = {
54
+ [K in keyof T]: T[K];
55
+ } & {};
56
+ type __VLS_WithTemplateSlots<T, S> = T & {
57
+ new (): {
58
+ $slots: S;
59
+ };
60
+ };
@@ -0,0 +1,109 @@
1
+ import { SFCWithInstall } from '../../install-helper/typescript';
2
+ import { CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps } from 'vue';
3
+ import { HuiDataViewConfig } from './type';
4
+ /**
5
+ * 组件导出
6
+ */
7
+ export declare const HuiDataView: SFCWithInstall<{
8
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
9
+ data: {
10
+ type: PropType<{
11
+ [key: string]: any;
12
+ }>;
13
+ };
14
+ config: {
15
+ type: PropType< HuiDataViewConfig[]>;
16
+ required: true;
17
+ };
18
+ lineCount: {
19
+ type: PropType<number>;
20
+ default: number;
21
+ };
22
+ titleWidth: {
23
+ type: PropType<string | number>;
24
+ default: string;
25
+ };
26
+ }>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
27
+ lineCount: number;
28
+ titleWidth: string | number;
29
+ }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
30
+ P: {};
31
+ B: {};
32
+ D: {};
33
+ C: {};
34
+ M: {};
35
+ Defaults: {};
36
+ }, Readonly< ExtractPropTypes<{
37
+ data: {
38
+ type: PropType<{
39
+ [key: string]: any;
40
+ }>;
41
+ };
42
+ config: {
43
+ type: PropType< HuiDataViewConfig[]>;
44
+ required: true;
45
+ };
46
+ lineCount: {
47
+ type: PropType<number>;
48
+ default: number;
49
+ };
50
+ titleWidth: {
51
+ type: PropType<string | number>;
52
+ default: string;
53
+ };
54
+ }>> & Readonly<{}>, {}, {}, {}, {}, {
55
+ lineCount: number;
56
+ titleWidth: string | number;
57
+ }>;
58
+ __isFragment?: never;
59
+ __isTeleport?: never;
60
+ __isSuspense?: never;
61
+ } & ComponentOptionsBase<Readonly< ExtractPropTypes<{
62
+ data: {
63
+ type: PropType<{
64
+ [key: string]: any;
65
+ }>;
66
+ };
67
+ config: {
68
+ type: PropType< HuiDataViewConfig[]>;
69
+ required: true;
70
+ };
71
+ lineCount: {
72
+ type: PropType<number>;
73
+ default: number;
74
+ };
75
+ titleWidth: {
76
+ type: PropType<string | number>;
77
+ default: string;
78
+ };
79
+ }>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
80
+ lineCount: number;
81
+ titleWidth: string | number;
82
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
83
+ $slots: Partial<Record<string, (_: {
84
+ prop: string;
85
+ value: string | string[];
86
+ title: string;
87
+ rightText?: string;
88
+ class?: string;
89
+ handler?: (item: any) => void;
90
+ type?: string;
91
+ }) => any>> & Partial<Record<string, (_: {
92
+ prop: string;
93
+ value: string | string[];
94
+ title: string;
95
+ rightText?: string;
96
+ class?: string;
97
+ handler?: (item: any) => void;
98
+ type?: string;
99
+ }) => any>> & Partial<Record<string, (_: {
100
+ prop: string;
101
+ value: string | string[];
102
+ title: string;
103
+ rightText?: string;
104
+ class?: string;
105
+ handler?: (item: any) => void;
106
+ type?: string;
107
+ }) => any>>;
108
+ })> & Record<string, any>;
109
+ export default HuiDataView;
@@ -0,0 +1,49 @@
1
+ export type HuiDataViewProp = {
2
+ /** 一行显示几个 */
3
+ lineCount?: number;
4
+ /** 标题列的宽度 */
5
+ titleWidth?: string | number;
6
+ /** 组件的配置 */
7
+ config: HuiDataViewConfig[];
8
+ /** 组件设置回显的值 */
9
+ data?: {
10
+ [key: string]: any;
11
+ };
12
+ };
13
+ export interface HuiDataViewConfig {
14
+ /**
15
+ * 表格项id
16
+ * @type {string}
17
+ */
18
+ prop: string;
19
+ /**
20
+ * 表格项的值
21
+ * @type {string | null}
22
+ */
23
+ value: string | null | string[];
24
+ /**
25
+ * 表格每一项的标题
26
+ * @type {string}
27
+ */
28
+ title: string;
29
+ /**
30
+ * 列表项右侧文字
31
+ * @type {string}
32
+ */
33
+ rightText?: string;
34
+ /**
35
+ * value项的动态class
36
+ * @type {string | null}
37
+ */
38
+ class?: string;
39
+ /**
40
+ * rightText的点击触发事件
41
+ * @type {function}
42
+ */
43
+ handler?: (item: any) => void;
44
+ /**
45
+ * 内容展示的类型,type== 'img' 那么显示图片
46
+ * @type {string}
47
+ */
48
+ type?: string;
49
+ }
@@ -0,0 +1,77 @@
1
+ import { HuiGridFormProp } from './type.ts';
2
+ import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, PropType } from 'vue';
3
+
4
+ declare function getData(isCheck?: boolean): any;
5
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<HuiGridFormProp>, {
6
+ /** 是否可以排序 */
7
+ handSort: boolean;
8
+ /** 是否可以删除 */
9
+ handDelete: boolean;
10
+ /** 是否可以进行添加 */
11
+ isCanAppend: boolean;
12
+ /** 组件的数据源 */
13
+ listData: () => any[];
14
+ /** 组件透传的class */
15
+ gridFromClass: string;
16
+ /** 底部添加按钮文案 */
17
+ btnText: string;
18
+ }>>, {
19
+ getData: typeof getData;
20
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
21
+ onRemoveItem: (item: any) => void;
22
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<HuiGridFormProp>, {
23
+ /** 是否可以排序 */
24
+ handSort: boolean;
25
+ /** 是否可以删除 */
26
+ handDelete: boolean;
27
+ /** 是否可以进行添加 */
28
+ isCanAppend: boolean;
29
+ /** 组件的数据源 */
30
+ listData: () => any[];
31
+ /** 组件透传的class */
32
+ gridFromClass: string;
33
+ /** 底部添加按钮文案 */
34
+ btnText: string;
35
+ }>>> & Readonly<{
36
+ onOnRemoveItem?: (item: any) => any;
37
+ }>, {
38
+ isCanAppend: boolean;
39
+ handSort: boolean;
40
+ handDelete: boolean;
41
+ listData: {
42
+ [key: string]: any;
43
+ }[];
44
+ gridFromClass: string;
45
+ btnText: string;
46
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, Partial<Record<any, (_: {
47
+ dataItem: any;
48
+ el: any;
49
+ prop: any;
50
+ }) => any>> & Partial<Record<`${any}-option`, (_: {
51
+ option: any;
52
+ prop: any;
53
+ propConfig: any;
54
+ }) => any>>>;
55
+ export default _default;
56
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
57
+ type __VLS_TypePropsToRuntimeProps<T> = {
58
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
59
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
60
+ } : {
61
+ type: PropType<T[K]>;
62
+ required: true;
63
+ };
64
+ };
65
+ type __VLS_WithDefaults<P, D> = {
66
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
67
+ default: D[K];
68
+ }> : P[K];
69
+ };
70
+ type __VLS_Prettify<T> = {
71
+ [K in keyof T]: T[K];
72
+ } & {};
73
+ type __VLS_WithTemplateSlots<T, S> = T & {
74
+ new (): {
75
+ $slots: S;
76
+ };
77
+ };
@@ -0,0 +1,4 @@
1
+ export declare const useDynamicList: () => {
2
+ moveItem: (arr: any, index: number, direction: string) => any;
3
+ removeItem: (arr: any, idx: number) => Promise<boolean>;
4
+ };