zjh-web-ui 1.0.10 → 1.0.12

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 (126) hide show
  1. package/README.md +1 -1
  2. package/config/resolver.js +1 -1
  3. package/dist/components/HuiAMapMassMarkers/HuiAMapMassMarkers.vue.js +23 -23
  4. package/dist/components/HuiAMapSearchAddress/HuiAMapSearchAddress.vue.js +2 -2
  5. package/dist/components/HuiAMapSearchAddress/HuiAMapSearchAddress.vue2.js +27 -27
  6. package/dist/components/HuiAMapSearchAddressDialog/HuiAMapSearchAddressDialog.vue.js +38 -38
  7. package/dist/components/HuiAMapSelectAddress/HuiAMapSelectAddress.vue.js +2 -2
  8. package/dist/components/HuiAMapSelectAddress/HuiAMapSelectAddress.vue2.js +80 -80
  9. package/dist/components/HuiAMapSelectAddressDialog/HuiAMapSelectAddressDialog.vue.js +23 -23
  10. package/dist/components/HuiCountDownButton/HuiCountDownButton.vue.js +14 -14
  11. package/dist/components/HuiDataView/HuiDataView.vue2.js +37 -37
  12. package/dist/components/HuiGridForm/HuiGridForm.vue.js +2 -2
  13. package/dist/components/HuiGridForm/HuiGridForm.vue2.js +103 -103
  14. package/dist/components/HuiGridForm/HuiGridFormHooks.js +1 -1
  15. package/dist/components/HuiLineEditDialog/HuiLineEditDialog.vue2.js +69 -69
  16. package/dist/components/HuiLineEditPopover/HuiLineEditPopover.vue2.js +47 -47
  17. package/dist/components/HuiPreviewRichTextDialog/HuiPreviewRichTextDialog.vue.js +21 -21
  18. package/dist/components/HuiRegionTreeDialog/HuiRegionTreeDialog.vue.js +49 -49
  19. package/dist/components/HuiRegionTreeSelect/HuiRegionTreeSelect.vue.js +2 -2
  20. package/dist/components/HuiRegionTreeSelect/HuiRegionTreeSelect.vue2.js +3 -3
  21. package/dist/components/HuiSelectLoadStatus/HuiSelectLoadStatus.vue.js +14 -14
  22. package/dist/components/HuiShowUrlDialog/HuiShowUrlDialog.vue.js +18 -18
  23. package/dist/components/HuiStringArrayInputDialog/HuiStringArrayInputDialog.vue.js +50 -50
  24. package/dist/components/HuiTags/HuiTags.vue2.js +9 -9
  25. package/dist/components/HuiTagsMore/HuiTagsMore.vue.js +12 -16
  26. package/dist/components/HuiTinymce/HuiTinymce.vue.js +10 -10
  27. package/dist/components/HuiTinymce/HuiTinymceLinkHooks.js +1 -1
  28. package/dist/components/HuiTinymce/HuiTinymceSettingHooks.js +1 -1
  29. package/dist/components/HuiTinymceDialog/HuiTinymceDialog.vue.js +43 -43
  30. package/dist/components/HuiTip/HuiTip.vue.js +15 -15
  31. package/dist/hooks/useHuiFormDialog/useHuiFormDialog.js +1 -1
  32. package/dist/index.d.ts +2116 -0
  33. package/dist/style.css +1 -1
  34. package/dist/utils/hui-rules.js +1 -1
  35. package/dist/utils/hui-tool/message-box/index.js +7 -7
  36. package/dist/utils/hui-tool/message-box/message-box.vue2.js +112 -0
  37. package/dist/utils/hui-tool/message-box/message-box.vue3.js +2 -2
  38. package/global.d.ts +21 -21
  39. package/package.json +2 -2
  40. package/src/css/common-font.scss +3 -3
  41. package/types/index.d.ts +2115 -12
  42. package/dist/utils/hui-tool/message-box/message-box.vue.js +0 -112
  43. package/types/components/AMapConfig.d.ts +0 -2
  44. package/types/components/HuiAMapMassMarkers/HuiAMapMassMarkers.vue.d.ts +0 -105
  45. package/types/components/HuiAMapMassMarkers/index.d.ts +0 -107
  46. package/types/components/HuiAMapMassMarkers/type.d.ts +0 -58
  47. package/types/components/HuiAMapSearchAddress/HuiAMapSearchAddress.vue.d.ts +0 -76
  48. package/types/components/HuiAMapSearchAddress/index.d.ts +0 -77
  49. package/types/components/HuiAMapSearchAddress/type.d.ts +0 -19
  50. package/types/components/HuiAMapSearchAddressDialog/HuiAMapSearchAddressDialog.vue.d.ts +0 -38
  51. package/types/components/HuiAMapSearchAddressDialog/index.d.ts +0 -71
  52. package/types/components/HuiAMapSearchAddressDialog/type.d.ts +0 -17
  53. package/types/components/HuiAMapSelectAddress/HuiAMapSelectAddress.vue.d.ts +0 -76
  54. package/types/components/HuiAMapSelectAddress/index.d.ts +0 -77
  55. package/types/components/HuiAMapSelectAddress/type.d.ts +0 -19
  56. package/types/components/HuiAMapSelectAddressDialog/HuiAMapSelectAddressDialog.vue.d.ts +0 -38
  57. package/types/components/HuiAMapSelectAddressDialog/index.d.ts +0 -71
  58. package/types/components/HuiAMapSelectAddressDialog/type.d.ts +0 -17
  59. package/types/components/HuiCountDownButton/HuiCountDownButton.vue.d.ts +0 -44
  60. package/types/components/HuiCountDownButton/index.d.ts +0 -76
  61. package/types/components/HuiCountDownButton/type.d.ts +0 -20
  62. package/types/components/HuiDataView/HuiDataView.vue.d.ts +0 -60
  63. package/types/components/HuiDataView/index.d.ts +0 -109
  64. package/types/components/HuiDataView/type.d.ts +0 -49
  65. package/types/components/HuiGridForm/HuiGridForm.vue.d.ts +0 -77
  66. package/types/components/HuiGridForm/HuiGridFormHooks.d.ts +0 -4
  67. package/types/components/HuiGridForm/index.d.ts +0 -175
  68. package/types/components/HuiGridForm/type.d.ts +0 -67
  69. package/types/components/HuiLineEditDialog/HuiLineEditDialog.vue.d.ts +0 -75
  70. package/types/components/HuiLineEditDialog/index.d.ts +0 -173
  71. package/types/components/HuiLineEditDialog/type.d.ts +0 -86
  72. package/types/components/HuiLineEditPopover/HuiLineEditPopover.vue.d.ts +0 -74
  73. package/types/components/HuiLineEditPopover/index.d.ts +0 -133
  74. package/types/components/HuiLineEditPopover/type.d.ts +0 -23
  75. package/types/components/HuiPreviewRichTextDialog/HuiPreviewRichTextDialog.vue.d.ts +0 -31
  76. package/types/components/HuiPreviewRichTextDialog/index.d.ts +0 -22
  77. package/types/components/HuiPreviewRichTextDialog/type.d.ts +0 -4
  78. package/types/components/HuiRegionTreeDialog/HuiRegionTreeDialog.vue.d.ts +0 -53
  79. package/types/components/HuiRegionTreeDialog/index.d.ts +0 -68
  80. package/types/components/HuiRegionTreeDialog/type.d.ts +0 -24
  81. package/types/components/HuiRegionTreeSelect/HuiRegionTreeSelect.vue.d.ts +0 -25
  82. package/types/components/HuiRegionTreeSelect/index.d.ts +0 -29
  83. package/types/components/HuiRegionTreeSelect/type.d.ts +0 -6
  84. package/types/components/HuiSelectLoadStatus/HuiSelectLoadStatus.vue.d.ts +0 -14
  85. package/types/components/HuiSelectLoadStatus/index.d.ts +0 -33
  86. package/types/components/HuiSelectLoadStatus/type.d.ts +0 -11
  87. package/types/components/HuiShowUrlDialog/HuiShowUrlDialog.vue.d.ts +0 -37
  88. package/types/components/HuiShowUrlDialog/index.d.ts +0 -40
  89. package/types/components/HuiShowUrlDialog/type.d.ts +0 -11
  90. package/types/components/HuiStringArrayInputDialog/HuiStringArrayInputDialog.vue.d.ts +0 -44
  91. package/types/components/HuiStringArrayInputDialog/index.d.ts +0 -67
  92. package/types/components/HuiStringArrayInputDialog/type.d.ts +0 -33
  93. package/types/components/HuiTags/HuiTags.vue.d.ts +0 -37
  94. package/types/components/HuiTags/index.d.ts +0 -36
  95. package/types/components/HuiTagsMore/HuiTagsMore.vue.d.ts +0 -93
  96. package/types/components/HuiTagsMore/index.d.ts +0 -92
  97. package/types/components/HuiTinymce/HuiTinymce.vue.d.ts +0 -62
  98. package/types/components/HuiTinymce/HuiTinymceLinkHooks.d.ts +0 -3
  99. package/types/components/HuiTinymce/HuiTinymceSettingHooks.d.ts +0 -3
  100. package/types/components/HuiTinymce/index.d.ts +0 -66
  101. package/types/components/HuiTinymce/type.d.ts +0 -51
  102. package/types/components/HuiTinymceDialog/HuiTinymceDialog.vue.d.ts +0 -53
  103. package/types/components/HuiTinymceDialog/index.d.ts +0 -78
  104. package/types/components/HuiTinymceDialog/type.d.ts +0 -12
  105. package/types/components/HuiTip/HuiTip.vue.d.ts +0 -22
  106. package/types/components/HuiTip/index.d.ts +0 -99
  107. package/types/components/HuiTip/type.d.ts +0 -14
  108. package/types/components-install-list.d.ts +0 -3328
  109. package/types/components.d.ts +0 -21
  110. package/types/delegate.d.ts +0 -41
  111. package/types/directives/index.d.ts +0 -4
  112. package/types/directives/install-loadmore.d.ts +0 -7
  113. package/types/directives/select-loadmore.d.ts +0 -7
  114. package/types/hooks/index.d.ts +0 -3
  115. package/types/hooks/useHuiDialog/useHuiDialog.d.ts +0 -18
  116. package/types/hooks/useHuiFormDialog/formDialogPropsDef.d.ts +0 -3
  117. package/types/hooks/useHuiFormDialog/type.d.ts +0 -90
  118. package/types/hooks/useHuiFormDialog/useHuiFormDialog.d.ts +0 -32
  119. package/types/install-helper/install.d.ts +0 -18
  120. package/types/install-helper/typescript.d.ts +0 -14
  121. package/types/utils/hui-rules.d.ts +0 -80
  122. package/types/utils/hui-tool/index.d.ts +0 -8
  123. package/types/utils/hui-tool/message-box/index.d.ts +0 -18
  124. package/types/utils/hui-tool/message-box/message-box.vue.d.ts +0 -36
  125. package/types/utils/hui-tool/msg-tool.d.ts +0 -26
  126. package/types/utils/index.d.ts +0 -2
@@ -1,77 +0,0 @@
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
- };
@@ -1,4 +0,0 @@
1
- export declare const useDynamicList: () => {
2
- moveItem: (arr: any, index: number, direction: string) => any;
3
- removeItem: (arr: any, idx: number) => Promise<boolean>;
4
- };
@@ -1,175 +0,0 @@
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;
@@ -1,67 +0,0 @@
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
- };
@@ -1,75 +0,0 @@
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
- } & {};
@@ -1,173 +0,0 @@
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;
@@ -1,86 +0,0 @@
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
- };