@fox-js/foxui-pc 4.0.1-13 → 4.0.1-15

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 (112) hide show
  1. package/dist/index.cjs.js +3 -3
  2. package/dist/index.d.ts +2 -2
  3. package/dist/index.esm.js +4760 -7431
  4. package/dist/index.umd.js +3 -3
  5. package/dist/style.css +1 -1
  6. package/dist/style.esm.js +1 -1
  7. package/dist/types/index.d.ts +0 -20
  8. package/package.json +1 -1
  9. package/dist/index.cjs.js.map +0 -1
  10. package/dist/index.esm.js.map +0 -1
  11. package/dist/index.umd.js.map +0 -1
  12. package/dist/types/src/api/index.d.ts +0 -35
  13. package/dist/types/src/base/component.d.ts +0 -70
  14. package/dist/types/src/base/index.d.ts +0 -4
  15. package/dist/types/src/base/plugin.d.ts +0 -2
  16. package/dist/types/src/components/autocompleteitem/common.d.ts +0 -152
  17. package/dist/types/src/components/autocompleteitem/index.vue.d.ts +0 -3
  18. package/dist/types/src/components/cascaderitem/common.d.ts +0 -223
  19. package/dist/types/src/components/cascaderitem/index.vue.d.ts +0 -3
  20. package/dist/types/src/components/cascaderitem/model.d.ts +0 -70
  21. package/dist/types/src/components/cascaderitem/types.d.ts +0 -26
  22. package/dist/types/src/components/checkboxitem/common.d.ts +0 -181
  23. package/dist/types/src/components/checkboxitem/index.vue.d.ts +0 -3
  24. package/dist/types/src/components/checkboxitem/model.d.ts +0 -63
  25. package/dist/types/src/components/checkboxitem/types.d.ts +0 -33
  26. package/dist/types/src/components/content/common.d.ts +0 -16
  27. package/dist/types/src/components/content/index.vue.d.ts +0 -3
  28. package/dist/types/src/components/dateitem/common.d.ts +0 -152
  29. package/dist/types/src/components/dateitem/index.vue.d.ts +0 -3
  30. package/dist/types/src/components/dialogitem/common.d.ts +0 -27
  31. package/dist/types/src/components/dialogitem/index.vue.d.ts +0 -3
  32. package/dist/types/src/components/exticon/index.vue.d.ts +0 -3
  33. package/dist/types/src/components/footerbar/common.d.ts +0 -26
  34. package/dist/types/src/components/footerbar/index.vue.d.ts +0 -3
  35. package/dist/types/src/components/footerbar/type.d.ts +0 -1
  36. package/dist/types/src/components/group/commons.d.ts +0 -122
  37. package/dist/types/src/components/group/group-props.d.ts +0 -97
  38. package/dist/types/src/components/group/index.vue.d.ts +0 -3
  39. package/dist/types/src/components/headerbar/common.d.ts +0 -80
  40. package/dist/types/src/components/headerbar/index.vue.d.ts +0 -3
  41. package/dist/types/src/components/headerbar/types.d.ts +0 -5
  42. package/dist/types/src/components/hinttext/index.d.ts +0 -27
  43. package/dist/types/src/components/hinttext/index.vue.d.ts +0 -3
  44. package/dist/types/src/components/indicator/common.d.ts +0 -19
  45. package/dist/types/src/components/indicator/index.vue.d.ts +0 -3
  46. package/dist/types/src/components/indicator/types.d.ts +0 -1
  47. package/dist/types/src/components/inputitem/common.d.ts +0 -176
  48. package/dist/types/src/components/inputitem/index.vue.d.ts +0 -3
  49. package/dist/types/src/components/inputnumberitem/common.d.ts +0 -176
  50. package/dist/types/src/components/inputnumberitem/index.vue.d.ts +0 -3
  51. package/dist/types/src/components/item/common.d.ts +0 -137
  52. package/dist/types/src/components/item/index.vue.d.ts +0 -3
  53. package/dist/types/src/components/mapping/common.d.ts +0 -105
  54. package/dist/types/src/components/mapping/index.vue.d.ts +0 -3
  55. package/dist/types/src/components/mapping/model.d.ts +0 -28
  56. package/dist/types/src/components/mapping/types.d.ts +0 -17
  57. package/dist/types/src/components/moneyitem/common.d.ts +0 -300
  58. package/dist/types/src/components/moneyitem/index.vue.d.ts +0 -3
  59. package/dist/types/src/components/moneyitem/util.d.ts +0 -51
  60. package/dist/types/src/components/page/common.d.ts +0 -120
  61. package/dist/types/src/components/page/index.vue.d.ts +0 -3
  62. package/dist/types/src/components/price/index.vue.d.ts +0 -3
  63. package/dist/types/src/components/price/price-props.d.ts +0 -37
  64. package/dist/types/src/components/radioitem/common.d.ts +0 -173
  65. package/dist/types/src/components/radioitem/index.vue.d.ts +0 -3
  66. package/dist/types/src/components/radioitem/model.d.ts +0 -63
  67. package/dist/types/src/components/radioitem/types.d.ts +0 -33
  68. package/dist/types/src/components/rateitem/common.d.ts +0 -136
  69. package/dist/types/src/components/rateitem/index.vue.d.ts +0 -3
  70. package/dist/types/src/components/rowitem/common.d.ts +0 -38
  71. package/dist/types/src/components/rowitem/index.vue.d.ts +0 -3
  72. package/dist/types/src/components/selectitem/common.d.ts +0 -239
  73. package/dist/types/src/components/selectitem/index.vue.d.ts +0 -3
  74. package/dist/types/src/components/selectitem/model.d.ts +0 -70
  75. package/dist/types/src/components/selectitem/types.d.ts +0 -26
  76. package/dist/types/src/components/slotitem/common.d.ts +0 -21
  77. package/dist/types/src/components/slotitem/index.vue.d.ts +0 -3
  78. package/dist/types/src/components/switchitem/common.d.ts +0 -136
  79. package/dist/types/src/components/switchitem/index.vue.d.ts +0 -3
  80. package/dist/types/src/components/tableitem/common.d.ts +0 -230
  81. package/dist/types/src/components/tableitem/index.vue.d.ts +0 -3
  82. package/dist/types/src/components/tableitem/model.d.ts +0 -27
  83. package/dist/types/src/components/tableitem/types.d.ts +0 -19
  84. package/dist/types/src/components/tablemappingcolumn/common.d.ts +0 -56
  85. package/dist/types/src/components/tablemappingcolumn/index.vue.d.ts +0 -3
  86. package/dist/types/src/components/timeitem/common.d.ts +0 -152
  87. package/dist/types/src/components/timeitem/index.vue.d.ts +0 -3
  88. package/dist/types/src/components/timeselectitem/common.d.ts +0 -152
  89. package/dist/types/src/components/timeselectitem/index.vue.d.ts +0 -3
  90. package/dist/types/src/foxui.vue.build.d.ts +0 -137
  91. package/dist/types/src/interface.d.ts +0 -83
  92. package/dist/types/src/main.d.ts +0 -81
  93. package/dist/types/src/utils/commons.d.ts +0 -220
  94. package/dist/types/src/utils/create/component.d.ts +0 -18
  95. package/dist/types/src/utils/create/index.d.ts +0 -1
  96. package/dist/types/src/utils/date.d.ts +0 -76
  97. package/dist/types/src/utils/domain/broadcast.d.ts +0 -116
  98. package/dist/types/src/utils/domain/domain.d.ts +0 -146
  99. package/dist/types/src/utils/domain/events.d.ts +0 -51
  100. package/dist/types/src/utils/domain/group.d.ts +0 -61
  101. package/dist/types/src/utils/domain/index.d.ts +0 -5
  102. package/dist/types/src/utils/domain/item.d.ts +0 -45
  103. package/dist/types/src/utils/domain/page.d.ts +0 -113
  104. package/dist/types/src/utils/domain/types.d.ts +0 -5
  105. package/dist/types/src/utils/domain/validator.d.ts +0 -230
  106. package/dist/types/src/utils/functions.d.ts +0 -20
  107. package/dist/types/src/utils/px.d.ts +0 -13
  108. package/dist/types/src/utils/unique-id.d.ts +0 -16
  109. package/dist/types/src/utils/use-expose/index.d.ts +0 -6
  110. package/dist/types/src/utils/use-position/index.d.ts +0 -14
  111. package/dist/types/src/utils/use-rect/index.d.ts +0 -20
  112. package/dist/types/src/utils/use-touch/index.d.ts +0 -21
@@ -1,137 +0,0 @@
1
- import { FoxUIVue } from './main';
2
- import Page from './components/page/index.vue';
3
- import HeaderBar from './components/headerbar/index.vue';
4
- import FooterBar from './components/footerbar/index.vue';
5
- import Content from './components/content/index.vue';
6
- import Group from './components/group/index.vue';
7
- import Item from './components/item/index.vue';
8
- import SlotItem from './components/slotitem/index.vue';
9
- import RowItem from './components/rowitem/index.vue';
10
- import HintText from './components/hinttext/index.vue';
11
- import InputItem from './components/inputitem/index.vue';
12
- import SelectItem from './components/selectitem/index.vue';
13
- import DateItem from './components/dateitem/index.vue';
14
- import TimeItem from './components/timeitem/index.vue';
15
- import TimeSelectItem from './components/timeselectitem/index.vue';
16
- import MoneyItem from './components/moneyitem/index.vue';
17
- import InputNumberItem from './components/inputnumberitem/index.vue';
18
- import CascaderItem from './components/cascaderitem/index.vue';
19
- import AutocompleteItem from './components/autocompleteitem/index.vue';
20
- import TableMappingColumn from './components/tablemappingcolumn/index.vue';
21
- import TableItem from './components/tableitem/index.vue';
22
- import RadioItem from './components/radioitem/index.vue';
23
- import CheckboxItem from './components/checkboxitem/index.vue';
24
- import RateItem from './components/rateitem/index.vue';
25
- import SwitchItem from './components/switchitem/index.vue';
26
- import DialogItem from './components/dialogitem/index.vue';
27
- import Mapping from './components/mapping/index.vue';
28
- import Price from './components/price/index.vue';
29
- import ExtIcon from './components/exticon/index.vue';
30
- import Indicator from './components/indicator/index.vue';
31
- export * from './utils/px';
32
- export * from './utils/commons';
33
- export * from './utils/functions';
34
- export * from './utils/date';
35
- export * from './utils/unique-id';
36
- export * from './utils/domain';
37
- export * from './utils/use-expose';
38
- export * from './utils/use-rect';
39
- export * from './utils/use-position';
40
- export * from './utils/use-touch';
41
- export { ElAffix as FoxAffix } from './base';
42
- export { ElAlert as FoxAlert } from './base';
43
- export { ElAutocomplete as FoxAutocomplete } from './base';
44
- export { ElAutoResizer as FoxAutoResizer } from './base';
45
- export { ElAvatar as FoxAvatar } from './base';
46
- export { ElBacktop as FoxBacktop } from './base';
47
- export { ElBadge as FoxBadge } from './base';
48
- export { ElBreadcrumb as FoxBreadcrumb } from './base';
49
- export { ElBreadcrumbItem as FoxBreadcrumbItem } from './base';
50
- export { ElButton as FoxButton } from './base';
51
- export { ElButtonGroup as FoxButtonGroup } from './base';
52
- export { ElCalendar as FoxCalendar } from './base';
53
- export { ElCard as FoxCard } from './base';
54
- export { ElCarousel as FoxCarousel } from './base';
55
- export { ElCarouselItem as FoxCarouselItem } from './base';
56
- export { ElCascader as FoxCascader } from './base';
57
- export { ElCascaderPanel as FoxCascaderPanel } from './base';
58
- export { ElCheckTag as FoxCheckTag } from './base';
59
- export { ElCheckbox as FoxCheckbox } from './base';
60
- export { ElCheckboxButton as FoxCheckboxButton } from './base';
61
- export { ElCheckboxGroup as FoxCheckboxGroup } from './base';
62
- export { ElCol as FoxCol } from './base';
63
- export { ElCollapse as FoxCollapse } from './base';
64
- export { ElCollapseItem as FoxCollapseItem } from './base';
65
- export { ElCollapseTransition as FoxCollapseTransition } from './base';
66
- export { ElColorPicker as FoxColorPicker } from './base';
67
- export { ElConfigProvider as FoxConfigProvider } from './base';
68
- export { ElContainer as FoxContainer } from './base';
69
- export { ElAside as FoxAside } from './base';
70
- export { ElFooter as FoxFooter } from './base';
71
- export { ElHeader as FoxHeader } from './base';
72
- export { ElMain as FoxMain } from './base';
73
- export { ElDatePicker as FoxDatePicker } from './base';
74
- export { ElDescriptions as FoxDescriptions } from './base';
75
- export { ElDescriptionsItem as FoxDescriptionsItem } from './base';
76
- export { ElDialog as FoxDialog } from './base';
77
- export { ElDivider as FoxDivider } from './base';
78
- export { ElDrawer as FoxDrawer } from './base';
79
- export { ElDropdown as FoxDropdown } from './base';
80
- export { ElDropdownItem as FoxDropdownItem } from './base';
81
- export { ElDropdownMenu as FoxDropdownMenu } from './base';
82
- export { ElEmpty as FoxEmpty } from './base';
83
- export { ElForm as FoxForm } from './base';
84
- export { ElFormItem as FoxFormItem } from './base';
85
- export { ElIcon as FoxIcon } from './base';
86
- export { ElImage as FoxImage } from './base';
87
- export { ElImageViewer as FoxImageViewer } from './base';
88
- export { ElInput as FoxInput } from './base';
89
- export { ElInputNumber as FoxInputNumber } from './base';
90
- export { ElLink as FoxLink } from './base';
91
- export { ElMenu as FoxMenu } from './base';
92
- export { ElSubMenu as FoxSubMenu } from './base';
93
- export { ElMenuItem as FoxMenuItem } from './base';
94
- export { ElMenuItemGroup as FoxMenuItemGroup } from './base';
95
- export { ElPageHeader as FoxPageHeader } from './base';
96
- export { ElPagination as FoxPagination } from './base';
97
- export { ElPopconfirm as FoxPopconfirm } from './base';
98
- export { ElPopover as FoxPopover } from './base';
99
- export { ElPopper as FoxPopper } from './base';
100
- export { ElProgress as FoxProgress } from './base';
101
- export { ElRadio as FoxRadio } from './base';
102
- export { ElRadioButton as FoxRadioButton } from './base';
103
- export { ElRadioGroup as FoxRadioGroup } from './base';
104
- export { ElRate as FoxRate } from './base';
105
- export { ElResult as FoxResult } from './base';
106
- export { ElRow as FoxRow } from './base';
107
- export { ElScrollbar as FoxScrollbar } from './base';
108
- export { ElSelect as FoxSelect } from './base';
109
- export { ElOption as FoxOption } from './base';
110
- export { ElOptionGroup as FoxOptionGroup } from './base';
111
- export { ElSelectV2 as FoxSelectV2 } from './base';
112
- export { ElSkeleton as FoxSkeleton } from './base';
113
- export { ElSkeletonItem as FoxSkeletonItem } from './base';
114
- export { ElSlider as FoxSlider } from './base';
115
- export { ElSpace as FoxSpace } from './base';
116
- export { ElSteps as FoxSteps } from './base';
117
- export { ElStep as FoxStep } from './base';
118
- export { ElSwitch as FoxSwitch } from './base';
119
- export { ElTable as FoxTable } from './base';
120
- export { ElTableColumn as FoxTableColumn } from './base';
121
- export { ElTableV2 as FoxTableV2 } from './base';
122
- export { ElTabs as FoxTabs } from './base';
123
- export { ElTabPane as FoxTabPane } from './base';
124
- export { ElTag as FoxTag } from './base';
125
- export { ElTimePicker as FoxTimePicker } from './base';
126
- export { ElTimeSelect as FoxTimeSelect } from './base';
127
- export { ElTimeline as FoxTimeline } from './base';
128
- export { ElTimelineItem as FoxTimelineItem } from './base';
129
- export { ElTooltip as FoxTooltip } from './base';
130
- export { ElTransfer as FoxTransfer } from './base';
131
- export { ElTree as FoxTree } from './base';
132
- export { ElTreeSelect as FoxTreeSelect } from './base';
133
- export { ElTreeV2 as FoxTreeV2 } from './base';
134
- export { ElUpload as FoxUpload } from './base';
135
- export { Page, HeaderBar, FooterBar, Content, Group, Item, SlotItem, RowItem, HintText, InputItem, SelectItem, DateItem, TimeItem, TimeSelectItem, MoneyItem, InputNumberItem, CascaderItem, AutocompleteItem, TableMappingColumn, TableItem, RadioItem, CheckboxItem, RateItem, SwitchItem, DialogItem, Mapping, Price, ExtIcon, Indicator };
136
- declare const _default: FoxUIVue;
137
- export default _default;
@@ -1,83 +0,0 @@
1
- import { App, ComponentPublicInstance } from 'vue';
2
- import { ScopeGetter } from './api';
3
- import { GroupLayout } from './utils/domain/group';
4
- import { SafeAreaInset, PageLayout, Domain } from './utils/domain';
5
- /**
6
- * Rect类型
7
- */
8
- export interface Rect {
9
- left: number;
10
- top: number;
11
- right: number;
12
- bottom: number;
13
- }
14
- /**
15
- * UI Options
16
- */
17
- export interface FoxUIOptions {
18
- headerBarHeight?: number;
19
- footerBarHeight?: number;
20
- safeAreaInset?: SafeAreaInset;
21
- pageLayout?: PageLayout;
22
- headerPadding?: Rect;
23
- contentPadding?: Rect;
24
- groupLayout?: GroupLayout;
25
- labelWidth?: number | string;
26
- [propName: string]: any;
27
- }
28
- /**
29
- * Fox UI
30
- */
31
- export interface FoxUI {
32
- /**
33
- * 版本号
34
- */
35
- version: string;
36
- /**
37
- * 安装
38
- * @param app
39
- * @param options
40
- */
41
- install(app: App, options: FoxUIOptions): any;
42
- /**
43
- * 初始化page Layout
44
- *
45
- * @param options
46
- * @param rootDomain
47
- */
48
- initPageLayout(options: FoxUIOptions, rootDomain?: Domain): void;
49
- /**
50
- * 设置scope getter
51
- * @param getter
52
- */
53
- setScopeGetter(getter: ScopeGetter): void;
54
- /**
55
- * 设置API
56
- * @param name
57
- * @param func
58
- * @param scope
59
- */
60
- setAPI(name: string, func: any, scope?: string): void;
61
- /**
62
- * 获取API
63
- * @param proxy
64
- * @param name
65
- * @param scope
66
- */
67
- getAPI(proxy: ComponentPublicInstance, name: string, scope?: string): any | null;
68
- /**
69
- * 批量增加api
70
- * @param apis
71
- * @param scope
72
- */
73
- batchSetAPI(apis: Record<string, any>, scope?: string): void;
74
- /**
75
- * 清空scope apis
76
- * @param scope
77
- */
78
- clearScopeAPI(scope: string): void;
79
- /**
80
- * 获取root domain
81
- */
82
- getRootDomain(): Domain;
83
- }
@@ -1,81 +0,0 @@
1
- import { App, ComponentPublicInstance } from 'vue';
2
- import { Domain } from './utils/domain';
3
- import { ScopeGetter } from './api';
4
- import { FoxUI, FoxUIOptions } from './interface';
5
- /**
6
- * 安装函数
7
- */
8
- export interface Installer {
9
- (app: App, options?: any): void;
10
- }
11
- /**
12
- * Fox UI vue实例
13
- */
14
- export declare class FoxUIVue implements FoxUI {
15
- /**
16
- * packages
17
- */
18
- private packages;
19
- /**
20
- * 安装器
21
- */
22
- private installers;
23
- /**
24
- * version
25
- */
26
- private _version;
27
- get version(): string;
28
- /**
29
- * 构造函数
30
- * @param packages
31
- * @param version
32
- */
33
- constructor(packages: any[], installers: Installer[], version: string);
34
- /**
35
- * 安装
36
- * @param app
37
- * @param options
38
- */
39
- install(app: App, options?: FoxUIOptions): any;
40
- /**
41
- * 初始化page Layout
42
- *
43
- * @param options
44
- * @param rootDomain
45
- */
46
- initPageLayout(options: FoxUIOptions, rootDomain?: Domain): void;
47
- /**
48
- * 设置scope getter
49
- * @param getter
50
- */
51
- setScopeGetter(getter: ScopeGetter): void;
52
- /**
53
- * 设置API
54
- * @param name
55
- * @param api
56
- * @param scope
57
- */
58
- setAPI(name: string, api: any, scope?: string): void;
59
- /**
60
- * 获取API
61
- * @param proxy
62
- * @param name
63
- * @param scope
64
- */
65
- getAPI(proxy: ComponentPublicInstance, name: string, scope?: string): any | null;
66
- /**
67
- * 批量增加api
68
- * @param apis
69
- * @param scope
70
- */
71
- batchSetAPI(apis: Record<string, any>, scope?: string): void;
72
- /**
73
- * 清空scope apis
74
- * @param scope
75
- */
76
- clearScopeAPI(scope: string): void;
77
- /**
78
- * 获取root domain
79
- */
80
- getRootDomain(): Domain;
81
- }
@@ -1,220 +0,0 @@
1
- /**
2
- * 是否数组
3
- */
4
- export declare const isArray: (arg: any) => arg is any[];
5
- /**
6
- * 是否为Map
7
- * @param val
8
- * @returns
9
- */
10
- export declare const isMap: (val: unknown) => val is Map<any, any>;
11
- /**
12
- * 是否为Set
13
- * @param val
14
- * @returns
15
- */
16
- export declare const isSet: (val: unknown) => val is Set<any>;
17
- /**
18
- * 是否为Date
19
- * @param val
20
- * @returns
21
- */
22
- export declare const isDate: (val: unknown) => val is Date;
23
- /**
24
- * 是否为函数
25
- * @param val
26
- * @returns
27
- */
28
- export declare const isFunction: (val: unknown) => val is Function;
29
- /**
30
- * 是否为字符串
31
- * @param val
32
- * @returns
33
- */
34
- export declare const isString: (val: unknown) => val is string;
35
- /**
36
- * 是否为symbol
37
- * @param val
38
- * @returns
39
- */
40
- export declare const isSymbol: (val: unknown) => val is symbol;
41
- /**
42
- * 是否为object
43
- */
44
- export declare const isObject: (val: unknown) => val is Record<any, any>;
45
- /**
46
- * 是否为promise
47
- * @param val
48
- * @returns
49
- */
50
- export declare const isPromise: <T = any>(val: unknown) => val is Promise<T>;
51
- /**
52
- * 对象类型
53
- */
54
- export declare const objectToString: () => string;
55
- export declare const toTypeString: (value: unknown) => string;
56
- /**
57
- * 是否为plain对象
58
- * @param val
59
- * @returns
60
- */
61
- export declare const isPlainObject: (val: unknown) => val is object;
62
- /**
63
- * 是否支持symbol
64
- */
65
- export declare const hasSymbol: boolean;
66
- /**
67
- * 是否为es module
68
- * @param obj
69
- * @returns
70
- */
71
- export declare function isESModule(obj: any): obj is Object;
72
- /**
73
- * 继承(是否深度拷贝,dest,src1,src2,src3...)
74
- *
75
- * @returns
76
- */
77
- export declare function extend(...args: any[]): any;
78
- /**
79
- * 克隆对象
80
- * @param target
81
- * @param source
82
- * @param plain
83
- *
84
- * @returns
85
- */
86
- export declare function clone(target: any, source: any, plain?: boolean): any;
87
- /**
88
- * 下一个事件周期中执行函数
89
- * @param fn
90
- * @param args
91
- */
92
- export declare function nextTick(fn: {
93
- (...args: any[]): void;
94
- }, ...args: any[]): void;
95
- /**
96
- * 转换为boolean值
97
- * @param val
98
- * @returns
99
- */
100
- export declare function toBoolean(val: unknown): boolean;
101
- /**
102
- * 转换为number值
103
- * @param val
104
- * @returns
105
- */
106
- export declare function toNumber(val: unknown): number;
107
- /**
108
- * 判断类型
109
- * @param obj
110
- * @returns any
111
- */
112
- export declare function typeOf(obj: any): string;
113
- /**
114
- * 是否是window对象
115
- * @param obj
116
- */
117
- export declare function isWindow(obj: any): boolean;
118
- /**
119
- * 是否为类数组
120
- * @param obj
121
- * @returns {boolean}
122
- */
123
- export declare function isArrayLike(obj: any): boolean;
124
- /**
125
- * 合并数组
126
- * @param first
127
- * @param second
128
- * @return
129
- */
130
- export declare function merge(first: any[], second: any[]): any[];
131
- /**
132
- * 创建数组
133
- * @param arr
134
- * @param results
135
- * @return
136
- */
137
- export declare function makeArray(arr: any, results?: any[]): any[];
138
- /**
139
- * 判断两个对象是否一致
140
- * @param x
141
- * @param y
142
- * @return
143
- */
144
- export declare function isEqual(x: any, y: any): boolean;
145
- export { numberFormat, unNumberFormat, multiply, divide, negate, compareTo } from '@fox-js/big-decimal';
146
- /**
147
- * 是否为浏览器环境
148
- */
149
- export declare const isBrowser: boolean;
150
- /**
151
- * 动画
152
- */
153
- export declare const raf: any;
154
- /**
155
- * 判断是否为正则表达式
156
- * @param v
157
- * @returns
158
- */
159
- export declare function isRegExp(v: unknown): v is RegExp;
160
- /**
161
- * 是否空字符串
162
- * @param v
163
- * @returns
164
- */
165
- export declare const isEmptyString: (v: unknown) => boolean;
166
- /**
167
- * 是否为数字字符串
168
- * @param value
169
- * @returns
170
- */
171
- export declare function isNumberString(value: string): boolean;
172
- /**
173
- * 获取整数长度
174
- * @param value
175
- */
176
- export declare function integerLength(value: string | number): number;
177
- /**
178
- * 获取小数长度
179
- * @param value
180
- */
181
- export declare function decimalLength(value: string | number): number;
182
- /**
183
- * 清理非数字
184
- */
185
- export declare function clearNonNumber(value: string, allowDot?: boolean, allowMinus?: boolean): string;
186
- /**
187
- * 获取对应元素的在数组中第一个匹配的索引
188
- * @param x
189
- * @param arr
190
- * @returns
191
- */
192
- export declare function indexOf(x: unknown, arr: unknown[]): number;
193
- /**
194
- * 获取对应元素的在数组中最后一个匹配的索引
195
- * @param x
196
- * @param arr
197
- * @returns
198
- */
199
- export declare function lastIndexOf(x: unknown, arr: unknown[]): number;
200
- /**
201
- * 获取value长度
202
- * @param val
203
- * @returns
204
- */
205
- export declare function valueLength(val: unknown): number;
206
- /**
207
- * 根据包含模版,抽取属性
208
- * @param src
209
- * @param includeTemplates
210
- * @returns
211
- */
212
- export declare function includeProps(src: Record<string, any>, ...includeTemplates: Record<string, any>[]): Record<string, any>;
213
- /**
214
- * 根据排除模版,抽取属性
215
- * @param src
216
- * @param excludeTemplates
217
- * @returns
218
- */
219
- export declare function excludeProps(src: Record<string, any>, ...excludeTemplates: Record<string, any>[]): Record<string, any>;
220
- export declare const floatData: (format: any, dataOp: any, mapOps: any) => any;
@@ -1,18 +0,0 @@
1
- import type { ComputedOptions, MethodOptions, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, App, DefineComponent, ComponentPropsOptions, ExtractPropTypes, SetupContext, RenderFunction, Component } from 'vue';
2
- export declare function createComponent(name: string): {
3
- componentName: string;
4
- scope: string;
5
- create<PropsOptions extends Readonly<ComponentPropsOptions<{
6
- [x: string]: unknown;
7
- }>>, Props extends Readonly<ExtractPropTypes<PropsOptions>>>(_component: {
8
- [optionKey: string]: any;
9
- name?: string;
10
- baseName?: string;
11
- install?: (vue: App) => void;
12
- props?: PropsOptions;
13
- components?: Record<string, Component>;
14
- setup?: (props: Props, setupContext: SetupContext) => RenderFunction | Record<string, any> | any;
15
- emits?: string[];
16
- }): DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
17
- createDemo(_component: any): DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
18
- };
@@ -1 +0,0 @@
1
- export { createComponent } from './component';
@@ -1,76 +0,0 @@
1
- declare const DateUtils: {
2
- /**
3
- * 格式化
4
- * @param date
5
- * @param template
6
- * @returns
7
- */
8
- format(date: Date, template: string): string;
9
- /**
10
- * 解析
11
- * @param str
12
- * @param template
13
- */
14
- parser(str: string, template: string): Date;
15
- /**
16
- * 是否为闫年
17
- * @return {Boolse} true|false
18
- */
19
- isLeapYear(y: number): boolean;
20
- /**
21
- * 返回星期数
22
- * @return {String}
23
- */
24
- getWhatDay(year: number, month: number, day: number): string;
25
- /**
26
- * 返回星期数
27
- * @return {Number}
28
- */
29
- getMonthPreDay(year: number, month: number): number;
30
- /**
31
- * 返回月份天数
32
- * @return {Number}
33
- */
34
- getMonthDays(year: string, month: string): number;
35
- /**
36
- * 补齐数字位数
37
- * @return {string}
38
- */
39
- getNumTwoBit(n: number): string;
40
- /**
41
- * 日期对象转成字符串
42
- * @return {string}
43
- */
44
- date2Str: (date: Date, split?: string) => string;
45
- /**
46
- * 返回日期格式字符串
47
- * @param {Number} 0返回今天的日期、1返回明天的日期,2返回后天得日期,依次类推
48
- * @return {string} '2014-12-31'
49
- */
50
- getDay(i: number): string;
51
- /**
52
- * 时间比较
53
- * @return
54
- */
55
- compareDate(date1: string | Date, date2: string | Date): boolean;
56
- /**
57
- * 时间是否相等
58
- * @return
59
- */
60
- isEqual(date1: string | Date | null, date2: string | Date | null): boolean;
61
- /**
62
- * 判断日期是否在范围内
63
- * @param date
64
- * @param startDate
65
- * @param span 允许负数
66
- */
67
- inScope4Day(date: Date, startDate: Date, span: number): boolean;
68
- /**
69
- * 判断日期是否在范围内
70
- * @param date
71
- * @param startDate
72
- * @param span
73
- */
74
- inScope4Month(date: Date, startDate: Date, span: number): boolean;
75
- };
76
- export default DateUtils;