@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,120 +0,0 @@
|
|
|
1
|
-
import type { ComputedRef, CSSProperties, PropType, SetupContext } from 'vue';
|
|
2
|
-
import { SafeAreaInset } from '../../utils/domain';
|
|
3
|
-
import { Rule } from '@fox-js/validator';
|
|
4
|
-
/**
|
|
5
|
-
* Rect类型
|
|
6
|
-
*/
|
|
7
|
-
export interface Rect {
|
|
8
|
-
left: number;
|
|
9
|
-
top: number;
|
|
10
|
-
right: number;
|
|
11
|
-
bottom: number;
|
|
12
|
-
}
|
|
13
|
-
export declare const component: (componentName: string, scope: string) => {
|
|
14
|
-
inheritAttrs: boolean;
|
|
15
|
-
props: {
|
|
16
|
-
name: {
|
|
17
|
-
type: PropType<string>;
|
|
18
|
-
required: boolean;
|
|
19
|
-
default: string;
|
|
20
|
-
};
|
|
21
|
-
modelValue: {
|
|
22
|
-
type: PropType<Record<string, any>>;
|
|
23
|
-
required: boolean;
|
|
24
|
-
};
|
|
25
|
-
width: {
|
|
26
|
-
type: PropType<string | number>;
|
|
27
|
-
required: boolean;
|
|
28
|
-
};
|
|
29
|
-
height: {
|
|
30
|
-
type: PropType<string | number>;
|
|
31
|
-
required: boolean;
|
|
32
|
-
};
|
|
33
|
-
safeAreaInset: {
|
|
34
|
-
type: PropType<SafeAreaInset>;
|
|
35
|
-
required: boolean;
|
|
36
|
-
};
|
|
37
|
-
contentPadding: {
|
|
38
|
-
type: PropType<Rect>;
|
|
39
|
-
required: boolean;
|
|
40
|
-
};
|
|
41
|
-
headerPadding: {
|
|
42
|
-
type: PropType<Rect>;
|
|
43
|
-
required: boolean;
|
|
44
|
-
};
|
|
45
|
-
footerPadding: {
|
|
46
|
-
type: PropType<Rect>;
|
|
47
|
-
required: boolean;
|
|
48
|
-
};
|
|
49
|
-
headerHeight: {
|
|
50
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
51
|
-
required: boolean;
|
|
52
|
-
};
|
|
53
|
-
footerHeight: {
|
|
54
|
-
type: PropType<string | number>;
|
|
55
|
-
required: boolean;
|
|
56
|
-
};
|
|
57
|
-
rules: {
|
|
58
|
-
type: PropType<Record<string, Rule>>;
|
|
59
|
-
required: boolean;
|
|
60
|
-
};
|
|
61
|
-
column: {
|
|
62
|
-
type: PropType<string | number>;
|
|
63
|
-
required: boolean;
|
|
64
|
-
};
|
|
65
|
-
gutter: {
|
|
66
|
-
type: PropType<string | number>;
|
|
67
|
-
required: boolean;
|
|
68
|
-
};
|
|
69
|
-
minItemWidth: {
|
|
70
|
-
type: PropType<number>;
|
|
71
|
-
required: boolean;
|
|
72
|
-
};
|
|
73
|
-
justify: {
|
|
74
|
-
type: PropType<string>;
|
|
75
|
-
required: boolean;
|
|
76
|
-
default: string;
|
|
77
|
-
};
|
|
78
|
-
align: {
|
|
79
|
-
type: PropType<"start" | "end" | "center">;
|
|
80
|
-
required: boolean;
|
|
81
|
-
default: string;
|
|
82
|
-
};
|
|
83
|
-
flexWrap: {
|
|
84
|
-
type: PropType<"nowrap" | "wrap">;
|
|
85
|
-
default: string;
|
|
86
|
-
};
|
|
87
|
-
disabled: {
|
|
88
|
-
type: PropType<string | boolean>;
|
|
89
|
-
required: boolean;
|
|
90
|
-
};
|
|
91
|
-
readonly: {
|
|
92
|
-
type: PropType<string | boolean>;
|
|
93
|
-
required: boolean;
|
|
94
|
-
};
|
|
95
|
-
labelPosition: {
|
|
96
|
-
type: PropType<string>;
|
|
97
|
-
required: boolean;
|
|
98
|
-
};
|
|
99
|
-
labelWidth: {
|
|
100
|
-
type: PropType<string | number>;
|
|
101
|
-
required: boolean;
|
|
102
|
-
};
|
|
103
|
-
hasBorder: {
|
|
104
|
-
type: PropType<boolean>;
|
|
105
|
-
required: boolean;
|
|
106
|
-
default: boolean;
|
|
107
|
-
};
|
|
108
|
-
};
|
|
109
|
-
/**
|
|
110
|
-
* setup
|
|
111
|
-
*
|
|
112
|
-
* @param props
|
|
113
|
-
*/
|
|
114
|
-
setup(props: Record<string, unknown>, context: SetupContext): {
|
|
115
|
-
classes: ComputedRef<{
|
|
116
|
-
[x: string]: boolean;
|
|
117
|
-
}>;
|
|
118
|
-
styles: ComputedRef<CSSProperties>;
|
|
119
|
-
};
|
|
120
|
-
};
|
|
@@ -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,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,37 +0,0 @@
|
|
|
1
|
-
export declare const priceProps: {
|
|
2
|
-
price: {
|
|
3
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
4
|
-
default: number;
|
|
5
|
-
};
|
|
6
|
-
needSymbol: {
|
|
7
|
-
type: BooleanConstructor;
|
|
8
|
-
default: boolean;
|
|
9
|
-
};
|
|
10
|
-
symbol: {
|
|
11
|
-
type: StringConstructor;
|
|
12
|
-
default: string;
|
|
13
|
-
};
|
|
14
|
-
decimalLength: {
|
|
15
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
16
|
-
required: boolean;
|
|
17
|
-
default: number;
|
|
18
|
-
};
|
|
19
|
-
digits: {
|
|
20
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
21
|
-
required: boolean;
|
|
22
|
-
default: number;
|
|
23
|
-
};
|
|
24
|
-
separator: {
|
|
25
|
-
type: StringConstructor;
|
|
26
|
-
required: boolean;
|
|
27
|
-
default: string;
|
|
28
|
-
};
|
|
29
|
-
position: {
|
|
30
|
-
type: StringConstructor;
|
|
31
|
-
default: string;
|
|
32
|
-
};
|
|
33
|
-
size: {
|
|
34
|
-
type: StringConstructor;
|
|
35
|
-
default: string;
|
|
36
|
-
};
|
|
37
|
-
};
|
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
import type { CSSProperties, RendererNode, RendererElement, SetupContext, VNode, PropType } from 'vue';
|
|
2
|
-
import { ValueType, Item, SourceFunction, Size, ItemType } from './types';
|
|
3
|
-
export declare function component(componentName: string, scope: string, ItemNode: any): {
|
|
4
|
-
inheritAttrs: boolean;
|
|
5
|
-
props: {
|
|
6
|
-
modelValue: {
|
|
7
|
-
type: PropType<string | number | boolean | Item>;
|
|
8
|
-
required: boolean;
|
|
9
|
-
};
|
|
10
|
-
source: {
|
|
11
|
-
type: PropType<string | Item[] | SourceFunction>;
|
|
12
|
-
default: any[];
|
|
13
|
-
};
|
|
14
|
-
params: {
|
|
15
|
-
type: ObjectConstructor;
|
|
16
|
-
};
|
|
17
|
-
valueType: {
|
|
18
|
-
type: PropType<ValueType>;
|
|
19
|
-
required: boolean;
|
|
20
|
-
default: string;
|
|
21
|
-
};
|
|
22
|
-
textKey: {
|
|
23
|
-
type: StringConstructor[];
|
|
24
|
-
required: boolean;
|
|
25
|
-
default: string;
|
|
26
|
-
};
|
|
27
|
-
valueKey: {
|
|
28
|
-
type: StringConstructor[];
|
|
29
|
-
required: boolean;
|
|
30
|
-
default: string;
|
|
31
|
-
};
|
|
32
|
-
size: {
|
|
33
|
-
type: PropType<Size>;
|
|
34
|
-
required: boolean;
|
|
35
|
-
};
|
|
36
|
-
textColor: {
|
|
37
|
-
type: PropType<string>;
|
|
38
|
-
required: boolean;
|
|
39
|
-
};
|
|
40
|
-
fill: {
|
|
41
|
-
type: PropType<string>;
|
|
42
|
-
required: boolean;
|
|
43
|
-
};
|
|
44
|
-
border: {
|
|
45
|
-
type: PropType<boolean>;
|
|
46
|
-
required: boolean;
|
|
47
|
-
};
|
|
48
|
-
itemType: {
|
|
49
|
-
type: PropType<ItemType>;
|
|
50
|
-
required: boolean;
|
|
51
|
-
default: string;
|
|
52
|
-
};
|
|
53
|
-
itemClass: {
|
|
54
|
-
type: PropType<string>;
|
|
55
|
-
required: boolean;
|
|
56
|
-
};
|
|
57
|
-
prop: {
|
|
58
|
-
type: StringConstructor;
|
|
59
|
-
required: boolean;
|
|
60
|
-
};
|
|
61
|
-
label: {
|
|
62
|
-
type: StringConstructor;
|
|
63
|
-
required: boolean;
|
|
64
|
-
};
|
|
65
|
-
labelPosition: {
|
|
66
|
-
type: StringConstructor;
|
|
67
|
-
required: boolean;
|
|
68
|
-
};
|
|
69
|
-
labelWidth: {
|
|
70
|
-
type: PropType<string | number>;
|
|
71
|
-
required: boolean;
|
|
72
|
-
};
|
|
73
|
-
isRequired: {
|
|
74
|
-
type: PropType<string | boolean>;
|
|
75
|
-
required: boolean;
|
|
76
|
-
default: boolean;
|
|
77
|
-
};
|
|
78
|
-
span: {
|
|
79
|
-
type: PropType<string | number>;
|
|
80
|
-
required: boolean;
|
|
81
|
-
default: number;
|
|
82
|
-
};
|
|
83
|
-
offset: {
|
|
84
|
-
type: PropType<string | number>;
|
|
85
|
-
default: number;
|
|
86
|
-
};
|
|
87
|
-
width: {
|
|
88
|
-
type: PropType<string | number>;
|
|
89
|
-
required: boolean;
|
|
90
|
-
};
|
|
91
|
-
errorTip: {
|
|
92
|
-
type: StringConstructor;
|
|
93
|
-
required: boolean;
|
|
94
|
-
};
|
|
95
|
-
errorIcon: {
|
|
96
|
-
type: ObjectConstructor;
|
|
97
|
-
required: boolean;
|
|
98
|
-
};
|
|
99
|
-
errorClass: {
|
|
100
|
-
type: StringConstructor;
|
|
101
|
-
required: boolean;
|
|
102
|
-
};
|
|
103
|
-
warnTip: {
|
|
104
|
-
type: StringConstructor;
|
|
105
|
-
required: boolean;
|
|
106
|
-
};
|
|
107
|
-
warnIcon: {
|
|
108
|
-
type: ObjectConstructor;
|
|
109
|
-
required: boolean;
|
|
110
|
-
};
|
|
111
|
-
warnClass: {
|
|
112
|
-
type: StringConstructor;
|
|
113
|
-
required: boolean;
|
|
114
|
-
};
|
|
115
|
-
infoTip: {
|
|
116
|
-
type: StringConstructor;
|
|
117
|
-
required: boolean;
|
|
118
|
-
};
|
|
119
|
-
infoIcon: {
|
|
120
|
-
type: ObjectConstructor;
|
|
121
|
-
required: boolean;
|
|
122
|
-
};
|
|
123
|
-
infoClass: {
|
|
124
|
-
type: StringConstructor;
|
|
125
|
-
required: boolean;
|
|
126
|
-
};
|
|
127
|
-
contentClass: {
|
|
128
|
-
type: StringConstructor;
|
|
129
|
-
required: boolean;
|
|
130
|
-
default: string;
|
|
131
|
-
};
|
|
132
|
-
contentStyle: {
|
|
133
|
-
type: PropType<CSSProperties>;
|
|
134
|
-
required: boolean;
|
|
135
|
-
default: {};
|
|
136
|
-
};
|
|
137
|
-
hintType: {
|
|
138
|
-
type: PropType<"number" | "text" | "money">;
|
|
139
|
-
required: boolean;
|
|
140
|
-
default: string;
|
|
141
|
-
};
|
|
142
|
-
hintText: {
|
|
143
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
144
|
-
required: boolean;
|
|
145
|
-
};
|
|
146
|
-
hintVisible: {
|
|
147
|
-
type: (BooleanConstructor | StringConstructor)[];
|
|
148
|
-
required: boolean;
|
|
149
|
-
default: boolean;
|
|
150
|
-
};
|
|
151
|
-
hintProps: {
|
|
152
|
-
type: ObjectConstructor;
|
|
153
|
-
required: boolean;
|
|
154
|
-
default: {};
|
|
155
|
-
};
|
|
156
|
-
hasBorder: {
|
|
157
|
-
type: BooleanConstructor;
|
|
158
|
-
default: boolean;
|
|
159
|
-
};
|
|
160
|
-
disabled: {
|
|
161
|
-
type: PropType<string | boolean>;
|
|
162
|
-
required: boolean;
|
|
163
|
-
};
|
|
164
|
-
readonly: {
|
|
165
|
-
type: PropType<string | boolean>;
|
|
166
|
-
required: boolean;
|
|
167
|
-
};
|
|
168
|
-
};
|
|
169
|
-
emits: string[];
|
|
170
|
-
setup(props: Record<string, any>, context: SetupContext): () => VNode<RendererNode, RendererElement, {
|
|
171
|
-
[key: string]: any;
|
|
172
|
-
}>;
|
|
173
|
-
};
|
|
@@ -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,63 +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
|
-
* 数据model
|
|
19
|
-
*/
|
|
20
|
-
export declare class Model {
|
|
21
|
-
/**
|
|
22
|
-
* proxy
|
|
23
|
-
*/
|
|
24
|
-
private proxy;
|
|
25
|
-
/**
|
|
26
|
-
* 构造函数
|
|
27
|
-
* @param proxy
|
|
28
|
-
*/
|
|
29
|
-
constructor(proxy: ComponentPublicInstance);
|
|
30
|
-
/**
|
|
31
|
-
* 加载数据源
|
|
32
|
-
* @param src
|
|
33
|
-
* @returns
|
|
34
|
-
*/
|
|
35
|
-
load(componentType: string, src: SourceFunction | Item[][] | Item[] | string, params?: any): Promise<Item[][] | Item[] | string[] | string[][]>;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* 使用model
|
|
39
|
-
* @returns
|
|
40
|
-
*/
|
|
41
|
-
export declare function useModel(): Model;
|
|
42
|
-
/**
|
|
43
|
-
* item是否相等
|
|
44
|
-
* @param props
|
|
45
|
-
* @param x
|
|
46
|
-
* @param y
|
|
47
|
-
* @returns
|
|
48
|
-
*/
|
|
49
|
-
export declare function isEqualsItem(props: Record<string, any>, x: Item | null, y: Item | null): boolean;
|
|
50
|
-
/**
|
|
51
|
-
* value转换为item
|
|
52
|
-
* @param value
|
|
53
|
-
* @param valueType
|
|
54
|
-
* @param items
|
|
55
|
-
* @returns
|
|
56
|
-
*/
|
|
57
|
-
export declare function valueToItem(props: Record<string, any>, value: any, valueType: string, items: Item[]): Item | null;
|
|
58
|
-
/**
|
|
59
|
-
* string转换为item
|
|
60
|
-
* @param text
|
|
61
|
-
* @returns
|
|
62
|
-
*/
|
|
63
|
-
export declare function stringToItem(text: string): Item;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Item类型
|
|
3
|
-
*/
|
|
4
|
-
export interface Item {
|
|
5
|
-
text: string | number;
|
|
6
|
-
value: any;
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
[propName: string]: any;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* 通用Promise函数接口
|
|
12
|
-
*/
|
|
13
|
-
export interface SourceFunction {
|
|
14
|
-
(params?: any): Promise<Item[][] | Item[]>;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* value type
|
|
18
|
-
*/
|
|
19
|
-
export declare type ValueType = 'value' | 'text' | 'item';
|
|
20
|
-
/**
|
|
21
|
-
* remote method
|
|
22
|
-
*/
|
|
23
|
-
export interface RemoteMethod {
|
|
24
|
-
(query: string): Promise<Item[]>;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Size
|
|
28
|
-
*/
|
|
29
|
-
export declare type Size = 'large' | 'default' | 'small';
|
|
30
|
-
/**
|
|
31
|
-
* Item Type
|
|
32
|
-
*/
|
|
33
|
-
export declare type ItemType = 'button' | 'radio';
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
import type { CSSProperties, RendererNode, RendererElement, SetupContext, VNode, PropType } from 'vue';
|
|
2
|
-
export declare const inputProps: {
|
|
3
|
-
modelValue: {
|
|
4
|
-
type: PropType<string | number>;
|
|
5
|
-
required: boolean;
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* 创建组件
|
|
10
|
-
* @param componentName
|
|
11
|
-
* @param scope
|
|
12
|
-
* @param Item
|
|
13
|
-
*/
|
|
14
|
-
export declare function component(componentName: string, scope: string, Item: any): {
|
|
15
|
-
props: {
|
|
16
|
-
modelValue: {
|
|
17
|
-
type: PropType<string | number>;
|
|
18
|
-
required: boolean;
|
|
19
|
-
};
|
|
20
|
-
prop: {
|
|
21
|
-
type: StringConstructor;
|
|
22
|
-
required: boolean;
|
|
23
|
-
};
|
|
24
|
-
label: {
|
|
25
|
-
type: StringConstructor;
|
|
26
|
-
required: boolean;
|
|
27
|
-
};
|
|
28
|
-
labelPosition: {
|
|
29
|
-
type: StringConstructor;
|
|
30
|
-
required: boolean;
|
|
31
|
-
};
|
|
32
|
-
labelWidth: {
|
|
33
|
-
type: PropType<string | number>;
|
|
34
|
-
required: boolean;
|
|
35
|
-
};
|
|
36
|
-
isRequired: {
|
|
37
|
-
type: PropType<string | boolean>;
|
|
38
|
-
required: boolean;
|
|
39
|
-
default: boolean;
|
|
40
|
-
};
|
|
41
|
-
span: {
|
|
42
|
-
type: PropType<string | number>;
|
|
43
|
-
required: boolean;
|
|
44
|
-
default: number;
|
|
45
|
-
};
|
|
46
|
-
offset: {
|
|
47
|
-
type: PropType<string | number>;
|
|
48
|
-
default: number;
|
|
49
|
-
};
|
|
50
|
-
width: {
|
|
51
|
-
type: PropType<string | number>;
|
|
52
|
-
required: boolean;
|
|
53
|
-
};
|
|
54
|
-
errorTip: {
|
|
55
|
-
type: StringConstructor;
|
|
56
|
-
required: boolean;
|
|
57
|
-
};
|
|
58
|
-
errorIcon: {
|
|
59
|
-
type: ObjectConstructor;
|
|
60
|
-
required: boolean;
|
|
61
|
-
};
|
|
62
|
-
errorClass: {
|
|
63
|
-
type: StringConstructor;
|
|
64
|
-
required: boolean;
|
|
65
|
-
};
|
|
66
|
-
warnTip: {
|
|
67
|
-
type: StringConstructor;
|
|
68
|
-
required: boolean;
|
|
69
|
-
};
|
|
70
|
-
warnIcon: {
|
|
71
|
-
type: ObjectConstructor;
|
|
72
|
-
required: boolean;
|
|
73
|
-
};
|
|
74
|
-
warnClass: {
|
|
75
|
-
type: StringConstructor;
|
|
76
|
-
required: boolean;
|
|
77
|
-
};
|
|
78
|
-
infoTip: {
|
|
79
|
-
type: StringConstructor;
|
|
80
|
-
required: boolean;
|
|
81
|
-
};
|
|
82
|
-
infoIcon: {
|
|
83
|
-
type: ObjectConstructor;
|
|
84
|
-
required: boolean;
|
|
85
|
-
};
|
|
86
|
-
infoClass: {
|
|
87
|
-
type: StringConstructor;
|
|
88
|
-
required: boolean;
|
|
89
|
-
};
|
|
90
|
-
contentClass: {
|
|
91
|
-
type: StringConstructor;
|
|
92
|
-
required: boolean;
|
|
93
|
-
default: string;
|
|
94
|
-
};
|
|
95
|
-
contentStyle: {
|
|
96
|
-
type: PropType<CSSProperties>;
|
|
97
|
-
required: boolean;
|
|
98
|
-
default: {};
|
|
99
|
-
};
|
|
100
|
-
hintType: {
|
|
101
|
-
type: PropType<"number" | "text" | "money">;
|
|
102
|
-
required: boolean;
|
|
103
|
-
default: string;
|
|
104
|
-
};
|
|
105
|
-
hintText: {
|
|
106
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
107
|
-
required: boolean;
|
|
108
|
-
};
|
|
109
|
-
hintVisible: {
|
|
110
|
-
type: (BooleanConstructor | StringConstructor)[];
|
|
111
|
-
required: boolean;
|
|
112
|
-
default: boolean;
|
|
113
|
-
};
|
|
114
|
-
hintProps: {
|
|
115
|
-
type: ObjectConstructor;
|
|
116
|
-
required: boolean;
|
|
117
|
-
default: {};
|
|
118
|
-
};
|
|
119
|
-
hasBorder: {
|
|
120
|
-
type: BooleanConstructor;
|
|
121
|
-
default: boolean;
|
|
122
|
-
};
|
|
123
|
-
disabled: {
|
|
124
|
-
type: PropType<string | boolean>;
|
|
125
|
-
required: boolean;
|
|
126
|
-
};
|
|
127
|
-
readonly: {
|
|
128
|
-
type: PropType<string | boolean>;
|
|
129
|
-
required: boolean;
|
|
130
|
-
};
|
|
131
|
-
};
|
|
132
|
-
emits: string[];
|
|
133
|
-
setup(props: Record<string, any>, context: SetupContext): () => VNode<RendererNode, RendererElement, {
|
|
134
|
-
[key: string]: any;
|
|
135
|
-
}>;
|
|
136
|
-
};
|
|
@@ -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,38 +0,0 @@
|
|
|
1
|
-
import type { VNode, RendererNode, RendererElement, SetupContext, PropType } from 'vue';
|
|
2
|
-
export declare function component(componentName: string, scope: string): {
|
|
3
|
-
props: {
|
|
4
|
-
span: {
|
|
5
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
6
|
-
required: boolean;
|
|
7
|
-
default: number;
|
|
8
|
-
};
|
|
9
|
-
offset: {
|
|
10
|
-
type: PropType<number>;
|
|
11
|
-
default: number;
|
|
12
|
-
};
|
|
13
|
-
width: {
|
|
14
|
-
type: PropType<string | number>;
|
|
15
|
-
required: boolean;
|
|
16
|
-
};
|
|
17
|
-
align: {
|
|
18
|
-
type: PropType<"center" | "left" | "right">;
|
|
19
|
-
required: boolean;
|
|
20
|
-
default: string;
|
|
21
|
-
};
|
|
22
|
-
contentClass: {
|
|
23
|
-
type: StringConstructor[];
|
|
24
|
-
required: boolean;
|
|
25
|
-
};
|
|
26
|
-
contentStyle: {
|
|
27
|
-
type: ObjectConstructor[];
|
|
28
|
-
};
|
|
29
|
-
divide: {
|
|
30
|
-
type: BooleanConstructor[];
|
|
31
|
-
required: boolean;
|
|
32
|
-
default: boolean;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
setup(props: Record<string, any>, context: SetupContext): () => VNode<RendererNode, RendererElement, {
|
|
36
|
-
[key: string]: any;
|
|
37
|
-
}>;
|
|
38
|
-
};
|
|
@@ -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;
|