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,175 @@
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 { HuiGridFormConfigItem } from './type';
4
+ /**
5
+ * 动态网格表单
6
+ */
7
+ export declare const HuiGridForm: SFCWithInstall<{
8
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
9
+ config: {
10
+ type: PropType< HuiGridFormConfigItem[]>;
11
+ required: true;
12
+ };
13
+ isCanAppend: {
14
+ type: PropType<boolean>;
15
+ default: boolean;
16
+ };
17
+ handSort: {
18
+ type: PropType<boolean>;
19
+ default: boolean;
20
+ };
21
+ handDelete: {
22
+ type: PropType<boolean>;
23
+ default: boolean;
24
+ };
25
+ listData: {
26
+ type: PropType<{
27
+ [key: string]: any;
28
+ }[]>;
29
+ default: () => any[];
30
+ };
31
+ gridFromClass: {
32
+ type: PropType<string>;
33
+ default: string;
34
+ };
35
+ isCanDeleteItem: {
36
+ type: PropType<(item: any, index: number) => boolean>;
37
+ };
38
+ btnText: {
39
+ type: PropType<string>;
40
+ default: string;
41
+ };
42
+ }>> & Readonly<{
43
+ onOnRemoveItem?: (item: any) => any;
44
+ }>, {
45
+ getData: (isCheck?: boolean) => any;
46
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
47
+ onRemoveItem: (item: any) => void;
48
+ }, PublicProps, {
49
+ isCanAppend: boolean;
50
+ handSort: boolean;
51
+ handDelete: boolean;
52
+ listData: {
53
+ [key: string]: any;
54
+ }[];
55
+ gridFromClass: string;
56
+ btnText: string;
57
+ }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
58
+ P: {};
59
+ B: {};
60
+ D: {};
61
+ C: {};
62
+ M: {};
63
+ Defaults: {};
64
+ }, Readonly< ExtractPropTypes<{
65
+ config: {
66
+ type: PropType< HuiGridFormConfigItem[]>;
67
+ required: true;
68
+ };
69
+ isCanAppend: {
70
+ type: PropType<boolean>;
71
+ default: boolean;
72
+ };
73
+ handSort: {
74
+ type: PropType<boolean>;
75
+ default: boolean;
76
+ };
77
+ handDelete: {
78
+ type: PropType<boolean>;
79
+ default: boolean;
80
+ };
81
+ listData: {
82
+ type: PropType<{
83
+ [key: string]: any;
84
+ }[]>;
85
+ default: () => any[];
86
+ };
87
+ gridFromClass: {
88
+ type: PropType<string>;
89
+ default: string;
90
+ };
91
+ isCanDeleteItem: {
92
+ type: PropType<(item: any, index: number) => boolean>;
93
+ };
94
+ btnText: {
95
+ type: PropType<string>;
96
+ default: string;
97
+ };
98
+ }>> & Readonly<{
99
+ onOnRemoveItem?: (item: any) => any;
100
+ }>, {
101
+ getData: (isCheck?: boolean) => any;
102
+ }, {}, {}, {}, {
103
+ isCanAppend: boolean;
104
+ handSort: boolean;
105
+ handDelete: boolean;
106
+ listData: {
107
+ [key: string]: any;
108
+ }[];
109
+ gridFromClass: string;
110
+ btnText: string;
111
+ }>;
112
+ __isFragment?: never;
113
+ __isTeleport?: never;
114
+ __isSuspense?: never;
115
+ } & ComponentOptionsBase<Readonly< ExtractPropTypes<{
116
+ config: {
117
+ type: PropType< HuiGridFormConfigItem[]>;
118
+ required: true;
119
+ };
120
+ isCanAppend: {
121
+ type: PropType<boolean>;
122
+ default: boolean;
123
+ };
124
+ handSort: {
125
+ type: PropType<boolean>;
126
+ default: boolean;
127
+ };
128
+ handDelete: {
129
+ type: PropType<boolean>;
130
+ default: boolean;
131
+ };
132
+ listData: {
133
+ type: PropType<{
134
+ [key: string]: any;
135
+ }[]>;
136
+ default: () => any[];
137
+ };
138
+ gridFromClass: {
139
+ type: PropType<string>;
140
+ default: string;
141
+ };
142
+ isCanDeleteItem: {
143
+ type: PropType<(item: any, index: number) => boolean>;
144
+ };
145
+ btnText: {
146
+ type: PropType<string>;
147
+ default: string;
148
+ };
149
+ }>> & Readonly<{
150
+ onOnRemoveItem?: (item: any) => any;
151
+ }>, {
152
+ getData: (isCheck?: boolean) => any;
153
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
154
+ onRemoveItem: (item: any) => void;
155
+ }, string, {
156
+ isCanAppend: boolean;
157
+ handSort: boolean;
158
+ handDelete: boolean;
159
+ listData: {
160
+ [key: string]: any;
161
+ }[];
162
+ gridFromClass: string;
163
+ btnText: string;
164
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
165
+ $slots: Partial<Record<any, (_: {
166
+ dataItem: any;
167
+ el: any;
168
+ prop: any;
169
+ }) => any>> & Partial<Record<`${any}-option`, (_: {
170
+ option: any;
171
+ prop: any;
172
+ propConfig: any;
173
+ }) => any>>;
174
+ })> & Record<string, any>;
175
+ export default HuiGridForm;
@@ -0,0 +1,67 @@
1
+ export type HuiGridFormProp = {
2
+ /** 是否可以进行添加 */
3
+ isCanAppend?: boolean;
4
+ /** 是否可以排序 */
5
+ handSort?: boolean;
6
+ /** 是否可以删除 */
7
+ handDelete?: boolean;
8
+ /** 组件的配置项 */
9
+ config: HuiGridFormConfigItem[];
10
+ /** 组件的数据源 */
11
+ listData?: {
12
+ [key: string]: any;
13
+ }[];
14
+ /** 组件透传的class */
15
+ gridFromClass?: string;
16
+ /** 是否可以删除的校验 */
17
+ isCanDeleteItem?: (item: any, index: number) => boolean;
18
+ /** 底部添加按钮文案 */
19
+ btnText?: string;
20
+ };
21
+ export interface HuiGridFormConfigItem {
22
+ /** 列表项的key */
23
+ prop: string;
24
+ /** 输入框append插槽显示的内容 */
25
+ append?: string;
26
+ /** 提示内容 */
27
+ placeholder?: string;
28
+ /** 显示输入框还是下拉选择 */
29
+ type?: 'input' | 'select';
30
+ /** 输入框数据类型 默认为number */
31
+ dataType?: string;
32
+ /** 输入框的style主要用来设置颜色 */
33
+ style?: string;
34
+ /** 下拉选择的数据字典 */
35
+ dict?: {
36
+ [key: string]: any;
37
+ }[];
38
+ /** 是否只读 */
39
+ readonly?: boolean;
40
+ /** 标题 */
41
+ title: string;
42
+ /** 错误提示信息 */
43
+ errMsg?: string;
44
+ /** 标题宽度 */
45
+ width: string;
46
+ /** v-bind其他属性值 */
47
+ attr?: {
48
+ [key: string]: any;
49
+ };
50
+ /** 是否必填 */
51
+ required?: boolean;
52
+ /** select 是否可以重复选择 */
53
+ reselected?: boolean;
54
+ /** 是否显示 x */
55
+ clearable?: boolean;
56
+ /** 是否还有option选项可以选择 */
57
+ isAllUsed?: boolean;
58
+ }
59
+ /**
60
+ * 定义emit类型
61
+ */
62
+ export type HuiGridFormEmitType = {
63
+ /**
64
+ * 删除后的自定义事件
65
+ */
66
+ "onRemoveItem": [item: any];
67
+ };
@@ -0,0 +1,75 @@
1
+ import { HuiLineEditDialogPropsType, HuiLineEditDialogComboItem } from './type';
2
+ import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, PropType } from 'vue';
3
+
4
+ declare const _default: DefineComponent<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<HuiLineEditDialogPropsType>, {
5
+ isNeedDoubleConfirm: boolean;
6
+ doubleConfirmTips: string;
7
+ title: string;
8
+ label: string;
9
+ type: string;
10
+ selectDic: () => any[];
11
+ isSelectMuti: boolean;
12
+ labelWidth: string;
13
+ attr: () => {};
14
+ formAttr: () => {};
15
+ permission: () => {};
16
+ }>>, {
17
+ open: (dataId?: string, info?: {}) => void;
18
+ close: () => void;
19
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
20
+ onSubmit: (row: any, prop: string) => void;
21
+ onValueChange: (form: any, row?: any) => void;
22
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<HuiLineEditDialogPropsType>, {
23
+ isNeedDoubleConfirm: boolean;
24
+ doubleConfirmTips: string;
25
+ title: string;
26
+ label: string;
27
+ type: string;
28
+ selectDic: () => any[];
29
+ isSelectMuti: boolean;
30
+ labelWidth: string;
31
+ attr: () => {};
32
+ formAttr: () => {};
33
+ permission: () => {};
34
+ }>>> & Readonly<{
35
+ onOnSubmit?: (row: any, prop: string) => any;
36
+ onOnValueChange?: (form: any, row?: any) => any;
37
+ }>, {
38
+ label: string;
39
+ title: string;
40
+ type: string;
41
+ isNeedDoubleConfirm: boolean;
42
+ permission: {
43
+ code?: string;
44
+ tip?: string;
45
+ checkRight?: () => boolean;
46
+ };
47
+ labelWidth: string;
48
+ selectDic: HuiLineEditDialogComboItem[];
49
+ isSelectMuti: boolean;
50
+ doubleConfirmTips: string;
51
+ attr: {
52
+ [key: string]: any;
53
+ };
54
+ formAttr: {
55
+ [key: string]: any;
56
+ };
57
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
58
+ export default _default;
59
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
60
+ type __VLS_TypePropsToRuntimeProps<T> = {
61
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
62
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
63
+ } : {
64
+ type: PropType<T[K]>;
65
+ required: true;
66
+ };
67
+ };
68
+ type __VLS_WithDefaults<P, D> = {
69
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
70
+ default: D[K];
71
+ }> : P[K];
72
+ };
73
+ type __VLS_Prettify<T> = {
74
+ [K in keyof T]: T[K];
75
+ } & {};
@@ -0,0 +1,173 @@
1
+ import { SFCWithInstall } from '../../install-helper/typescript';
2
+ import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ import { HuiLineEditDialogComboItem } from './type';
4
+ /**
5
+ * 组件导出
6
+ */
7
+ export declare const HuiLineEditDialog: SFCWithInstall<DefineComponent<ExtractPropTypes<{
8
+ label: {
9
+ type: PropType<string>;
10
+ default: string;
11
+ };
12
+ title: {
13
+ type: PropType<string>;
14
+ default: string;
15
+ };
16
+ type: {
17
+ type: PropType<string>;
18
+ default: string;
19
+ };
20
+ placeholder: {
21
+ type: PropType<string>;
22
+ };
23
+ isNeedDoubleConfirm: {
24
+ type: PropType<boolean>;
25
+ default: boolean;
26
+ };
27
+ permission: {
28
+ type: PropType<{
29
+ code?: string;
30
+ tip?: string;
31
+ checkRight?: () => boolean;
32
+ }>;
33
+ default: () => {};
34
+ };
35
+ prop: {
36
+ type: PropType<string>;
37
+ required: true;
38
+ };
39
+ labelWidth: {
40
+ type: PropType<string>;
41
+ required: true;
42
+ default: string;
43
+ };
44
+ rules: {
45
+ type: PropType<any>;
46
+ };
47
+ selectDic: {
48
+ type: PropType< HuiLineEditDialogComboItem[]>;
49
+ required: true;
50
+ default: () => any[];
51
+ };
52
+ isSelectMuti: {
53
+ type: PropType<boolean>;
54
+ required: true;
55
+ default: boolean;
56
+ };
57
+ doubleConfirmTips: {
58
+ type: PropType<string>;
59
+ default: string;
60
+ };
61
+ attr: {
62
+ type: PropType<{
63
+ [key: string]: any;
64
+ }>;
65
+ required: true;
66
+ default: () => {};
67
+ };
68
+ formAttr: {
69
+ type: PropType<{
70
+ [key: string]: any;
71
+ }>;
72
+ required: true;
73
+ default: () => {};
74
+ };
75
+ }>, {
76
+ open: (dataId?: string, info?: {}) => void;
77
+ close: () => void;
78
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
79
+ onSubmit: (row: any, prop: string) => void;
80
+ onValueChange: (form: any, row?: any) => void;
81
+ }, string, PublicProps, Readonly< ExtractPropTypes<{
82
+ label: {
83
+ type: PropType<string>;
84
+ default: string;
85
+ };
86
+ title: {
87
+ type: PropType<string>;
88
+ default: string;
89
+ };
90
+ type: {
91
+ type: PropType<string>;
92
+ default: string;
93
+ };
94
+ placeholder: {
95
+ type: PropType<string>;
96
+ };
97
+ isNeedDoubleConfirm: {
98
+ type: PropType<boolean>;
99
+ default: boolean;
100
+ };
101
+ permission: {
102
+ type: PropType<{
103
+ code?: string;
104
+ tip?: string;
105
+ checkRight?: () => boolean;
106
+ }>;
107
+ default: () => {};
108
+ };
109
+ prop: {
110
+ type: PropType<string>;
111
+ required: true;
112
+ };
113
+ labelWidth: {
114
+ type: PropType<string>;
115
+ required: true;
116
+ default: string;
117
+ };
118
+ rules: {
119
+ type: PropType<any>;
120
+ };
121
+ selectDic: {
122
+ type: PropType< HuiLineEditDialogComboItem[]>;
123
+ required: true;
124
+ default: () => any[];
125
+ };
126
+ isSelectMuti: {
127
+ type: PropType<boolean>;
128
+ required: true;
129
+ default: boolean;
130
+ };
131
+ doubleConfirmTips: {
132
+ type: PropType<string>;
133
+ default: string;
134
+ };
135
+ attr: {
136
+ type: PropType<{
137
+ [key: string]: any;
138
+ }>;
139
+ required: true;
140
+ default: () => {};
141
+ };
142
+ formAttr: {
143
+ type: PropType<{
144
+ [key: string]: any;
145
+ }>;
146
+ required: true;
147
+ default: () => {};
148
+ };
149
+ }>> & Readonly<{
150
+ onOnSubmit?: (row: any, prop: string) => any;
151
+ onOnValueChange?: (form: any, row?: any) => any;
152
+ }>, {
153
+ label: string;
154
+ title: string;
155
+ type: string;
156
+ isNeedDoubleConfirm: boolean;
157
+ permission: {
158
+ code?: string;
159
+ tip?: string;
160
+ checkRight?: () => boolean;
161
+ };
162
+ labelWidth: string;
163
+ selectDic: HuiLineEditDialogComboItem[];
164
+ isSelectMuti: boolean;
165
+ doubleConfirmTips: string;
166
+ attr: {
167
+ [key: string]: any;
168
+ };
169
+ formAttr: {
170
+ [key: string]: any;
171
+ };
172
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>> & Record<string, any>;
173
+ export default HuiLineEditDialog;
@@ -0,0 +1,86 @@
1
+ /**
2
+ * 定义参数类型
3
+ */
4
+ export type HuiLineEditDialogComboItem = {
5
+ label: string;
6
+ value: string | number;
7
+ };
8
+ export interface HuiLineEditDialogPropsType {
9
+ /**
10
+ * 弹框标题
11
+ */
12
+ title?: string;
13
+ /**
14
+ * 输入类型 input, textarea, select
15
+ */
16
+ type?: string;
17
+ /**
18
+ * 输入标签
19
+ */
20
+ label?: string;
21
+ /**
22
+ * row 中的属性
23
+ */
24
+ prop: string;
25
+ /**
26
+ * 占位说明
27
+ */
28
+ placeholder?: string;
29
+ /**
30
+ * label 宽度
31
+ */
32
+ labelWidth: string;
33
+ /**
34
+ * 输入规则, input 类有效
35
+ */
36
+ rules?: any;
37
+ /**
38
+ * select 列表,label value形式
39
+ */
40
+ selectDic: HuiLineEditDialogComboItem[];
41
+ /**
42
+ * select 是否多选
43
+ */
44
+ isSelectMuti: boolean;
45
+ /**
46
+ * 提交是否需要二次确认
47
+ */
48
+ isNeedDoubleConfirm?: boolean;
49
+ /**
50
+ * 二次确认说明
51
+ */
52
+ doubleConfirmTips?: string;
53
+ /**
54
+ * input和select的其他属性
55
+ */
56
+ attr: {
57
+ [key: string]: any;
58
+ };
59
+ /**
60
+ * form的其他属性
61
+ */
62
+ formAttr: {
63
+ [key: string]: any;
64
+ };
65
+ /**
66
+ * 权限配置
67
+ */
68
+ permission?: {
69
+ code?: string;
70
+ tip?: string;
71
+ checkRight?: () => boolean;
72
+ };
73
+ }
74
+ /**
75
+ * 定义emit类型
76
+ */
77
+ export type HuiLineEditDialogEmitType = {
78
+ /**
79
+ * 输入修改触发
80
+ */
81
+ "onValueChange": [form: any, row?: any];
82
+ /**
83
+ * 提交触发
84
+ */
85
+ "onSubmit": [row: any, prop: string];
86
+ };
@@ -0,0 +1,74 @@
1
+ import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<ExtractPropTypes<{
3
+ row: PropType<{
4
+ [key: string]: string;
5
+ }>;
6
+ width: {
7
+ type: PropType<number>;
8
+ required: true;
9
+ default: number;
10
+ };
11
+ disabled: {
12
+ type: PropType<boolean>;
13
+ required: true;
14
+ default: boolean;
15
+ };
16
+ baseClass: {
17
+ type: PropType<string>;
18
+ required: true;
19
+ default: string;
20
+ };
21
+ rules: {
22
+ type: PropType<any>;
23
+ };
24
+ field: {
25
+ type: PropType<string>;
26
+ required: true;
27
+ };
28
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
29
+ confirm: (row: {
30
+ [key: string]: string;
31
+ }) => void;
32
+ }, string, PublicProps, Readonly< ExtractPropTypes<{
33
+ row: PropType<{
34
+ [key: string]: string;
35
+ }>;
36
+ width: {
37
+ type: PropType<number>;
38
+ required: true;
39
+ default: number;
40
+ };
41
+ disabled: {
42
+ type: PropType<boolean>;
43
+ required: true;
44
+ default: boolean;
45
+ };
46
+ baseClass: {
47
+ type: PropType<string>;
48
+ required: true;
49
+ default: string;
50
+ };
51
+ rules: {
52
+ type: PropType<any>;
53
+ };
54
+ field: {
55
+ type: PropType<string>;
56
+ required: true;
57
+ };
58
+ }>> & Readonly<{
59
+ onConfirm?: (row: {
60
+ [key: string]: string;
61
+ }) => any;
62
+ }>, {
63
+ width: number;
64
+ disabled: boolean;
65
+ baseClass: string;
66
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
67
+ default?(_: {}): any;
68
+ }>;
69
+ export default _default;
70
+ type __VLS_WithTemplateSlots<T, S> = T & {
71
+ new (): {
72
+ $slots: S;
73
+ };
74
+ };