@qqt-product/ui 0.0.12 → 0.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (192) hide show
  1. package/dist/index.es.js +56339 -59301
  2. package/dist/index.umd.js +15222 -56
  3. package/dist/lib/components/breadcrumb/index.d.ts +10 -0
  4. package/dist/lib/components/breadcrumb/src/breadcrumb.vue.d.ts +7 -0
  5. package/dist/lib/components/card-list-layout/index.d.ts +147 -0
  6. package/dist/lib/components/card-list-layout/src/card-content.vue.d.ts +70 -0
  7. package/dist/lib/components/card-list-layout/src/cardItem.vue.d.ts +79 -0
  8. package/dist/lib/components/card-list-layout/src/index.vue.d.ts +144 -0
  9. package/dist/lib/components/card-list-layout/src/sidebar.vue.d.ts +30 -0
  10. package/dist/lib/components/card-list-layout/src/types.d.ts +41 -0
  11. package/dist/lib/components/cascader/index.d.ts +43 -55
  12. package/dist/lib/components/cascader/src/cascader-types.d.ts +17 -23
  13. package/dist/lib/components/cascader/src/cascader.vue.d.ts +43 -55
  14. package/dist/lib/components/cascader/src/use-cascader.d.ts +2 -2
  15. package/dist/lib/components/checkbox/index.d.ts +113 -0
  16. package/dist/lib/components/checkbox/src/checkbox-types.d.ts +62 -0
  17. package/dist/lib/components/checkbox/src/checkbox.vue.d.ts +109 -0
  18. package/dist/lib/components/checkbox/src/use-checkbox.d.ts +2 -0
  19. package/dist/lib/components/codeEditorModel/index.d.ts +93 -0
  20. package/dist/lib/components/codeEditorModel/src/codeEditorModel.vue.d.ts +90 -0
  21. package/dist/lib/components/collapse-transition/index.d.ts +16 -0
  22. package/dist/lib/components/collapse-transition/src/collapse-transition.vue.d.ts +15 -0
  23. package/dist/lib/components/coutdown/index.d.ts +84 -0
  24. package/dist/lib/components/coutdown/src/coutdown.d.ts +48 -0
  25. package/dist/lib/components/coutdown/src/coutdown.vue.d.ts +81 -0
  26. package/dist/lib/components/currency/index.d.ts +109 -0
  27. package/dist/lib/components/currency/src/currency-type.d.ts +47 -0
  28. package/dist/lib/components/currency/src/currency.vue.d.ts +105 -0
  29. package/dist/lib/components/currency/src/use-currency.d.ts +2 -0
  30. package/dist/lib/components/currency/src/use-methods.d.ts +14 -0
  31. package/dist/lib/components/detail-form/index.d.ts +102 -0
  32. package/dist/lib/components/detail-form/src/detail-form.vue.d.ts +99 -0
  33. package/dist/lib/components/detail-form/src/use-detail-form.d.ts +2 -0
  34. package/dist/lib/components/detail-grid/index.d.ts +2678 -0
  35. package/dist/lib/components/detail-grid/src/detail-grid.vue.d.ts +2675 -0
  36. package/dist/lib/components/detail-grid/src/hook/use-grid-config-hook.d.ts +10 -0
  37. package/dist/lib/components/detail-grid/src/use-detail-grid.d.ts +2 -0
  38. package/dist/lib/components/detail-page-layout/index.d.ts +186 -0
  39. package/dist/lib/components/detail-page-layout/src/detail-page-layout.vue.d.ts +183 -0
  40. package/dist/lib/components/detail-page-layout/src/use-detail-page-layout.d.ts +2 -0
  41. package/dist/lib/components/edit-form/index.d.ts +104 -63
  42. package/dist/lib/components/edit-form/src/edit-form-types.d.ts +28 -24
  43. package/dist/lib/components/edit-form/src/edit-form.vue.d.ts +105 -63
  44. package/dist/lib/components/edit-form/src/hook/use-callback-hook.d.ts +11 -0
  45. package/dist/lib/components/edit-form/src/hook/use-form-config-hook.d.ts +8 -0
  46. package/dist/lib/components/edit-form/src/use-edit-form.d.ts +1 -1
  47. package/dist/lib/components/edit-grid/index.d.ts +414 -343
  48. package/dist/lib/components/edit-grid/src/components/empty/index.d.ts +8 -0
  49. package/dist/lib/components/edit-grid/src/edit-grid-types.d.ts +33 -24
  50. package/dist/lib/components/edit-grid/src/edit-grid.vue.d.ts +414 -343
  51. package/dist/lib/components/edit-grid/src/hook/use-grid-config-hook.d.ts +10 -0
  52. package/dist/lib/components/edit-grid/src/hook/use-grid-height-hook.d.ts +4 -0
  53. package/dist/lib/components/edit-grid/src/use-edit-grid.d.ts +1 -1
  54. package/dist/lib/components/edit-page-layout/index.d.ts +67 -11
  55. package/dist/lib/components/edit-page-layout/src/edit-page-layout-types.d.ts +212 -40
  56. package/dist/lib/components/edit-page-layout/src/edit-page-layout.vue.d.ts +67 -11
  57. package/dist/lib/components/edit-page-layout/src/types.d.ts +1 -0
  58. package/dist/lib/components/editor/index.d.ts +31 -0
  59. package/dist/lib/components/editor/src/index.vue.d.ts +28 -0
  60. package/dist/lib/components/field-select-modal/index.d.ts +150 -0
  61. package/dist/lib/components/field-select-modal/src/field-select-modal-types.d.ts +85 -0
  62. package/dist/lib/components/field-select-modal/src/field-select-modal.vue.d.ts +146 -0
  63. package/dist/lib/components/field-select-modal/src/use-field-select-modal.d.ts +6 -0
  64. package/dist/lib/components/index.d.ts +23 -3
  65. package/dist/lib/components/item-wrap/index.d.ts +57 -0
  66. package/dist/lib/components/item-wrap/src/item-wrap-types.d.ts +27 -0
  67. package/dist/lib/components/item-wrap/src/item-wrap.vue.d.ts +53 -0
  68. package/dist/lib/components/item-wrap/src/use-item-wrap.d.ts +2 -0
  69. package/dist/lib/components/layout/index.d.ts +94 -13
  70. package/dist/lib/components/layout/src/header/index.vue.d.ts +117 -84
  71. package/dist/lib/components/layout/src/header/navRight/customMessage.vue.d.ts +10 -19
  72. package/dist/lib/components/layout/src/header/navRight/customPerson.vue.d.ts +16 -3
  73. package/dist/lib/components/layout/src/header/navRight/index.vue.d.ts +105 -67
  74. package/dist/lib/components/layout/src/header/navRight/langSwitch.vue.d.ts +27 -7
  75. package/dist/lib/components/layout/src/header/navRight/rightTool.vue.d.ts +26 -43
  76. package/dist/lib/components/layout/src/header/navRight/settingDrawer.vue.d.ts +34 -0
  77. package/dist/lib/components/layout/src/index.vue.d.ts +94 -27
  78. package/dist/lib/components/layout/src/menu/deepCycleSubMenu.vue.d.ts +5 -2
  79. package/dist/lib/components/layout/src/menu/menu.vue.d.ts +57 -73
  80. package/dist/lib/components/layout/src/menu/secondLevelMenu.vue.d.ts +5 -23
  81. package/dist/lib/components/layout/src/menu/subSecondMenu.vue.d.ts +4 -22
  82. package/dist/lib/components/layout/src/sider/index.vue.d.ts +24 -25
  83. package/dist/lib/components/layout/src/sider/logo.vue.d.ts +1 -10
  84. package/dist/lib/components/layout/src/sider/search.vue.d.ts +78 -3
  85. package/dist/lib/components/layout/src/types.d.ts +68 -0
  86. package/dist/lib/components/{layout-auchor → layout-anchor}/index.d.ts +10 -7
  87. package/dist/lib/components/{layout-auchor/src/layout-auchor-types.d.ts → layout-anchor/src/layout-anchor-types.d.ts} +3 -3
  88. package/dist/lib/components/{layout-auchor → layout-anchor}/src/layout-auchor.vue.d.ts +7 -4
  89. package/dist/lib/components/layout-anchor/src/use-layout-anchor.d.ts +2 -0
  90. package/dist/lib/components/layout-buttons/index.d.ts +39 -2
  91. package/dist/lib/components/layout-buttons/src/layout-buttons-types.d.ts +16 -0
  92. package/dist/lib/components/layout-buttons/src/layout-buttons.vue.d.ts +39 -2
  93. package/dist/lib/components/layout-buttons/src/use-layout-buttons.d.ts +1 -1
  94. package/dist/lib/components/layout-pattern/index.d.ts +8 -14
  95. package/dist/lib/components/layout-pattern/src/components/vertical.vue.d.ts +72 -4
  96. package/dist/lib/components/layout-pattern/src/layout-pattern-types.d.ts +3 -5
  97. package/dist/lib/components/layout-pattern/src/layout-pattern.vue.d.ts +8 -14
  98. package/dist/lib/components/list-page-layout/index.d.ts +244 -0
  99. package/dist/lib/components/list-page-layout/src/components/common/add-modal/add-modal.vue.d.ts +21 -0
  100. package/dist/lib/components/list-page-layout/src/components/common/columnSetting/columnSetting.vue.d.ts +293 -0
  101. package/dist/lib/components/list-page-layout/src/components/common/columnSetting/use-grid-slot-hook.d.ts +22 -0
  102. package/dist/lib/components/list-page-layout/src/components/common/edit-nav-modal/edit-nav-modal.vue.d.ts +16 -0
  103. package/dist/lib/components/list-page-layout/src/components/common/edit-nav-modal/types.d.ts +4 -0
  104. package/dist/lib/components/list-page-layout/src/components/common/help-text-modal/help-text-modal.vue.d.ts +8 -0
  105. package/dist/lib/components/list-page-layout/src/components/common/import-modal/import-modal.vue.d.ts +40 -0
  106. package/dist/lib/components/list-page-layout/src/components/common/record-modal/mock.d.ts +48 -0
  107. package/dist/lib/components/list-page-layout/src/components/common/record-modal/record-modal.vue.d.ts +5178 -0
  108. package/dist/lib/components/list-page-layout/src/components/list-content/events-helper.d.ts +13 -0
  109. package/dist/lib/components/list-page-layout/src/components/list-content/list-content.vue.d.ts +95 -0
  110. package/dist/lib/components/list-page-layout/src/components/list-content-buttons/events-helper.d.ts +6 -0
  111. package/dist/lib/components/list-page-layout/src/components/list-content-buttons/list-content-buttons.vue.d.ts +33 -0
  112. package/dist/lib/components/list-page-layout/src/components/list-header/list-header.vue.d.ts +27 -0
  113. package/dist/lib/components/list-page-layout/src/components/list-header/module/query/index.vue.d.ts +15 -0
  114. package/dist/lib/components/list-page-layout/src/components/list-header/module/quick-nav/index.vue.d.ts +9 -0
  115. package/dist/lib/components/list-page-layout/src/components/list-header/module/searchExtend/index.vue.d.ts +103 -0
  116. package/dist/lib/components/list-page-layout/src/components/list-header/module/tabs/index.vue.d.ts +56 -0
  117. package/dist/lib/components/list-page-layout/src/hooks/export-xls-hook.d.ts +4 -0
  118. package/dist/lib/components/list-page-layout/src/hooks/fetch-data-hook.d.ts +5 -0
  119. package/dist/lib/components/list-page-layout/src/hooks/fetch-head-data-hook.d.ts +6 -0
  120. package/dist/lib/components/list-page-layout/src/hooks/get-columns-hook.d.ts +6 -0
  121. package/dist/lib/components/list-page-layout/src/hooks/list-slot-hook.d.ts +9 -0
  122. package/dist/lib/components/list-page-layout/src/hooks/use-button-function-hook.d.ts +13 -0
  123. package/dist/lib/components/list-page-layout/src/layout.vue.d.ts +238 -0
  124. package/dist/lib/components/list-page-layout/src/list-page-layout-types.d.ts +358 -0
  125. package/dist/lib/components/list-page-layout/src/symbol.d.ts +11 -0
  126. package/dist/lib/components/list-page-layout/src/tokens.d.ts +12 -0
  127. package/dist/lib/components/list-page-layout/src/types.d.ts +1 -0
  128. package/dist/lib/components/list-page-layout/src/utils/gridConfig.d.ts +174 -0
  129. package/dist/lib/components/page-layout/index.d.ts +12 -2
  130. package/dist/lib/components/page-layout/src/constant/buttons.d.ts +10 -0
  131. package/dist/lib/components/page-layout/src/constant/index.d.ts +3 -0
  132. package/dist/lib/components/page-layout/src/constant/items.d.ts +3 -0
  133. package/dist/lib/components/page-layout/src/constant/symbol.d.ts +15 -0
  134. package/dist/lib/components/page-layout/src/hook/use-merge-defaultValues-hook.d.ts +6 -0
  135. package/dist/lib/components/page-layout/src/hook/use-page-data-hook.d.ts +6 -0
  136. package/dist/lib/components/page-layout/src/hook/use-promise-step.d.ts +26 -0
  137. package/dist/lib/components/page-layout/src/hook/use-ref-instance-hook.d.ts +7 -0
  138. package/dist/lib/components/page-layout/src/hook/use-remote-config-hook.d.ts +5 -2
  139. package/dist/lib/components/page-layout/src/page-layout.vue.d.ts +7 -2
  140. package/dist/lib/components/page-layout/src/token.d.ts +7 -1
  141. package/dist/lib/components/page-layout/src/util.d.ts +10 -35
  142. package/dist/lib/components/radio/index.d.ts +104 -0
  143. package/dist/lib/components/radio/src/radio-types.d.ts +56 -0
  144. package/dist/lib/components/radio/src/radio.vue.d.ts +100 -0
  145. package/dist/lib/components/radio/src/use-radio.d.ts +2 -0
  146. package/dist/lib/components/remote-select/index.d.ts +122 -0
  147. package/dist/lib/components/remote-select/src/remote-select-types.d.ts +50 -0
  148. package/dist/lib/components/remote-select/src/remote-select.vue.d.ts +118 -0
  149. package/dist/lib/components/remote-select/src/use-remote-select.d.ts +6 -0
  150. package/dist/lib/components/select/index.d.ts +8 -39
  151. package/dist/lib/components/select/src/select-types.d.ts +4 -15
  152. package/dist/lib/components/select/src/select.vue.d.ts +8 -39
  153. package/dist/lib/components/select/src/use-select.d.ts +2 -2
  154. package/dist/lib/components/select-modal/index.d.ts +333 -0
  155. package/dist/lib/components/select-modal/src/select-modal-types.d.ts +51 -0
  156. package/dist/lib/components/select-modal/src/select-modal.vue.d.ts +329 -0
  157. package/dist/lib/components/select-modal/src/use-select-modal.d.ts +6 -0
  158. package/dist/lib/components/shared/hooks/use-namespace-last.d.ts +23 -0
  159. package/dist/lib/components/shared/hooks/use-namespace.d.ts +3 -3
  160. package/dist/lib/components/switch/index.d.ts +2 -4
  161. package/dist/lib/components/switch/src/switch-types.d.ts +0 -2
  162. package/dist/lib/components/switch/src/switch.vue.d.ts +2 -4
  163. package/dist/lib/components/tree-select/index.d.ts +114 -0
  164. package/dist/lib/components/tree-select/src/tree-select-types.d.ts +60 -0
  165. package/dist/lib/components/tree-select/src/tree-select.vue.d.ts +110 -0
  166. package/dist/lib/components/tree-select/src/use-tree-select.d.ts +2 -0
  167. package/dist/lib/components/upload-file/index.d.ts +274 -0
  168. package/dist/lib/components/upload-file/src/hook/use-file-column-hook.d.ts +34 -0
  169. package/dist/lib/components/upload-file/src/hook/use-operation-column-button-hook.d.ts +11 -0
  170. package/dist/lib/components/upload-file/src/upload-file-types.d.ts +141 -0
  171. package/dist/lib/components/upload-file/src/upload-file.vue.d.ts +267 -0
  172. package/dist/lib/components/upload-image/index.d.ts +191 -0
  173. package/dist/lib/components/upload-image/src/upload-image-type.d.ts +53 -0
  174. package/dist/lib/components/upload-image/src/upload-image.vue.d.ts +187 -0
  175. package/dist/lib/components/vxe-select/index.d.ts +116 -0
  176. package/dist/lib/components/vxe-select/src/use-vxe-select.d.ts +2 -0
  177. package/dist/lib/components/vxe-select/src/vxe-select-types.d.ts +58 -0
  178. package/dist/lib/components/vxe-select/src/vxe-select.vue.d.ts +112 -0
  179. package/dist/lib/index.d.ts +15 -2
  180. package/dist/lib/setting/vxe-table/config.d.ts +3 -0
  181. package/dist/lib/utils/event.d.ts +37 -0
  182. package/dist/style.css +6 -8
  183. package/dist/vite-env.d.ts +15 -0
  184. package/package.json +35 -22
  185. package/dist/lib/components/layout/src/menu/icon.d.ts +0 -6
  186. package/dist/lib/components/layout-auchor/src/use-layout-auchor.d.ts +0 -2
  187. package/dist/lib/components/layout-header/index.d.ts +0 -17
  188. package/dist/lib/components/layout-header/src/layout-header-types.d.ts +0 -8
  189. package/dist/lib/components/layout-header/src/layout-header.vue.d.ts +0 -13
  190. package/dist/lib/components/layout-header/src/use-layout-header.d.ts +0 -2
  191. package/dist/lib/constant/constant.d.ts +0 -1
  192. package/dist/lib/types/ComponentCustomProperties .d.ts +0 -6
@@ -1,26 +1,14 @@
1
1
  import type { DefineComponent, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
2
- interface Menu {
3
- redirect?: string | null;
4
- path: string;
5
- component: string;
6
- route: string;
7
- children?: Menu[];
8
- meta: {
9
- title: string;
10
- icon: string;
11
- [propName: string]: string;
12
- };
13
- mobile?: boolean;
14
- name: string;
15
- id: string;
16
- hasChild?: boolean;
17
- count?: number | string;
18
- }
19
- interface Meta {
20
- icon: string;
21
- title: string;
22
- }
2
+ import type { ExtendMenu, FirstMenuMeta } from '../types';
23
3
  declare const _sfc_main: DefineComponent<{
4
+ searchState: {
5
+ type: BooleanConstructor;
6
+ default: boolean;
7
+ };
8
+ currentSearchValue: {
9
+ type: StringConstructor;
10
+ default: string;
11
+ };
24
12
  secondMenuShow: {
25
13
  type: BooleanConstructor;
26
14
  default: boolean;
@@ -32,10 +20,10 @@ declare const _sfc_main: DefineComponent<{
32
20
  menus: {
33
21
  required: true;
34
22
  type: {
35
- (arrayLength: number): Menu[];
36
- (...items: Menu[]): Menu[];
37
- new (arrayLength: number): Menu[];
38
- new (...items: Menu[]): Menu[];
23
+ (arrayLength: number): ExtendMenu[];
24
+ (...items: ExtendMenu[]): ExtendMenu[];
25
+ new (arrayLength: number): ExtendMenu[];
26
+ new (...items: ExtendMenu[]): ExtendMenu[];
39
27
  isArray(arg: any): arg is any[];
40
28
  readonly prototype: any[];
41
29
  from<T>(arrayLike: ArrayLike<T>): T[];
@@ -54,30 +42,32 @@ declare const _sfc_main: DefineComponent<{
54
42
  type: StringConstructor;
55
43
  default: string;
56
44
  };
57
- searchOpenKeys: {
58
- type: {
59
- (arrayLength: number): string[];
60
- (...items: string[]): string[];
61
- new (arrayLength: number): string[];
62
- new (...items: string[]): string[];
63
- isArray(arg: any): arg is any[];
64
- readonly prototype: any[];
65
- from<T>(arrayLike: ArrayLike<T>): T[];
66
- from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
67
- from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
68
- from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
69
- of<T_4>(...items: T_4[]): T_4[];
70
- readonly [Symbol.species]: ArrayConstructor;
71
- };
72
- default: () => never[];
73
- };
74
45
  }, {
75
46
  firstLevelMenus: Ref<{
47
+ hidden?: boolean | null | undefined;
48
+ isLocal?: boolean | undefined;
49
+ hasChild?: boolean | undefined;
50
+ count?: string | number | undefined;
76
51
  redirect?: string | null | undefined;
77
52
  path: string;
78
53
  component: string;
79
54
  route: string;
80
- children?: any[] | undefined;
55
+ children?: {
56
+ redirect?: string | null | undefined;
57
+ path: string;
58
+ component: string;
59
+ route: string;
60
+ hidden?: boolean | null | undefined;
61
+ children?: any[] | undefined;
62
+ meta: {
63
+ [x: string]: string;
64
+ title: string;
65
+ icon: string;
66
+ };
67
+ mobile?: boolean | undefined;
68
+ name: string;
69
+ id: string;
70
+ }[] | undefined;
81
71
  meta: {
82
72
  [x: string]: string;
83
73
  title: string;
@@ -86,15 +76,24 @@ declare const _sfc_main: DefineComponent<{
86
76
  mobile?: boolean | undefined;
87
77
  name: string;
88
78
  id: string;
89
- hasChild?: boolean | undefined;
90
- count?: string | number | undefined;
91
79
  }[]>;
92
- secondLevelMenus: Ref<Menu[] | undefined>;
93
- firstMenuSelect: (item: Menu, index: number) => void;
80
+ secondLevelMenus: Ref<ExtendMenu[] | undefined>;
81
+ firstMenuSelect: (item: ExtendMenu, index: number) => void;
94
82
  currentActive: Ref<number>;
95
- meta: Ref<Meta | undefined>;
83
+ meta: Ref<FirstMenuMeta | undefined>;
96
84
  menuSelect: () => void;
97
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("menuSelect" | "updateMenuShow")[], "menuSelect" | "updateMenuShow", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
85
+ expandedKeys: Ref<(string | number)[]>;
86
+ autoExpandParent: Ref<boolean>;
87
+ onSelect: (selectedKeys: string[], e: any) => void;
88
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("menuSelect" | "updateMenuShow" | "updateHistoryList")[], "menuSelect" | "updateMenuShow" | "updateHistoryList", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
89
+ searchState: {
90
+ type: BooleanConstructor;
91
+ default: boolean;
92
+ };
93
+ currentSearchValue: {
94
+ type: StringConstructor;
95
+ default: string;
96
+ };
98
97
  secondMenuShow: {
99
98
  type: BooleanConstructor;
100
99
  default: boolean;
@@ -106,10 +105,10 @@ declare const _sfc_main: DefineComponent<{
106
105
  menus: {
107
106
  required: true;
108
107
  type: {
109
- (arrayLength: number): Menu[];
110
- (...items: Menu[]): Menu[];
111
- new (arrayLength: number): Menu[];
112
- new (...items: Menu[]): Menu[];
108
+ (arrayLength: number): ExtendMenu[];
109
+ (...items: ExtendMenu[]): ExtendMenu[];
110
+ new (arrayLength: number): ExtendMenu[];
111
+ new (...items: ExtendMenu[]): ExtendMenu[];
113
112
  isArray(arg: any): arg is any[];
114
113
  readonly prototype: any[];
115
114
  from<T>(arrayLike: ArrayLike<T>): T[];
@@ -128,31 +127,16 @@ declare const _sfc_main: DefineComponent<{
128
127
  type: StringConstructor;
129
128
  default: string;
130
129
  };
131
- searchOpenKeys: {
132
- type: {
133
- (arrayLength: number): string[];
134
- (...items: string[]): string[];
135
- new (arrayLength: number): string[];
136
- new (...items: string[]): string[];
137
- isArray(arg: any): arg is any[];
138
- readonly prototype: any[];
139
- from<T>(arrayLike: ArrayLike<T>): T[];
140
- from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
141
- from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
142
- from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
143
- of<T_4>(...items: T_4[]): T_4[];
144
- readonly [Symbol.species]: ArrayConstructor;
145
- };
146
- default: () => never[];
147
- };
148
130
  }>> & {
149
131
  onMenuSelect?: ((...args: any[]) => any) | undefined;
150
132
  onUpdateMenuShow?: ((...args: any[]) => any) | undefined;
133
+ onUpdateHistoryList?: ((...args: any[]) => any) | undefined;
151
134
  }, {
152
135
  mode: string;
153
136
  collapsed: boolean;
154
- menus: Menu[];
155
- searchOpenKeys: string[];
137
+ menus: ExtendMenu[];
138
+ searchState: boolean;
139
+ currentSearchValue: string;
156
140
  secondMenuShow: boolean;
157
- }>;
141
+ }, {}>;
158
142
  export default _sfc_main;
@@ -1,26 +1,8 @@
1
1
  import type { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType } from 'vue';
2
- interface Menu {
3
- redirect?: string | null;
4
- path: string;
5
- component: string;
6
- route: string;
7
- children?: Menu[];
8
- meta: {
9
- title: string;
10
- icon: string;
11
- [propName: string]: string;
12
- };
13
- mobile?: boolean;
14
- name: string;
15
- id: string;
16
- }
17
- interface Meta {
18
- icon: string;
19
- title: string;
20
- }
2
+ import type { Menu, FirstMenuMeta } from '../types';
21
3
  declare const _sfc_main: DefineComponent<{
22
4
  meta: {
23
- type: PropType<Meta>;
5
+ type: PropType<FirstMenuMeta>;
24
6
  default: () => {};
25
7
  };
26
8
  mode: {
@@ -51,7 +33,7 @@ declare const _sfc_main: DefineComponent<{
51
33
  menuSelect: (obj: any) => void;
52
34
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "menuSelect"[], "menuSelect", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
53
35
  meta: {
54
- type: PropType<Meta>;
36
+ type: PropType<FirstMenuMeta>;
55
37
  default: () => {};
56
38
  };
57
39
  mode: {
@@ -81,7 +63,7 @@ declare const _sfc_main: DefineComponent<{
81
63
  }>> & {
82
64
  onMenuSelect?: ((...args: any[]) => any) | undefined;
83
65
  }, {
66
+ meta: FirstMenuMeta;
84
67
  mode: string;
85
- meta: Meta;
86
- }>;
68
+ }, {}>;
87
69
  export default _sfc_main;
@@ -1,24 +1,5 @@
1
1
  import type { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
2
- interface Menu {
3
- redirect?: string | null;
4
- path: string;
5
- component: string;
6
- route: string;
7
- children?: Menu[];
8
- meta: {
9
- title: string;
10
- icon: string;
11
- [propName: string]: string;
12
- };
13
- mobile?: boolean;
14
- name: string;
15
- id: string;
16
- }
17
- interface State {
18
- selectedKeys: string[];
19
- openKeys: string[];
20
- menus: Array<Menu>;
21
- }
2
+ import type { Menu, SelectedMemu, ExtendMenu } from '../types';
22
3
  declare const _sfc_main: DefineComponent<{
23
4
  menus: {
24
5
  type: {
@@ -62,8 +43,9 @@ declare const _sfc_main: DefineComponent<{
62
43
  default: () => never[];
63
44
  };
64
45
  }, {
65
- state: State;
46
+ state: SelectedMemu;
66
47
  menuSelect: (obj: any) => void;
48
+ secondMenuRouter: (item: ExtendMenu) => void;
67
49
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "menuSelect"[], "menuSelect", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
68
50
  menus: {
69
51
  type: {
@@ -112,5 +94,5 @@ declare const _sfc_main: DefineComponent<{
112
94
  mode: string;
113
95
  menus: Menu[];
114
96
  searchOpenKeys: string[];
115
- }>;
97
+ }, {}>;
116
98
  export default _sfc_main;
@@ -1,27 +1,10 @@
1
1
  import type { DefineComponent, Ref, ComputedRef, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
2
- interface Menu {
3
- redirect?: string | null;
4
- path: string;
5
- component: string;
6
- route: string;
7
- children?: Menu[];
8
- meta: {
9
- title: string;
10
- icon: string;
11
- [propName: string]: string;
12
- };
13
- mobile?: boolean;
14
- name: string;
15
- id: string;
16
- }
2
+ import type { Menu } from '../types';
17
3
  declare const _sfc_main: DefineComponent<{
18
4
  secondMenuShow: {
19
5
  type: BooleanConstructor;
20
6
  default: boolean;
21
7
  };
22
- version: {
23
- type: StringConstructor;
24
- };
25
8
  placeholder: {
26
9
  type: StringConstructor;
27
10
  };
@@ -82,15 +65,34 @@ declare const _sfc_main: DefineComponent<{
82
65
  scheduleHandle: () => void;
83
66
  servicesHandle: () => void;
84
67
  menuRef: Ref<any>;
68
+ handleUpdateMenuShow: (flag: boolean) => void;
85
69
  scheduleImg: Ref<string>;
86
70
  servicesImg: Ref<string>;
87
71
  unfoldImg: Ref<string>;
88
72
  foldImg: Ref<string>;
73
+ srmI18n: (i18nKey: string, defaultValue: string, account?: string | number) => string;
74
+ userInfo: {
75
+ token: string;
76
+ srmVersion: string;
77
+ userInfo: {
78
+ id: string;
79
+ elsAccount: string;
80
+ subAccount: string;
81
+ realname: string;
82
+ avatar: string;
83
+ };
84
+ };
85
+ searchState: Ref<boolean>;
86
+ afterHandleFocus: () => void;
87
+ afterHandleBlur: () => void;
88
+ currentSearchValue: Ref<string>;
89
+ afterHandleChange: (value: string) => void;
89
90
  arrayRecursionFilter: (arr: Menu[], search: string) => Menu[];
90
- menuSearch: Ref<any>;
91
- searchOpenKeys: Ref<string[]>;
91
+ updateHistoryList: () => void;
92
92
  toggle: () => void;
93
- navMenus: ComputedRef<Menu[] | undefined>;
93
+ navMenus: ComputedRef<Menu[]>;
94
+ getSchedule: ComputedRef<any>;
95
+ getServices: ComputedRef<any>;
94
96
  siderWidth: Ref<string>;
95
97
  collapsed: Ref<boolean>;
96
98
  menuSelect: (obj: any) => void;
@@ -99,9 +101,6 @@ declare const _sfc_main: DefineComponent<{
99
101
  type: BooleanConstructor;
100
102
  default: boolean;
101
103
  };
102
- version: {
103
- type: StringConstructor;
104
- };
105
104
  placeholder: {
106
105
  type: StringConstructor;
107
106
  };
@@ -167,5 +166,5 @@ declare const _sfc_main: DefineComponent<{
167
166
  mode: string;
168
167
  secondMenuShow: boolean;
169
168
  collapsible: boolean;
170
- }>;
169
+ }, {}>;
171
170
  export default _sfc_main;
@@ -12,10 +12,6 @@ declare const _sfc_main: DefineComponent<{
12
12
  type: StringConstructor;
13
13
  default: string;
14
14
  };
15
- layoutMode: {
16
- type: StringConstructor;
17
- default: string;
18
- };
19
15
  }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
20
16
  title: {
21
17
  type: StringConstructor;
@@ -29,14 +25,9 @@ declare const _sfc_main: DefineComponent<{
29
25
  type: StringConstructor;
30
26
  default: string;
31
27
  };
32
- layoutMode: {
33
- type: StringConstructor;
34
- default: string;
35
- };
36
28
  }>>, {
37
29
  title: string;
38
30
  collapsed: boolean;
39
31
  logoUrl: string;
40
- layoutMode: string;
41
- }>;
32
+ }, {}>;
42
33
  export default _sfc_main;
@@ -1,20 +1,95 @@
1
+ import type { CloseCircleOutlinedIconType } from '@ant-design/icons-vue/lib/icons/CloseCircleOutlined';
1
2
  import type { SearchOutlinedIconType } from '@ant-design/icons-vue/lib/icons/SearchOutlined';
2
3
  import type { DefineComponent, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
4
+ import type { ExtendMenu, RouterPropsType } from '../types';
3
5
  declare const _sfc_main: DefineComponent<{
4
6
  collapsed: {
5
7
  type: BooleanConstructor;
6
8
  default: boolean;
7
9
  };
10
+ searchState: {
11
+ type: BooleanConstructor;
12
+ default: boolean;
13
+ };
8
14
  }, {
15
+ router: {
16
+ push: (obj: RouterPropsType) => void;
17
+ };
18
+ srmI18n: (i18nKey: string, defaultValue: string, account?: string | number) => string;
19
+ userInfo: {
20
+ token: string;
21
+ srmVersion: string;
22
+ userInfo: {
23
+ id: string;
24
+ elsAccount: string;
25
+ subAccount: string;
26
+ realname: string;
27
+ avatar: string;
28
+ };
29
+ };
30
+ historyListKey: string;
31
+ emit: (event: "handleCollapsed" | "afterHandleFocus" | "afterHandleBlur" | "afterHandleChange", ...args: any[]) => void;
9
32
  props: any;
10
33
  search: Ref<string>;
34
+ handleFocus: () => void;
35
+ handleBlur: () => void;
36
+ handleChange: () => void;
37
+ historyList: Ref<{
38
+ hidden?: boolean | null | undefined;
39
+ isLocal?: boolean | undefined;
40
+ hasChild?: boolean | undefined;
41
+ count?: string | number | undefined;
42
+ redirect?: string | null | undefined;
43
+ path: string;
44
+ component: string;
45
+ route: string;
46
+ children?: {
47
+ redirect?: string | null | undefined;
48
+ path: string;
49
+ component: string;
50
+ route: string;
51
+ hidden?: boolean | null | undefined;
52
+ children?: any[] | undefined;
53
+ meta: {
54
+ [x: string]: string;
55
+ title: string;
56
+ icon: string;
57
+ };
58
+ mobile?: boolean | undefined;
59
+ name: string;
60
+ id: string;
61
+ }[] | undefined;
62
+ meta: {
63
+ [x: string]: string;
64
+ title: string;
65
+ icon: string;
66
+ };
67
+ mobile?: boolean | undefined;
68
+ name: string;
69
+ id: string;
70
+ }[]>;
71
+ upDateHistoryList: () => ExtendMenu[];
72
+ goHistoryPage: (his: ExtendMenu) => void;
73
+ delHistoryItem: (index: number) => void;
74
+ clearAllHistory: () => void;
11
75
  readonly SearchOutlined: SearchOutlinedIconType;
12
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
76
+ readonly CloseCircleOutlined: CloseCircleOutlinedIconType;
77
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("handleCollapsed" | "afterHandleFocus" | "afterHandleBlur" | "afterHandleChange")[], "handleCollapsed" | "afterHandleFocus" | "afterHandleBlur" | "afterHandleChange", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
13
78
  collapsed: {
14
79
  type: BooleanConstructor;
15
80
  default: boolean;
16
81
  };
17
- }>>, {
82
+ searchState: {
83
+ type: BooleanConstructor;
84
+ default: boolean;
85
+ };
86
+ }>> & {
87
+ onHandleCollapsed?: ((...args: any[]) => any) | undefined;
88
+ onAfterHandleFocus?: ((...args: any[]) => any) | undefined;
89
+ onAfterHandleBlur?: ((...args: any[]) => any) | undefined;
90
+ onAfterHandleChange?: ((...args: any[]) => any) | undefined;
91
+ }, {
18
92
  collapsed: boolean;
19
- }>;
93
+ searchState: boolean;
94
+ }, {}>;
20
95
  export default _sfc_main;
@@ -0,0 +1,68 @@
1
+ export interface Menu {
2
+ redirect?: string | null;
3
+ path: string;
4
+ component: string;
5
+ route: string;
6
+ hidden?: boolean | null | undefined;
7
+ children?: Menu[];
8
+ meta: {
9
+ title: string;
10
+ icon: string;
11
+ [propName: string]: string;
12
+ };
13
+ mobile?: boolean;
14
+ name: string;
15
+ id: string;
16
+ }
17
+ export interface ExtendMenu extends Menu {
18
+ hidden?: boolean | null | undefined;
19
+ isLocal?: boolean;
20
+ hasChild?: boolean;
21
+ count?: string | number;
22
+ }
23
+ export interface SelectedMemu {
24
+ selectedKeys: string[];
25
+ openKeys: string[];
26
+ menus: Array<Menu>;
27
+ }
28
+ export interface ImgStateList {
29
+ scheduleImg: string;
30
+ servicesImg: string;
31
+ unfoldImg: string;
32
+ foldImg: string;
33
+ }
34
+ export interface FirstMenuMeta {
35
+ icon: string;
36
+ title: string;
37
+ hidden?: boolean | null | undefined;
38
+ color?: string;
39
+ }
40
+ export interface RouterPropsType {
41
+ path: string;
42
+ }
43
+ export interface BtnPropsType {
44
+ title: string;
45
+ icon: string;
46
+ type: string;
47
+ color?: string;
48
+ }
49
+ export interface UserInfoType {
50
+ token?: string;
51
+ srmVersion?: string;
52
+ userInfo?: {
53
+ id?: string;
54
+ elsAccount?: string;
55
+ subAccount?: string;
56
+ realname?: string;
57
+ avatar?: string;
58
+ [K: string]: any;
59
+ };
60
+ companySet?: any;
61
+ userOrg?: object;
62
+ permissionList?: any;
63
+ baseHomePath?: string;
64
+ }
65
+ export interface ColorListType {
66
+ label: string;
67
+ color: string;
68
+ }
@@ -1,9 +1,9 @@
1
1
  import type { GroupItem } from '../edit-page-layout';
2
- import type { DefineComponent, PropType, ComputedRef, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
2
+ import type { DefineComponent, PropType, ComputedRef, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
3
3
  import type { SFCWithInstall } from '@qqt-product/utils/dist/modules/withInstall';
4
- import QLayoutAuchor from './src/layout-auchor.vue';
5
- export * from './src/layout-auchor-types';
6
- export { QLayoutAuchor };
4
+ import QLayoutAnchor from './src/layout-auchor.vue';
5
+ export * from './src/layout-anchor-types';
6
+ export { QLayoutAnchor };
7
7
  declare const _default: SFCWithInstall<DefineComponent<{
8
8
  groups: {
9
9
  type: PropType<GroupItem[]>;
@@ -13,8 +13,11 @@ declare const _default: SFCWithInstall<DefineComponent<{
13
13
  classes: ComputedRef<{
14
14
  [key: string]: string | boolean;
15
15
  }>;
16
- groups: Ref<GroupItem[]>;
17
- current: Ref<string>;
16
+ getContainer: () => Element | null;
17
+ handleClick: (e: MouseEvent, link: {
18
+ title: any;
19
+ href: string;
20
+ }) => void;
18
21
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
19
22
  groups: {
20
23
  type: PropType<GroupItem[]>;
@@ -22,5 +25,5 @@ declare const _default: SFCWithInstall<DefineComponent<{
22
25
  };
23
26
  }>>, {
24
27
  groups: GroupItem[];
25
- }>>;
28
+ }, {}>>;
26
29
  export default _default;
@@ -1,13 +1,13 @@
1
1
  import type { ComputedRef, PropType, ExtractPropTypes } from 'vue';
2
2
  import { GroupItem } from '../../edit-page-layout';
3
- export declare const layoutAuchorProps: {
3
+ export declare const layoutAnchorProps: {
4
4
  groups: {
5
5
  type: PropType<GroupItem[]>;
6
6
  default: null;
7
7
  };
8
8
  };
9
- export type LayoutAuchorProps = ExtractPropTypes<typeof layoutAuchorProps>;
10
- export interface LayoutAuchorReturnType {
9
+ export type LayoutAnchorProps = ExtractPropTypes<typeof layoutAnchorProps>;
10
+ export interface LayoutAnchorReturnType {
11
11
  classes: ComputedRef<{
12
12
  [key: string]: string | boolean;
13
13
  }>;
@@ -1,5 +1,5 @@
1
1
  import type { GroupItem } from '../../edit-page-layout';
2
- import type { DefineComponent, PropType, ComputedRef, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, Ref } from 'vue';
2
+ import type { DefineComponent, PropType, ComputedRef, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
3
3
  declare const _sfc_main: DefineComponent<{
4
4
  groups: {
5
5
  type: PropType<GroupItem[]>;
@@ -9,8 +9,11 @@ declare const _sfc_main: DefineComponent<{
9
9
  classes: ComputedRef<{
10
10
  [key: string]: string | boolean;
11
11
  }>;
12
- groups: Ref<GroupItem[]>;
13
- current: Ref<string>;
12
+ getContainer: () => Element | null;
13
+ handleClick: (e: MouseEvent, link: {
14
+ title: any;
15
+ href: string;
16
+ }) => void;
14
17
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
15
18
  groups: {
16
19
  type: PropType<GroupItem[]>;
@@ -18,5 +21,5 @@ declare const _sfc_main: DefineComponent<{
18
21
  };
19
22
  }>>, {
20
23
  groups: GroupItem[];
21
- }>;
24
+ }, {}>;
22
25
  export default _sfc_main;
@@ -0,0 +1,2 @@
1
+ import type { LayoutAnchorReturnType } from './layout-anchor-types';
2
+ export default function useLayoutAnchor(): LayoutAnchorReturnType;