fit2cloud-ui-plus 0.0.1-beta.9 → 1.0.0-beta.1

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 (203) hide show
  1. package/README.md +61 -9
  2. package/lib/fit2cloud-ui-plus.es.js +1847 -370
  3. package/lib/fit2cloud-ui-plus.umd.js +1 -1
  4. package/package.json +8 -5
  5. package/src/components/filter-bar/FuFilter.vue +40 -31
  6. package/src/components/filter-bar/FuFilterBar.vue +27 -16
  7. package/src/components/filter-bar/FuFilterInput.vue +48 -0
  8. package/src/components/filter-bar/filter-components/FuFilterDate.vue +17 -13
  9. package/src/components/filter-bar/filter-components/FuFilterDateTime.vue +4 -4
  10. package/src/components/filter-bar/filter-components/FuFilterSelect.vue +5 -4
  11. package/src/components/filter-bar/index.ts +4 -4
  12. package/src/components/icon-button/FuIconButton.vue +54 -0
  13. package/src/components/icon-button/index.ts +9 -0
  14. package/src/components/read-write-switch/FuSelectRwSwitch.vue +23 -10
  15. package/src/components/search-bar/FuComplexSearch.vue +104 -0
  16. package/src/components/search-bar/FuQuickSearch.vue +64 -0
  17. package/src/components/search-bar/FuSearchBar.vue +153 -0
  18. package/src/components/search-bar/FuSearchBarButton.vue +23 -0
  19. package/src/components/search-bar/FuSearchContions.vue +40 -0
  20. package/src/components/search-bar/complex-components/FuComplexDate.vue +70 -0
  21. package/src/components/search-bar/complex-components/FuComplexDateTime.vue +74 -0
  22. package/src/components/search-bar/complex-components/FuComplexInput.vue +57 -0
  23. package/src/components/search-bar/complex-components/FuComplexSelect.vue +93 -0
  24. package/src/components/search-bar/index.ts +20 -0
  25. package/src/components/search-bar/types.ts +23 -0
  26. package/src/components/speed-dial/FuSpeedDial.vue +289 -0
  27. package/src/components/speed-dial/FuSpeedDialActionButton.vue +88 -0
  28. package/src/components/speed-dial/FuSpeedDialButton.vue +45 -0
  29. package/src/components/speed-dial/FuSpeedDialItem.vue +82 -0
  30. package/src/components/speed-dial/index.ts +11 -0
  31. package/src/components/speed-dial/types.ts +12 -0
  32. package/src/components/table/FuTable.vue +3 -3
  33. package/src/components/table/table-column-select/FuTableColumnSelectPopover.vue +22 -24
  34. package/src/components/tabs/FuTabs.vue +4 -3
  35. package/src/hooks/index.ts +0 -1
  36. package/src/hooks/use-global-config/index.ts +26 -8
  37. package/src/hooks/use-locale/index.ts +1 -1
  38. package/src/hooks/use-size/index.ts +11 -5
  39. package/src/index.ts +5 -2
  40. package/src/styles/common/function.scss +14 -4
  41. package/src/styles/common/mixins.scss +9 -4
  42. package/src/styles/common/variables.scss +55 -18
  43. package/src/styles/components/filter-bar.scss +16 -16
  44. package/src/styles/components/icon-button.scss +66 -0
  45. package/src/styles/components/search-bar.scss +240 -0
  46. package/src/styles/components/speed-dial.scss +1 -51
  47. package/src/styles/components/table.scss +7 -9
  48. package/src/styles/index.scss +2 -0
  49. package/src/styles/themes/default.scss +91 -0
  50. package/types/examples/App.vue.d.ts +2 -0
  51. package/types/examples/components/CodeExample.vue.d.ts +29 -0
  52. package/types/examples/components/DocumentTable.vue.d.ts +14 -0
  53. package/types/examples/components/Markdown.vue.d.ts +12 -0
  54. package/types/examples/layout/components/AppHeader.vue.d.ts +2 -0
  55. package/types/examples/layout/components/Sidebar.vue.d.ts +2 -0
  56. package/types/examples/layout/index.vue.d.ts +2 -0
  57. package/types/examples/main.d.ts +2 -0
  58. package/types/examples/pages/filter-bar/attributes.d.ts +63 -0
  59. package/types/examples/pages/filter-bar/demo/BaseFilterBar.vue.d.ts +2 -0
  60. package/types/examples/pages/filter-bar/demo/SetConditionsDemo.vue.d.ts +2 -0
  61. package/types/examples/pages/filter-bar/demo/SlotDemo.vue.d.ts +2 -0
  62. package/types/examples/pages/filter-bar/index.vue.d.ts +2 -0
  63. package/types/examples/pages/icon-button/attributes.d.ts +45 -0
  64. package/types/examples/pages/icon-button/demo/BaseIconButton.vue.d.ts +2 -0
  65. package/types/examples/pages/icon-button/demo/SlotDemo.vue.d.ts +2 -0
  66. package/types/examples/pages/icon-button/index.vue.d.ts +2 -0
  67. package/types/examples/pages/index.d.ts +3 -0
  68. package/types/examples/pages/read-write-switch/attributes.d.ts +63 -0
  69. package/types/examples/pages/read-write-switch/demo/BaseDemo.vue.d.ts +2 -0
  70. package/types/examples/pages/read-write-switch/demo/CustomContentDemo.vue.d.ts +2 -0
  71. package/types/examples/pages/read-write-switch/demo/InputRwSwitchDemo.vue.d.ts +2 -0
  72. package/types/examples/pages/read-write-switch/demo/ReadSwitchDemo.vue.d.ts +2 -0
  73. package/types/examples/pages/read-write-switch/demo/SelectRwSwitchDemo.vue.d.ts +2 -0
  74. package/types/examples/pages/read-write-switch/demo/TableInnerEditDemo.vue.d.ts +2 -0
  75. package/types/examples/pages/read-write-switch/demo/WriteSwitchDemo.vue.d.ts +2 -0
  76. package/types/examples/pages/read-write-switch/index.vue.d.ts +2 -0
  77. package/types/examples/pages/search/attributes.d.ts +57 -0
  78. package/types/examples/pages/search/demo/BaseSearchbar.vue.d.ts +66 -0
  79. package/types/examples/pages/search/demo/ComplexComponentsDemo.vue.d.ts +60 -0
  80. package/types/examples/pages/search/demo/ComplexSearchDemo.vue.d.ts +84 -0
  81. package/types/examples/pages/search/demo/CustomComponentsDemo.vue.d.ts +50 -0
  82. package/types/examples/pages/search/demo/EchoConditionsDemo.vue.d.ts +52 -0
  83. package/types/examples/pages/search/demo/QuickSearchDemo.vue.d.ts +18 -0
  84. package/types/examples/pages/search/demo/SearchBarButtonDemo.vue.d.ts +54 -0
  85. package/types/examples/pages/search/index.vue.d.ts +150 -0
  86. package/types/examples/pages/search-bar/attributes.d.ts +63 -0
  87. package/types/examples/pages/search-bar/demo/BaseSearchbar.vue.d.ts +31 -0
  88. package/types/examples/pages/search-bar/demo/ComplexSearchDemo.vue.d.ts +40 -0
  89. package/types/examples/pages/search-bar/demo/EchoConditionsDemo.vue.d.ts +32 -0
  90. package/types/examples/pages/search-bar/demo/QuickSearchDemo.vue.d.ts +7 -0
  91. package/types/examples/pages/search-bar/demo/SearchBarButtonDemo.vue.d.ts +32 -0
  92. package/types/examples/pages/search-bar/index.vue.d.ts +2 -0
  93. package/types/examples/pages/speed-dial/attributes.d.ts +63 -0
  94. package/types/examples/pages/speed-dial/demo/BaseSpeedDial.vue.d.ts +2 -0
  95. package/types/examples/pages/speed-dial/demo/SpeedDialCustom.vue.d.ts +2 -0
  96. package/types/examples/pages/speed-dial/demo/SpeedDialPosition.vue.d.ts +2 -0
  97. package/types/examples/pages/speed-dial/demo/SpeedDialTrigger.vue.d.ts +2 -0
  98. package/types/examples/pages/speed-dial/index.vue.d.ts +2 -0
  99. package/types/examples/pages/split-pane/attributes.d.ts +63 -0
  100. package/types/examples/pages/split-pane/demo/BaseSplit.vue.d.ts +2 -0
  101. package/types/examples/pages/split-pane/demo/CustomResizer.vue.d.ts +2 -0
  102. package/types/examples/pages/split-pane/demo/NestSplit.vue.d.ts +2 -0
  103. package/types/examples/pages/split-pane/demo/ResizerType.vue.d.ts +2 -0
  104. package/types/examples/pages/split-pane/index.vue.d.ts +2 -0
  105. package/types/examples/pages/table/attributes.d.ts +121 -0
  106. package/types/examples/pages/table/demo/BaseTable.vue.d.ts +2 -0
  107. package/types/examples/pages/table/demo/DropdownColumn.vue.d.ts +2 -0
  108. package/types/examples/pages/table/demo/DropdownColumnSlot.vue.d.ts +2 -0
  109. package/types/examples/pages/table/demo/SaveSelectColumn.vue.d.ts +2 -0
  110. package/types/examples/pages/table/demo/SelectColumn.vue.d.ts +2 -0
  111. package/types/examples/pages/table/demo/TableOperations.vue.d.ts +2 -0
  112. package/types/examples/pages/table/demo/TablePagination.vue.d.ts +2 -0
  113. package/types/examples/pages/table/index.vue.d.ts +2 -0
  114. package/types/examples/pages/tabs/attributes.d.ts +63 -0
  115. package/types/examples/pages/tabs/demo/AddCloseTab.vue.d.ts +2 -0
  116. package/types/examples/pages/tabs/index.vue.d.ts +2 -0
  117. package/types/examples/router/doc-routes.d.ts +12 -0
  118. package/types/examples/router/index.d.ts +4 -0
  119. package/types/examples/router/styles-routes.d.ts +12 -0
  120. package/types/examples/style-guide/button/BaseButton.vue.d.ts +2 -0
  121. package/types/examples/style-guide/button/IconButton.vue.d.ts +2 -0
  122. package/types/examples/style-guide/button/PlainButton.vue.d.ts +2 -0
  123. package/types/examples/style-guide/button/TextButton.vue.d.ts +2 -0
  124. package/types/examples/style-guide/button/index.vue.d.ts +2 -0
  125. package/types/examples/style-guide/input/BaseInput.vue.d.ts +2 -0
  126. package/types/examples/style-guide/input/SearchInput.vue.d.ts +2 -0
  127. package/types/examples/style-guide/input/Textarea.vue.d.ts +2 -0
  128. package/types/examples/style-guide/input/index.vue.d.ts +2 -0
  129. package/types/examples/style-guide/select/BaseSelect.vue.d.ts +2 -0
  130. package/types/examples/style-guide/select/index.vue.d.ts +2 -0
  131. package/types/plugins/example-transform.d.ts +5 -0
  132. package/types/src/components/filter-bar/FuFilter.vue.d.ts +42 -0
  133. package/types/src/components/filter-bar/FuFilterBar.vue.d.ts +33 -0
  134. package/types/src/components/filter-bar/FuFilterConditions.vue.d.ts +8 -0
  135. package/types/src/components/filter-bar/FuFilterInput.vue.d.ts +17 -0
  136. package/types/src/components/filter-bar/FuSearchInput.vue.d.ts +17 -0
  137. package/types/src/components/filter-bar/filter-components/FuFilterDate.vue.d.ts +36 -0
  138. package/types/src/components/filter-bar/filter-components/FuFilterDateTime.vue.d.ts +36 -0
  139. package/types/src/components/filter-bar/filter-components/FuFilterOption.vue.d.ts +24 -0
  140. package/types/src/components/filter-bar/filter-components/FuFilterSelect.vue.d.ts +66 -0
  141. package/types/src/components/filter-bar/index.d.ts +2 -0
  142. package/types/src/components/filter-bar/types.d.ts +22 -0
  143. package/types/src/components/icon-button/FuIconButton.vue.d.ts +43 -0
  144. package/types/src/components/icon-button/index.d.ts +2 -0
  145. package/types/src/components/read-write-switch/FuInputRwSwitch.vue.d.ts +21 -0
  146. package/types/src/components/read-write-switch/FuReadWriteSwitch.vue.d.ts +23 -0
  147. package/types/src/components/read-write-switch/FuSelectRwSwitch.vue.d.ts +43 -0
  148. package/types/src/components/read-write-switch/index.d.ts +2 -0
  149. package/types/src/components/read-write-switch/types.d.ts +4 -0
  150. package/types/src/components/search-bar/FuComplexSearch.vue.d.ts +22 -0
  151. package/types/src/components/search-bar/FuQuickSearch.vue.d.ts +29 -0
  152. package/types/src/components/search-bar/FuSearchBar.vue.d.ts +58 -0
  153. package/types/src/components/search-bar/FuSearchBarButton.vue.d.ts +14 -0
  154. package/types/src/components/search-bar/FuSearchContions.vue.d.ts +26 -0
  155. package/types/src/components/search-bar/complex-components/FuComplexDate.vue.d.ts +36 -0
  156. package/types/src/components/search-bar/complex-components/FuComplexDateTime.vue.d.ts +36 -0
  157. package/types/src/components/search-bar/complex-components/FuComplexInput.vue.d.ts +26 -0
  158. package/types/src/components/search-bar/complex-components/FuComplexSelect.vue.d.ts +50 -0
  159. package/types/src/components/search-bar/complex-components/index.d.ts +0 -0
  160. package/types/src/components/search-bar/complex-components/mixins.d.ts +6 -0
  161. package/types/src/components/search-bar/index.d.ts +2 -0
  162. package/types/src/components/search-bar/types.d.ts +17 -0
  163. package/types/src/components/speed-dial/FuSpeedDial.vue.d.ts +218 -0
  164. package/types/src/components/speed-dial/FuSpeedDialActionButton.vue.d.ts +32 -0
  165. package/types/src/components/speed-dial/FuSpeedDialButton.vue.d.ts +42 -0
  166. package/types/src/components/speed-dial/FuSpeedDialItem.vue.d.ts +12 -0
  167. package/types/src/components/speed-dial/index.d.ts +2 -0
  168. package/types/src/components/speed-dial/types.d.ts +8 -0
  169. package/types/src/components/split-pane/FuSplitPane.vue.d.ts +59 -0
  170. package/types/src/components/split-pane/index.d.ts +2 -0
  171. package/types/src/components/table/FuTable.vue.d.ts +18 -0
  172. package/types/src/components/table/FuTableBody.d.ts +3 -0
  173. package/types/src/components/table/FuTableColumnDropdown.vue.d.ts +50 -0
  174. package/types/src/components/table/FuTablePagination.vue.d.ts +47 -0
  175. package/types/src/components/table/index.d.ts +2 -0
  176. package/types/src/components/table/table-column-select/FuTableColumnSelect.vue.d.ts +10 -0
  177. package/types/src/components/table/table-column-select/FuTableColumnSelectDialog.vue.d.ts +23 -0
  178. package/types/src/components/table/table-column-select/FuTableColumnSelectPopover.vue.d.ts +34 -0
  179. package/types/src/components/table/table-column-select/utils.d.ts +8 -0
  180. package/types/src/components/table/table-operations/FuTableButton.vue.d.ts +13 -0
  181. package/types/src/components/table/table-operations/FuTableMoreButton.vue.d.ts +37 -0
  182. package/types/src/components/table/table-operations/FuTableOperations.vue.d.ts +46 -0
  183. package/types/src/components/table/types.d.ts +2 -0
  184. package/types/src/components/tabs/FuTabs.vue.d.ts +54 -0
  185. package/types/src/components/tabs/index.d.ts +2 -0
  186. package/types/src/hooks/index.d.ts +3 -0
  187. package/types/src/hooks/use-global-config/index.d.ts +9 -0
  188. package/types/src/hooks/use-locale/index.d.ts +14 -0
  189. package/types/src/hooks/use-size/index.d.ts +9 -0
  190. package/types/src/index.d.ts +8 -0
  191. package/types/src/locale/index.d.ts +10 -0
  192. package/types/src/locale/lang/en.d.ts +59 -0
  193. package/types/src/locale/lang/zh-cn.d.ts +59 -0
  194. package/types/src/locale/lang/zh-tw.d.ts +59 -0
  195. package/types/src/tools/size.d.ts +4 -0
  196. package/types/src/tools/theme.d.ts +1 -0
  197. package/types/src/tools/time.d.ts +2 -0
  198. package/types/src/tools/types.d.ts +8 -0
  199. package/types/src/tools/utils.d.ts +2 -0
  200. package/types/src/tools/vnode.d.ts +9 -0
  201. package/src/.DS_Store +0 -0
  202. package/src/components/.DS_Store +0 -0
  203. package/src/components/filter-bar/FuSearchInput.vue +0 -37
@@ -0,0 +1,46 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ align: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ width: (StringConstructor | NumberConstructor)[];
7
+ minWidth: (StringConstructor | NumberConstructor)[];
8
+ ellipsis: {
9
+ type: NumberConstructor;
10
+ default: number;
11
+ };
12
+ buttons: {
13
+ type: ArrayConstructor;
14
+ required: true;
15
+ };
16
+ type: {
17
+ type: StringConstructor;
18
+ default: string;
19
+ validator: (value: string) => boolean;
20
+ };
21
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
22
+ align: {
23
+ type: StringConstructor;
24
+ default: string;
25
+ };
26
+ width: (StringConstructor | NumberConstructor)[];
27
+ minWidth: (StringConstructor | NumberConstructor)[];
28
+ ellipsis: {
29
+ type: NumberConstructor;
30
+ default: number;
31
+ };
32
+ buttons: {
33
+ type: ArrayConstructor;
34
+ required: true;
35
+ };
36
+ type: {
37
+ type: StringConstructor;
38
+ default: string;
39
+ validator: (value: string) => boolean;
40
+ };
41
+ }>>, {
42
+ type: string;
43
+ align: string;
44
+ ellipsis: number;
45
+ }>;
46
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import { InjectionKey } from "vue";
2
+ export declare const LocalKey: InjectionKey<string | undefined>;
@@ -0,0 +1,54 @@
1
+ import { PropType } from "vue";
2
+ import { DropdownProps } from "@/tools/types";
3
+ declare const _default: import("vue").DefineComponent<{
4
+ addType: {
5
+ type: StringConstructor;
6
+ default: string;
7
+ validator: (val: string) => boolean;
8
+ };
9
+ dropdownMenus: {
10
+ type: PropType<DropdownProps[]>;
11
+ default: () => never[];
12
+ };
13
+ addTrigger: {
14
+ type: StringConstructor;
15
+ default: string;
16
+ validator: (val: string) => boolean;
17
+ };
18
+ addIcon: {
19
+ type: StringConstructor;
20
+ default: string;
21
+ };
22
+ addButtonLabel: StringConstructor;
23
+ addable: BooleanConstructor;
24
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "command"[], "command", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
25
+ addType: {
26
+ type: StringConstructor;
27
+ default: string;
28
+ validator: (val: string) => boolean;
29
+ };
30
+ dropdownMenus: {
31
+ type: PropType<DropdownProps[]>;
32
+ default: () => never[];
33
+ };
34
+ addTrigger: {
35
+ type: StringConstructor;
36
+ default: string;
37
+ validator: (val: string) => boolean;
38
+ };
39
+ addIcon: {
40
+ type: StringConstructor;
41
+ default: string;
42
+ };
43
+ addButtonLabel: StringConstructor;
44
+ addable: BooleanConstructor;
45
+ }>> & {
46
+ onCommand?: ((...args: any[]) => any) | undefined;
47
+ }, {
48
+ addable: boolean;
49
+ addType: string;
50
+ dropdownMenus: DropdownProps[];
51
+ addTrigger: string;
52
+ addIcon: string;
53
+ }>;
54
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import FuTabs from "./FuTabs.vue";
2
+ export default FuTabs;
@@ -0,0 +1,3 @@
1
+ export * from './use-global-config';
2
+ export * from './use-locale';
3
+ export * from './use-size';
@@ -0,0 +1,9 @@
1
+ import { InjectionKey, Ref, App } from 'vue';
2
+ import { MaybeRef } from "@vueuse/core";
3
+ export declare const globalConfigKey: InjectionKey<Ref<GlobalConfig>>;
4
+ export interface GlobalConfig {
5
+ size?: string;
6
+ locale?: any;
7
+ }
8
+ export declare function useGlobalConfig(key?: keyof any, defaultValue?: undefined): Ref<any>;
9
+ export declare const provideGlobalConfig: (config: MaybeRef<GlobalConfig>, app?: App<any> | undefined) => import("vue").ComputedRef<GlobalConfig>;
@@ -0,0 +1,14 @@
1
+ import type { MaybeRef } from '@vueuse/core';
2
+ import type { Ref } from 'vue';
3
+ import type { Language } from '@/locale';
4
+ export declare type TranslatorOption = Record<string, string | number>;
5
+ export declare type Translator = (path: string, option?: TranslatorOption) => string;
6
+ export declare type LocaleContext = {
7
+ locale: Ref<Language>;
8
+ lang: Ref<string>;
9
+ t: Translator;
10
+ };
11
+ export declare const buildTranslator: (locale: MaybeRef<Language>) => Translator;
12
+ export declare const translate: (path: string, option: undefined | TranslatorOption, locale: Language) => string;
13
+ export declare const buildLocaleContext: (locale: MaybeRef<Language>) => LocaleContext;
14
+ export declare const useLocale: () => LocaleContext;
@@ -0,0 +1,9 @@
1
+ import type { ComputedRef } from 'vue';
2
+ import type { ComponentSize } from '@/tools/size';
3
+ import { MaybeRef } from "@vueuse/core";
4
+ export declare const useProp: <T>(name: string) => ComputedRef<T | undefined>;
5
+ export declare const useSize: (fallback?: MaybeRef<ComponentSize | undefined>, ignore?: Partial<Record<'prop' | 'global', boolean>>) => ComputedRef<string>;
6
+ export declare const useSizeProp: {
7
+ type: StringConstructor;
8
+ validator: (val: string) => val is string;
9
+ };
@@ -0,0 +1,8 @@
1
+ import type { App } from 'vue';
2
+ import { GlobalConfig } from "@/hooks";
3
+ declare const plugin: {
4
+ name: string;
5
+ version: string;
6
+ install: (app: App, config: GlobalConfig) => void;
7
+ };
8
+ export default plugin;
@@ -0,0 +1,10 @@
1
+ export { default as en } from './lang/en';
2
+ export { default as zhCn } from './lang/zh-cn';
3
+ export { default as zhTw } from './lang/zh-tw';
4
+ export declare type TranslatePair = {
5
+ [key: string]: string | string[] | TranslatePair;
6
+ };
7
+ export declare type Language = {
8
+ name: string;
9
+ el: TranslatePair;
10
+ };
@@ -0,0 +1,59 @@
1
+ declare const _default: {
2
+ name: string;
3
+ fu: {
4
+ filter_bar: {
5
+ filter: string;
6
+ results: string;
7
+ clear: string;
8
+ drawer_title: string;
9
+ cancel: string;
10
+ search: string;
11
+ select_all: string;
12
+ more: string;
13
+ };
14
+ search_bar: {
15
+ search: string;
16
+ adv_search: string;
17
+ ok: string;
18
+ cancel: string;
19
+ please_select: string;
20
+ please_input: string;
21
+ like: string;
22
+ not_like: string;
23
+ in: string;
24
+ not_in: string;
25
+ gt: string;
26
+ ge: string;
27
+ lt: string;
28
+ le: string;
29
+ eq: string;
30
+ ne: string;
31
+ between: string;
32
+ select_date: string;
33
+ start_date: string;
34
+ end_date: string;
35
+ select_date_time: string;
36
+ start_date_time: string;
37
+ end_date_time: string;
38
+ range_separator: string;
39
+ data_time_error: string;
40
+ clean: string;
41
+ refresh: string;
42
+ };
43
+ table: {
44
+ ok: string;
45
+ reset: string;
46
+ custom_table_fields: string;
47
+ custom_table_fields_desc: string;
48
+ custom_table_rows: string;
49
+ more: string;
50
+ };
51
+ steps: {
52
+ cancel: string;
53
+ next: string;
54
+ prev: string;
55
+ finish: string;
56
+ };
57
+ };
58
+ };
59
+ export default _default;
@@ -0,0 +1,59 @@
1
+ declare const _default: {
2
+ name: string;
3
+ fu: {
4
+ filter_bar: {
5
+ filter: string;
6
+ results: string;
7
+ clear: string;
8
+ drawer_title: string;
9
+ cancel: string;
10
+ search: string;
11
+ select_all: string;
12
+ more: string;
13
+ };
14
+ search_bar: {
15
+ search: string;
16
+ adv_search: string;
17
+ ok: string;
18
+ cancel: string;
19
+ please_select: string;
20
+ please_input: string;
21
+ like: string;
22
+ not_like: string;
23
+ in: string;
24
+ not_in: string;
25
+ gt: string;
26
+ ge: string;
27
+ lt: string;
28
+ le: string;
29
+ eq: string;
30
+ ne: string;
31
+ between: string;
32
+ select_date: string;
33
+ start_date: string;
34
+ end_date: string;
35
+ select_date_time: string;
36
+ start_date_time: string;
37
+ end_date_time: string;
38
+ range_separator: string;
39
+ data_time_error: string;
40
+ clean: string;
41
+ refresh: string;
42
+ };
43
+ table: {
44
+ ok: string;
45
+ reset: string;
46
+ custom_table_fields: string;
47
+ custom_table_fields_desc: string;
48
+ custom_table_rows: string;
49
+ more: string;
50
+ };
51
+ steps: {
52
+ cancel: string;
53
+ next: string;
54
+ prev: string;
55
+ finish: string;
56
+ };
57
+ };
58
+ };
59
+ export default _default;
@@ -0,0 +1,59 @@
1
+ declare const _default: {
2
+ name: string;
3
+ fu: {
4
+ filter_bar: {
5
+ filter: string;
6
+ results: string;
7
+ clear: string;
8
+ drawer_title: string;
9
+ cancel: string;
10
+ search: string;
11
+ select_all: string;
12
+ more: string;
13
+ };
14
+ search_bar: {
15
+ search: string;
16
+ adv_search: string;
17
+ ok: string;
18
+ cancel: string;
19
+ please_select: string;
20
+ please_input: string;
21
+ like: string;
22
+ not_like: string;
23
+ in: string;
24
+ not_in: string;
25
+ gt: string;
26
+ ge: string;
27
+ lt: string;
28
+ le: string;
29
+ eq: string;
30
+ ne: string;
31
+ between: string;
32
+ select_date: string;
33
+ start_date: string;
34
+ end_date: string;
35
+ select_date_time: string;
36
+ start_date_time: string;
37
+ end_date_time: string;
38
+ range_separator: string;
39
+ data_time_error: string;
40
+ clean: string;
41
+ refresh: string;
42
+ };
43
+ table: {
44
+ ok: string;
45
+ reset: string;
46
+ custom_table_fields: string;
47
+ custom_table_fields_desc: string;
48
+ custom_table_rows: string;
49
+ more: string;
50
+ };
51
+ steps: {
52
+ cancel: string;
53
+ next: string;
54
+ prev: string;
55
+ finish: string;
56
+ };
57
+ };
58
+ };
59
+ export default _default;
@@ -0,0 +1,4 @@
1
+ declare const COMPONENTS_SIZE: string[];
2
+ export declare type ComponentSize = typeof COMPONENTS_SIZE[number];
3
+ export declare const validateSize: (val: string) => val is string;
4
+ export {};
@@ -0,0 +1 @@
1
+ export declare const validateType: (value: string) => boolean;
@@ -0,0 +1,2 @@
1
+ export declare const datetimeFormat: (timestamp: string) => string;
2
+ export declare const dateFormat: (timestamp: string) => string;
@@ -0,0 +1,8 @@
1
+ export interface DropdownProps {
2
+ icon?: string;
3
+ disabled?: boolean;
4
+ divided?: boolean;
5
+ command?: string | number | object;
6
+ label?: string | number;
7
+ [k: string]: any;
8
+ }
@@ -0,0 +1,2 @@
1
+ export declare const uuid: () => string;
2
+ export declare const randomId: () => number;
@@ -0,0 +1,9 @@
1
+ import type { VNode, VNodeNormalizedChildren } from 'vue';
2
+ export declare function isFragment(node: VNode): boolean;
3
+ export declare function isFragment(node: unknown): node is VNode;
4
+ export declare function isComment(node: VNode): boolean;
5
+ export declare function isComment(node: unknown): node is VNode;
6
+ export declare function isValidElementNode(node: VNode): boolean;
7
+ export declare function isValidElementNode(node: unknown): node is VNode;
8
+ export declare function isValidChildren(children: VNodeNormalizedChildren): children is VNodeNormalizedChildren;
9
+ export declare function getChildren(nodes: VNodeNormalizedChildren | VNode[], depth?: number): VNodeNormalizedChildren | VNode[];
package/src/.DS_Store DELETED
Binary file
Binary file
@@ -1,37 +0,0 @@
1
- <template>
2
- <el-input class="fu-search-input" prefix-icon="Search" v-model="quick" @input="input" @blur="blur" @keydown="keydown"
3
- v-bind="$attrs" clearable :size="size"/>
4
- </template>
5
-
6
- <script setup lang="ts">
7
- import { ref, watch } from "vue";
8
- import { validateSize } from "@/tools/size";
9
- defineOptions({ name: "FuSearchInput" });
10
-
11
- const props = defineProps({
12
- size: {
13
- type: String,
14
- validator: validateSize
15
- },
16
- value: String,
17
- })
18
- const emit = defineEmits(["input", "change"])
19
- const quick = ref("")
20
-
21
- watch(() => props.value, (val: any) => {
22
- quick.value = val
23
- })
24
-
25
- function input(e: Event) {
26
- emit("input", quick.value, e)
27
- }
28
- function blur(e: Event) {
29
- emit("change", quick.value, e)
30
- }
31
- function keydown(e: Event) {
32
- const event = e as KeyboardEvent
33
- if (event.key === "Enter") {
34
- emit("change", quick.value, e)
35
- }
36
- }
37
- </script>