@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
@@ -0,0 +1,31 @@
1
+ import type { DefineComponent, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
2
+ import type { SFCWithInstall } from '@qqt-product/utils/dist/modules/withInstall';
3
+ import QEditor from './src/index.vue';
4
+ declare const _default: SFCWithInstall<DefineComponent<{
5
+ content: {
6
+ type: StringConstructor;
7
+ default: string;
8
+ };
9
+ readonly: {
10
+ type: BooleanConstructor;
11
+ default: boolean;
12
+ };
13
+ }, {
14
+ editorRef: Ref<HTMLDivElement | undefined>;
15
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:content"[], "update:content", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
16
+ content: {
17
+ type: StringConstructor;
18
+ default: string;
19
+ };
20
+ readonly: {
21
+ type: BooleanConstructor;
22
+ default: boolean;
23
+ };
24
+ }>> & {
25
+ "onUpdate:content"?: ((...args: any[]) => any) | undefined;
26
+ }, {
27
+ readonly: boolean;
28
+ content: string;
29
+ }, {}>>;
30
+ export default _default;
31
+ export { QEditor };
@@ -0,0 +1,28 @@
1
+ import type { DefineComponent, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
2
+ declare const _sfc_main: DefineComponent<{
3
+ content: {
4
+ type: StringConstructor;
5
+ default: string;
6
+ };
7
+ readonly: {
8
+ type: BooleanConstructor;
9
+ default: boolean;
10
+ };
11
+ }, {
12
+ editorRef: Ref<HTMLDivElement | undefined>;
13
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:content"[], "update:content", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
14
+ content: {
15
+ type: StringConstructor;
16
+ default: string;
17
+ };
18
+ readonly: {
19
+ type: BooleanConstructor;
20
+ default: boolean;
21
+ };
22
+ }>> & {
23
+ "onUpdate:content"?: ((...args: any[]) => any) | undefined;
24
+ }, {
25
+ readonly: boolean;
26
+ content: string;
27
+ }, {}>;
28
+ export default _sfc_main;
@@ -0,0 +1,150 @@
1
+ import type { VxeTableProps, VxeTableDataRow, VxeGridInstance } from 'vxe-table';
2
+ import type { RequestMethod, ModalConfig, ModalType, OpenFuncType, TablePage } from './src/field-select-modal-types';
3
+ import type { DefineComponent, PropType, ComputedRef, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
4
+ import type { SFCWithInstall } from '@qqt-product/utils/dist/modules/withInstall';
5
+ import QFieldSelectModal from './src/field-select-modal.vue';
6
+ export * from './src/field-select-modal-types';
7
+ export { QFieldSelectModal };
8
+ declare const _default: SFCWithInstall<DefineComponent<{
9
+ modalTitle: {
10
+ type: StringConstructor;
11
+ default: string;
12
+ };
13
+ apiUrls: {
14
+ type: StringConstructor;
15
+ default: string;
16
+ };
17
+ requestMethod: {
18
+ type: PropType<RequestMethod>;
19
+ default: string;
20
+ };
21
+ modalConfig: {
22
+ type: PropType<ModalConfig>;
23
+ default: () => {};
24
+ };
25
+ tableConfig: {
26
+ type: PropType<VxeTableProps<VxeTableDataRow>>;
27
+ default: () => {
28
+ height: number;
29
+ isTree: boolean;
30
+ radioConfig: {};
31
+ checkboxConfig: {
32
+ highlight: boolean;
33
+ reserve: boolean;
34
+ trigger: string;
35
+ };
36
+ pagerConfig: {};
37
+ treeConfig: {};
38
+ };
39
+ };
40
+ placeholder: {
41
+ type: StringConstructor;
42
+ default: string;
43
+ };
44
+ selectModal: {
45
+ type: PropType<ModalType>;
46
+ default: string;
47
+ };
48
+ }, {
49
+ classes: ComputedRef<{
50
+ [x: string]: boolean;
51
+ }>;
52
+ selectGrid: Ref<VxeGridInstance<any> | null>;
53
+ data: {
54
+ url: string;
55
+ params: {
56
+ pageNo: number;
57
+ pageSize: number;
58
+ keyWord?: string | undefined;
59
+ total?: number | undefined;
60
+ align?: string | undefined;
61
+ pageSizes?: number[] | undefined;
62
+ layouts?: string[] | undefined;
63
+ perfect?: boolean | undefined;
64
+ };
65
+ modalLoading: boolean;
66
+ loading: boolean;
67
+ };
68
+ modalShow: Ref<boolean>;
69
+ modalConfigComputed: ComputedRef<any>;
70
+ tableConfigComputed: ComputedRef<any>;
71
+ tablePage: {
72
+ currentPage: number;
73
+ pageSize: number;
74
+ total?: number | undefined;
75
+ align?: string | undefined;
76
+ pageSizes?: number[] | undefined;
77
+ layouts?: string[] | undefined;
78
+ perfect?: boolean | undefined;
79
+ };
80
+ tableData: Ref<Record<string, unknown>[]>;
81
+ columns: Ref<{
82
+ type?: string | undefined;
83
+ field?: string | undefined;
84
+ title?: string | undefined;
85
+ align?: string | undefined;
86
+ fieldLabelI18nKey?: string | undefined;
87
+ width?: number | undefined;
88
+ }[]>;
89
+ form: {
90
+ keyWord: string;
91
+ };
92
+ selectModal: Ref<ModalType>;
93
+ getPagerConfig: ComputedRef<any>;
94
+ modalTitle: Ref<string>;
95
+ placeholder: Ref<string>;
96
+ open: ({ url, params, columns: col, selectModal: sm, requestMethod: rm }: OpenFuncType) => void;
97
+ close: () => void;
98
+ onSearch: (keyWord: string) => void;
99
+ handlePageChange: ({ currentPage, pageSize }: TablePage) => void;
100
+ selectedOk: () => void;
101
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
102
+ modalTitle: {
103
+ type: StringConstructor;
104
+ default: string;
105
+ };
106
+ apiUrls: {
107
+ type: StringConstructor;
108
+ default: string;
109
+ };
110
+ requestMethod: {
111
+ type: PropType<RequestMethod>;
112
+ default: string;
113
+ };
114
+ modalConfig: {
115
+ type: PropType<ModalConfig>;
116
+ default: () => {};
117
+ };
118
+ tableConfig: {
119
+ type: PropType<VxeTableProps<VxeTableDataRow>>;
120
+ default: () => {
121
+ height: number;
122
+ isTree: boolean;
123
+ radioConfig: {};
124
+ checkboxConfig: {
125
+ highlight: boolean;
126
+ reserve: boolean;
127
+ trigger: string;
128
+ };
129
+ pagerConfig: {};
130
+ treeConfig: {};
131
+ };
132
+ };
133
+ placeholder: {
134
+ type: StringConstructor;
135
+ default: string;
136
+ };
137
+ selectModal: {
138
+ type: PropType<ModalType>;
139
+ default: string;
140
+ };
141
+ }>>, {
142
+ apiUrls: string;
143
+ placeholder: string;
144
+ modalTitle: string;
145
+ requestMethod: RequestMethod;
146
+ modalConfig: ModalConfig;
147
+ tableConfig: VxeTableProps<VxeTableDataRow>;
148
+ selectModal: ModalType;
149
+ }, {}>>;
150
+ export default _default;
@@ -0,0 +1,85 @@
1
+ import type { ExtractPropTypes, PropType } from 'vue';
2
+ import type { VxeTableDataRow, VxeTableProps } from 'vxe-table';
3
+ export interface ModalConfig {
4
+ isTree?: boolean;
5
+ }
6
+ export type RequestMethod = 'get' | 'post';
7
+ export type TableConfig = VxeTableProps;
8
+ export type ModalType = 'single' | 'multiple' | '';
9
+ export interface Columns {
10
+ type?: string;
11
+ field?: string;
12
+ title?: string;
13
+ align?: string;
14
+ fieldLabelI18nKey?: string;
15
+ width?: number;
16
+ }
17
+ export interface OpenFuncType {
18
+ url: string;
19
+ params?: object;
20
+ columns: Columns[];
21
+ selectModal?: ModalType;
22
+ requestMethod?: RequestMethod;
23
+ }
24
+ interface BasePage {
25
+ total?: number;
26
+ align?: string;
27
+ pageSizes?: number[];
28
+ layouts?: string[];
29
+ perfect?: boolean;
30
+ }
31
+ export interface TablePage extends BasePage {
32
+ currentPage: number;
33
+ pageSize: number;
34
+ }
35
+ export interface Params extends BasePage {
36
+ pageNo: number;
37
+ pageSize: number;
38
+ keyWord?: string;
39
+ }
40
+ export interface EmptyObj {
41
+ [key: string]: never;
42
+ }
43
+ export declare const fieldSelectModalProps: {
44
+ modalTitle: {
45
+ type: StringConstructor;
46
+ default: string;
47
+ };
48
+ apiUrls: {
49
+ type: StringConstructor;
50
+ default: string;
51
+ };
52
+ requestMethod: {
53
+ type: PropType<RequestMethod>;
54
+ default: string;
55
+ };
56
+ modalConfig: {
57
+ type: PropType<ModalConfig>;
58
+ default: () => {};
59
+ };
60
+ tableConfig: {
61
+ type: PropType<VxeTableProps<VxeTableDataRow>>;
62
+ default: () => {
63
+ height: number;
64
+ isTree: boolean;
65
+ radioConfig: {};
66
+ checkboxConfig: {
67
+ highlight: boolean;
68
+ reserve: boolean;
69
+ trigger: string;
70
+ };
71
+ pagerConfig: {};
72
+ treeConfig: {};
73
+ };
74
+ };
75
+ placeholder: {
76
+ type: StringConstructor;
77
+ default: string;
78
+ };
79
+ selectModal: {
80
+ type: PropType<ModalType>;
81
+ default: string;
82
+ };
83
+ };
84
+ export type FieldSelectModalProps = ExtractPropTypes<typeof fieldSelectModalProps>;
85
+ export {};
@@ -0,0 +1,146 @@
1
+ import type { DefineComponent, PropType, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, ComputedRef } from 'vue';
2
+ import type { RequestMethod, ModalConfig, ModalType, OpenFuncType, TablePage } from './field-select-modal-types';
3
+ import type { VxeTableProps, VxeTableDataRow, VxeGridInstance } from 'vxe-table';
4
+ declare const _sfc_main: DefineComponent<{
5
+ modalTitle: {
6
+ type: StringConstructor;
7
+ default: string;
8
+ };
9
+ apiUrls: {
10
+ type: StringConstructor;
11
+ default: string;
12
+ };
13
+ requestMethod: {
14
+ type: PropType<RequestMethod>;
15
+ default: string;
16
+ };
17
+ modalConfig: {
18
+ type: PropType<ModalConfig>;
19
+ default: () => {};
20
+ };
21
+ tableConfig: {
22
+ type: PropType<VxeTableProps<VxeTableDataRow>>;
23
+ default: () => {
24
+ height: number;
25
+ isTree: boolean;
26
+ radioConfig: {};
27
+ checkboxConfig: {
28
+ highlight: boolean;
29
+ reserve: boolean;
30
+ trigger: string;
31
+ };
32
+ pagerConfig: {};
33
+ treeConfig: {};
34
+ };
35
+ };
36
+ placeholder: {
37
+ type: StringConstructor;
38
+ default: string;
39
+ };
40
+ selectModal: {
41
+ type: PropType<ModalType>;
42
+ default: string;
43
+ };
44
+ }, {
45
+ classes: ComputedRef<{
46
+ [x: string]: boolean;
47
+ }>;
48
+ selectGrid: Ref<VxeGridInstance<any> | null>;
49
+ data: {
50
+ url: string;
51
+ params: {
52
+ pageNo: number;
53
+ pageSize: number;
54
+ keyWord?: string | undefined;
55
+ total?: number | undefined;
56
+ align?: string | undefined;
57
+ pageSizes?: number[] | undefined;
58
+ layouts?: string[] | undefined;
59
+ perfect?: boolean | undefined;
60
+ };
61
+ modalLoading: boolean;
62
+ loading: boolean;
63
+ };
64
+ modalShow: Ref<boolean>;
65
+ modalConfigComputed: ComputedRef<any>;
66
+ tableConfigComputed: ComputedRef<any>;
67
+ tablePage: {
68
+ currentPage: number;
69
+ pageSize: number;
70
+ total?: number | undefined;
71
+ align?: string | undefined;
72
+ pageSizes?: number[] | undefined;
73
+ layouts?: string[] | undefined;
74
+ perfect?: boolean | undefined;
75
+ };
76
+ tableData: Ref<Record<string, unknown>[]>;
77
+ columns: Ref<{
78
+ type?: string | undefined;
79
+ field?: string | undefined;
80
+ title?: string | undefined;
81
+ align?: string | undefined;
82
+ fieldLabelI18nKey?: string | undefined;
83
+ width?: number | undefined;
84
+ }[]>;
85
+ form: {
86
+ keyWord: string;
87
+ };
88
+ selectModal: Ref<ModalType>;
89
+ getPagerConfig: ComputedRef<any>;
90
+ modalTitle: Ref<string>;
91
+ placeholder: Ref<string>;
92
+ open: ({ url, params, columns: col, selectModal: sm, requestMethod: rm }: OpenFuncType) => void;
93
+ close: () => void;
94
+ onSearch: (keyWord: string) => void;
95
+ handlePageChange: ({ currentPage, pageSize }: TablePage) => void;
96
+ selectedOk: () => void;
97
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, 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
+ apiUrls: string;
139
+ placeholder: string;
140
+ modalTitle: string;
141
+ requestMethod: RequestMethod;
142
+ modalConfig: ModalConfig;
143
+ tableConfig: VxeTableProps<VxeTableDataRow>;
144
+ selectModal: ModalType;
145
+ }, {}>;
146
+ export default _sfc_main;
@@ -0,0 +1,6 @@
1
+ import type { ComputedRef } from 'vue';
2
+ export default function useFieldSelectModal(): {
3
+ classes: ComputedRef<{
4
+ [x: string]: boolean;
5
+ }>;
6
+ };
@@ -1,13 +1,33 @@
1
1
  import * as QLayout from './layout';
2
2
  import * as QSwitch from './switch';
3
3
  import * as QSelect from './select';
4
+ import * as QTreeSelect from './tree-select';
5
+ import * as QVxeSelect from './vxe-select';
4
6
  import * as QCascader from './cascader';
7
+ import * as QBreadcrumb from './breadcrumb';
8
+ import * as QCollapseTransition from './collapse-transition';
9
+ import * as QFieldSelectModal from './field-select-modal';
10
+ import * as QSelectModal from './select-modal';
11
+ import * as QRemoteSelect from './remote-select';
12
+ import * as QEditor from './editor';
5
13
  import * as QEditPageLayout from './edit-page-layout';
14
+ import * as QDetailPageLayout from './detail-page-layout';
6
15
  import * as QPageLayout from './page-layout';
7
16
  import * as QLayoutPattern from './layout-pattern';
8
- import * as QLayoutHeader from './layout-header';
9
17
  import * as QLayoutButtons from './layout-buttons';
10
- import * as QLayoutAuchor from './layout-auchor';
18
+ import * as QLayoutAnchor from './layout-anchor';
11
19
  import * as QEditForm from './edit-form';
20
+ import * as QDetailForm from './detail-form';
12
21
  import * as QEditGrid from './edit-grid';
13
- export { QLayout, QSwitch, QSelect, QCascader, QEditPageLayout, QPageLayout, QLayoutPattern, QLayoutHeader, QLayoutButtons, QLayoutAuchor, QEditForm, QEditGrid };
22
+ import * as QDetailGrid from './detail-grid';
23
+ import * as QItemWrap from './item-wrap';
24
+ import * as QListLayout from './list-page-layout';
25
+ import * as QRadio from './radio';
26
+ import * as QCodeEditorModel from './codeEditorModel';
27
+ import * as QCheckBox from './checkbox';
28
+ import * as QCurrency from './currency';
29
+ import * as QUploadImage from './upload-image';
30
+ import * as QUploadFile from './upload-file';
31
+ import * as QCoutdown from './coutdown/index';
32
+ import * as QCardListLayout from './card-list-layout/index';
33
+ export { QLayout, QSwitch, QSelect, QTreeSelect, QVxeSelect, QCascader, QBreadcrumb, QCollapseTransition, QEditPageLayout, QDetailPageLayout, QPageLayout, QLayoutPattern, QLayoutButtons, QLayoutAnchor, QEditForm, QDetailForm, QEditGrid, QDetailGrid, QItemWrap, QListLayout, QRadio, QFieldSelectModal, QCodeEditorModel, QCheckBox, QCurrency, QSelectModal, QUploadImage, QRemoteSelect, QEditor, QUploadFile, QCoutdown, QCardListLayout, };
@@ -0,0 +1,57 @@
1
+ import type { requiredValidator } from './src/item-wrap-types';
2
+ import type { DefineComponent, PropType, ComputedRef, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
3
+ import type { SFCWithInstall } from '@qqt-product/utils/dist/modules/withInstall';
4
+ import QItemWrap from './src/item-wrap.vue';
5
+ export * from './src/item-wrap-types';
6
+ export { QItemWrap };
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
+ readonly disabled: {
14
+ readonly type: BooleanConstructor;
15
+ readonly default: false;
16
+ };
17
+ readonly label: {
18
+ readonly type: StringConstructor;
19
+ readonly default: "";
20
+ };
21
+ readonly helpText: {
22
+ readonly type: StringConstructor;
23
+ readonly default: "";
24
+ };
25
+ }, {
26
+ classes: ComputedRef<{
27
+ [key: string]: string | boolean;
28
+ }>;
29
+ label: string;
30
+ helpText: string;
31
+ required: Ref<"0" | "1">;
32
+ disabled: Ref<boolean>;
33
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
34
+ readonly required: {
35
+ readonly type: PropType<"0" | "1">;
36
+ readonly default: "";
37
+ readonly validator: typeof requiredValidator;
38
+ };
39
+ readonly disabled: {
40
+ readonly type: BooleanConstructor;
41
+ readonly default: false;
42
+ };
43
+ readonly label: {
44
+ readonly type: StringConstructor;
45
+ readonly default: "";
46
+ };
47
+ readonly helpText: {
48
+ readonly type: StringConstructor;
49
+ readonly default: "";
50
+ };
51
+ }>>, {
52
+ readonly label: string;
53
+ readonly disabled: boolean;
54
+ readonly required: "0" | "1";
55
+ readonly helpText: string;
56
+ }, {}>>;
57
+ export default _default;
@@ -0,0 +1,27 @@
1
+ import type { ComputedRef, PropType, ExtractPropTypes } from 'vue';
2
+ export declare function requiredValidator(val: string): boolean;
3
+ export declare const itemWrapProps: {
4
+ readonly required: {
5
+ readonly type: PropType<"0" | "1">;
6
+ readonly default: "";
7
+ readonly validator: typeof requiredValidator;
8
+ };
9
+ readonly disabled: {
10
+ readonly type: BooleanConstructor;
11
+ readonly default: false;
12
+ };
13
+ readonly label: {
14
+ readonly type: StringConstructor;
15
+ readonly default: "";
16
+ };
17
+ readonly helpText: {
18
+ readonly type: StringConstructor;
19
+ readonly default: "";
20
+ };
21
+ };
22
+ export type ItemWrapProps = ExtractPropTypes<typeof itemWrapProps>;
23
+ export interface ItemWrapReturnType {
24
+ classes: ComputedRef<{
25
+ [key: string]: string | boolean;
26
+ }>;
27
+ }
@@ -0,0 +1,53 @@
1
+ import type { requiredValidator } from './item-wrap-types';
2
+ import type { DefineComponent, PropType, ComputedRef, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
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
+ readonly disabled: {
10
+ readonly type: BooleanConstructor;
11
+ readonly default: false;
12
+ };
13
+ readonly label: {
14
+ readonly type: StringConstructor;
15
+ readonly default: "";
16
+ };
17
+ readonly helpText: {
18
+ readonly type: StringConstructor;
19
+ readonly default: "";
20
+ };
21
+ }, {
22
+ classes: ComputedRef<{
23
+ [key: string]: string | boolean;
24
+ }>;
25
+ label: string;
26
+ helpText: string;
27
+ required: Ref<"0" | "1">;
28
+ disabled: Ref<boolean>;
29
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
30
+ readonly required: {
31
+ readonly type: PropType<"0" | "1">;
32
+ readonly default: "";
33
+ readonly validator: typeof requiredValidator;
34
+ };
35
+ readonly disabled: {
36
+ readonly type: BooleanConstructor;
37
+ readonly default: false;
38
+ };
39
+ readonly label: {
40
+ readonly type: StringConstructor;
41
+ readonly default: "";
42
+ };
43
+ readonly helpText: {
44
+ readonly type: StringConstructor;
45
+ readonly default: "";
46
+ };
47
+ }>>, {
48
+ readonly label: string;
49
+ readonly disabled: boolean;
50
+ readonly required: "0" | "1";
51
+ readonly helpText: string;
52
+ }, {}>;
53
+ export default _sfc_main;
@@ -0,0 +1,2 @@
1
+ import { ItemWrapProps, ItemWrapReturnType } from './item-wrap-types';
2
+ export default function useInput(props: ItemWrapProps): ItemWrapReturnType;