@qqt-product/ui 0.0.12 → 0.0.13

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