@qqt-product/ui 0.0.12 → 0.0.14

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 (192) hide show
  1. package/dist/index.es.js +56339 -59301
  2. package/dist/index.umd.js +15222 -56
  3. package/dist/lib/components/breadcrumb/index.d.ts +10 -0
  4. package/dist/lib/components/breadcrumb/src/breadcrumb.vue.d.ts +7 -0
  5. package/dist/lib/components/card-list-layout/index.d.ts +147 -0
  6. package/dist/lib/components/card-list-layout/src/card-content.vue.d.ts +70 -0
  7. package/dist/lib/components/card-list-layout/src/cardItem.vue.d.ts +79 -0
  8. package/dist/lib/components/card-list-layout/src/index.vue.d.ts +144 -0
  9. package/dist/lib/components/card-list-layout/src/sidebar.vue.d.ts +30 -0
  10. package/dist/lib/components/card-list-layout/src/types.d.ts +41 -0
  11. package/dist/lib/components/cascader/index.d.ts +43 -55
  12. package/dist/lib/components/cascader/src/cascader-types.d.ts +17 -23
  13. package/dist/lib/components/cascader/src/cascader.vue.d.ts +43 -55
  14. package/dist/lib/components/cascader/src/use-cascader.d.ts +2 -2
  15. package/dist/lib/components/checkbox/index.d.ts +113 -0
  16. package/dist/lib/components/checkbox/src/checkbox-types.d.ts +62 -0
  17. package/dist/lib/components/checkbox/src/checkbox.vue.d.ts +109 -0
  18. package/dist/lib/components/checkbox/src/use-checkbox.d.ts +2 -0
  19. package/dist/lib/components/codeEditorModel/index.d.ts +93 -0
  20. package/dist/lib/components/codeEditorModel/src/codeEditorModel.vue.d.ts +90 -0
  21. package/dist/lib/components/collapse-transition/index.d.ts +16 -0
  22. package/dist/lib/components/collapse-transition/src/collapse-transition.vue.d.ts +15 -0
  23. package/dist/lib/components/coutdown/index.d.ts +84 -0
  24. package/dist/lib/components/coutdown/src/coutdown.d.ts +48 -0
  25. package/dist/lib/components/coutdown/src/coutdown.vue.d.ts +81 -0
  26. package/dist/lib/components/currency/index.d.ts +109 -0
  27. package/dist/lib/components/currency/src/currency-type.d.ts +47 -0
  28. package/dist/lib/components/currency/src/currency.vue.d.ts +105 -0
  29. package/dist/lib/components/currency/src/use-currency.d.ts +2 -0
  30. package/dist/lib/components/currency/src/use-methods.d.ts +14 -0
  31. package/dist/lib/components/detail-form/index.d.ts +102 -0
  32. package/dist/lib/components/detail-form/src/detail-form.vue.d.ts +99 -0
  33. package/dist/lib/components/detail-form/src/use-detail-form.d.ts +2 -0
  34. package/dist/lib/components/detail-grid/index.d.ts +2678 -0
  35. package/dist/lib/components/detail-grid/src/detail-grid.vue.d.ts +2675 -0
  36. package/dist/lib/components/detail-grid/src/hook/use-grid-config-hook.d.ts +10 -0
  37. package/dist/lib/components/detail-grid/src/use-detail-grid.d.ts +2 -0
  38. package/dist/lib/components/detail-page-layout/index.d.ts +186 -0
  39. package/dist/lib/components/detail-page-layout/src/detail-page-layout.vue.d.ts +183 -0
  40. package/dist/lib/components/detail-page-layout/src/use-detail-page-layout.d.ts +2 -0
  41. package/dist/lib/components/edit-form/index.d.ts +104 -63
  42. package/dist/lib/components/edit-form/src/edit-form-types.d.ts +28 -24
  43. package/dist/lib/components/edit-form/src/edit-form.vue.d.ts +105 -63
  44. package/dist/lib/components/edit-form/src/hook/use-callback-hook.d.ts +11 -0
  45. package/dist/lib/components/edit-form/src/hook/use-form-config-hook.d.ts +8 -0
  46. package/dist/lib/components/edit-form/src/use-edit-form.d.ts +1 -1
  47. package/dist/lib/components/edit-grid/index.d.ts +414 -343
  48. package/dist/lib/components/edit-grid/src/components/empty/index.d.ts +8 -0
  49. package/dist/lib/components/edit-grid/src/edit-grid-types.d.ts +33 -24
  50. package/dist/lib/components/edit-grid/src/edit-grid.vue.d.ts +414 -343
  51. package/dist/lib/components/edit-grid/src/hook/use-grid-config-hook.d.ts +10 -0
  52. package/dist/lib/components/edit-grid/src/hook/use-grid-height-hook.d.ts +4 -0
  53. package/dist/lib/components/edit-grid/src/use-edit-grid.d.ts +1 -1
  54. package/dist/lib/components/edit-page-layout/index.d.ts +67 -11
  55. package/dist/lib/components/edit-page-layout/src/edit-page-layout-types.d.ts +212 -40
  56. package/dist/lib/components/edit-page-layout/src/edit-page-layout.vue.d.ts +67 -11
  57. package/dist/lib/components/edit-page-layout/src/types.d.ts +1 -0
  58. package/dist/lib/components/editor/index.d.ts +31 -0
  59. package/dist/lib/components/editor/src/index.vue.d.ts +28 -0
  60. package/dist/lib/components/field-select-modal/index.d.ts +150 -0
  61. package/dist/lib/components/field-select-modal/src/field-select-modal-types.d.ts +85 -0
  62. package/dist/lib/components/field-select-modal/src/field-select-modal.vue.d.ts +146 -0
  63. package/dist/lib/components/field-select-modal/src/use-field-select-modal.d.ts +6 -0
  64. package/dist/lib/components/index.d.ts +23 -3
  65. package/dist/lib/components/item-wrap/index.d.ts +57 -0
  66. package/dist/lib/components/item-wrap/src/item-wrap-types.d.ts +27 -0
  67. package/dist/lib/components/item-wrap/src/item-wrap.vue.d.ts +53 -0
  68. package/dist/lib/components/item-wrap/src/use-item-wrap.d.ts +2 -0
  69. package/dist/lib/components/layout/index.d.ts +94 -13
  70. package/dist/lib/components/layout/src/header/index.vue.d.ts +117 -84
  71. package/dist/lib/components/layout/src/header/navRight/customMessage.vue.d.ts +10 -19
  72. package/dist/lib/components/layout/src/header/navRight/customPerson.vue.d.ts +16 -3
  73. package/dist/lib/components/layout/src/header/navRight/index.vue.d.ts +105 -67
  74. package/dist/lib/components/layout/src/header/navRight/langSwitch.vue.d.ts +27 -7
  75. package/dist/lib/components/layout/src/header/navRight/rightTool.vue.d.ts +26 -43
  76. package/dist/lib/components/layout/src/header/navRight/settingDrawer.vue.d.ts +34 -0
  77. package/dist/lib/components/layout/src/index.vue.d.ts +94 -27
  78. package/dist/lib/components/layout/src/menu/deepCycleSubMenu.vue.d.ts +5 -2
  79. package/dist/lib/components/layout/src/menu/menu.vue.d.ts +57 -73
  80. package/dist/lib/components/layout/src/menu/secondLevelMenu.vue.d.ts +5 -23
  81. package/dist/lib/components/layout/src/menu/subSecondMenu.vue.d.ts +4 -22
  82. package/dist/lib/components/layout/src/sider/index.vue.d.ts +24 -25
  83. package/dist/lib/components/layout/src/sider/logo.vue.d.ts +1 -10
  84. package/dist/lib/components/layout/src/sider/search.vue.d.ts +78 -3
  85. package/dist/lib/components/layout/src/types.d.ts +68 -0
  86. package/dist/lib/components/{layout-auchor → layout-anchor}/index.d.ts +10 -7
  87. package/dist/lib/components/{layout-auchor/src/layout-auchor-types.d.ts → layout-anchor/src/layout-anchor-types.d.ts} +3 -3
  88. package/dist/lib/components/{layout-auchor → layout-anchor}/src/layout-auchor.vue.d.ts +7 -4
  89. package/dist/lib/components/layout-anchor/src/use-layout-anchor.d.ts +2 -0
  90. package/dist/lib/components/layout-buttons/index.d.ts +39 -2
  91. package/dist/lib/components/layout-buttons/src/layout-buttons-types.d.ts +16 -0
  92. package/dist/lib/components/layout-buttons/src/layout-buttons.vue.d.ts +39 -2
  93. package/dist/lib/components/layout-buttons/src/use-layout-buttons.d.ts +1 -1
  94. package/dist/lib/components/layout-pattern/index.d.ts +8 -14
  95. package/dist/lib/components/layout-pattern/src/components/vertical.vue.d.ts +72 -4
  96. package/dist/lib/components/layout-pattern/src/layout-pattern-types.d.ts +3 -5
  97. package/dist/lib/components/layout-pattern/src/layout-pattern.vue.d.ts +8 -14
  98. package/dist/lib/components/list-page-layout/index.d.ts +244 -0
  99. package/dist/lib/components/list-page-layout/src/components/common/add-modal/add-modal.vue.d.ts +21 -0
  100. package/dist/lib/components/list-page-layout/src/components/common/columnSetting/columnSetting.vue.d.ts +293 -0
  101. package/dist/lib/components/list-page-layout/src/components/common/columnSetting/use-grid-slot-hook.d.ts +22 -0
  102. package/dist/lib/components/list-page-layout/src/components/common/edit-nav-modal/edit-nav-modal.vue.d.ts +16 -0
  103. package/dist/lib/components/list-page-layout/src/components/common/edit-nav-modal/types.d.ts +4 -0
  104. package/dist/lib/components/list-page-layout/src/components/common/help-text-modal/help-text-modal.vue.d.ts +8 -0
  105. package/dist/lib/components/list-page-layout/src/components/common/import-modal/import-modal.vue.d.ts +40 -0
  106. package/dist/lib/components/list-page-layout/src/components/common/record-modal/mock.d.ts +48 -0
  107. package/dist/lib/components/list-page-layout/src/components/common/record-modal/record-modal.vue.d.ts +5178 -0
  108. package/dist/lib/components/list-page-layout/src/components/list-content/events-helper.d.ts +13 -0
  109. package/dist/lib/components/list-page-layout/src/components/list-content/list-content.vue.d.ts +95 -0
  110. package/dist/lib/components/list-page-layout/src/components/list-content-buttons/events-helper.d.ts +6 -0
  111. package/dist/lib/components/list-page-layout/src/components/list-content-buttons/list-content-buttons.vue.d.ts +33 -0
  112. package/dist/lib/components/list-page-layout/src/components/list-header/list-header.vue.d.ts +27 -0
  113. package/dist/lib/components/list-page-layout/src/components/list-header/module/query/index.vue.d.ts +15 -0
  114. package/dist/lib/components/list-page-layout/src/components/list-header/module/quick-nav/index.vue.d.ts +9 -0
  115. package/dist/lib/components/list-page-layout/src/components/list-header/module/searchExtend/index.vue.d.ts +103 -0
  116. package/dist/lib/components/list-page-layout/src/components/list-header/module/tabs/index.vue.d.ts +56 -0
  117. package/dist/lib/components/list-page-layout/src/hooks/export-xls-hook.d.ts +4 -0
  118. package/dist/lib/components/list-page-layout/src/hooks/fetch-data-hook.d.ts +5 -0
  119. package/dist/lib/components/list-page-layout/src/hooks/fetch-head-data-hook.d.ts +6 -0
  120. package/dist/lib/components/list-page-layout/src/hooks/get-columns-hook.d.ts +6 -0
  121. package/dist/lib/components/list-page-layout/src/hooks/list-slot-hook.d.ts +9 -0
  122. package/dist/lib/components/list-page-layout/src/hooks/use-button-function-hook.d.ts +13 -0
  123. package/dist/lib/components/list-page-layout/src/layout.vue.d.ts +238 -0
  124. package/dist/lib/components/list-page-layout/src/list-page-layout-types.d.ts +358 -0
  125. package/dist/lib/components/list-page-layout/src/symbol.d.ts +11 -0
  126. package/dist/lib/components/list-page-layout/src/tokens.d.ts +12 -0
  127. package/dist/lib/components/list-page-layout/src/types.d.ts +1 -0
  128. package/dist/lib/components/list-page-layout/src/utils/gridConfig.d.ts +174 -0
  129. package/dist/lib/components/page-layout/index.d.ts +12 -2
  130. package/dist/lib/components/page-layout/src/constant/buttons.d.ts +10 -0
  131. package/dist/lib/components/page-layout/src/constant/index.d.ts +3 -0
  132. package/dist/lib/components/page-layout/src/constant/items.d.ts +3 -0
  133. package/dist/lib/components/page-layout/src/constant/symbol.d.ts +15 -0
  134. package/dist/lib/components/page-layout/src/hook/use-merge-defaultValues-hook.d.ts +6 -0
  135. package/dist/lib/components/page-layout/src/hook/use-page-data-hook.d.ts +6 -0
  136. package/dist/lib/components/page-layout/src/hook/use-promise-step.d.ts +26 -0
  137. package/dist/lib/components/page-layout/src/hook/use-ref-instance-hook.d.ts +7 -0
  138. package/dist/lib/components/page-layout/src/hook/use-remote-config-hook.d.ts +5 -2
  139. package/dist/lib/components/page-layout/src/page-layout.vue.d.ts +7 -2
  140. package/dist/lib/components/page-layout/src/token.d.ts +7 -1
  141. package/dist/lib/components/page-layout/src/util.d.ts +10 -35
  142. package/dist/lib/components/radio/index.d.ts +104 -0
  143. package/dist/lib/components/radio/src/radio-types.d.ts +56 -0
  144. package/dist/lib/components/radio/src/radio.vue.d.ts +100 -0
  145. package/dist/lib/components/radio/src/use-radio.d.ts +2 -0
  146. package/dist/lib/components/remote-select/index.d.ts +122 -0
  147. package/dist/lib/components/remote-select/src/remote-select-types.d.ts +50 -0
  148. package/dist/lib/components/remote-select/src/remote-select.vue.d.ts +118 -0
  149. package/dist/lib/components/remote-select/src/use-remote-select.d.ts +6 -0
  150. package/dist/lib/components/select/index.d.ts +8 -39
  151. package/dist/lib/components/select/src/select-types.d.ts +4 -15
  152. package/dist/lib/components/select/src/select.vue.d.ts +8 -39
  153. package/dist/lib/components/select/src/use-select.d.ts +2 -2
  154. package/dist/lib/components/select-modal/index.d.ts +333 -0
  155. package/dist/lib/components/select-modal/src/select-modal-types.d.ts +51 -0
  156. package/dist/lib/components/select-modal/src/select-modal.vue.d.ts +329 -0
  157. package/dist/lib/components/select-modal/src/use-select-modal.d.ts +6 -0
  158. package/dist/lib/components/shared/hooks/use-namespace-last.d.ts +23 -0
  159. package/dist/lib/components/shared/hooks/use-namespace.d.ts +3 -3
  160. package/dist/lib/components/switch/index.d.ts +2 -4
  161. package/dist/lib/components/switch/src/switch-types.d.ts +0 -2
  162. package/dist/lib/components/switch/src/switch.vue.d.ts +2 -4
  163. package/dist/lib/components/tree-select/index.d.ts +114 -0
  164. package/dist/lib/components/tree-select/src/tree-select-types.d.ts +60 -0
  165. package/dist/lib/components/tree-select/src/tree-select.vue.d.ts +110 -0
  166. package/dist/lib/components/tree-select/src/use-tree-select.d.ts +2 -0
  167. package/dist/lib/components/upload-file/index.d.ts +274 -0
  168. package/dist/lib/components/upload-file/src/hook/use-file-column-hook.d.ts +34 -0
  169. package/dist/lib/components/upload-file/src/hook/use-operation-column-button-hook.d.ts +11 -0
  170. package/dist/lib/components/upload-file/src/upload-file-types.d.ts +141 -0
  171. package/dist/lib/components/upload-file/src/upload-file.vue.d.ts +267 -0
  172. package/dist/lib/components/upload-image/index.d.ts +191 -0
  173. package/dist/lib/components/upload-image/src/upload-image-type.d.ts +53 -0
  174. package/dist/lib/components/upload-image/src/upload-image.vue.d.ts +187 -0
  175. package/dist/lib/components/vxe-select/index.d.ts +116 -0
  176. package/dist/lib/components/vxe-select/src/use-vxe-select.d.ts +2 -0
  177. package/dist/lib/components/vxe-select/src/vxe-select-types.d.ts +58 -0
  178. package/dist/lib/components/vxe-select/src/vxe-select.vue.d.ts +112 -0
  179. package/dist/lib/index.d.ts +15 -2
  180. package/dist/lib/setting/vxe-table/config.d.ts +3 -0
  181. package/dist/lib/utils/event.d.ts +37 -0
  182. package/dist/style.css +6 -8
  183. package/dist/vite-env.d.ts +15 -0
  184. package/package.json +35 -22
  185. package/dist/lib/components/layout/src/menu/icon.d.ts +0 -6
  186. package/dist/lib/components/layout-auchor/src/use-layout-auchor.d.ts +0 -2
  187. package/dist/lib/components/layout-header/index.d.ts +0 -17
  188. package/dist/lib/components/layout-header/src/layout-header-types.d.ts +0 -8
  189. package/dist/lib/components/layout-header/src/layout-header.vue.d.ts +0 -13
  190. package/dist/lib/components/layout-header/src/use-layout-header.d.ts +0 -2
  191. package/dist/lib/constant/constant.d.ts +0 -1
  192. package/dist/lib/types/ComponentCustomProperties .d.ts +0 -6
@@ -1,23 +1,14 @@
1
- import type { requiredValidator, modeValidator, WithChildrenOption } from './src/select-types';
1
+ import type { modeValidator, SelectOption } from './src/select-types';
2
2
  import type { DefineComponent, PropType, ComputedRef, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
3
3
  import type { SFCWithInstall } from '@qqt-product/utils/dist/modules/withInstall';
4
4
  import QSelect from './src/select.vue';
5
5
  export * from './src/select-types';
6
6
  export { QSelect };
7
7
  declare const _default: SFCWithInstall<DefineComponent<{
8
- readonly required: {
9
- readonly type: PropType<"0" | "1">;
10
- readonly default: "";
11
- readonly validator: typeof requiredValidator;
12
- };
13
8
  readonly value: {
14
9
  readonly type: StringConstructor;
15
10
  readonly default: "";
16
11
  };
17
- readonly maxTagCount: {
18
- readonly type: NumberConstructor;
19
- readonly default: 1;
20
- };
21
12
  readonly busAccount: {
22
13
  readonly type: StringConstructor;
23
14
  readonly default: "";
@@ -27,16 +18,12 @@ declare const _default: SFCWithInstall<DefineComponent<{
27
18
  readonly default: "combobox";
28
19
  readonly validator: typeof modeValidator;
29
20
  };
30
- readonly placeholder: {
31
- readonly type: StringConstructor;
32
- readonly default: "请选择";
33
- };
34
21
  readonly dictCode: {
35
22
  readonly type: StringConstructor;
36
23
  readonly default: "";
37
24
  };
38
25
  readonly options: {
39
- readonly type: PropType<WithChildrenOption[]>;
26
+ readonly type: PropType<SelectOption[]>;
40
27
  readonly default: () => never[];
41
28
  };
42
29
  readonly 'onUpdate:value': {
@@ -53,8 +40,6 @@ declare const _default: SFCWithInstall<DefineComponent<{
53
40
  }>;
54
41
  realValue: Ref<string | string[]>;
55
42
  mode: ComputedRef<string>;
56
- maxTagCount: number;
57
- placeholder: string;
58
43
  options: Ref<{
59
44
  [x: string]: string;
60
45
  title: string;
@@ -66,19 +51,10 @@ declare const _default: SFCWithInstall<DefineComponent<{
66
51
  }[]>;
67
52
  onChange: (value: string) => void;
68
53
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("update:value" | "change")[], "update:value" | "change", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
69
- readonly required: {
70
- readonly type: PropType<"0" | "1">;
71
- readonly default: "";
72
- readonly validator: typeof requiredValidator;
73
- };
74
54
  readonly value: {
75
55
  readonly type: StringConstructor;
76
56
  readonly default: "";
77
57
  };
78
- readonly maxTagCount: {
79
- readonly type: NumberConstructor;
80
- readonly default: 1;
81
- };
82
58
  readonly busAccount: {
83
59
  readonly type: StringConstructor;
84
60
  readonly default: "";
@@ -88,16 +64,12 @@ declare const _default: SFCWithInstall<DefineComponent<{
88
64
  readonly default: "combobox";
89
65
  readonly validator: typeof modeValidator;
90
66
  };
91
- readonly placeholder: {
92
- readonly type: StringConstructor;
93
- readonly default: "请选择";
94
- };
95
67
  readonly dictCode: {
96
68
  readonly type: StringConstructor;
97
69
  readonly default: "";
98
70
  };
99
71
  readonly options: {
100
- readonly type: PropType<WithChildrenOption[]>;
72
+ readonly type: PropType<SelectOption[]>;
101
73
  readonly default: () => never[];
102
74
  };
103
75
  readonly 'onUpdate:value': {
@@ -109,18 +81,15 @@ declare const _default: SFCWithInstall<DefineComponent<{
109
81
  default: unknown;
110
82
  };
111
83
  }>> & {
112
- "onUpdate:value"?: ((...args: any[]) => any) | undefined;
113
84
  onChange?: ((...args: any[]) => any) | undefined;
85
+ "onUpdate:value"?: ((...args: any[]) => any) | undefined;
114
86
  }, {
115
- readonly options: WithChildrenOption[];
116
- readonly 'onUpdate:value': ((value: string) => void) | ((value: string) => void)[];
87
+ readonly mode: "multiple" | "tags" | "combobox";
117
88
  readonly onChange: ((value: string) => void) | ((value: string) => void)[];
118
89
  readonly value: string;
119
- readonly placeholder: string;
120
- readonly maxTagCount: number;
121
- readonly required: "0" | "1";
90
+ readonly options: SelectOption[];
91
+ readonly 'onUpdate:value': ((value: string) => void) | ((value: string) => void)[];
122
92
  readonly busAccount: string;
123
93
  readonly dictCode: string;
124
- readonly mode: "multiple" | "tags" | "combobox";
125
- }>>;
94
+ }, {}>>;
126
95
  export default _default;
@@ -9,22 +9,15 @@ export interface Option {
9
9
  export type WithChildrenOption = Option & {
10
10
  children?: unknown[];
11
11
  };
12
+ export type SelectOption = WithChildrenOption & {
13
+ label: string;
14
+ };
12
15
  export declare function modeValidator(mode: string): boolean;
13
- export declare function requiredValidator(val: string): boolean;
14
16
  export declare const selectProps: {
15
- readonly required: {
16
- readonly type: PropType<"0" | "1">;
17
- readonly default: "";
18
- readonly validator: typeof requiredValidator;
19
- };
20
17
  readonly value: {
21
18
  readonly type: StringConstructor;
22
19
  readonly default: "";
23
20
  };
24
- readonly maxTagCount: {
25
- readonly type: NumberConstructor;
26
- readonly default: 1;
27
- };
28
21
  readonly busAccount: {
29
22
  readonly type: StringConstructor;
30
23
  readonly default: "";
@@ -34,16 +27,12 @@ export declare const selectProps: {
34
27
  readonly default: "combobox";
35
28
  readonly validator: typeof modeValidator;
36
29
  };
37
- readonly placeholder: {
38
- readonly type: StringConstructor;
39
- readonly default: "请选择";
40
- };
41
30
  readonly dictCode: {
42
31
  readonly type: StringConstructor;
43
32
  readonly default: "";
44
33
  };
45
34
  readonly options: {
46
- readonly type: PropType<WithChildrenOption[]>;
35
+ readonly type: PropType<SelectOption[]>;
47
36
  readonly default: () => never[];
48
37
  };
49
38
  readonly 'onUpdate:value': {
@@ -1,19 +1,10 @@
1
1
  import type { DefineComponent, PropType, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, ComputedRef } from 'vue';
2
- import type { requiredValidator, modeValidator, WithChildrenOption } from './select-types';
2
+ import type { modeValidator, SelectOption } from './select-types';
3
3
  declare const _sfc_main: DefineComponent<{
4
- readonly required: {
5
- readonly type: PropType<"0" | "1">;
6
- readonly default: "";
7
- readonly validator: typeof requiredValidator;
8
- };
9
4
  readonly value: {
10
5
  readonly type: StringConstructor;
11
6
  readonly default: "";
12
7
  };
13
- readonly maxTagCount: {
14
- readonly type: NumberConstructor;
15
- readonly default: 1;
16
- };
17
8
  readonly busAccount: {
18
9
  readonly type: StringConstructor;
19
10
  readonly default: "";
@@ -23,16 +14,12 @@ declare const _sfc_main: DefineComponent<{
23
14
  readonly default: "combobox";
24
15
  readonly validator: typeof modeValidator;
25
16
  };
26
- readonly placeholder: {
27
- readonly type: StringConstructor;
28
- readonly default: "请选择";
29
- };
30
17
  readonly dictCode: {
31
18
  readonly type: StringConstructor;
32
19
  readonly default: "";
33
20
  };
34
21
  readonly options: {
35
- readonly type: PropType<WithChildrenOption[]>;
22
+ readonly type: PropType<SelectOption[]>;
36
23
  readonly default: () => never[];
37
24
  };
38
25
  readonly 'onUpdate:value': {
@@ -49,8 +36,6 @@ declare const _sfc_main: DefineComponent<{
49
36
  }>;
50
37
  realValue: Ref<string | string[]>;
51
38
  mode: ComputedRef<string>;
52
- maxTagCount: number;
53
- placeholder: string;
54
39
  options: Ref<{
55
40
  [x: string]: string;
56
41
  title: string;
@@ -62,19 +47,10 @@ declare const _sfc_main: DefineComponent<{
62
47
  }[]>;
63
48
  onChange: (value: string) => void;
64
49
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("update:value" | "change")[], "update:value" | "change", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
65
- readonly required: {
66
- readonly type: PropType<"0" | "1">;
67
- readonly default: "";
68
- readonly validator: typeof requiredValidator;
69
- };
70
50
  readonly value: {
71
51
  readonly type: StringConstructor;
72
52
  readonly default: "";
73
53
  };
74
- readonly maxTagCount: {
75
- readonly type: NumberConstructor;
76
- readonly default: 1;
77
- };
78
54
  readonly busAccount: {
79
55
  readonly type: StringConstructor;
80
56
  readonly default: "";
@@ -84,16 +60,12 @@ declare const _sfc_main: DefineComponent<{
84
60
  readonly default: "combobox";
85
61
  readonly validator: typeof modeValidator;
86
62
  };
87
- readonly placeholder: {
88
- readonly type: StringConstructor;
89
- readonly default: "请选择";
90
- };
91
63
  readonly dictCode: {
92
64
  readonly type: StringConstructor;
93
65
  readonly default: "";
94
66
  };
95
67
  readonly options: {
96
- readonly type: PropType<WithChildrenOption[]>;
68
+ readonly type: PropType<SelectOption[]>;
97
69
  readonly default: () => never[];
98
70
  };
99
71
  readonly 'onUpdate:value': {
@@ -105,18 +77,15 @@ declare const _sfc_main: DefineComponent<{
105
77
  default: unknown;
106
78
  };
107
79
  }>> & {
108
- "onUpdate:value"?: ((...args: any[]) => any) | undefined;
109
80
  onChange?: ((...args: any[]) => any) | undefined;
81
+ "onUpdate:value"?: ((...args: any[]) => any) | undefined;
110
82
  }, {
111
- readonly options: WithChildrenOption[];
112
- readonly 'onUpdate:value': ((value: string) => void) | ((value: string) => void)[];
83
+ readonly mode: "multiple" | "tags" | "combobox";
113
84
  readonly onChange: ((value: string) => void) | ((value: string) => void)[];
114
85
  readonly value: string;
115
- readonly placeholder: string;
116
- readonly maxTagCount: number;
117
- readonly required: "0" | "1";
86
+ readonly options: SelectOption[];
87
+ readonly 'onUpdate:value': ((value: string) => void) | ((value: string) => void)[];
118
88
  readonly busAccount: string;
119
89
  readonly dictCode: string;
120
- readonly mode: "multiple" | "tags" | "combobox";
121
- }>;
90
+ }, {}>;
122
91
  export default _sfc_main;
@@ -1,2 +1,2 @@
1
- import { SelectProps, UseSelectReturnType } from './select-types';
2
- export default function useSelect(props: SelectProps): UseSelectReturnType;
1
+ import { UseSelectReturnType } from './select-types';
2
+ export default function useSelect(): UseSelectReturnType;
@@ -0,0 +1,333 @@
1
+ import type { MessageType } from 'ant-design-vue/lib/message';
2
+ import type { VxeTableProps, VxeTableDataRow, VxeGridInstance } from 'vxe-table';
3
+ import type { RequestMethod, ModalConfig, ModalType, OpenFuncType, TablePage } from '../field-select-modal';
4
+ import type { Config, RecordStringNumber } from './src/select-modal-types';
5
+ import type { DefineComponent, PropType, ComputedRef, Ref, ComponentInternalInstance, VNodeRef, VNode, RendererNode, RendererElement, Slot, ComponentPublicInstance, ComponentOptionsBase, ExtractPropTypes, ComponentOptionsMixin, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, VNodeProps, AllowedComponentProps, ComponentCustomProps } from 'vue';
6
+ import type { SFCWithInstall } from '@qqt-product/utils/dist/modules/withInstall';
7
+ import QSelectModal from './src/select-modal.vue';
8
+ export * from './src/select-modal-types';
9
+ export { QSelectModal };
10
+ declare const _default: SFCWithInstall<DefineComponent<{
11
+ value: {
12
+ type: StringConstructor;
13
+ default: string;
14
+ };
15
+ config: {
16
+ type: PropType<Config>;
17
+ default: () => {};
18
+ };
19
+ onChange: {
20
+ type: PropType<((value: RecordStringNumber[]) => void) | ((value: RecordStringNumber[]) => void)[]>;
21
+ default: unknown;
22
+ };
23
+ }, {
24
+ classes: ComputedRef<{
25
+ [x: string]: boolean;
26
+ }>;
27
+ value: Ref<string>;
28
+ fieldSelectModal: Ref<({
29
+ $: ComponentInternalInstance;
30
+ $data: {};
31
+ $props: {
32
+ apiUrls?: string | undefined;
33
+ placeholder?: string | undefined;
34
+ modalTitle?: string | undefined;
35
+ requestMethod?: RequestMethod | undefined;
36
+ modalConfig?: ModalConfig | undefined;
37
+ tableConfig?: VxeTableProps<VxeTableDataRow> | undefined;
38
+ selectModal?: ModalType | undefined;
39
+ key?: string | number | symbol | undefined;
40
+ style?: unknown;
41
+ ref?: VNodeRef | undefined;
42
+ ref_for?: boolean | undefined;
43
+ ref_key?: string | undefined;
44
+ onVnodeBeforeMount?: ((vnode: VNode<RendererNode, RendererElement, {
45
+ [key: string]: any;
46
+ }>) => void) | ((vnode: VNode<RendererNode, RendererElement, {
47
+ [key: string]: any;
48
+ }>) => void)[] | undefined;
49
+ onVnodeMounted?: ((vnode: VNode<RendererNode, RendererElement, {
50
+ [key: string]: any;
51
+ }>) => void) | ((vnode: VNode<RendererNode, RendererElement, {
52
+ [key: string]: any;
53
+ }>) => void)[] | undefined;
54
+ onVnodeBeforeUpdate?: ((vnode: VNode<RendererNode, RendererElement, {
55
+ [key: string]: any;
56
+ }>, oldVNode: VNode<RendererNode, RendererElement, {
57
+ [key: string]: any;
58
+ }>) => void) | ((vnode: VNode<RendererNode, RendererElement, {
59
+ [key: string]: any;
60
+ }>, oldVNode: VNode<RendererNode, RendererElement, {
61
+ [key: string]: any;
62
+ }>) => void)[] | undefined;
63
+ onVnodeUpdated?: ((vnode: VNode<RendererNode, RendererElement, {
64
+ [key: string]: any;
65
+ }>, oldVNode: VNode<RendererNode, RendererElement, {
66
+ [key: string]: any;
67
+ }>) => void) | ((vnode: VNode<RendererNode, RendererElement, {
68
+ [key: string]: any;
69
+ }>, oldVNode: VNode<RendererNode, RendererElement, {
70
+ [key: string]: any;
71
+ }>) => void)[] | undefined;
72
+ onVnodeBeforeUnmount?: ((vnode: VNode<RendererNode, RendererElement, {
73
+ [key: string]: any;
74
+ }>) => void) | ((vnode: VNode<RendererNode, RendererElement, {
75
+ [key: string]: any;
76
+ }>) => void)[] | undefined;
77
+ onVnodeUnmounted?: ((vnode: VNode<RendererNode, RendererElement, {
78
+ [key: string]: any;
79
+ }>) => void) | ((vnode: VNode<RendererNode, RendererElement, {
80
+ [key: string]: any;
81
+ }>) => void)[] | undefined;
82
+ class?: unknown;
83
+ };
84
+ $attrs: {
85
+ [x: string]: unknown;
86
+ };
87
+ $refs: {
88
+ [x: string]: unknown;
89
+ };
90
+ $slots: Readonly<{
91
+ [name: string]: Slot<any> | undefined;
92
+ }>;
93
+ $root: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
94
+ $parent: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
95
+ $emit: (event: string, ...args: any[]) => void;
96
+ $el: any;
97
+ $options: ComponentOptionsBase<Readonly<ExtractPropTypes<{
98
+ modalTitle: {
99
+ type: StringConstructor;
100
+ default: string;
101
+ };
102
+ apiUrls: {
103
+ type: StringConstructor;
104
+ default: string;
105
+ };
106
+ requestMethod: {
107
+ type: PropType<RequestMethod>;
108
+ default: string;
109
+ };
110
+ modalConfig: {
111
+ type: PropType<ModalConfig>;
112
+ default: () => {};
113
+ };
114
+ tableConfig: {
115
+ type: PropType<VxeTableProps<VxeTableDataRow>>;
116
+ default: () => {
117
+ height: number;
118
+ isTree: boolean;
119
+ radioConfig: {};
120
+ checkboxConfig: {
121
+ highlight: boolean;
122
+ reserve: boolean;
123
+ trigger: string;
124
+ };
125
+ pagerConfig: {};
126
+ treeConfig: {};
127
+ };
128
+ };
129
+ placeholder: {
130
+ type: StringConstructor;
131
+ default: string;
132
+ };
133
+ selectModal: {
134
+ type: PropType<ModalType>;
135
+ default: string;
136
+ };
137
+ }>>, {
138
+ classes: ComputedRef<{
139
+ [x: string]: boolean;
140
+ }>;
141
+ selectGrid: Ref<VxeGridInstance<any> | null>;
142
+ data: {
143
+ url: string;
144
+ params: {
145
+ pageNo: number;
146
+ pageSize: number;
147
+ keyWord?: string | undefined;
148
+ total?: number | undefined;
149
+ align?: string | undefined;
150
+ pageSizes?: number[] | undefined;
151
+ layouts?: string[] | undefined;
152
+ perfect?: boolean | undefined;
153
+ };
154
+ modalLoading: boolean;
155
+ loading: boolean;
156
+ };
157
+ modalShow: Ref<boolean>;
158
+ modalConfigComputed: ComputedRef<any>;
159
+ tableConfigComputed: ComputedRef<any>;
160
+ tablePage: {
161
+ currentPage: number;
162
+ pageSize: number;
163
+ total?: number | undefined;
164
+ align?: string | undefined;
165
+ pageSizes?: number[] | undefined;
166
+ layouts?: string[] | undefined;
167
+ perfect?: boolean | undefined;
168
+ };
169
+ tableData: Ref<Record<string, unknown>[]>;
170
+ columns: Ref<{
171
+ type?: string | undefined;
172
+ field?: string | undefined;
173
+ title?: string | undefined;
174
+ align?: string | undefined;
175
+ fieldLabelI18nKey?: string | undefined;
176
+ width?: number | undefined;
177
+ }[]>;
178
+ form: {
179
+ keyWord: string;
180
+ };
181
+ selectModal: Ref<ModalType>;
182
+ getPagerConfig: ComputedRef<any>;
183
+ modalTitle: Ref<string>;
184
+ placeholder: Ref<string>;
185
+ open: ({ url, params, columns: col, selectModal: sm, requestMethod: rm }: OpenFuncType) => void;
186
+ close: () => void;
187
+ onSearch: (keyWord: string) => void;
188
+ handlePageChange: ({ currentPage, pageSize }: TablePage) => void;
189
+ selectedOk: () => void;
190
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
191
+ apiUrls: string;
192
+ placeholder: string;
193
+ modalTitle: string;
194
+ requestMethod: RequestMethod;
195
+ modalConfig: ModalConfig;
196
+ tableConfig: VxeTableProps<VxeTableDataRow>;
197
+ selectModal: ModalType;
198
+ }, {}, string, {}> & {
199
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
200
+ created?: ((() => void) | (() => void)[]) | undefined;
201
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
202
+ mounted?: ((() => void) | (() => void)[]) | undefined;
203
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
204
+ updated?: ((() => void) | (() => void)[]) | undefined;
205
+ activated?: ((() => void) | (() => void)[]) | undefined;
206
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
207
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
208
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
209
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
210
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
211
+ renderTracked?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
212
+ renderTriggered?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
213
+ errorCaptured?: (((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void)[]) | undefined;
214
+ };
215
+ $forceUpdate: () => void;
216
+ $nextTick: typeof nextTick;
217
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: WatchOptions<boolean> | undefined): WatchStopHandle;
218
+ } & Readonly<ExtractPropTypes<{
219
+ modalTitle: {
220
+ type: StringConstructor;
221
+ default: string;
222
+ };
223
+ apiUrls: {
224
+ type: StringConstructor;
225
+ default: string;
226
+ };
227
+ requestMethod: {
228
+ type: PropType<RequestMethod>;
229
+ default: string;
230
+ };
231
+ modalConfig: {
232
+ type: PropType<ModalConfig>;
233
+ default: () => {};
234
+ };
235
+ tableConfig: {
236
+ type: PropType<VxeTableProps<VxeTableDataRow>>;
237
+ default: () => {
238
+ height: number;
239
+ isTree: boolean;
240
+ radioConfig: {};
241
+ checkboxConfig: {
242
+ highlight: boolean;
243
+ reserve: boolean;
244
+ trigger: string;
245
+ };
246
+ pagerConfig: {};
247
+ treeConfig: {};
248
+ };
249
+ };
250
+ placeholder: {
251
+ type: StringConstructor;
252
+ default: string;
253
+ };
254
+ selectModal: {
255
+ type: PropType<ModalType>;
256
+ default: string;
257
+ };
258
+ }>> & ShallowUnwrapRef<{
259
+ classes: ComputedRef<{
260
+ [x: string]: boolean;
261
+ }>;
262
+ selectGrid: Ref<VxeGridInstance<any> | null>;
263
+ data: {
264
+ url: string;
265
+ params: {
266
+ pageNo: number;
267
+ pageSize: number;
268
+ keyWord?: string | undefined;
269
+ total?: number | undefined;
270
+ align?: string | undefined;
271
+ pageSizes?: number[] | undefined;
272
+ layouts?: string[] | undefined;
273
+ perfect?: boolean | undefined;
274
+ };
275
+ modalLoading: boolean;
276
+ loading: boolean;
277
+ };
278
+ modalShow: Ref<boolean>;
279
+ modalConfigComputed: ComputedRef<any>;
280
+ tableConfigComputed: ComputedRef<any>;
281
+ tablePage: {
282
+ currentPage: number;
283
+ pageSize: number;
284
+ total?: number | undefined;
285
+ align?: string | undefined;
286
+ pageSizes?: number[] | undefined;
287
+ layouts?: string[] | undefined;
288
+ perfect?: boolean | undefined;
289
+ };
290
+ tableData: Ref<Record<string, unknown>[]>;
291
+ columns: Ref<{
292
+ type?: string | undefined;
293
+ field?: string | undefined;
294
+ title?: string | undefined;
295
+ align?: string | undefined;
296
+ fieldLabelI18nKey?: string | undefined;
297
+ width?: number | undefined;
298
+ }[]>;
299
+ form: {
300
+ keyWord: string;
301
+ };
302
+ selectModal: Ref<ModalType>;
303
+ getPagerConfig: ComputedRef<any>;
304
+ modalTitle: Ref<string>;
305
+ placeholder: Ref<string>;
306
+ open: ({ url, params, columns: col, selectModal: sm, requestMethod: rm }: OpenFuncType) => void;
307
+ close: () => void;
308
+ onSearch: (keyWord: string) => void;
309
+ handlePageChange: ({ currentPage, pageSize }: TablePage) => void;
310
+ selectedOk: () => void;
311
+ }> & {} & ComponentCustomProperties & {}) | undefined>;
312
+ openSelectModal: () => MessageType | undefined;
313
+ onChange: (checkedValues: RecordStringNumber[]) => void;
314
+ clearInputValue: () => void;
315
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
316
+ value: {
317
+ type: StringConstructor;
318
+ default: string;
319
+ };
320
+ config: {
321
+ type: PropType<Config>;
322
+ default: () => {};
323
+ };
324
+ onChange: {
325
+ type: PropType<((value: RecordStringNumber[]) => void) | ((value: RecordStringNumber[]) => void)[]>;
326
+ default: unknown;
327
+ };
328
+ }>>, {
329
+ onChange: ((value: RecordStringNumber[]) => void) | ((value: RecordStringNumber[]) => void)[];
330
+ value: string;
331
+ config: Config;
332
+ }, {}>>;
333
+ export default _default;
@@ -0,0 +1,51 @@
1
+ import type { ComputedRef, PropType, ExtractPropTypes, SetupContext } from 'vue';
2
+ import type { FormFieldsItem, Payload, RecordStringNumber } from './../../edit-page-layout';
3
+ import type { ModalType, RequestMethod } from './../../field-select-modal/src/field-select-modal-types';
4
+ export { RecordStringNumber };
5
+ export interface Columns {
6
+ type?: string;
7
+ field?: string;
8
+ title?: string;
9
+ align?: string;
10
+ fieldLabelI18nKey?: string;
11
+ width?: number;
12
+ }
13
+ export type HandleBefore = (value?: RecordStringNumber) => Promise<string | boolean | void>;
14
+ export type ModalParams = Record<number | string, unknown> | ((value?: RecordStringNumber) => Record<number | string, unknown>);
15
+ export interface DefaultPayload {
16
+ ctx?: SetupContext;
17
+ value?: Payload;
18
+ }
19
+ export interface Extend {
20
+ current?: number;
21
+ modalColumns?: Columns[];
22
+ modalUrl?: string;
23
+ modalConfigs?: unknown[];
24
+ modalParams?: ModalParams;
25
+ selectModal?: ModalType;
26
+ requestMethod?: RequestMethod;
27
+ handleBefore?: HandleBefore;
28
+ }
29
+ export interface Config extends FormFieldsItem {
30
+ extend: Extend;
31
+ }
32
+ export declare const selectModalProps: {
33
+ value: {
34
+ type: StringConstructor;
35
+ default: string;
36
+ };
37
+ config: {
38
+ type: PropType<Config>;
39
+ default: () => {};
40
+ };
41
+ onChange: {
42
+ type: PropType<((value: RecordStringNumber[]) => void) | ((value: RecordStringNumber[]) => void)[]>;
43
+ default: unknown;
44
+ };
45
+ };
46
+ export type SelectModalProps = ExtractPropTypes<typeof selectModalProps>;
47
+ export interface UseSelectModalType {
48
+ classes: ComputedRef<{
49
+ [key: string]: string | boolean;
50
+ }>;
51
+ }