@fox-js/foxui-pc 4.0.1-12 → 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 +7358 -4355
- 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.esm.js +1 -1
- package/dist/types/index.d.ts +172 -34
- 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,176 @@
|
|
|
1
|
+
import type { CSSProperties, RendererNode, RendererElement, SetupContext, VNode, PropType } 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
|
+
placeholder: {
|
|
12
|
+
type: PropType<string>;
|
|
13
|
+
required: boolean;
|
|
14
|
+
};
|
|
15
|
+
unit: {
|
|
16
|
+
type: StringConstructor[];
|
|
17
|
+
required: boolean;
|
|
18
|
+
};
|
|
19
|
+
adjustPosition: {
|
|
20
|
+
type: BooleanConstructor;
|
|
21
|
+
default: boolean;
|
|
22
|
+
};
|
|
23
|
+
alwaysSystem: {
|
|
24
|
+
type: BooleanConstructor;
|
|
25
|
+
default: boolean;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* 创建组件
|
|
30
|
+
* @param componentName
|
|
31
|
+
* @param scope
|
|
32
|
+
* @param Item
|
|
33
|
+
*/
|
|
34
|
+
export declare function component(componentName: string, scope: string, Item: any): {
|
|
35
|
+
props: {
|
|
36
|
+
modelValue: {
|
|
37
|
+
type: (StringConstructor | ObjectConstructor)[];
|
|
38
|
+
required: boolean;
|
|
39
|
+
};
|
|
40
|
+
clearable: {
|
|
41
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
42
|
+
default: boolean;
|
|
43
|
+
};
|
|
44
|
+
placeholder: {
|
|
45
|
+
type: PropType<string>;
|
|
46
|
+
required: boolean;
|
|
47
|
+
};
|
|
48
|
+
unit: {
|
|
49
|
+
type: StringConstructor[];
|
|
50
|
+
required: boolean;
|
|
51
|
+
};
|
|
52
|
+
adjustPosition: {
|
|
53
|
+
type: BooleanConstructor;
|
|
54
|
+
default: boolean;
|
|
55
|
+
};
|
|
56
|
+
alwaysSystem: {
|
|
57
|
+
type: BooleanConstructor;
|
|
58
|
+
default: boolean;
|
|
59
|
+
};
|
|
60
|
+
prop: {
|
|
61
|
+
type: StringConstructor;
|
|
62
|
+
required: boolean;
|
|
63
|
+
};
|
|
64
|
+
label: {
|
|
65
|
+
type: StringConstructor;
|
|
66
|
+
required: boolean;
|
|
67
|
+
};
|
|
68
|
+
labelPosition: {
|
|
69
|
+
type: StringConstructor;
|
|
70
|
+
required: boolean;
|
|
71
|
+
};
|
|
72
|
+
labelWidth: {
|
|
73
|
+
type: PropType<string | number>;
|
|
74
|
+
required: boolean;
|
|
75
|
+
};
|
|
76
|
+
isRequired: {
|
|
77
|
+
type: PropType<string | boolean>;
|
|
78
|
+
required: boolean;
|
|
79
|
+
default: boolean;
|
|
80
|
+
};
|
|
81
|
+
span: {
|
|
82
|
+
type: PropType<string | number>;
|
|
83
|
+
required: boolean;
|
|
84
|
+
default: number;
|
|
85
|
+
};
|
|
86
|
+
offset: {
|
|
87
|
+
type: PropType<string | number>;
|
|
88
|
+
default: number;
|
|
89
|
+
};
|
|
90
|
+
width: {
|
|
91
|
+
type: PropType<string | number>;
|
|
92
|
+
required: boolean;
|
|
93
|
+
};
|
|
94
|
+
errorTip: {
|
|
95
|
+
type: StringConstructor;
|
|
96
|
+
required: boolean;
|
|
97
|
+
};
|
|
98
|
+
errorIcon: {
|
|
99
|
+
type: ObjectConstructor;
|
|
100
|
+
required: boolean;
|
|
101
|
+
};
|
|
102
|
+
errorClass: {
|
|
103
|
+
type: StringConstructor;
|
|
104
|
+
required: boolean;
|
|
105
|
+
};
|
|
106
|
+
warnTip: {
|
|
107
|
+
type: StringConstructor;
|
|
108
|
+
required: boolean;
|
|
109
|
+
};
|
|
110
|
+
warnIcon: {
|
|
111
|
+
type: ObjectConstructor;
|
|
112
|
+
required: boolean;
|
|
113
|
+
};
|
|
114
|
+
warnClass: {
|
|
115
|
+
type: StringConstructor;
|
|
116
|
+
required: boolean;
|
|
117
|
+
};
|
|
118
|
+
infoTip: {
|
|
119
|
+
type: StringConstructor;
|
|
120
|
+
required: boolean;
|
|
121
|
+
};
|
|
122
|
+
infoIcon: {
|
|
123
|
+
type: ObjectConstructor;
|
|
124
|
+
required: boolean;
|
|
125
|
+
};
|
|
126
|
+
infoClass: {
|
|
127
|
+
type: StringConstructor;
|
|
128
|
+
required: boolean;
|
|
129
|
+
};
|
|
130
|
+
contentClass: {
|
|
131
|
+
type: StringConstructor;
|
|
132
|
+
required: boolean;
|
|
133
|
+
default: string;
|
|
134
|
+
};
|
|
135
|
+
contentStyle: {
|
|
136
|
+
type: PropType<CSSProperties>;
|
|
137
|
+
required: boolean;
|
|
138
|
+
default: {};
|
|
139
|
+
};
|
|
140
|
+
hintType: {
|
|
141
|
+
type: PropType<"number" | "text" | "money">;
|
|
142
|
+
required: boolean;
|
|
143
|
+
default: string;
|
|
144
|
+
};
|
|
145
|
+
hintText: {
|
|
146
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
147
|
+
required: boolean;
|
|
148
|
+
};
|
|
149
|
+
hintVisible: {
|
|
150
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
151
|
+
required: boolean;
|
|
152
|
+
default: boolean;
|
|
153
|
+
};
|
|
154
|
+
hintProps: {
|
|
155
|
+
type: ObjectConstructor;
|
|
156
|
+
required: boolean;
|
|
157
|
+
default: {};
|
|
158
|
+
};
|
|
159
|
+
hasBorder: {
|
|
160
|
+
type: BooleanConstructor;
|
|
161
|
+
default: boolean;
|
|
162
|
+
};
|
|
163
|
+
disabled: {
|
|
164
|
+
type: PropType<string | boolean>;
|
|
165
|
+
required: boolean;
|
|
166
|
+
};
|
|
167
|
+
readonly: {
|
|
168
|
+
type: PropType<string | boolean>;
|
|
169
|
+
required: boolean;
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
emits: string[];
|
|
173
|
+
setup(props: Record<string, any>, context: SetupContext): () => VNode<RendererNode, RendererElement, {
|
|
174
|
+
[key: string]: any;
|
|
175
|
+
}>;
|
|
176
|
+
};
|
|
@@ -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,176 @@
|
|
|
1
|
+
import type { CSSProperties, RendererNode, RendererElement, SetupContext, VNode, PropType } from 'vue';
|
|
2
|
+
export declare const inputProps: {
|
|
3
|
+
modelValue: {
|
|
4
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
5
|
+
required: boolean;
|
|
6
|
+
};
|
|
7
|
+
clearable: {
|
|
8
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
9
|
+
default: boolean;
|
|
10
|
+
};
|
|
11
|
+
placeholder: {
|
|
12
|
+
type: PropType<string>;
|
|
13
|
+
required: boolean;
|
|
14
|
+
};
|
|
15
|
+
unit: {
|
|
16
|
+
type: StringConstructor[];
|
|
17
|
+
required: boolean;
|
|
18
|
+
};
|
|
19
|
+
adjustPosition: {
|
|
20
|
+
type: BooleanConstructor;
|
|
21
|
+
default: boolean;
|
|
22
|
+
};
|
|
23
|
+
alwaysSystem: {
|
|
24
|
+
type: BooleanConstructor;
|
|
25
|
+
default: boolean;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* 创建组件
|
|
30
|
+
* @param componentName
|
|
31
|
+
* @param scope
|
|
32
|
+
* @param Item
|
|
33
|
+
*/
|
|
34
|
+
export declare function component(componentName: string, scope: string, Item: any): {
|
|
35
|
+
props: {
|
|
36
|
+
modelValue: {
|
|
37
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
38
|
+
required: boolean;
|
|
39
|
+
};
|
|
40
|
+
clearable: {
|
|
41
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
42
|
+
default: boolean;
|
|
43
|
+
};
|
|
44
|
+
placeholder: {
|
|
45
|
+
type: PropType<string>;
|
|
46
|
+
required: boolean;
|
|
47
|
+
};
|
|
48
|
+
unit: {
|
|
49
|
+
type: StringConstructor[];
|
|
50
|
+
required: boolean;
|
|
51
|
+
};
|
|
52
|
+
adjustPosition: {
|
|
53
|
+
type: BooleanConstructor;
|
|
54
|
+
default: boolean;
|
|
55
|
+
};
|
|
56
|
+
alwaysSystem: {
|
|
57
|
+
type: BooleanConstructor;
|
|
58
|
+
default: boolean;
|
|
59
|
+
};
|
|
60
|
+
prop: {
|
|
61
|
+
type: StringConstructor;
|
|
62
|
+
required: boolean;
|
|
63
|
+
};
|
|
64
|
+
label: {
|
|
65
|
+
type: StringConstructor;
|
|
66
|
+
required: boolean;
|
|
67
|
+
};
|
|
68
|
+
labelPosition: {
|
|
69
|
+
type: StringConstructor;
|
|
70
|
+
required: boolean;
|
|
71
|
+
};
|
|
72
|
+
labelWidth: {
|
|
73
|
+
type: PropType<string | number>;
|
|
74
|
+
required: boolean;
|
|
75
|
+
};
|
|
76
|
+
isRequired: {
|
|
77
|
+
type: PropType<string | boolean>;
|
|
78
|
+
required: boolean;
|
|
79
|
+
default: boolean;
|
|
80
|
+
};
|
|
81
|
+
span: {
|
|
82
|
+
type: PropType<string | number>;
|
|
83
|
+
required: boolean;
|
|
84
|
+
default: number;
|
|
85
|
+
};
|
|
86
|
+
offset: {
|
|
87
|
+
type: PropType<string | number>;
|
|
88
|
+
default: number;
|
|
89
|
+
};
|
|
90
|
+
width: {
|
|
91
|
+
type: PropType<string | number>;
|
|
92
|
+
required: boolean;
|
|
93
|
+
};
|
|
94
|
+
errorTip: {
|
|
95
|
+
type: StringConstructor;
|
|
96
|
+
required: boolean;
|
|
97
|
+
};
|
|
98
|
+
errorIcon: {
|
|
99
|
+
type: ObjectConstructor;
|
|
100
|
+
required: boolean;
|
|
101
|
+
};
|
|
102
|
+
errorClass: {
|
|
103
|
+
type: StringConstructor;
|
|
104
|
+
required: boolean;
|
|
105
|
+
};
|
|
106
|
+
warnTip: {
|
|
107
|
+
type: StringConstructor;
|
|
108
|
+
required: boolean;
|
|
109
|
+
};
|
|
110
|
+
warnIcon: {
|
|
111
|
+
type: ObjectConstructor;
|
|
112
|
+
required: boolean;
|
|
113
|
+
};
|
|
114
|
+
warnClass: {
|
|
115
|
+
type: StringConstructor;
|
|
116
|
+
required: boolean;
|
|
117
|
+
};
|
|
118
|
+
infoTip: {
|
|
119
|
+
type: StringConstructor;
|
|
120
|
+
required: boolean;
|
|
121
|
+
};
|
|
122
|
+
infoIcon: {
|
|
123
|
+
type: ObjectConstructor;
|
|
124
|
+
required: boolean;
|
|
125
|
+
};
|
|
126
|
+
infoClass: {
|
|
127
|
+
type: StringConstructor;
|
|
128
|
+
required: boolean;
|
|
129
|
+
};
|
|
130
|
+
contentClass: {
|
|
131
|
+
type: StringConstructor;
|
|
132
|
+
required: boolean;
|
|
133
|
+
default: string;
|
|
134
|
+
};
|
|
135
|
+
contentStyle: {
|
|
136
|
+
type: PropType<CSSProperties>;
|
|
137
|
+
required: boolean;
|
|
138
|
+
default: {};
|
|
139
|
+
};
|
|
140
|
+
hintType: {
|
|
141
|
+
type: PropType<"number" | "text" | "money">;
|
|
142
|
+
required: boolean;
|
|
143
|
+
default: string;
|
|
144
|
+
};
|
|
145
|
+
hintText: {
|
|
146
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
147
|
+
required: boolean;
|
|
148
|
+
};
|
|
149
|
+
hintVisible: {
|
|
150
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
151
|
+
required: boolean;
|
|
152
|
+
default: boolean;
|
|
153
|
+
};
|
|
154
|
+
hintProps: {
|
|
155
|
+
type: ObjectConstructor;
|
|
156
|
+
required: boolean;
|
|
157
|
+
default: {};
|
|
158
|
+
};
|
|
159
|
+
hasBorder: {
|
|
160
|
+
type: BooleanConstructor;
|
|
161
|
+
default: boolean;
|
|
162
|
+
};
|
|
163
|
+
disabled: {
|
|
164
|
+
type: PropType<string | boolean>;
|
|
165
|
+
required: boolean;
|
|
166
|
+
};
|
|
167
|
+
readonly: {
|
|
168
|
+
type: PropType<string | boolean>;
|
|
169
|
+
required: boolean;
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
emits: string[];
|
|
173
|
+
setup(props: Record<string, any>, context: SetupContext): () => VNode<RendererNode, RendererElement, {
|
|
174
|
+
[key: string]: any;
|
|
175
|
+
}>;
|
|
176
|
+
};
|
|
@@ -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 { PropType, CSSProperties } from 'vue';
|
|
2
|
+
declare type HintType = 'text' | 'number' | 'money';
|
|
3
|
+
/**
|
|
4
|
+
* item props(domain范围内生效)
|
|
5
|
+
*/
|
|
6
|
+
export declare const domainItemProps: {
|
|
7
|
+
disabled: {
|
|
8
|
+
type: PropType<string | boolean>;
|
|
9
|
+
required: boolean;
|
|
10
|
+
};
|
|
11
|
+
readonly: {
|
|
12
|
+
type: PropType<string | boolean>;
|
|
13
|
+
required: boolean;
|
|
14
|
+
};
|
|
15
|
+
labelPosition: {
|
|
16
|
+
type: PropType<string>;
|
|
17
|
+
required: boolean;
|
|
18
|
+
};
|
|
19
|
+
labelWidth: {
|
|
20
|
+
type: PropType<string | number>;
|
|
21
|
+
required: boolean;
|
|
22
|
+
};
|
|
23
|
+
hasBorder: {
|
|
24
|
+
type: PropType<boolean>;
|
|
25
|
+
required: boolean;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* item props
|
|
31
|
+
*/
|
|
32
|
+
export declare const itemProps: {
|
|
33
|
+
prop: {
|
|
34
|
+
type: StringConstructor;
|
|
35
|
+
required: boolean;
|
|
36
|
+
};
|
|
37
|
+
label: {
|
|
38
|
+
type: StringConstructor;
|
|
39
|
+
required: boolean;
|
|
40
|
+
};
|
|
41
|
+
labelPosition: {
|
|
42
|
+
type: StringConstructor;
|
|
43
|
+
required: boolean;
|
|
44
|
+
};
|
|
45
|
+
labelWidth: {
|
|
46
|
+
type: PropType<string | number>;
|
|
47
|
+
required: boolean;
|
|
48
|
+
};
|
|
49
|
+
isRequired: {
|
|
50
|
+
type: PropType<string | boolean>;
|
|
51
|
+
required: boolean;
|
|
52
|
+
default: boolean;
|
|
53
|
+
};
|
|
54
|
+
span: {
|
|
55
|
+
type: PropType<string | number>;
|
|
56
|
+
required: boolean;
|
|
57
|
+
default: number;
|
|
58
|
+
};
|
|
59
|
+
offset: {
|
|
60
|
+
type: PropType<string | number>;
|
|
61
|
+
default: number;
|
|
62
|
+
};
|
|
63
|
+
width: {
|
|
64
|
+
type: PropType<string | number>;
|
|
65
|
+
required: boolean;
|
|
66
|
+
};
|
|
67
|
+
errorTip: {
|
|
68
|
+
type: StringConstructor;
|
|
69
|
+
required: boolean;
|
|
70
|
+
};
|
|
71
|
+
errorIcon: {
|
|
72
|
+
type: ObjectConstructor;
|
|
73
|
+
required: boolean;
|
|
74
|
+
};
|
|
75
|
+
errorClass: {
|
|
76
|
+
type: StringConstructor;
|
|
77
|
+
required: boolean;
|
|
78
|
+
};
|
|
79
|
+
warnTip: {
|
|
80
|
+
type: StringConstructor;
|
|
81
|
+
required: boolean;
|
|
82
|
+
};
|
|
83
|
+
warnIcon: {
|
|
84
|
+
type: ObjectConstructor;
|
|
85
|
+
required: boolean;
|
|
86
|
+
};
|
|
87
|
+
warnClass: {
|
|
88
|
+
type: StringConstructor;
|
|
89
|
+
required: boolean;
|
|
90
|
+
};
|
|
91
|
+
infoTip: {
|
|
92
|
+
type: StringConstructor;
|
|
93
|
+
required: boolean;
|
|
94
|
+
};
|
|
95
|
+
infoIcon: {
|
|
96
|
+
type: ObjectConstructor;
|
|
97
|
+
required: boolean;
|
|
98
|
+
};
|
|
99
|
+
infoClass: {
|
|
100
|
+
type: StringConstructor;
|
|
101
|
+
required: boolean;
|
|
102
|
+
};
|
|
103
|
+
contentClass: {
|
|
104
|
+
type: StringConstructor;
|
|
105
|
+
required: boolean;
|
|
106
|
+
default: string;
|
|
107
|
+
};
|
|
108
|
+
contentStyle: {
|
|
109
|
+
type: PropType<CSSProperties>;
|
|
110
|
+
required: boolean;
|
|
111
|
+
default: {};
|
|
112
|
+
};
|
|
113
|
+
hintType: {
|
|
114
|
+
type: PropType<HintType>;
|
|
115
|
+
required: boolean;
|
|
116
|
+
default: string;
|
|
117
|
+
};
|
|
118
|
+
hintText: {
|
|
119
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
120
|
+
required: boolean;
|
|
121
|
+
};
|
|
122
|
+
hintVisible: {
|
|
123
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
124
|
+
required: boolean;
|
|
125
|
+
default: boolean;
|
|
126
|
+
};
|
|
127
|
+
hintProps: {
|
|
128
|
+
type: ObjectConstructor;
|
|
129
|
+
required: boolean;
|
|
130
|
+
default: {};
|
|
131
|
+
};
|
|
132
|
+
hasBorder: {
|
|
133
|
+
type: BooleanConstructor;
|
|
134
|
+
default: boolean;
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
export {};
|
|
@@ -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,105 @@
|
|
|
1
|
+
import type { VNode, RendererNode, RendererElement, PropType, SetupContext } from 'vue';
|
|
2
|
+
import { Value, Item, SourceFunction } from './types';
|
|
3
|
+
export declare const mappingProps: {
|
|
4
|
+
tag: {
|
|
5
|
+
type: PropType<any>;
|
|
6
|
+
required: boolean;
|
|
7
|
+
default: string;
|
|
8
|
+
};
|
|
9
|
+
resolveTag: {
|
|
10
|
+
type: PropType<any>;
|
|
11
|
+
required: boolean;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
14
|
+
source: {
|
|
15
|
+
type: PropType<string | Item[] | Item[][] | SourceFunction>;
|
|
16
|
+
required: boolean;
|
|
17
|
+
};
|
|
18
|
+
sourceType: {
|
|
19
|
+
type: PropType<string>;
|
|
20
|
+
required: boolean;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
params: {
|
|
24
|
+
type: PropType<any>;
|
|
25
|
+
required: boolean;
|
|
26
|
+
};
|
|
27
|
+
modelValue: {
|
|
28
|
+
type: PropType<Value | Value[]>;
|
|
29
|
+
required: boolean;
|
|
30
|
+
};
|
|
31
|
+
separator: {
|
|
32
|
+
type: PropType<Value | Value[]>;
|
|
33
|
+
required: boolean;
|
|
34
|
+
default: string;
|
|
35
|
+
};
|
|
36
|
+
textKey: {
|
|
37
|
+
type: StringConstructor[];
|
|
38
|
+
required: boolean;
|
|
39
|
+
default: string;
|
|
40
|
+
};
|
|
41
|
+
valueKey: {
|
|
42
|
+
type: StringConstructor[];
|
|
43
|
+
required: boolean;
|
|
44
|
+
default: string;
|
|
45
|
+
};
|
|
46
|
+
childrenKey: {
|
|
47
|
+
type: StringConstructor[];
|
|
48
|
+
required: boolean;
|
|
49
|
+
default: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
export declare function component(componentName: string, scope: string): {
|
|
53
|
+
props: {
|
|
54
|
+
tag: {
|
|
55
|
+
type: PropType<any>;
|
|
56
|
+
required: boolean;
|
|
57
|
+
default: string;
|
|
58
|
+
};
|
|
59
|
+
resolveTag: {
|
|
60
|
+
type: PropType<any>;
|
|
61
|
+
required: boolean;
|
|
62
|
+
default: boolean;
|
|
63
|
+
};
|
|
64
|
+
source: {
|
|
65
|
+
type: PropType<string | Item[] | Item[][] | SourceFunction>;
|
|
66
|
+
required: boolean;
|
|
67
|
+
};
|
|
68
|
+
sourceType: {
|
|
69
|
+
type: PropType<string>;
|
|
70
|
+
required: boolean;
|
|
71
|
+
default: string;
|
|
72
|
+
};
|
|
73
|
+
params: {
|
|
74
|
+
type: PropType<any>;
|
|
75
|
+
required: boolean;
|
|
76
|
+
};
|
|
77
|
+
modelValue: {
|
|
78
|
+
type: PropType<Value | Value[]>;
|
|
79
|
+
required: boolean;
|
|
80
|
+
};
|
|
81
|
+
separator: {
|
|
82
|
+
type: PropType<Value | Value[]>;
|
|
83
|
+
required: boolean;
|
|
84
|
+
default: string;
|
|
85
|
+
};
|
|
86
|
+
textKey: {
|
|
87
|
+
type: StringConstructor[];
|
|
88
|
+
required: boolean;
|
|
89
|
+
default: string;
|
|
90
|
+
};
|
|
91
|
+
valueKey: {
|
|
92
|
+
type: StringConstructor[];
|
|
93
|
+
required: boolean;
|
|
94
|
+
default: string;
|
|
95
|
+
};
|
|
96
|
+
childrenKey: {
|
|
97
|
+
type: StringConstructor[];
|
|
98
|
+
required: boolean;
|
|
99
|
+
default: string;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
setup(props: Record<string, any>, { attrs }: SetupContext): () => VNode<RendererNode, RendererElement, {
|
|
103
|
+
[key: string]: any;
|
|
104
|
+
}>;
|
|
105
|
+
};
|
|
@@ -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,28 @@
|
|
|
1
|
+
import { ComponentPublicInstance } from 'vue';
|
|
2
|
+
import { Item, SourceFunction, Value } from './types';
|
|
3
|
+
export declare function valueToText(value: Value, items: Item[] | Item[][], textKey: string, valueKey: string, childrenKey: string): string[];
|
|
4
|
+
/**
|
|
5
|
+
* 数据model
|
|
6
|
+
*/
|
|
7
|
+
export declare class Model {
|
|
8
|
+
/**
|
|
9
|
+
* proxy
|
|
10
|
+
*/
|
|
11
|
+
private proxy;
|
|
12
|
+
/**
|
|
13
|
+
* 构造函数
|
|
14
|
+
* @param proxy
|
|
15
|
+
*/
|
|
16
|
+
constructor(proxy: ComponentPublicInstance);
|
|
17
|
+
/**
|
|
18
|
+
* 加载数据源
|
|
19
|
+
* @param src
|
|
20
|
+
* @returns
|
|
21
|
+
*/
|
|
22
|
+
load(componentType: string, src: SourceFunction | Item[] | Item[][] | string, params?: any): Promise<Item[] | Item[][]>;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* 使用model
|
|
26
|
+
* @returns
|
|
27
|
+
*/
|
|
28
|
+
export declare function useModel(): Model;
|
|
@@ -0,0 +1,17 @@
|
|
|
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[] | Item[][]>;
|
|
16
|
+
}
|
|
17
|
+
export declare type Value = string | number | boolean;
|