@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,300 @@
|
|
|
1
|
+
import type { PropType, CSSProperties, RendererNode, RendererElement, SetupContext, VNode } from 'vue';
|
|
2
|
+
export declare const inputProps: {
|
|
3
|
+
modelValue: {
|
|
4
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
5
|
+
required: boolean;
|
|
6
|
+
};
|
|
7
|
+
clearable: {
|
|
8
|
+
type: BooleanConstructor;
|
|
9
|
+
default: boolean;
|
|
10
|
+
};
|
|
11
|
+
showTip: {
|
|
12
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
13
|
+
required: boolean;
|
|
14
|
+
default: boolean;
|
|
15
|
+
};
|
|
16
|
+
min: {
|
|
17
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
18
|
+
required: boolean;
|
|
19
|
+
};
|
|
20
|
+
minInclude: {
|
|
21
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
22
|
+
required: boolean;
|
|
23
|
+
default: boolean;
|
|
24
|
+
};
|
|
25
|
+
max: {
|
|
26
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
27
|
+
required: boolean;
|
|
28
|
+
};
|
|
29
|
+
maxInclude: {
|
|
30
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
31
|
+
required: boolean;
|
|
32
|
+
default: boolean;
|
|
33
|
+
};
|
|
34
|
+
unit: {
|
|
35
|
+
type: StringConstructor;
|
|
36
|
+
required: boolean;
|
|
37
|
+
};
|
|
38
|
+
rates: {
|
|
39
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
40
|
+
required: boolean;
|
|
41
|
+
default: number;
|
|
42
|
+
};
|
|
43
|
+
precision: {
|
|
44
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
45
|
+
required: boolean;
|
|
46
|
+
};
|
|
47
|
+
integerLength: {
|
|
48
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
49
|
+
required: boolean;
|
|
50
|
+
default: number;
|
|
51
|
+
};
|
|
52
|
+
decimalLength: {
|
|
53
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
54
|
+
required: boolean;
|
|
55
|
+
default: number;
|
|
56
|
+
};
|
|
57
|
+
autoPadding: {
|
|
58
|
+
type: BooleanConstructor;
|
|
59
|
+
required: boolean;
|
|
60
|
+
default: boolean;
|
|
61
|
+
};
|
|
62
|
+
digits: {
|
|
63
|
+
type: NumberConstructor;
|
|
64
|
+
required: boolean;
|
|
65
|
+
default: number;
|
|
66
|
+
};
|
|
67
|
+
separator: {
|
|
68
|
+
type: StringConstructor;
|
|
69
|
+
required: boolean;
|
|
70
|
+
default: string;
|
|
71
|
+
};
|
|
72
|
+
placeholder: {
|
|
73
|
+
type: StringConstructor;
|
|
74
|
+
required: boolean;
|
|
75
|
+
default: string;
|
|
76
|
+
};
|
|
77
|
+
textAlign: {
|
|
78
|
+
type: StringConstructor;
|
|
79
|
+
required: boolean;
|
|
80
|
+
};
|
|
81
|
+
adjustPosition: {
|
|
82
|
+
type: BooleanConstructor;
|
|
83
|
+
default: boolean;
|
|
84
|
+
};
|
|
85
|
+
alwaysSystem: {
|
|
86
|
+
type: BooleanConstructor;
|
|
87
|
+
default: boolean;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
/**
|
|
91
|
+
* 创建组件
|
|
92
|
+
* @param componentName
|
|
93
|
+
* @param scope
|
|
94
|
+
* @param Item
|
|
95
|
+
*/
|
|
96
|
+
export declare function component(componentName: string, scope: string, Item: any): {
|
|
97
|
+
props: {
|
|
98
|
+
modelValue: {
|
|
99
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
100
|
+
required: boolean;
|
|
101
|
+
};
|
|
102
|
+
clearable: {
|
|
103
|
+
type: BooleanConstructor;
|
|
104
|
+
default: boolean;
|
|
105
|
+
};
|
|
106
|
+
showTip: {
|
|
107
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
108
|
+
required: boolean;
|
|
109
|
+
default: boolean;
|
|
110
|
+
};
|
|
111
|
+
min: {
|
|
112
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
113
|
+
required: boolean;
|
|
114
|
+
};
|
|
115
|
+
minInclude: {
|
|
116
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
117
|
+
required: boolean;
|
|
118
|
+
default: boolean;
|
|
119
|
+
};
|
|
120
|
+
max: {
|
|
121
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
122
|
+
required: boolean;
|
|
123
|
+
};
|
|
124
|
+
maxInclude: {
|
|
125
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
126
|
+
required: boolean;
|
|
127
|
+
default: boolean;
|
|
128
|
+
};
|
|
129
|
+
unit: {
|
|
130
|
+
type: StringConstructor;
|
|
131
|
+
required: boolean;
|
|
132
|
+
};
|
|
133
|
+
rates: {
|
|
134
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
135
|
+
required: boolean;
|
|
136
|
+
default: number;
|
|
137
|
+
};
|
|
138
|
+
precision: {
|
|
139
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
140
|
+
required: boolean;
|
|
141
|
+
};
|
|
142
|
+
integerLength: {
|
|
143
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
144
|
+
required: boolean;
|
|
145
|
+
default: number;
|
|
146
|
+
};
|
|
147
|
+
decimalLength: {
|
|
148
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
149
|
+
required: boolean;
|
|
150
|
+
default: number;
|
|
151
|
+
};
|
|
152
|
+
autoPadding: {
|
|
153
|
+
type: BooleanConstructor;
|
|
154
|
+
required: boolean;
|
|
155
|
+
default: boolean;
|
|
156
|
+
};
|
|
157
|
+
digits: {
|
|
158
|
+
type: NumberConstructor;
|
|
159
|
+
required: boolean;
|
|
160
|
+
default: number;
|
|
161
|
+
};
|
|
162
|
+
separator: {
|
|
163
|
+
type: StringConstructor;
|
|
164
|
+
required: boolean;
|
|
165
|
+
default: string;
|
|
166
|
+
};
|
|
167
|
+
placeholder: {
|
|
168
|
+
type: StringConstructor;
|
|
169
|
+
required: boolean;
|
|
170
|
+
default: string;
|
|
171
|
+
};
|
|
172
|
+
textAlign: {
|
|
173
|
+
type: StringConstructor;
|
|
174
|
+
required: boolean;
|
|
175
|
+
};
|
|
176
|
+
adjustPosition: {
|
|
177
|
+
type: BooleanConstructor;
|
|
178
|
+
default: boolean;
|
|
179
|
+
};
|
|
180
|
+
alwaysSystem: {
|
|
181
|
+
type: BooleanConstructor;
|
|
182
|
+
default: boolean;
|
|
183
|
+
};
|
|
184
|
+
prop: {
|
|
185
|
+
type: StringConstructor;
|
|
186
|
+
required: boolean;
|
|
187
|
+
};
|
|
188
|
+
label: {
|
|
189
|
+
type: StringConstructor;
|
|
190
|
+
required: boolean;
|
|
191
|
+
};
|
|
192
|
+
labelPosition: {
|
|
193
|
+
type: StringConstructor;
|
|
194
|
+
required: boolean;
|
|
195
|
+
};
|
|
196
|
+
labelWidth: {
|
|
197
|
+
type: PropType<string | number>;
|
|
198
|
+
required: boolean;
|
|
199
|
+
};
|
|
200
|
+
isRequired: {
|
|
201
|
+
type: PropType<string | boolean>;
|
|
202
|
+
required: boolean;
|
|
203
|
+
default: boolean;
|
|
204
|
+
};
|
|
205
|
+
span: {
|
|
206
|
+
type: PropType<string | number>;
|
|
207
|
+
required: boolean;
|
|
208
|
+
default: number;
|
|
209
|
+
};
|
|
210
|
+
offset: {
|
|
211
|
+
type: PropType<string | number>;
|
|
212
|
+
default: number;
|
|
213
|
+
};
|
|
214
|
+
width: {
|
|
215
|
+
type: PropType<string | number>;
|
|
216
|
+
required: boolean;
|
|
217
|
+
};
|
|
218
|
+
errorTip: {
|
|
219
|
+
type: StringConstructor;
|
|
220
|
+
required: boolean;
|
|
221
|
+
};
|
|
222
|
+
errorIcon: {
|
|
223
|
+
type: ObjectConstructor;
|
|
224
|
+
required: boolean;
|
|
225
|
+
};
|
|
226
|
+
errorClass: {
|
|
227
|
+
type: StringConstructor;
|
|
228
|
+
required: boolean;
|
|
229
|
+
};
|
|
230
|
+
warnTip: {
|
|
231
|
+
type: StringConstructor;
|
|
232
|
+
required: boolean;
|
|
233
|
+
};
|
|
234
|
+
warnIcon: {
|
|
235
|
+
type: ObjectConstructor;
|
|
236
|
+
required: boolean;
|
|
237
|
+
};
|
|
238
|
+
warnClass: {
|
|
239
|
+
type: StringConstructor;
|
|
240
|
+
required: boolean;
|
|
241
|
+
};
|
|
242
|
+
infoTip: {
|
|
243
|
+
type: StringConstructor;
|
|
244
|
+
required: boolean;
|
|
245
|
+
};
|
|
246
|
+
infoIcon: {
|
|
247
|
+
type: ObjectConstructor;
|
|
248
|
+
required: boolean;
|
|
249
|
+
};
|
|
250
|
+
infoClass: {
|
|
251
|
+
type: StringConstructor;
|
|
252
|
+
required: boolean;
|
|
253
|
+
};
|
|
254
|
+
contentClass: {
|
|
255
|
+
type: StringConstructor;
|
|
256
|
+
required: boolean;
|
|
257
|
+
default: string;
|
|
258
|
+
};
|
|
259
|
+
contentStyle: {
|
|
260
|
+
type: PropType<CSSProperties>;
|
|
261
|
+
required: boolean;
|
|
262
|
+
default: {};
|
|
263
|
+
};
|
|
264
|
+
hintType: {
|
|
265
|
+
type: PropType<"number" | "text" | "money">;
|
|
266
|
+
required: boolean;
|
|
267
|
+
default: string;
|
|
268
|
+
};
|
|
269
|
+
hintText: {
|
|
270
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
271
|
+
required: boolean;
|
|
272
|
+
};
|
|
273
|
+
hintVisible: {
|
|
274
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
275
|
+
required: boolean;
|
|
276
|
+
default: boolean;
|
|
277
|
+
};
|
|
278
|
+
hintProps: {
|
|
279
|
+
type: ObjectConstructor;
|
|
280
|
+
required: boolean;
|
|
281
|
+
default: {};
|
|
282
|
+
};
|
|
283
|
+
hasBorder: {
|
|
284
|
+
type: BooleanConstructor;
|
|
285
|
+
default: boolean;
|
|
286
|
+
};
|
|
287
|
+
disabled: {
|
|
288
|
+
type: PropType<string | boolean>;
|
|
289
|
+
required: boolean;
|
|
290
|
+
};
|
|
291
|
+
readonly: {
|
|
292
|
+
type: PropType<string | boolean>;
|
|
293
|
+
required: boolean;
|
|
294
|
+
};
|
|
295
|
+
};
|
|
296
|
+
emits: string[];
|
|
297
|
+
setup(props: Record<string, any>, context: SetupContext): () => VNode<RendererNode, RendererElement, {
|
|
298
|
+
[key: string]: any;
|
|
299
|
+
}>;
|
|
300
|
+
};
|
|
@@ -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,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 清理数据尾部无用的零
|
|
3
|
+
* @param value
|
|
4
|
+
* @param minDecimalLength(最小小数位长度)
|
|
5
|
+
*/
|
|
6
|
+
export declare function trimTailZero(value: string, minDecimalLength?: number): string;
|
|
7
|
+
/**
|
|
8
|
+
* 扩展数据
|
|
9
|
+
* @param value
|
|
10
|
+
* @param scale(scale>0代表*scale,如果scale<0代表/scale)
|
|
11
|
+
*/
|
|
12
|
+
export declare function scaleNumber(value: string, scale: number, precision?: number): string;
|
|
13
|
+
/**
|
|
14
|
+
* 金额格式化
|
|
15
|
+
* @param value
|
|
16
|
+
* @param decimalLength
|
|
17
|
+
* @param autoPadding
|
|
18
|
+
* @param digits
|
|
19
|
+
* @param separator
|
|
20
|
+
* @returns
|
|
21
|
+
*/
|
|
22
|
+
export declare function formatMoney(value: string, decimalLength?: number, autoPadding?: boolean, digits?: number, separator?: string): string;
|
|
23
|
+
/**
|
|
24
|
+
* 金额反格式化
|
|
25
|
+
* @param value
|
|
26
|
+
* @returns
|
|
27
|
+
*/
|
|
28
|
+
export declare function unFormatMoney(value: string): string;
|
|
29
|
+
/**
|
|
30
|
+
* 利率转换
|
|
31
|
+
* @param value
|
|
32
|
+
* @param rates
|
|
33
|
+
* @param precision
|
|
34
|
+
* @param flag
|
|
35
|
+
* @param zeroFormat
|
|
36
|
+
* @returns
|
|
37
|
+
*/
|
|
38
|
+
export declare function rateConversion(value: string, rates: number, precision: number, flag: boolean, zeroFormat?: boolean): string;
|
|
39
|
+
/**
|
|
40
|
+
* 校验结果
|
|
41
|
+
*/
|
|
42
|
+
export interface ValidResult {
|
|
43
|
+
maxValid: boolean;
|
|
44
|
+
minValid: boolean;
|
|
45
|
+
message: string;
|
|
46
|
+
}
|
|
47
|
+
export declare function inValidScope(val: number | string, props: Record<string, any>): {
|
|
48
|
+
maxValid: boolean;
|
|
49
|
+
minValid: boolean;
|
|
50
|
+
message: string;
|
|
51
|
+
};
|
|
@@ -0,0 +1,120 @@
|
|
|
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
|
+
};
|
|
@@ -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,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,37 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,173 @@
|
|
|
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
|
+
};
|
|
@@ -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;
|