@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.
- package/dist/index.cjs.js +3 -3
- package/dist/index.d.ts +2 -2
- package/dist/index.esm.js +4760 -7431
- package/dist/index.umd.js +3 -3
- package/dist/style.css +1 -1
- package/dist/style.esm.js +1 -1
- package/dist/types/index.d.ts +0 -20
- package/package.json +1 -1
- package/dist/index.cjs.js.map +0 -1
- package/dist/index.esm.js.map +0 -1
- package/dist/index.umd.js.map +0 -1
- package/dist/types/src/api/index.d.ts +0 -35
- package/dist/types/src/base/component.d.ts +0 -70
- package/dist/types/src/base/index.d.ts +0 -4
- package/dist/types/src/base/plugin.d.ts +0 -2
- package/dist/types/src/components/autocompleteitem/common.d.ts +0 -152
- package/dist/types/src/components/autocompleteitem/index.vue.d.ts +0 -3
- package/dist/types/src/components/cascaderitem/common.d.ts +0 -223
- package/dist/types/src/components/cascaderitem/index.vue.d.ts +0 -3
- package/dist/types/src/components/cascaderitem/model.d.ts +0 -70
- package/dist/types/src/components/cascaderitem/types.d.ts +0 -26
- package/dist/types/src/components/checkboxitem/common.d.ts +0 -181
- package/dist/types/src/components/checkboxitem/index.vue.d.ts +0 -3
- package/dist/types/src/components/checkboxitem/model.d.ts +0 -63
- package/dist/types/src/components/checkboxitem/types.d.ts +0 -33
- package/dist/types/src/components/content/common.d.ts +0 -16
- package/dist/types/src/components/content/index.vue.d.ts +0 -3
- package/dist/types/src/components/dateitem/common.d.ts +0 -152
- package/dist/types/src/components/dateitem/index.vue.d.ts +0 -3
- package/dist/types/src/components/dialogitem/common.d.ts +0 -27
- package/dist/types/src/components/dialogitem/index.vue.d.ts +0 -3
- package/dist/types/src/components/exticon/index.vue.d.ts +0 -3
- package/dist/types/src/components/footerbar/common.d.ts +0 -26
- package/dist/types/src/components/footerbar/index.vue.d.ts +0 -3
- package/dist/types/src/components/footerbar/type.d.ts +0 -1
- package/dist/types/src/components/group/commons.d.ts +0 -122
- package/dist/types/src/components/group/group-props.d.ts +0 -97
- package/dist/types/src/components/group/index.vue.d.ts +0 -3
- package/dist/types/src/components/headerbar/common.d.ts +0 -80
- package/dist/types/src/components/headerbar/index.vue.d.ts +0 -3
- package/dist/types/src/components/headerbar/types.d.ts +0 -5
- package/dist/types/src/components/hinttext/index.d.ts +0 -27
- package/dist/types/src/components/hinttext/index.vue.d.ts +0 -3
- package/dist/types/src/components/indicator/common.d.ts +0 -19
- package/dist/types/src/components/indicator/index.vue.d.ts +0 -3
- package/dist/types/src/components/indicator/types.d.ts +0 -1
- package/dist/types/src/components/inputitem/common.d.ts +0 -176
- package/dist/types/src/components/inputitem/index.vue.d.ts +0 -3
- package/dist/types/src/components/inputnumberitem/common.d.ts +0 -176
- package/dist/types/src/components/inputnumberitem/index.vue.d.ts +0 -3
- package/dist/types/src/components/item/common.d.ts +0 -137
- package/dist/types/src/components/item/index.vue.d.ts +0 -3
- package/dist/types/src/components/mapping/common.d.ts +0 -105
- package/dist/types/src/components/mapping/index.vue.d.ts +0 -3
- package/dist/types/src/components/mapping/model.d.ts +0 -28
- package/dist/types/src/components/mapping/types.d.ts +0 -17
- package/dist/types/src/components/moneyitem/common.d.ts +0 -300
- package/dist/types/src/components/moneyitem/index.vue.d.ts +0 -3
- package/dist/types/src/components/moneyitem/util.d.ts +0 -51
- package/dist/types/src/components/page/common.d.ts +0 -120
- package/dist/types/src/components/page/index.vue.d.ts +0 -3
- package/dist/types/src/components/price/index.vue.d.ts +0 -3
- package/dist/types/src/components/price/price-props.d.ts +0 -37
- package/dist/types/src/components/radioitem/common.d.ts +0 -173
- package/dist/types/src/components/radioitem/index.vue.d.ts +0 -3
- package/dist/types/src/components/radioitem/model.d.ts +0 -63
- package/dist/types/src/components/radioitem/types.d.ts +0 -33
- package/dist/types/src/components/rateitem/common.d.ts +0 -136
- package/dist/types/src/components/rateitem/index.vue.d.ts +0 -3
- package/dist/types/src/components/rowitem/common.d.ts +0 -38
- package/dist/types/src/components/rowitem/index.vue.d.ts +0 -3
- package/dist/types/src/components/selectitem/common.d.ts +0 -239
- package/dist/types/src/components/selectitem/index.vue.d.ts +0 -3
- package/dist/types/src/components/selectitem/model.d.ts +0 -70
- package/dist/types/src/components/selectitem/types.d.ts +0 -26
- package/dist/types/src/components/slotitem/common.d.ts +0 -21
- package/dist/types/src/components/slotitem/index.vue.d.ts +0 -3
- package/dist/types/src/components/switchitem/common.d.ts +0 -136
- package/dist/types/src/components/switchitem/index.vue.d.ts +0 -3
- package/dist/types/src/components/tableitem/common.d.ts +0 -230
- package/dist/types/src/components/tableitem/index.vue.d.ts +0 -3
- package/dist/types/src/components/tableitem/model.d.ts +0 -27
- package/dist/types/src/components/tableitem/types.d.ts +0 -19
- package/dist/types/src/components/tablemappingcolumn/common.d.ts +0 -56
- package/dist/types/src/components/tablemappingcolumn/index.vue.d.ts +0 -3
- package/dist/types/src/components/timeitem/common.d.ts +0 -152
- package/dist/types/src/components/timeitem/index.vue.d.ts +0 -3
- package/dist/types/src/components/timeselectitem/common.d.ts +0 -152
- package/dist/types/src/components/timeselectitem/index.vue.d.ts +0 -3
- package/dist/types/src/foxui.vue.build.d.ts +0 -137
- package/dist/types/src/interface.d.ts +0 -83
- package/dist/types/src/main.d.ts +0 -81
- package/dist/types/src/utils/commons.d.ts +0 -220
- package/dist/types/src/utils/create/component.d.ts +0 -18
- package/dist/types/src/utils/create/index.d.ts +0 -1
- package/dist/types/src/utils/date.d.ts +0 -76
- package/dist/types/src/utils/domain/broadcast.d.ts +0 -116
- package/dist/types/src/utils/domain/domain.d.ts +0 -146
- package/dist/types/src/utils/domain/events.d.ts +0 -51
- package/dist/types/src/utils/domain/group.d.ts +0 -61
- package/dist/types/src/utils/domain/index.d.ts +0 -5
- package/dist/types/src/utils/domain/item.d.ts +0 -45
- package/dist/types/src/utils/domain/page.d.ts +0 -113
- package/dist/types/src/utils/domain/types.d.ts +0 -5
- package/dist/types/src/utils/domain/validator.d.ts +0 -230
- package/dist/types/src/utils/functions.d.ts +0 -20
- package/dist/types/src/utils/px.d.ts +0 -13
- package/dist/types/src/utils/unique-id.d.ts +0 -16
- package/dist/types/src/utils/use-expose/index.d.ts +0 -6
- package/dist/types/src/utils/use-position/index.d.ts +0 -14
- package/dist/types/src/utils/use-rect/index.d.ts +0 -20
- package/dist/types/src/utils/use-touch/index.d.ts +0 -21
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { ComponentPublicInstance } from 'vue';
|
|
2
|
-
/**
|
|
3
|
-
* scope getter
|
|
4
|
-
*/
|
|
5
|
-
export interface ScopeGetter {
|
|
6
|
-
(proxy: ComponentPublicInstance): string | null;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* 设置公共scope getter
|
|
10
|
-
* @param getter
|
|
11
|
-
*/
|
|
12
|
-
export declare function setScopeGetter(getter: ScopeGetter): void;
|
|
13
|
-
/**
|
|
14
|
-
* 注册API函数
|
|
15
|
-
*/
|
|
16
|
-
export declare function setAPI(name: string, api: any, scope?: string): void;
|
|
17
|
-
/**
|
|
18
|
-
* 获取api
|
|
19
|
-
* @param proxy
|
|
20
|
-
* @param name
|
|
21
|
-
* @param scope
|
|
22
|
-
* @returns
|
|
23
|
-
*/
|
|
24
|
-
export declare function getAPI(proxy: ComponentPublicInstance, name: string, scope?: string): any | null;
|
|
25
|
-
/**
|
|
26
|
-
* 批量增加api
|
|
27
|
-
* @param apis
|
|
28
|
-
* @param scope
|
|
29
|
-
*/
|
|
30
|
-
export declare function batchSetAPI(apis: Record<string, any>, scope?: string): void;
|
|
31
|
-
/**
|
|
32
|
-
* 清空scope apis
|
|
33
|
-
* @param scope
|
|
34
|
-
*/
|
|
35
|
-
export declare function clearScopeAPI(scope: string): void;
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import type { Plugin } from 'vue';
|
|
2
|
-
import { ElAffix } from 'element-plus';
|
|
3
|
-
import { ElAlert } from 'element-plus';
|
|
4
|
-
import { ElAutocomplete } from 'element-plus';
|
|
5
|
-
import { ElAvatar } from 'element-plus';
|
|
6
|
-
import { ElBacktop } from 'element-plus';
|
|
7
|
-
import { ElBadge } from 'element-plus';
|
|
8
|
-
import { ElBreadcrumb, ElBreadcrumbItem } from 'element-plus';
|
|
9
|
-
import { ElButton, ElButtonGroup } from 'element-plus';
|
|
10
|
-
import { ElCalendar } from 'element-plus';
|
|
11
|
-
import { ElCard } from 'element-plus';
|
|
12
|
-
import { ElCarousel, ElCarouselItem } from 'element-plus';
|
|
13
|
-
import { ElCascader } from 'element-plus';
|
|
14
|
-
import { ElCascaderPanel } from 'element-plus';
|
|
15
|
-
import { ElCheckTag } from 'element-plus';
|
|
16
|
-
import { ElCheckbox, ElCheckboxButton, ElCheckboxGroup } from 'element-plus';
|
|
17
|
-
import { ElCol } from 'element-plus';
|
|
18
|
-
import { ElCollapse, ElCollapseItem } from 'element-plus';
|
|
19
|
-
import { ElCollapseTransition } from 'element-plus';
|
|
20
|
-
import { ElColorPicker } from 'element-plus';
|
|
21
|
-
import { ElConfigProvider } from 'element-plus';
|
|
22
|
-
import { ElAside, ElContainer, ElFooter, ElHeader, ElMain } from 'element-plus';
|
|
23
|
-
import { ElDatePicker } from 'element-plus';
|
|
24
|
-
import { ElDescriptions, ElDescriptionsItem } from 'element-plus';
|
|
25
|
-
import { ElDialog } from 'element-plus';
|
|
26
|
-
import { ElDivider } from 'element-plus';
|
|
27
|
-
import { ElDrawer } from 'element-plus';
|
|
28
|
-
import { ElDropdown, ElDropdownItem, ElDropdownMenu } from 'element-plus';
|
|
29
|
-
import { ElEmpty } from 'element-plus';
|
|
30
|
-
import { ElForm, ElFormItem } from 'element-plus';
|
|
31
|
-
import { ElIcon } from 'element-plus';
|
|
32
|
-
import { ElImage } from 'element-plus';
|
|
33
|
-
import { ElImageViewer } from 'element-plus';
|
|
34
|
-
import { ElInput } from 'element-plus';
|
|
35
|
-
import { ElInputNumber } from 'element-plus';
|
|
36
|
-
import { ElLink } from 'element-plus';
|
|
37
|
-
import { ElMenu, ElMenuItem, ElSubMenu, ElMenuItemGroup } from 'element-plus';
|
|
38
|
-
import { ElPageHeader } from 'element-plus';
|
|
39
|
-
import { ElPagination } from 'element-plus';
|
|
40
|
-
import { ElPopconfirm } from 'element-plus';
|
|
41
|
-
import { ElPopover } from 'element-plus';
|
|
42
|
-
import { ElPopper } from 'element-plus';
|
|
43
|
-
import { ElProgress } from 'element-plus';
|
|
44
|
-
import { ElRadio, ElRadioButton, ElRadioGroup } from 'element-plus';
|
|
45
|
-
import { ElRate } from 'element-plus';
|
|
46
|
-
import { ElResult } from 'element-plus';
|
|
47
|
-
import { ElRow } from 'element-plus';
|
|
48
|
-
import { ElScrollbar } from 'element-plus';
|
|
49
|
-
import { ElOption, ElOptionGroup, ElSelect } from 'element-plus';
|
|
50
|
-
import { ElSelectV2 } from 'element-plus';
|
|
51
|
-
import { ElSkeleton, ElSkeletonItem } from 'element-plus';
|
|
52
|
-
import { ElSlider } from 'element-plus';
|
|
53
|
-
import { ElSpace } from 'element-plus';
|
|
54
|
-
import { ElStep, ElSteps } from 'element-plus';
|
|
55
|
-
import { ElSwitch } from 'element-plus';
|
|
56
|
-
import { ElTable, ElTableColumn } from 'element-plus';
|
|
57
|
-
import { ElAutoResizer, ElTableV2 } from 'element-plus';
|
|
58
|
-
import { ElTabPane, ElTabs } from 'element-plus';
|
|
59
|
-
import { ElTag } from 'element-plus';
|
|
60
|
-
import { ElTimePicker } from 'element-plus';
|
|
61
|
-
import { ElTimeSelect } from 'element-plus';
|
|
62
|
-
import { ElTimeline, ElTimelineItem } from 'element-plus';
|
|
63
|
-
import { ElTooltip } from 'element-plus';
|
|
64
|
-
import { ElTransfer } from 'element-plus';
|
|
65
|
-
import { ElTree } from 'element-plus';
|
|
66
|
-
import { ElTreeSelect } from 'element-plus';
|
|
67
|
-
import { ElTreeV2 } from 'element-plus';
|
|
68
|
-
import { ElUpload } from 'element-plus';
|
|
69
|
-
export declare const components: Plugin[];
|
|
70
|
-
export { ElAffix, ElAlert, ElAutocomplete, ElAutoResizer, ElAvatar, ElBacktop, ElBadge, ElBreadcrumb, ElBreadcrumbItem, ElButton, ElButtonGroup, ElCalendar, ElCard, ElCarousel, ElCarouselItem, ElCascader, ElCascaderPanel, ElCheckTag, ElCheckbox, ElCheckboxButton, ElCheckboxGroup, ElCol, ElCollapse, ElCollapseItem, ElCollapseTransition, ElColorPicker, ElConfigProvider, ElContainer, ElAside, ElFooter, ElHeader, ElMain, ElDatePicker, ElDescriptions, ElDescriptionsItem, ElDialog, ElDivider, ElDrawer, ElDropdown, ElDropdownItem, ElDropdownMenu, ElEmpty, ElForm, ElFormItem, ElIcon, ElImage, ElImageViewer, ElInput, ElInputNumber, ElLink, ElMenu, ElSubMenu, ElMenuItem, ElMenuItemGroup, ElPageHeader, ElPagination, ElPopconfirm, ElPopover, ElPopper, ElProgress, ElRadio, ElRadioButton, ElRadioGroup, ElRate, ElResult, ElRow, ElScrollbar, ElSelect, ElOption, ElOptionGroup, ElSelectV2, ElSkeleton, ElSkeletonItem, ElSlider, ElSpace, ElSteps, ElStep, ElSwitch, ElTable, ElTableColumn, ElTableV2, ElTabs, ElTabPane, ElTag, ElTimePicker, ElTimeSelect, ElTimeline, ElTimelineItem, ElTooltip, ElTransfer, ElTree, ElTreeSelect, ElTreeV2, ElUpload };
|
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
import type { PropType, CSSProperties, RendererNode, RendererElement, SetupContext, VNode } from 'vue';
|
|
2
|
-
export declare const inputProps: {
|
|
3
|
-
modelValue: {
|
|
4
|
-
type: (StringConstructor | ObjectConstructor)[];
|
|
5
|
-
required: boolean;
|
|
6
|
-
};
|
|
7
|
-
clearable: {
|
|
8
|
-
type: (BooleanConstructor | StringConstructor)[];
|
|
9
|
-
default: boolean;
|
|
10
|
-
};
|
|
11
|
-
unit: {
|
|
12
|
-
type: StringConstructor[];
|
|
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 | ObjectConstructor)[];
|
|
26
|
-
required: boolean;
|
|
27
|
-
};
|
|
28
|
-
clearable: {
|
|
29
|
-
type: (BooleanConstructor | StringConstructor)[];
|
|
30
|
-
default: boolean;
|
|
31
|
-
};
|
|
32
|
-
unit: {
|
|
33
|
-
type: StringConstructor[];
|
|
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
|
-
};
|
|
@@ -1,3 +0,0 @@
|
|
|
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;
|
|
@@ -1,223 +0,0 @@
|
|
|
1
|
-
import type { CSSProperties, RendererNode, RendererElement, SetupContext, VNode, PropType } from 'vue';
|
|
2
|
-
import { Item, SourceFunction, ValueType, RemoteMethod } from './types';
|
|
3
|
-
export declare const inputProps: {
|
|
4
|
-
modelValue: {
|
|
5
|
-
type: PropType<any>;
|
|
6
|
-
required: boolean;
|
|
7
|
-
};
|
|
8
|
-
source: {
|
|
9
|
-
type: PropType<string | Item[] | SourceFunction>;
|
|
10
|
-
default: any[];
|
|
11
|
-
};
|
|
12
|
-
params: {
|
|
13
|
-
type: ObjectConstructor;
|
|
14
|
-
};
|
|
15
|
-
clearable: {
|
|
16
|
-
type: (BooleanConstructor | StringConstructor)[];
|
|
17
|
-
default: boolean;
|
|
18
|
-
};
|
|
19
|
-
props: {
|
|
20
|
-
type: PropType<Record<string, any>>;
|
|
21
|
-
required: boolean;
|
|
22
|
-
};
|
|
23
|
-
multiple: {
|
|
24
|
-
type: BooleanConstructor[];
|
|
25
|
-
default: boolean;
|
|
26
|
-
};
|
|
27
|
-
valueType: {
|
|
28
|
-
type: PropType<ValueType>;
|
|
29
|
-
required: boolean;
|
|
30
|
-
default: string;
|
|
31
|
-
};
|
|
32
|
-
textKey: {
|
|
33
|
-
type: StringConstructor[];
|
|
34
|
-
required: boolean;
|
|
35
|
-
default: string;
|
|
36
|
-
};
|
|
37
|
-
valueKey: {
|
|
38
|
-
type: StringConstructor[];
|
|
39
|
-
required: boolean;
|
|
40
|
-
default: string;
|
|
41
|
-
};
|
|
42
|
-
childrenKey: {
|
|
43
|
-
type: StringConstructor[];
|
|
44
|
-
required: boolean;
|
|
45
|
-
default: string;
|
|
46
|
-
};
|
|
47
|
-
remoteMethod: {
|
|
48
|
-
type: PropType<RemoteMethod>;
|
|
49
|
-
required: boolean;
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
/**
|
|
53
|
-
* 创建组件
|
|
54
|
-
* @param componentName
|
|
55
|
-
* @param scope
|
|
56
|
-
* @param Item
|
|
57
|
-
*/
|
|
58
|
-
export declare function component(componentName: string, scope: string, Item: any): {
|
|
59
|
-
props: {
|
|
60
|
-
modelValue: {
|
|
61
|
-
type: PropType<any>;
|
|
62
|
-
required: boolean;
|
|
63
|
-
};
|
|
64
|
-
source: {
|
|
65
|
-
type: PropType<string | Item[] | SourceFunction>;
|
|
66
|
-
default: any[];
|
|
67
|
-
};
|
|
68
|
-
params: {
|
|
69
|
-
type: ObjectConstructor;
|
|
70
|
-
};
|
|
71
|
-
clearable: {
|
|
72
|
-
type: (BooleanConstructor | StringConstructor)[];
|
|
73
|
-
default: boolean;
|
|
74
|
-
};
|
|
75
|
-
props: {
|
|
76
|
-
type: PropType<Record<string, any>>;
|
|
77
|
-
required: boolean;
|
|
78
|
-
};
|
|
79
|
-
multiple: {
|
|
80
|
-
type: BooleanConstructor[];
|
|
81
|
-
default: boolean;
|
|
82
|
-
};
|
|
83
|
-
valueType: {
|
|
84
|
-
type: PropType<ValueType>;
|
|
85
|
-
required: boolean;
|
|
86
|
-
default: string;
|
|
87
|
-
};
|
|
88
|
-
textKey: {
|
|
89
|
-
type: StringConstructor[];
|
|
90
|
-
required: boolean;
|
|
91
|
-
default: string;
|
|
92
|
-
};
|
|
93
|
-
valueKey: {
|
|
94
|
-
type: StringConstructor[];
|
|
95
|
-
required: boolean;
|
|
96
|
-
default: string;
|
|
97
|
-
};
|
|
98
|
-
childrenKey: {
|
|
99
|
-
type: StringConstructor[];
|
|
100
|
-
required: boolean;
|
|
101
|
-
default: string;
|
|
102
|
-
};
|
|
103
|
-
remoteMethod: {
|
|
104
|
-
type: PropType<RemoteMethod>;
|
|
105
|
-
required: boolean;
|
|
106
|
-
};
|
|
107
|
-
prop: {
|
|
108
|
-
type: StringConstructor;
|
|
109
|
-
required: boolean;
|
|
110
|
-
};
|
|
111
|
-
label: {
|
|
112
|
-
type: StringConstructor;
|
|
113
|
-
required: boolean;
|
|
114
|
-
};
|
|
115
|
-
labelPosition: {
|
|
116
|
-
type: StringConstructor;
|
|
117
|
-
required: boolean;
|
|
118
|
-
};
|
|
119
|
-
labelWidth: {
|
|
120
|
-
type: PropType<string | number>;
|
|
121
|
-
required: boolean;
|
|
122
|
-
};
|
|
123
|
-
isRequired: {
|
|
124
|
-
type: PropType<string | boolean>;
|
|
125
|
-
required: boolean;
|
|
126
|
-
default: boolean;
|
|
127
|
-
};
|
|
128
|
-
span: {
|
|
129
|
-
type: PropType<string | number>;
|
|
130
|
-
required: boolean;
|
|
131
|
-
default: number;
|
|
132
|
-
};
|
|
133
|
-
offset: {
|
|
134
|
-
type: PropType<string | number>;
|
|
135
|
-
default: number;
|
|
136
|
-
};
|
|
137
|
-
width: {
|
|
138
|
-
type: PropType<string | number>;
|
|
139
|
-
required: boolean;
|
|
140
|
-
};
|
|
141
|
-
errorTip: {
|
|
142
|
-
type: StringConstructor;
|
|
143
|
-
required: boolean;
|
|
144
|
-
};
|
|
145
|
-
errorIcon: {
|
|
146
|
-
type: ObjectConstructor;
|
|
147
|
-
required: boolean;
|
|
148
|
-
};
|
|
149
|
-
errorClass: {
|
|
150
|
-
type: StringConstructor;
|
|
151
|
-
required: boolean;
|
|
152
|
-
};
|
|
153
|
-
warnTip: {
|
|
154
|
-
type: StringConstructor;
|
|
155
|
-
required: boolean;
|
|
156
|
-
};
|
|
157
|
-
warnIcon: {
|
|
158
|
-
type: ObjectConstructor;
|
|
159
|
-
required: boolean;
|
|
160
|
-
};
|
|
161
|
-
warnClass: {
|
|
162
|
-
type: StringConstructor;
|
|
163
|
-
required: boolean;
|
|
164
|
-
};
|
|
165
|
-
infoTip: {
|
|
166
|
-
type: StringConstructor;
|
|
167
|
-
required: boolean;
|
|
168
|
-
};
|
|
169
|
-
infoIcon: {
|
|
170
|
-
type: ObjectConstructor;
|
|
171
|
-
required: boolean;
|
|
172
|
-
};
|
|
173
|
-
infoClass: {
|
|
174
|
-
type: StringConstructor;
|
|
175
|
-
required: boolean;
|
|
176
|
-
};
|
|
177
|
-
contentClass: {
|
|
178
|
-
type: StringConstructor;
|
|
179
|
-
required: boolean;
|
|
180
|
-
default: string;
|
|
181
|
-
};
|
|
182
|
-
contentStyle: {
|
|
183
|
-
type: PropType<CSSProperties>;
|
|
184
|
-
required: boolean;
|
|
185
|
-
default: {};
|
|
186
|
-
};
|
|
187
|
-
hintType: {
|
|
188
|
-
type: PropType<"number" | "text" | "money">;
|
|
189
|
-
required: boolean;
|
|
190
|
-
default: string;
|
|
191
|
-
};
|
|
192
|
-
hintText: {
|
|
193
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
194
|
-
required: boolean;
|
|
195
|
-
};
|
|
196
|
-
hintVisible: {
|
|
197
|
-
type: (BooleanConstructor | StringConstructor)[];
|
|
198
|
-
required: boolean;
|
|
199
|
-
default: boolean;
|
|
200
|
-
};
|
|
201
|
-
hintProps: {
|
|
202
|
-
type: ObjectConstructor;
|
|
203
|
-
required: boolean;
|
|
204
|
-
default: {};
|
|
205
|
-
};
|
|
206
|
-
hasBorder: {
|
|
207
|
-
type: BooleanConstructor;
|
|
208
|
-
default: boolean;
|
|
209
|
-
};
|
|
210
|
-
disabled: {
|
|
211
|
-
type: PropType<string | boolean>;
|
|
212
|
-
required: boolean;
|
|
213
|
-
};
|
|
214
|
-
readonly: {
|
|
215
|
-
type: PropType<string | boolean>;
|
|
216
|
-
required: boolean;
|
|
217
|
-
};
|
|
218
|
-
};
|
|
219
|
-
emits: string[];
|
|
220
|
-
setup(props: Record<string, any>, context: SetupContext): () => VNode<RendererNode, RendererElement, {
|
|
221
|
-
[key: string]: any;
|
|
222
|
-
}>;
|
|
223
|
-
};
|
|
@@ -1,3 +0,0 @@
|
|
|
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;
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { ComponentPublicInstance } from 'vue';
|
|
2
|
-
import { Item, SourceFunction } from './types';
|
|
3
|
-
/**
|
|
4
|
-
* 获取item text
|
|
5
|
-
* @param props
|
|
6
|
-
* @param item
|
|
7
|
-
* @returns
|
|
8
|
-
*/
|
|
9
|
-
export declare function getItemText(props: Record<string, any>, item: Item): string | number;
|
|
10
|
-
/**
|
|
11
|
-
* 获取item value
|
|
12
|
-
* @param props
|
|
13
|
-
* @param item
|
|
14
|
-
* @returns
|
|
15
|
-
*/
|
|
16
|
-
export declare function getItemValue(props: Record<string, any>, item: Item): string | boolean | number;
|
|
17
|
-
/**
|
|
18
|
-
* 获取item children
|
|
19
|
-
* @param props
|
|
20
|
-
* @param item
|
|
21
|
-
* @returns
|
|
22
|
-
*/
|
|
23
|
-
export declare function getItemChildren(props: Record<string, any>, item: Item): Item[] | null;
|
|
24
|
-
/**
|
|
25
|
-
* 数据model
|
|
26
|
-
*/
|
|
27
|
-
export declare class Model {
|
|
28
|
-
/**
|
|
29
|
-
* proxy
|
|
30
|
-
*/
|
|
31
|
-
private proxy;
|
|
32
|
-
/**
|
|
33
|
-
* 构造函数
|
|
34
|
-
* @param proxy
|
|
35
|
-
*/
|
|
36
|
-
constructor(proxy: ComponentPublicInstance);
|
|
37
|
-
/**
|
|
38
|
-
* 加载数据源
|
|
39
|
-
* @param src
|
|
40
|
-
* @returns
|
|
41
|
-
*/
|
|
42
|
-
load(componentType: string, src: SourceFunction | Item[][] | Item[] | string, params?: any): Promise<Item[][] | Item[] | string[] | string[][]>;
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* 使用model
|
|
46
|
-
* @returns
|
|
47
|
-
*/
|
|
48
|
-
export declare function useModel(): Model;
|
|
49
|
-
/**
|
|
50
|
-
* item是否相等
|
|
51
|
-
* @param props
|
|
52
|
-
* @param x
|
|
53
|
-
* @param y
|
|
54
|
-
* @returns
|
|
55
|
-
*/
|
|
56
|
-
export declare function isEqualsItem(props: Record<string, any>, x: Item, y: Item): boolean;
|
|
57
|
-
/**
|
|
58
|
-
* value转换为items
|
|
59
|
-
* @param value
|
|
60
|
-
* @param valueType
|
|
61
|
-
* @param items
|
|
62
|
-
* @returns
|
|
63
|
-
*/
|
|
64
|
-
export declare function valuesToItems(props: Record<string, any>, value: any, valueType: string, items: Item[]): (Item | Item[])[] | null;
|
|
65
|
-
/**
|
|
66
|
-
* string转换为item
|
|
67
|
-
* @param text
|
|
68
|
-
* @returns
|
|
69
|
-
*/
|
|
70
|
-
export declare function stringToItem(text: string): Item;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Item类型
|
|
3
|
-
*/
|
|
4
|
-
export interface Item {
|
|
5
|
-
text: string | number;
|
|
6
|
-
value: any;
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
children?: Item[];
|
|
9
|
-
[propName: string]: any;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* 通用Promise函数接口
|
|
13
|
-
*/
|
|
14
|
-
export interface SourceFunction {
|
|
15
|
-
(params?: any): Promise<Item[]>;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* value type
|
|
19
|
-
*/
|
|
20
|
-
export declare type ValueType = 'value' | 'text' | 'item';
|
|
21
|
-
/**
|
|
22
|
-
* remote method
|
|
23
|
-
*/
|
|
24
|
-
export interface RemoteMethod {
|
|
25
|
-
(query: string): Promise<Item[]>;
|
|
26
|
-
}
|