@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,37 +1,31 @@
1
1
  import type { CascaderOptionType } from 'ant-design-vue/lib/cascader';
2
2
  import type { ComputedRef, PropType, ExtractPropTypes } from 'vue';
3
- export declare function requiredValidator(val: string): boolean;
4
3
  export declare const cascaderProps: {
5
- required: {
6
- type: PropType<"0" | "1">;
7
- default: string;
8
- validator: typeof requiredValidator;
4
+ readonly value: {
5
+ readonly type: StringConstructor;
6
+ readonly default: "";
9
7
  };
10
- value: {
11
- type: StringConstructor;
12
- default: string;
8
+ readonly busAccount: {
9
+ readonly type: StringConstructor;
10
+ readonly default: "";
13
11
  };
14
- busAccount: {
15
- type: StringConstructor;
16
- default: string;
12
+ readonly placeholder: {
13
+ readonly type: StringConstructor;
14
+ readonly default: "请选择";
17
15
  };
18
- placeholder: {
19
- type: StringConstructor;
20
- default: string;
16
+ readonly dictCode: {
17
+ readonly type: StringConstructor;
18
+ readonly default: "";
21
19
  };
22
- dictCode: {
23
- type: StringConstructor;
24
- default: string;
20
+ readonly options: {
21
+ readonly type: PropType<CascaderOptionType[] | undefined>;
22
+ readonly default: () => never[];
25
23
  };
26
- options: {
27
- type: PropType<CascaderOptionType[] | undefined>;
28
- default: () => never[];
29
- };
30
- 'onUpdate:value': {
24
+ readonly 'onUpdate:value': {
31
25
  type: PropType<((value: string) => void) | ((value: string) => void)[]>;
32
26
  default: unknown;
33
27
  };
34
- onChange: {
28
+ readonly onChange: {
35
29
  type: PropType<((value: string) => void) | ((value: string) => void)[]>;
36
30
  default: unknown;
37
31
  };
@@ -1,37 +1,31 @@
1
1
  import type { CascaderOptionType } from 'ant-design-vue/lib/cascader';
2
- import type { requiredValidator } from './cascader-types';
3
2
  import type { DefineComponent, PropType, ComputedRef, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
4
3
  declare const _sfc_main: DefineComponent<{
5
- required: {
6
- type: PropType<"0" | "1">;
7
- default: string;
8
- validator: typeof requiredValidator;
4
+ readonly value: {
5
+ readonly type: StringConstructor;
6
+ readonly default: "";
9
7
  };
10
- value: {
11
- type: StringConstructor;
12
- default: string;
8
+ readonly busAccount: {
9
+ readonly type: StringConstructor;
10
+ readonly default: "";
13
11
  };
14
- busAccount: {
15
- type: StringConstructor;
16
- default: string;
12
+ readonly placeholder: {
13
+ readonly type: StringConstructor;
14
+ readonly default: "请选择";
17
15
  };
18
- placeholder: {
19
- type: StringConstructor;
20
- default: string;
16
+ readonly dictCode: {
17
+ readonly type: StringConstructor;
18
+ readonly default: "";
21
19
  };
22
- dictCode: {
23
- type: StringConstructor;
24
- default: string;
20
+ readonly options: {
21
+ readonly type: PropType<CascaderOptionType[] | undefined>;
22
+ readonly default: () => never[];
25
23
  };
26
- options: {
27
- type: PropType<CascaderOptionType[] | undefined>;
28
- default: () => never[];
29
- };
30
- 'onUpdate:value': {
24
+ readonly 'onUpdate:value': {
31
25
  type: PropType<((value: string) => void) | ((value: string) => void)[]>;
32
26
  default: unknown;
33
27
  };
34
- onChange: {
28
+ readonly onChange: {
35
29
  type: PropType<((value: string) => void) | ((value: string) => void)[]>;
36
30
  default: unknown;
37
31
  };
@@ -49,50 +43,44 @@ declare const _sfc_main: DefineComponent<{
49
43
  }[]>;
50
44
  onChange: (value: string) => void;
51
45
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("update:value" | "change")[], "update:value" | "change", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
52
- required: {
53
- type: PropType<"0" | "1">;
54
- default: string;
55
- validator: typeof requiredValidator;
56
- };
57
- value: {
58
- type: StringConstructor;
59
- default: string;
46
+ readonly value: {
47
+ readonly type: StringConstructor;
48
+ readonly default: "";
60
49
  };
61
- busAccount: {
62
- type: StringConstructor;
63
- default: string;
50
+ readonly busAccount: {
51
+ readonly type: StringConstructor;
52
+ readonly default: "";
64
53
  };
65
- placeholder: {
66
- type: StringConstructor;
67
- default: string;
54
+ readonly placeholder: {
55
+ readonly type: StringConstructor;
56
+ readonly default: "请选择";
68
57
  };
69
- dictCode: {
70
- type: StringConstructor;
71
- default: string;
58
+ readonly dictCode: {
59
+ readonly type: StringConstructor;
60
+ readonly default: "";
72
61
  };
73
- options: {
74
- type: PropType<CascaderOptionType[] | undefined>;
75
- default: () => never[];
62
+ readonly options: {
63
+ readonly type: PropType<CascaderOptionType[] | undefined>;
64
+ readonly default: () => never[];
76
65
  };
77
- 'onUpdate:value': {
66
+ readonly 'onUpdate:value': {
78
67
  type: PropType<((value: string) => void) | ((value: string) => void)[]>;
79
68
  default: unknown;
80
69
  };
81
- onChange: {
70
+ readonly onChange: {
82
71
  type: PropType<((value: string) => void) | ((value: string) => void)[]>;
83
72
  default: unknown;
84
73
  };
85
74
  }>> & {
86
- "onUpdate:value"?: ((...args: any[]) => any) | undefined;
87
75
  onChange?: ((...args: any[]) => any) | undefined;
76
+ "onUpdate:value"?: ((...args: any[]) => any) | undefined;
88
77
  }, {
89
- options: CascaderOptionType[] | undefined;
90
- 'onUpdate:value': ((value: string) => void) | ((value: string) => void)[];
91
- onChange: ((value: string) => void) | ((value: string) => void)[];
92
- value: string;
93
- placeholder: string;
94
- required: "0" | "1";
95
- busAccount: string;
96
- dictCode: string;
78
+ readonly dictCode: string;
79
+ readonly busAccount: string;
80
+ readonly options: CascaderOptionType[] | undefined;
81
+ readonly placeholder: string;
82
+ readonly value: string;
83
+ readonly onChange: ((value: string) => void) | ((value: string) => void)[];
84
+ readonly 'onUpdate:value': ((value: string) => void) | ((value: string) => void)[];
97
85
  }>;
98
86
  export default _sfc_main;
@@ -1,2 +1,2 @@
1
- import { CustomCascaderProps, UseCascaderReturnType } from './cascader-types';
2
- export default function useCascader(props: CustomCascaderProps): UseCascaderReturnType;
1
+ import { UseCascaderReturnType } from './cascader-types';
2
+ export default function useCascader(): UseCascaderReturnType;
@@ -0,0 +1,113 @@
1
+ import type { Option } from './src/checkbox-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 QCheckBox from './src/checkbox.vue';
5
+ export * from './src/checkbox-types';
6
+ export { QCheckBox };
7
+ declare const _default: SFCWithInstall<DefineComponent<{
8
+ readonly required: {
9
+ readonly type: PropType<"0" | "1">;
10
+ readonly default: 1;
11
+ };
12
+ readonly options: {
13
+ readonly type: PropType<Option[]>;
14
+ readonly default: () => never[];
15
+ };
16
+ readonly busAccount: {
17
+ readonly type: StringConstructor;
18
+ readonly default: "";
19
+ };
20
+ readonly value: {
21
+ readonly type: StringConstructor;
22
+ readonly default: "";
23
+ };
24
+ readonly dictCode: {
25
+ readonly type: StringConstructor;
26
+ readonly default: "";
27
+ };
28
+ readonly isLayout: {
29
+ readonly type: BooleanConstructor;
30
+ readonly default: false;
31
+ };
32
+ readonly colSpan: {
33
+ readonly type: StringConstructor;
34
+ readonly default: "6";
35
+ };
36
+ readonly selectControlType: {
37
+ readonly type: StringConstructor;
38
+ readonly default: "";
39
+ };
40
+ readonly 'onUpdate:value': {
41
+ type: PropType<((value: string) => void) | ((value: string) => void)[]>;
42
+ default: unknown;
43
+ };
44
+ readonly onChange: {
45
+ type: PropType<((value: string) => void) | ((value: string) => void)[]>;
46
+ default: unknown;
47
+ };
48
+ }, {
49
+ classes: ComputedRef<{
50
+ [key: string]: string | boolean;
51
+ }>;
52
+ realValue: Ref<string[]>;
53
+ checkBoxOptions: Ref<Option[]>;
54
+ isLayout: Ref<boolean>;
55
+ colSpan: Ref<string | number>;
56
+ onChange: (checkedValues: []) => void;
57
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("update:value" | "change")[], "update:value" | "change", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
58
+ readonly required: {
59
+ readonly type: PropType<"0" | "1">;
60
+ readonly default: 1;
61
+ };
62
+ readonly options: {
63
+ readonly type: PropType<Option[]>;
64
+ readonly default: () => never[];
65
+ };
66
+ readonly busAccount: {
67
+ readonly type: StringConstructor;
68
+ readonly default: "";
69
+ };
70
+ readonly value: {
71
+ readonly type: StringConstructor;
72
+ readonly default: "";
73
+ };
74
+ readonly dictCode: {
75
+ readonly type: StringConstructor;
76
+ readonly default: "";
77
+ };
78
+ readonly isLayout: {
79
+ readonly type: BooleanConstructor;
80
+ readonly default: false;
81
+ };
82
+ readonly colSpan: {
83
+ readonly type: StringConstructor;
84
+ readonly default: "6";
85
+ };
86
+ readonly selectControlType: {
87
+ readonly type: StringConstructor;
88
+ readonly default: "";
89
+ };
90
+ readonly 'onUpdate:value': {
91
+ type: PropType<((value: string) => void) | ((value: string) => void)[]>;
92
+ default: unknown;
93
+ };
94
+ readonly onChange: {
95
+ type: PropType<((value: string) => void) | ((value: string) => void)[]>;
96
+ default: unknown;
97
+ };
98
+ }>> & {
99
+ onChange?: ((...args: any[]) => any) | undefined;
100
+ "onUpdate:value"?: ((...args: any[]) => any) | undefined;
101
+ }, {
102
+ readonly dictCode: string;
103
+ readonly busAccount: string;
104
+ readonly required: "0" | "1";
105
+ readonly options: Option[];
106
+ readonly colSpan: string;
107
+ readonly value: string;
108
+ readonly onChange: ((value: string) => void) | ((value: string) => void)[];
109
+ readonly 'onUpdate:value': ((value: string) => void) | ((value: string) => void)[];
110
+ readonly isLayout: boolean;
111
+ readonly selectControlType: string;
112
+ }>>;
113
+ export default _default;
@@ -0,0 +1,62 @@
1
+ import { ExtractPropTypes, PropType, Ref, ComputedRef } from 'vue';
2
+ export interface Option {
3
+ title: string;
4
+ value: string;
5
+ disabled?: boolean;
6
+ indeterminate?: boolean;
7
+ id: string;
8
+ textI18nKey?: string;
9
+ label?: string;
10
+ }
11
+ export type checkBoxOptions = Option;
12
+ export declare const checkBoxProps: {
13
+ readonly required: {
14
+ readonly type: PropType<"0" | "1">;
15
+ readonly default: 1;
16
+ };
17
+ readonly options: {
18
+ readonly type: PropType<Option[]>;
19
+ readonly default: () => never[];
20
+ };
21
+ readonly busAccount: {
22
+ readonly type: StringConstructor;
23
+ readonly default: "";
24
+ };
25
+ readonly value: {
26
+ readonly type: StringConstructor;
27
+ readonly default: "";
28
+ };
29
+ readonly dictCode: {
30
+ readonly type: StringConstructor;
31
+ readonly default: "";
32
+ };
33
+ readonly isLayout: {
34
+ readonly type: BooleanConstructor;
35
+ readonly default: false;
36
+ };
37
+ readonly colSpan: {
38
+ readonly type: StringConstructor;
39
+ readonly default: "6";
40
+ };
41
+ readonly selectControlType: {
42
+ readonly type: StringConstructor;
43
+ readonly default: "";
44
+ };
45
+ readonly 'onUpdate:value': {
46
+ type: PropType<((value: string) => void) | ((value: string) => void)[]>;
47
+ default: unknown;
48
+ };
49
+ readonly onChange: {
50
+ type: PropType<((value: string) => void) | ((value: string) => void)[]>;
51
+ default: unknown;
52
+ };
53
+ };
54
+ export type CheckBoxProps = ExtractPropTypes<typeof checkBoxProps>;
55
+ export interface UseCheckBoxReturnType {
56
+ classes: ComputedRef<{
57
+ [key: string]: string | boolean;
58
+ }>;
59
+ isLayout: Ref<boolean>;
60
+ colSpan: Ref<string | number>;
61
+ options: Ref<checkBoxOptions[]>;
62
+ }
@@ -0,0 +1,109 @@
1
+ import type { DefineComponent, PropType, ComputedRef, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
2
+ import { Option } from './checkbox-types';
3
+ declare const _sfc_main: DefineComponent<{
4
+ readonly required: {
5
+ readonly type: PropType<"0" | "1">;
6
+ readonly default: 1;
7
+ };
8
+ readonly options: {
9
+ readonly type: PropType<Option[]>;
10
+ readonly default: () => never[];
11
+ };
12
+ readonly busAccount: {
13
+ readonly type: StringConstructor;
14
+ readonly default: "";
15
+ };
16
+ readonly value: {
17
+ readonly type: StringConstructor;
18
+ readonly default: "";
19
+ };
20
+ readonly dictCode: {
21
+ readonly type: StringConstructor;
22
+ readonly default: "";
23
+ };
24
+ readonly isLayout: {
25
+ readonly type: BooleanConstructor;
26
+ readonly default: false;
27
+ };
28
+ readonly colSpan: {
29
+ readonly type: StringConstructor;
30
+ readonly default: "6";
31
+ };
32
+ readonly selectControlType: {
33
+ readonly type: StringConstructor;
34
+ readonly default: "";
35
+ };
36
+ readonly 'onUpdate:value': {
37
+ type: PropType<((value: string) => void) | ((value: string) => void)[]>;
38
+ default: unknown;
39
+ };
40
+ readonly onChange: {
41
+ type: PropType<((value: string) => void) | ((value: string) => void)[]>;
42
+ default: unknown;
43
+ };
44
+ }, {
45
+ classes: ComputedRef<{
46
+ [key: string]: string | boolean;
47
+ }>;
48
+ realValue: Ref<string[]>;
49
+ checkBoxOptions: Ref<Option[]>;
50
+ isLayout: Ref<boolean>;
51
+ colSpan: Ref<string | number>;
52
+ onChange: (checkedValues: []) => void;
53
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("update:value" | "change")[], "update:value" | "change", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
54
+ readonly required: {
55
+ readonly type: PropType<"0" | "1">;
56
+ readonly default: 1;
57
+ };
58
+ readonly options: {
59
+ readonly type: PropType<Option[]>;
60
+ readonly default: () => never[];
61
+ };
62
+ readonly busAccount: {
63
+ readonly type: StringConstructor;
64
+ readonly default: "";
65
+ };
66
+ readonly value: {
67
+ readonly type: StringConstructor;
68
+ readonly default: "";
69
+ };
70
+ readonly dictCode: {
71
+ readonly type: StringConstructor;
72
+ readonly default: "";
73
+ };
74
+ readonly isLayout: {
75
+ readonly type: BooleanConstructor;
76
+ readonly default: false;
77
+ };
78
+ readonly colSpan: {
79
+ readonly type: StringConstructor;
80
+ readonly default: "6";
81
+ };
82
+ readonly selectControlType: {
83
+ readonly type: StringConstructor;
84
+ readonly default: "";
85
+ };
86
+ readonly 'onUpdate:value': {
87
+ type: PropType<((value: string) => void) | ((value: string) => void)[]>;
88
+ default: unknown;
89
+ };
90
+ readonly onChange: {
91
+ type: PropType<((value: string) => void) | ((value: string) => void)[]>;
92
+ default: unknown;
93
+ };
94
+ }>> & {
95
+ onChange?: ((...args: any[]) => any) | undefined;
96
+ "onUpdate:value"?: ((...args: any[]) => any) | undefined;
97
+ }, {
98
+ readonly dictCode: string;
99
+ readonly busAccount: string;
100
+ readonly required: "0" | "1";
101
+ readonly options: Option[];
102
+ readonly colSpan: string;
103
+ readonly value: string;
104
+ readonly onChange: ((value: string) => void) | ((value: string) => void)[];
105
+ readonly 'onUpdate:value': ((value: string) => void) | ((value: string) => void)[];
106
+ readonly isLayout: boolean;
107
+ readonly selectControlType: string;
108
+ }>;
109
+ export default _sfc_main;
@@ -0,0 +1,2 @@
1
+ import { CheckBoxProps, UseCheckBoxReturnType } from './checkbox-types';
2
+ export default function useCheckBox(props: CheckBoxProps): UseCheckBoxReturnType;