@fox-js/foxui-pc 4.0.1-11 → 4.0.1-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.
- package/dist/index.cjs.js +3 -3
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.esm.js +7779 -4637
- package/dist/index.esm.js.map +1 -0
- package/dist/index.umd.js +4 -4
- package/dist/index.umd.js.map +1 -0
- package/dist/style.css +1 -1
- package/dist/style.esm.js +1 -1
- package/dist/types/index.d.ts +173 -35
- package/dist/types/src/api/index.d.ts +35 -0
- package/dist/types/src/base/component.d.ts +70 -0
- package/dist/types/src/base/index.d.ts +4 -0
- package/dist/types/src/base/plugin.d.ts +2 -0
- package/dist/types/src/components/autocompleteitem/common.d.ts +152 -0
- package/dist/types/src/components/autocompleteitem/index.vue.d.ts +3 -0
- package/dist/types/src/components/cascaderitem/common.d.ts +223 -0
- package/dist/types/src/components/cascaderitem/index.vue.d.ts +3 -0
- package/dist/types/src/components/cascaderitem/model.d.ts +70 -0
- package/dist/types/src/components/cascaderitem/types.d.ts +26 -0
- package/dist/types/src/components/checkboxitem/common.d.ts +181 -0
- package/dist/types/src/components/checkboxitem/index.vue.d.ts +3 -0
- package/dist/types/src/components/checkboxitem/model.d.ts +63 -0
- package/dist/types/src/components/checkboxitem/types.d.ts +33 -0
- package/dist/types/src/components/content/common.d.ts +16 -0
- package/dist/types/src/components/content/index.vue.d.ts +3 -0
- package/dist/types/src/components/dateitem/common.d.ts +152 -0
- package/dist/types/src/components/dateitem/index.vue.d.ts +3 -0
- package/dist/types/src/components/dialogitem/common.d.ts +27 -0
- package/dist/types/src/components/dialogitem/index.vue.d.ts +3 -0
- package/dist/types/src/components/exticon/index.vue.d.ts +3 -0
- package/dist/types/src/components/footerbar/common.d.ts +26 -0
- package/dist/types/src/components/footerbar/index.vue.d.ts +3 -0
- package/dist/types/src/components/footerbar/type.d.ts +1 -0
- package/dist/types/src/components/group/commons.d.ts +122 -0
- package/dist/types/src/components/group/group-props.d.ts +97 -0
- package/dist/types/src/components/group/index.vue.d.ts +3 -0
- package/dist/types/src/components/headerbar/common.d.ts +80 -0
- package/dist/types/src/components/headerbar/index.vue.d.ts +3 -0
- package/dist/types/src/components/headerbar/types.d.ts +5 -0
- package/dist/types/src/components/hinttext/index.d.ts +27 -0
- package/dist/types/src/components/hinttext/index.vue.d.ts +3 -0
- package/dist/types/src/components/indicator/common.d.ts +19 -0
- package/dist/types/src/components/indicator/index.vue.d.ts +3 -0
- package/dist/types/src/components/indicator/types.d.ts +1 -0
- package/dist/types/src/components/inputitem/common.d.ts +176 -0
- package/dist/types/src/components/inputitem/index.vue.d.ts +3 -0
- package/dist/types/src/components/inputnumberitem/common.d.ts +176 -0
- package/dist/types/src/components/inputnumberitem/index.vue.d.ts +3 -0
- package/dist/types/src/components/item/common.d.ts +137 -0
- package/dist/types/src/components/item/index.vue.d.ts +3 -0
- package/dist/types/src/components/mapping/common.d.ts +105 -0
- package/dist/types/src/components/mapping/index.vue.d.ts +3 -0
- package/dist/types/src/components/mapping/model.d.ts +28 -0
- package/dist/types/src/components/mapping/types.d.ts +17 -0
- package/dist/types/src/components/moneyitem/common.d.ts +300 -0
- package/dist/types/src/components/moneyitem/index.vue.d.ts +3 -0
- package/dist/types/src/components/moneyitem/util.d.ts +51 -0
- package/dist/types/src/components/page/common.d.ts +120 -0
- package/dist/types/src/components/page/index.vue.d.ts +3 -0
- package/dist/types/src/components/price/index.vue.d.ts +3 -0
- package/dist/types/src/components/price/price-props.d.ts +37 -0
- package/dist/types/src/components/radioitem/common.d.ts +173 -0
- package/dist/types/src/components/radioitem/index.vue.d.ts +3 -0
- package/dist/types/src/components/radioitem/model.d.ts +63 -0
- package/dist/types/src/components/radioitem/types.d.ts +33 -0
- package/dist/types/src/components/rateitem/common.d.ts +136 -0
- package/dist/types/src/components/rateitem/index.vue.d.ts +3 -0
- package/dist/types/src/components/rowitem/common.d.ts +38 -0
- package/dist/types/src/components/rowitem/index.vue.d.ts +3 -0
- package/dist/types/src/components/selectitem/common.d.ts +239 -0
- package/dist/types/src/components/selectitem/index.vue.d.ts +3 -0
- package/dist/types/src/components/selectitem/model.d.ts +70 -0
- package/dist/types/src/components/selectitem/types.d.ts +26 -0
- package/dist/types/src/components/slotitem/common.d.ts +21 -0
- package/dist/types/src/components/slotitem/index.vue.d.ts +3 -0
- package/dist/types/src/components/switchitem/common.d.ts +136 -0
- package/dist/types/src/components/switchitem/index.vue.d.ts +3 -0
- package/dist/types/src/components/tableitem/common.d.ts +230 -0
- package/dist/types/src/components/tableitem/index.vue.d.ts +3 -0
- package/dist/types/src/components/tableitem/model.d.ts +27 -0
- package/dist/types/src/components/tableitem/types.d.ts +19 -0
- package/dist/types/src/components/tablemappingcolumn/common.d.ts +56 -0
- package/dist/types/src/components/tablemappingcolumn/index.vue.d.ts +3 -0
- package/dist/types/src/components/timeitem/common.d.ts +152 -0
- package/dist/types/src/components/timeitem/index.vue.d.ts +3 -0
- package/dist/types/src/components/timeselectitem/common.d.ts +152 -0
- package/dist/types/src/components/timeselectitem/index.vue.d.ts +3 -0
- package/dist/types/src/foxui.vue.build.d.ts +137 -0
- package/dist/types/src/interface.d.ts +83 -0
- package/dist/types/src/main.d.ts +81 -0
- package/dist/types/src/utils/commons.d.ts +220 -0
- package/dist/types/src/utils/create/component.d.ts +18 -0
- package/dist/types/src/utils/create/index.d.ts +1 -0
- package/dist/types/src/utils/date.d.ts +76 -0
- package/dist/types/src/utils/domain/broadcast.d.ts +116 -0
- package/dist/types/src/utils/domain/domain.d.ts +146 -0
- package/dist/types/src/utils/domain/events.d.ts +51 -0
- package/dist/types/src/utils/domain/group.d.ts +61 -0
- package/dist/types/src/utils/domain/index.d.ts +5 -0
- package/dist/types/src/utils/domain/item.d.ts +45 -0
- package/dist/types/src/utils/domain/page.d.ts +113 -0
- package/dist/types/src/utils/domain/types.d.ts +5 -0
- package/dist/types/src/utils/domain/validator.d.ts +230 -0
- package/dist/types/src/utils/functions.d.ts +20 -0
- package/dist/types/src/utils/px.d.ts +13 -0
- package/dist/types/src/utils/unique-id.d.ts +16 -0
- package/dist/types/src/utils/use-expose/index.d.ts +6 -0
- package/dist/types/src/utils/use-position/index.d.ts +14 -0
- package/dist/types/src/utils/use-rect/index.d.ts +20 -0
- package/dist/types/src/utils/use-touch/index.d.ts +21 -0
- package/package.json +1 -1
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import type { CSSProperties, RendererNode, RendererElement, SetupContext, VNode, PropType } from 'vue';
|
|
2
|
+
export declare const inputProps: {
|
|
3
|
+
modelValue: {
|
|
4
|
+
type: (StringConstructor | NumberConstructor | DateConstructor | ArrayConstructor)[];
|
|
5
|
+
required: boolean;
|
|
6
|
+
};
|
|
7
|
+
unit: {
|
|
8
|
+
type: StringConstructor[];
|
|
9
|
+
required: boolean;
|
|
10
|
+
};
|
|
11
|
+
placeholder: {
|
|
12
|
+
type: PropType<string>;
|
|
13
|
+
required: boolean;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* 创建组件
|
|
18
|
+
* @param componentName
|
|
19
|
+
* @param scope
|
|
20
|
+
* @param Item
|
|
21
|
+
*/
|
|
22
|
+
export declare function component(componentName: string, scope: string, Item: any): {
|
|
23
|
+
props: {
|
|
24
|
+
modelValue: {
|
|
25
|
+
type: (StringConstructor | NumberConstructor | DateConstructor | ArrayConstructor)[];
|
|
26
|
+
required: boolean;
|
|
27
|
+
};
|
|
28
|
+
unit: {
|
|
29
|
+
type: StringConstructor[];
|
|
30
|
+
required: boolean;
|
|
31
|
+
};
|
|
32
|
+
placeholder: {
|
|
33
|
+
type: PropType<string>;
|
|
34
|
+
required: boolean;
|
|
35
|
+
};
|
|
36
|
+
prop: {
|
|
37
|
+
type: StringConstructor;
|
|
38
|
+
required: boolean;
|
|
39
|
+
};
|
|
40
|
+
label: {
|
|
41
|
+
type: StringConstructor;
|
|
42
|
+
required: boolean;
|
|
43
|
+
};
|
|
44
|
+
labelPosition: {
|
|
45
|
+
type: StringConstructor;
|
|
46
|
+
required: boolean;
|
|
47
|
+
};
|
|
48
|
+
labelWidth: {
|
|
49
|
+
type: PropType<string | number>;
|
|
50
|
+
required: boolean;
|
|
51
|
+
};
|
|
52
|
+
isRequired: {
|
|
53
|
+
type: PropType<string | boolean>;
|
|
54
|
+
required: boolean;
|
|
55
|
+
default: boolean;
|
|
56
|
+
};
|
|
57
|
+
span: {
|
|
58
|
+
type: PropType<string | number>;
|
|
59
|
+
required: boolean;
|
|
60
|
+
default: number;
|
|
61
|
+
};
|
|
62
|
+
offset: {
|
|
63
|
+
type: PropType<string | number>;
|
|
64
|
+
default: number;
|
|
65
|
+
};
|
|
66
|
+
width: {
|
|
67
|
+
type: PropType<string | number>;
|
|
68
|
+
required: boolean;
|
|
69
|
+
};
|
|
70
|
+
errorTip: {
|
|
71
|
+
type: StringConstructor;
|
|
72
|
+
required: boolean;
|
|
73
|
+
};
|
|
74
|
+
errorIcon: {
|
|
75
|
+
type: ObjectConstructor;
|
|
76
|
+
required: boolean;
|
|
77
|
+
};
|
|
78
|
+
errorClass: {
|
|
79
|
+
type: StringConstructor;
|
|
80
|
+
required: boolean;
|
|
81
|
+
};
|
|
82
|
+
warnTip: {
|
|
83
|
+
type: StringConstructor;
|
|
84
|
+
required: boolean;
|
|
85
|
+
};
|
|
86
|
+
warnIcon: {
|
|
87
|
+
type: ObjectConstructor;
|
|
88
|
+
required: boolean;
|
|
89
|
+
};
|
|
90
|
+
warnClass: {
|
|
91
|
+
type: StringConstructor;
|
|
92
|
+
required: boolean;
|
|
93
|
+
};
|
|
94
|
+
infoTip: {
|
|
95
|
+
type: StringConstructor;
|
|
96
|
+
required: boolean;
|
|
97
|
+
};
|
|
98
|
+
infoIcon: {
|
|
99
|
+
type: ObjectConstructor;
|
|
100
|
+
required: boolean;
|
|
101
|
+
};
|
|
102
|
+
infoClass: {
|
|
103
|
+
type: StringConstructor;
|
|
104
|
+
required: boolean;
|
|
105
|
+
};
|
|
106
|
+
contentClass: {
|
|
107
|
+
type: StringConstructor;
|
|
108
|
+
required: boolean;
|
|
109
|
+
default: string;
|
|
110
|
+
};
|
|
111
|
+
contentStyle: {
|
|
112
|
+
type: PropType<CSSProperties>;
|
|
113
|
+
required: boolean;
|
|
114
|
+
default: {};
|
|
115
|
+
};
|
|
116
|
+
hintType: {
|
|
117
|
+
type: PropType<"number" | "text" | "money">;
|
|
118
|
+
required: boolean;
|
|
119
|
+
default: string;
|
|
120
|
+
};
|
|
121
|
+
hintText: {
|
|
122
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
123
|
+
required: boolean;
|
|
124
|
+
};
|
|
125
|
+
hintVisible: {
|
|
126
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
127
|
+
required: boolean;
|
|
128
|
+
default: boolean;
|
|
129
|
+
};
|
|
130
|
+
hintProps: {
|
|
131
|
+
type: ObjectConstructor;
|
|
132
|
+
required: boolean;
|
|
133
|
+
default: {};
|
|
134
|
+
};
|
|
135
|
+
hasBorder: {
|
|
136
|
+
type: BooleanConstructor;
|
|
137
|
+
default: boolean;
|
|
138
|
+
};
|
|
139
|
+
disabled: {
|
|
140
|
+
type: PropType<string | boolean>;
|
|
141
|
+
required: boolean;
|
|
142
|
+
};
|
|
143
|
+
readonly: {
|
|
144
|
+
type: PropType<string | boolean>;
|
|
145
|
+
required: boolean;
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
emits: string[];
|
|
149
|
+
setup(props: Record<string, any>, context: SetupContext): () => VNode<RendererNode, RendererElement, {
|
|
150
|
+
[key: string]: any;
|
|
151
|
+
}>;
|
|
152
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { DefineComponent, ComputedOptions, MethodOptions, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps } from 'vue';
|
|
2
|
+
declare const _sfc_main: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
3
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,137 @@
|
|
|
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;
|
|
@@ -0,0 +1,83 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,220 @@
|
|
|
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;
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { createComponent } from './component';
|