@antdv-next1/pro-field 1.0.0
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/LICENSE +21 -0
- package/dist/FieldHOC/index.d.ts +16 -0
- package/dist/FieldHOC/index.js +51 -0
- package/dist/ProField.d.ts +18 -0
- package/dist/ProField.js +417 -0
- package/dist/ProPureField.d.ts +10 -0
- package/dist/ProPureField.js +222 -0
- package/dist/ValueTypeToComponent.d.ts +6 -0
- package/dist/ValueTypeToComponent.js +442 -0
- package/dist/components/Cascader/index.d.ts +40 -0
- package/dist/components/Cascader/index.js +202 -0
- package/dist/components/Checkbox/index.d.ts +37 -0
- package/dist/components/Checkbox/index.js +149 -0
- package/dist/components/Checkbox/style/index.d.ts +11 -0
- package/dist/components/Checkbox/style/index.js +26 -0
- package/dist/components/Code/index.d.ts +34 -0
- package/dist/components/Code/index.js +125 -0
- package/dist/components/ColorPicker/index.d.ts +22 -0
- package/dist/components/ColorPicker/index.js +278 -0
- package/dist/components/DatePicker/index.d.ts +27 -0
- package/dist/components/DatePicker/index.js +171 -0
- package/dist/components/Digit/index.d.ts +27 -0
- package/dist/components/Digit/index.js +159 -0
- package/dist/components/DigitRange/index.d.ts +48 -0
- package/dist/components/DigitRange/index.js +197 -0
- package/dist/components/FromNow/index.d.ts +23 -0
- package/dist/components/FromNow/index.js +123 -0
- package/dist/components/Image/index.d.ts +23 -0
- package/dist/components/Image/index.js +119 -0
- package/dist/components/IndexColumn/index.d.ts +13 -0
- package/dist/components/IndexColumn/index.js +30 -0
- package/dist/components/IndexColumn/style/index.d.ts +11 -0
- package/dist/components/IndexColumn/style/index.js +29 -0
- package/dist/components/Money/InputNumberPopover.d.ts +120 -0
- package/dist/components/Money/InputNumberPopover.js +345 -0
- package/dist/components/Money/index.d.ts +303 -0
- package/dist/components/Money/index.js +274 -0
- package/dist/components/Options/index.d.ts +18 -0
- package/dist/components/Options/index.js +120 -0
- package/dist/components/Password/index.d.ts +33 -0
- package/dist/components/Password/index.js +137 -0
- package/dist/components/Percent/index.d.ts +45 -0
- package/dist/components/Percent/index.js +171 -0
- package/dist/components/Percent/util.d.ts +10 -0
- package/dist/components/Percent/util.js +22 -0
- package/dist/components/Progress/index.d.ts +22 -0
- package/dist/components/Progress/index.js +124 -0
- package/dist/components/Radio/index.d.ts +36 -0
- package/dist/components/Radio/index.js +138 -0
- package/dist/components/Radio/style/index.d.ts +11 -0
- package/dist/components/Radio/style/index.js +21 -0
- package/dist/components/RangePicker/DatePicker.d.ts +29 -0
- package/dist/components/RangePicker/DatePicker.js +189 -0
- package/dist/components/RangePicker/TimePicker.d.ts +25 -0
- package/dist/components/RangePicker/TimePicker.js +177 -0
- package/dist/components/RangePicker/index.d.ts +3 -0
- package/dist/components/RangePicker/index.js +3 -0
- package/dist/components/Rate/index.d.ts +19 -0
- package/dist/components/Rate/index.js +98 -0
- package/dist/components/Second/index.d.ts +28 -0
- package/dist/components/Second/index.js +151 -0
- package/dist/components/Segmented/index.d.ts +36 -0
- package/dist/components/Segmented/index.js +138 -0
- package/dist/components/Select/Highlight/index.d.ts +14 -0
- package/dist/components/Select/Highlight/index.js +46 -0
- package/dist/components/Select/Highlight/style/index.d.ts +12 -0
- package/dist/components/Select/Highlight/style/index.js +24 -0
- package/dist/components/Select/LightSelect/index.d.ts +45 -0
- package/dist/components/Select/LightSelect/index.js +621 -0
- package/dist/components/Select/LightSelect/style/index.d.ts +11 -0
- package/dist/components/Select/LightSelect/style/index.js +28 -0
- package/dist/components/Select/SearchSelect/index.d.ts +78 -0
- package/dist/components/Select/SearchSelect/index.js +273 -0
- package/dist/components/Select/index.d.ts +67 -0
- package/dist/components/Select/index.js +357 -0
- package/dist/components/Slider/index.d.ts +18 -0
- package/dist/components/Slider/index.js +99 -0
- package/dist/components/Status/index.d.ts +31 -0
- package/dist/components/Status/index.js +71 -0
- package/dist/components/Switch/index.d.ts +31 -0
- package/dist/components/Switch/index.js +132 -0
- package/dist/components/Text/index.d.ts +37 -0
- package/dist/components/Text/index.js +146 -0
- package/dist/components/TextArea/index.d.ts +25 -0
- package/dist/components/TextArea/index.js +117 -0
- package/dist/components/TextArea/readonly/index.d.ts +17 -0
- package/dist/components/TextArea/readonly/index.js +20 -0
- package/dist/components/TextArea/readonly/style/index.d.ts +11 -0
- package/dist/components/TextArea/readonly/style/index.js +20 -0
- package/dist/components/TimePicker/index.d.ts +23 -0
- package/dist/components/TimePicker/index.js +153 -0
- package/dist/components/TreeSelect/index.d.ts +45 -0
- package/dist/components/TreeSelect/index.js +762 -0
- package/dist/index.d.ts +34 -0
- package/dist/index.js +33 -0
- package/dist/pro-field.esm.js +72945 -0
- package/dist/pro-field.js +214 -0
- package/dist/typing.d.ts +28 -0
- package/dist/typing.js +1 -0
- package/dist/utils/useFieldExpose.d.ts +7 -0
- package/dist/utils/useFieldExpose.js +9 -0
- package/package.json +63 -0
|
@@ -0,0 +1,345 @@
|
|
|
1
|
+
import { Fragment, computed, createVNode, defineComponent, mergeProps, onMounted, onUnmounted, shallowRef } from "vue";
|
|
2
|
+
import { useEffect, useState } from "@antdv-next1/pro-utils";
|
|
3
|
+
import { InputNumber, Popover } from "antdv-next";
|
|
4
|
+
import { useMergedState } from "@v-c/util";
|
|
5
|
+
//#region src/components/Money/InputNumberPopover.tsx
|
|
6
|
+
/**
|
|
7
|
+
* input 的弹框,用于显示格式化之后的内容
|
|
8
|
+
*
|
|
9
|
+
* @result 10,000 -> 一万
|
|
10
|
+
* @result 10, 00, 000, 000 -> 一亿
|
|
11
|
+
*/
|
|
12
|
+
const InputNumberPopover = /* @__PURE__ */ defineComponent((props, { attrs }) => {
|
|
13
|
+
const [value, setValue] = useMergedState(() => props.value || props.defaultValue, {
|
|
14
|
+
value: computed(() => props.value),
|
|
15
|
+
defaultValue: props.defaultValue,
|
|
16
|
+
onChange: (val) => {
|
|
17
|
+
props["onUpdate:value"]?.(val);
|
|
18
|
+
props.onChange?.(val);
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
const [localOpen, setLocalOpen] = useState(props.open ?? false);
|
|
22
|
+
const mountedRef = shallowRef(true);
|
|
23
|
+
onMounted(() => {
|
|
24
|
+
mountedRef.value = true;
|
|
25
|
+
});
|
|
26
|
+
onUnmounted(() => {
|
|
27
|
+
mountedRef.value = false;
|
|
28
|
+
});
|
|
29
|
+
useEffect(() => {
|
|
30
|
+
if (props.open !== void 0) setLocalOpen(props.open);
|
|
31
|
+
}, [() => props.open]);
|
|
32
|
+
const handleOpenChange = (visible) => {
|
|
33
|
+
props.onOpenChange?.(visible);
|
|
34
|
+
if (open === void 0) queueMicrotask(() => {
|
|
35
|
+
if (mountedRef.value) setLocalOpen(visible);
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
return () => {
|
|
39
|
+
const { contentRender: content, numberFormatOptions, numberPopoverRender, open, value: propsValue, onChange, ...rest } = props;
|
|
40
|
+
/**
|
|
41
|
+
* 如果content 存在要根据 content 渲染一下
|
|
42
|
+
*/
|
|
43
|
+
const dom = content?.({
|
|
44
|
+
...rest,
|
|
45
|
+
value: value.value
|
|
46
|
+
});
|
|
47
|
+
if (!dom) return createVNode(InputNumber, mergeProps(attrs, rest, {
|
|
48
|
+
"value": value.value,
|
|
49
|
+
"onChange": (value) => {
|
|
50
|
+
setValue(value);
|
|
51
|
+
}
|
|
52
|
+
}), null);
|
|
53
|
+
return createVNode(Popover, {
|
|
54
|
+
"placement": "topLeft",
|
|
55
|
+
"trigger": ["focus", "click"],
|
|
56
|
+
"open": localOpen.value,
|
|
57
|
+
"onOpenChange": handleOpenChange,
|
|
58
|
+
"content": createVNode(Fragment, null, [dom]),
|
|
59
|
+
"getPopupContainer": (triggerNode) => {
|
|
60
|
+
return triggerNode?.parentElement || document.body;
|
|
61
|
+
},
|
|
62
|
+
"onUpdate:open": (_open) => {
|
|
63
|
+
props["onUpdate:open"]?.(_open);
|
|
64
|
+
setLocalOpen(_open);
|
|
65
|
+
}
|
|
66
|
+
}, { default: () => [createVNode(InputNumber, mergeProps(attrs, rest, {
|
|
67
|
+
"value": value.value,
|
|
68
|
+
"onChange": (value) => {
|
|
69
|
+
setValue(value);
|
|
70
|
+
}
|
|
71
|
+
}), null)] });
|
|
72
|
+
};
|
|
73
|
+
}, {
|
|
74
|
+
props: {
|
|
75
|
+
size: {
|
|
76
|
+
type: [String, null],
|
|
77
|
+
required: false
|
|
78
|
+
},
|
|
79
|
+
status: {
|
|
80
|
+
type: String,
|
|
81
|
+
required: false
|
|
82
|
+
},
|
|
83
|
+
disabled: {
|
|
84
|
+
type: Boolean,
|
|
85
|
+
required: false,
|
|
86
|
+
default: void 0
|
|
87
|
+
},
|
|
88
|
+
addonBefore: {
|
|
89
|
+
type: [
|
|
90
|
+
Function,
|
|
91
|
+
String,
|
|
92
|
+
Number,
|
|
93
|
+
null,
|
|
94
|
+
Object,
|
|
95
|
+
Boolean
|
|
96
|
+
],
|
|
97
|
+
required: false,
|
|
98
|
+
default: void 0
|
|
99
|
+
},
|
|
100
|
+
addonAfter: {
|
|
101
|
+
type: [
|
|
102
|
+
Function,
|
|
103
|
+
String,
|
|
104
|
+
Number,
|
|
105
|
+
null,
|
|
106
|
+
Object,
|
|
107
|
+
Boolean
|
|
108
|
+
],
|
|
109
|
+
required: false,
|
|
110
|
+
default: void 0
|
|
111
|
+
},
|
|
112
|
+
prefix: {
|
|
113
|
+
type: [
|
|
114
|
+
Function,
|
|
115
|
+
String,
|
|
116
|
+
Number,
|
|
117
|
+
null,
|
|
118
|
+
Object,
|
|
119
|
+
Boolean
|
|
120
|
+
],
|
|
121
|
+
required: false,
|
|
122
|
+
default: void 0
|
|
123
|
+
},
|
|
124
|
+
suffix: {
|
|
125
|
+
type: [
|
|
126
|
+
Function,
|
|
127
|
+
String,
|
|
128
|
+
Number,
|
|
129
|
+
null,
|
|
130
|
+
Object,
|
|
131
|
+
Boolean
|
|
132
|
+
],
|
|
133
|
+
required: false,
|
|
134
|
+
default: void 0
|
|
135
|
+
},
|
|
136
|
+
bordered: {
|
|
137
|
+
type: Boolean,
|
|
138
|
+
required: false,
|
|
139
|
+
default: void 0
|
|
140
|
+
},
|
|
141
|
+
variant: {
|
|
142
|
+
type: String,
|
|
143
|
+
required: false
|
|
144
|
+
},
|
|
145
|
+
classes: {
|
|
146
|
+
type: [Object, Function],
|
|
147
|
+
required: false
|
|
148
|
+
},
|
|
149
|
+
styles: {
|
|
150
|
+
type: [Object, Function],
|
|
151
|
+
required: false
|
|
152
|
+
},
|
|
153
|
+
controls: {
|
|
154
|
+
type: [Boolean, Object],
|
|
155
|
+
required: false,
|
|
156
|
+
default: void 0
|
|
157
|
+
},
|
|
158
|
+
type: {
|
|
159
|
+
type: String,
|
|
160
|
+
required: false
|
|
161
|
+
},
|
|
162
|
+
rootClass: {
|
|
163
|
+
type: String,
|
|
164
|
+
required: false
|
|
165
|
+
},
|
|
166
|
+
prefixCls: {
|
|
167
|
+
type: String,
|
|
168
|
+
required: false
|
|
169
|
+
},
|
|
170
|
+
mode: {
|
|
171
|
+
type: String,
|
|
172
|
+
required: false
|
|
173
|
+
},
|
|
174
|
+
min: { required: false },
|
|
175
|
+
max: { required: false },
|
|
176
|
+
step: { required: false },
|
|
177
|
+
defaultValue: { required: false },
|
|
178
|
+
value: { required: false },
|
|
179
|
+
readOnly: {
|
|
180
|
+
type: Boolean,
|
|
181
|
+
required: false,
|
|
182
|
+
default: void 0
|
|
183
|
+
},
|
|
184
|
+
upHandler: { required: false },
|
|
185
|
+
downHandler: { required: false },
|
|
186
|
+
keyboard: {
|
|
187
|
+
type: Boolean,
|
|
188
|
+
required: false,
|
|
189
|
+
default: void 0
|
|
190
|
+
},
|
|
191
|
+
changeOnWheel: {
|
|
192
|
+
type: Boolean,
|
|
193
|
+
required: false,
|
|
194
|
+
default: void 0
|
|
195
|
+
},
|
|
196
|
+
parser: {
|
|
197
|
+
type: Function,
|
|
198
|
+
required: false
|
|
199
|
+
},
|
|
200
|
+
formatter: {
|
|
201
|
+
type: Function,
|
|
202
|
+
required: false
|
|
203
|
+
},
|
|
204
|
+
precision: {
|
|
205
|
+
type: Number,
|
|
206
|
+
required: false
|
|
207
|
+
},
|
|
208
|
+
decimalSeparator: {
|
|
209
|
+
type: String,
|
|
210
|
+
required: false
|
|
211
|
+
},
|
|
212
|
+
onStep: {
|
|
213
|
+
type: Function,
|
|
214
|
+
required: false
|
|
215
|
+
},
|
|
216
|
+
changeOnBlur: {
|
|
217
|
+
type: Boolean,
|
|
218
|
+
required: false,
|
|
219
|
+
default: void 0
|
|
220
|
+
},
|
|
221
|
+
tabIndex: {
|
|
222
|
+
type: Number,
|
|
223
|
+
required: false
|
|
224
|
+
},
|
|
225
|
+
onMouseLeave: {
|
|
226
|
+
type: Function,
|
|
227
|
+
required: false
|
|
228
|
+
},
|
|
229
|
+
onMouseOut: {
|
|
230
|
+
type: Function,
|
|
231
|
+
required: false
|
|
232
|
+
},
|
|
233
|
+
stringMode: {
|
|
234
|
+
type: Boolean,
|
|
235
|
+
required: false,
|
|
236
|
+
default: void 0
|
|
237
|
+
},
|
|
238
|
+
placeholder: {
|
|
239
|
+
type: String,
|
|
240
|
+
required: false
|
|
241
|
+
},
|
|
242
|
+
onChange: {
|
|
243
|
+
type: Function,
|
|
244
|
+
required: false
|
|
245
|
+
},
|
|
246
|
+
"onUpdate:value": {
|
|
247
|
+
type: Function,
|
|
248
|
+
required: false
|
|
249
|
+
},
|
|
250
|
+
onInput: {
|
|
251
|
+
type: Function,
|
|
252
|
+
required: false
|
|
253
|
+
},
|
|
254
|
+
onPressEnter: {
|
|
255
|
+
type: Function,
|
|
256
|
+
required: false
|
|
257
|
+
},
|
|
258
|
+
onMousedown: {
|
|
259
|
+
type: Function,
|
|
260
|
+
required: false
|
|
261
|
+
},
|
|
262
|
+
onClick: {
|
|
263
|
+
type: Function,
|
|
264
|
+
required: false
|
|
265
|
+
},
|
|
266
|
+
onMouseup: {
|
|
267
|
+
type: Function,
|
|
268
|
+
required: false
|
|
269
|
+
},
|
|
270
|
+
onMouseleave: {
|
|
271
|
+
type: Function,
|
|
272
|
+
required: false
|
|
273
|
+
},
|
|
274
|
+
onMousemove: {
|
|
275
|
+
type: Function,
|
|
276
|
+
required: false
|
|
277
|
+
},
|
|
278
|
+
onMouseenter: {
|
|
279
|
+
type: Function,
|
|
280
|
+
required: false
|
|
281
|
+
},
|
|
282
|
+
onMouseout: {
|
|
283
|
+
type: Function,
|
|
284
|
+
required: false
|
|
285
|
+
},
|
|
286
|
+
onFocus: {
|
|
287
|
+
type: Function,
|
|
288
|
+
required: false
|
|
289
|
+
},
|
|
290
|
+
onBlur: {
|
|
291
|
+
type: Function,
|
|
292
|
+
required: false
|
|
293
|
+
},
|
|
294
|
+
onKeydown: {
|
|
295
|
+
type: Function,
|
|
296
|
+
required: false
|
|
297
|
+
},
|
|
298
|
+
onKeyup: {
|
|
299
|
+
type: Function,
|
|
300
|
+
required: false
|
|
301
|
+
},
|
|
302
|
+
onCompositionstart: {
|
|
303
|
+
type: Function,
|
|
304
|
+
required: false
|
|
305
|
+
},
|
|
306
|
+
onCompositionend: {
|
|
307
|
+
type: Function,
|
|
308
|
+
required: false
|
|
309
|
+
},
|
|
310
|
+
onBeforeinput: {
|
|
311
|
+
type: Function,
|
|
312
|
+
required: false
|
|
313
|
+
},
|
|
314
|
+
open: {
|
|
315
|
+
type: Boolean,
|
|
316
|
+
required: false,
|
|
317
|
+
default: void 0
|
|
318
|
+
},
|
|
319
|
+
"onUpdate:open": {
|
|
320
|
+
type: Function,
|
|
321
|
+
required: false
|
|
322
|
+
},
|
|
323
|
+
onOpenChange: {
|
|
324
|
+
type: Function,
|
|
325
|
+
required: false
|
|
326
|
+
},
|
|
327
|
+
contentRender: {
|
|
328
|
+
type: Function,
|
|
329
|
+
required: false
|
|
330
|
+
},
|
|
331
|
+
numberFormatOptions: {
|
|
332
|
+
type: Object,
|
|
333
|
+
required: false
|
|
334
|
+
},
|
|
335
|
+
numberPopoverRender: {
|
|
336
|
+
type: [Function, Boolean],
|
|
337
|
+
required: false,
|
|
338
|
+
default: void 0
|
|
339
|
+
}
|
|
340
|
+
},
|
|
341
|
+
name: "InputNumberPopover",
|
|
342
|
+
inheritAttrs: false
|
|
343
|
+
});
|
|
344
|
+
//#endregion
|
|
345
|
+
export { InputNumberPopover as default };
|
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
import { ProFieldFC } from "../../typing.js";
|
|
2
|
+
import * as _$vue from "vue";
|
|
3
|
+
import * as _$_antdv_next1_pro_provider0 from "@antdv-next1/pro-provider";
|
|
4
|
+
import { InputNumberProps } from "antdv-next";
|
|
5
|
+
import { VueNode } from "@v-c/util";
|
|
6
|
+
import { CustomSlotsType } from "@v-c/util/dist/type";
|
|
7
|
+
|
|
8
|
+
//#region src/components/Money/index.d.ts
|
|
9
|
+
type FieldMoneyProps = ProFieldFC<{
|
|
10
|
+
text: number;
|
|
11
|
+
moneySymbol?: boolean;
|
|
12
|
+
locale?: string;
|
|
13
|
+
/**
|
|
14
|
+
* 输入框内容为空的提示内容
|
|
15
|
+
*/
|
|
16
|
+
placeholder?: string;
|
|
17
|
+
/**
|
|
18
|
+
* 自定义 money 的 Symbol
|
|
19
|
+
*/
|
|
20
|
+
customSymbol?: string;
|
|
21
|
+
/**
|
|
22
|
+
* 自定义 Popover 的值,false 可以关闭他
|
|
23
|
+
*/
|
|
24
|
+
numberPopoverRender?: ((props: InputNumberProps, defaultText: string) => VueNode) | boolean;
|
|
25
|
+
/**
|
|
26
|
+
* NumberFormat 的配置,文档可以查看 mdn
|
|
27
|
+
*
|
|
28
|
+
* @see https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
|
|
29
|
+
*/
|
|
30
|
+
numberFormatOptions?: {
|
|
31
|
+
/**
|
|
32
|
+
* @see https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
|
|
33
|
+
*/
|
|
34
|
+
localeMatcher?: string;
|
|
35
|
+
/**
|
|
36
|
+
* @see https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
|
|
37
|
+
*/
|
|
38
|
+
style?: string;
|
|
39
|
+
/**
|
|
40
|
+
* @see https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
|
|
41
|
+
*/
|
|
42
|
+
currency?: string;
|
|
43
|
+
/**
|
|
44
|
+
* @see https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
|
|
45
|
+
*/
|
|
46
|
+
currencyDisplay?: string;
|
|
47
|
+
/**
|
|
48
|
+
* @see https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
|
|
49
|
+
*/
|
|
50
|
+
currencySign?: string;
|
|
51
|
+
/**
|
|
52
|
+
* @see https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
|
|
53
|
+
*/
|
|
54
|
+
useGrouping?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* @see https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
|
|
57
|
+
*/
|
|
58
|
+
minimumIntegerDigits?: number;
|
|
59
|
+
/**
|
|
60
|
+
* @see https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
|
|
61
|
+
*/
|
|
62
|
+
minimumFractionDigits?: number;
|
|
63
|
+
/**
|
|
64
|
+
* @see https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
|
|
65
|
+
*/
|
|
66
|
+
maximumFractionDigits?: number;
|
|
67
|
+
/**
|
|
68
|
+
* @see https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
|
|
69
|
+
*/
|
|
70
|
+
minimumSignificantDigits?: number;
|
|
71
|
+
/**
|
|
72
|
+
* @see https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
|
|
73
|
+
*/
|
|
74
|
+
maximumSignificantDigits?: number;
|
|
75
|
+
};
|
|
76
|
+
}, InputNumberProps & {
|
|
77
|
+
numberFormatOptions?: {
|
|
78
|
+
/**
|
|
79
|
+
* @see https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
|
|
80
|
+
*/
|
|
81
|
+
localeMatcher?: string;
|
|
82
|
+
/**
|
|
83
|
+
* @see https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
|
|
84
|
+
*/
|
|
85
|
+
style?: string;
|
|
86
|
+
/**
|
|
87
|
+
* @see https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
|
|
88
|
+
*/
|
|
89
|
+
currency?: string;
|
|
90
|
+
/**
|
|
91
|
+
* @see https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
|
|
92
|
+
*/
|
|
93
|
+
currencyDisplay?: string;
|
|
94
|
+
/**
|
|
95
|
+
* @see https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
|
|
96
|
+
*/
|
|
97
|
+
currencySign?: string;
|
|
98
|
+
/**
|
|
99
|
+
* @see https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
|
|
100
|
+
*/
|
|
101
|
+
useGrouping?: boolean;
|
|
102
|
+
/**
|
|
103
|
+
* @see https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
|
|
104
|
+
*/
|
|
105
|
+
minimumIntegerDigits?: number;
|
|
106
|
+
/**
|
|
107
|
+
* @see https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
|
|
108
|
+
*/
|
|
109
|
+
minimumFractionDigits?: number;
|
|
110
|
+
/**
|
|
111
|
+
* @see https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
|
|
112
|
+
*/
|
|
113
|
+
maximumFractionDigits?: number;
|
|
114
|
+
/**
|
|
115
|
+
* @see https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
|
|
116
|
+
*/
|
|
117
|
+
minimumSignificantDigits?: number;
|
|
118
|
+
/**
|
|
119
|
+
* @see https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
|
|
120
|
+
*/
|
|
121
|
+
maximumSignificantDigits?: number;
|
|
122
|
+
};
|
|
123
|
+
numberPopoverRender?: ((props: InputNumberProps, defaultText: string) => VueNode) | boolean;
|
|
124
|
+
customSymbol?: string;
|
|
125
|
+
moneySymbol?: boolean;
|
|
126
|
+
open?: boolean;
|
|
127
|
+
}>;
|
|
128
|
+
declare const FieldMoney: _$vue.DefineSetupFnComponent<FieldMoneyProps, {}, CustomSlotsType<{
|
|
129
|
+
default?: () => VueNode;
|
|
130
|
+
}>, _$_antdv_next1_pro_provider0.BaseProFieldFC<InputNumberProps & {
|
|
131
|
+
numberFormatOptions?: {
|
|
132
|
+
/**
|
|
133
|
+
* @see https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
|
|
134
|
+
*/
|
|
135
|
+
localeMatcher?: string;
|
|
136
|
+
/**
|
|
137
|
+
* @see https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
|
|
138
|
+
*/
|
|
139
|
+
style?: string;
|
|
140
|
+
/**
|
|
141
|
+
* @see https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
|
|
142
|
+
*/
|
|
143
|
+
currency?: string;
|
|
144
|
+
/**
|
|
145
|
+
* @see https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
|
|
146
|
+
*/
|
|
147
|
+
currencyDisplay?: string;
|
|
148
|
+
/**
|
|
149
|
+
* @see https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
|
|
150
|
+
*/
|
|
151
|
+
currencySign?: string;
|
|
152
|
+
/**
|
|
153
|
+
* @see https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
|
|
154
|
+
*/
|
|
155
|
+
useGrouping?: boolean;
|
|
156
|
+
/**
|
|
157
|
+
* @see https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
|
|
158
|
+
*/
|
|
159
|
+
minimumIntegerDigits?: number;
|
|
160
|
+
/**
|
|
161
|
+
* @see https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
|
|
162
|
+
*/
|
|
163
|
+
minimumFractionDigits?: number;
|
|
164
|
+
/**
|
|
165
|
+
* @see https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
|
|
166
|
+
*/
|
|
167
|
+
maximumFractionDigits?: number;
|
|
168
|
+
/**
|
|
169
|
+
* @see https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
|
|
170
|
+
*/
|
|
171
|
+
minimumSignificantDigits?: number;
|
|
172
|
+
/**
|
|
173
|
+
* @see https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
|
|
174
|
+
*/
|
|
175
|
+
maximumSignificantDigits?: number;
|
|
176
|
+
};
|
|
177
|
+
numberPopoverRender?: ((props: InputNumberProps, defaultText: string) => VueNode) | boolean;
|
|
178
|
+
customSymbol?: string;
|
|
179
|
+
moneySymbol?: boolean;
|
|
180
|
+
open?: boolean;
|
|
181
|
+
}> & _$_antdv_next1_pro_provider0.ProRenderFieldPropsType<InputNumberProps & {
|
|
182
|
+
numberFormatOptions?: {
|
|
183
|
+
/**
|
|
184
|
+
* @see https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
|
|
185
|
+
*/
|
|
186
|
+
localeMatcher?: string;
|
|
187
|
+
/**
|
|
188
|
+
* @see https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
|
|
189
|
+
*/
|
|
190
|
+
style?: string;
|
|
191
|
+
/**
|
|
192
|
+
* @see https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
|
|
193
|
+
*/
|
|
194
|
+
currency?: string;
|
|
195
|
+
/**
|
|
196
|
+
* @see https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
|
|
197
|
+
*/
|
|
198
|
+
currencyDisplay?: string;
|
|
199
|
+
/**
|
|
200
|
+
* @see https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
|
|
201
|
+
*/
|
|
202
|
+
currencySign?: string;
|
|
203
|
+
/**
|
|
204
|
+
* @see https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
|
|
205
|
+
*/
|
|
206
|
+
useGrouping?: boolean;
|
|
207
|
+
/**
|
|
208
|
+
* @see https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
|
|
209
|
+
*/
|
|
210
|
+
minimumIntegerDigits?: number;
|
|
211
|
+
/**
|
|
212
|
+
* @see https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
|
|
213
|
+
*/
|
|
214
|
+
minimumFractionDigits?: number;
|
|
215
|
+
/**
|
|
216
|
+
* @see https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
|
|
217
|
+
*/
|
|
218
|
+
maximumFractionDigits?: number;
|
|
219
|
+
/**
|
|
220
|
+
* @see https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
|
|
221
|
+
*/
|
|
222
|
+
minimumSignificantDigits?: number;
|
|
223
|
+
/**
|
|
224
|
+
* @see https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
|
|
225
|
+
*/
|
|
226
|
+
maximumSignificantDigits?: number;
|
|
227
|
+
};
|
|
228
|
+
numberPopoverRender?: ((props: InputNumberProps, defaultText: string) => VueNode) | boolean;
|
|
229
|
+
customSymbol?: string;
|
|
230
|
+
moneySymbol?: boolean;
|
|
231
|
+
open?: boolean;
|
|
232
|
+
}> & {
|
|
233
|
+
text: number;
|
|
234
|
+
moneySymbol?: boolean;
|
|
235
|
+
locale?: string;
|
|
236
|
+
/**
|
|
237
|
+
* 输入框内容为空的提示内容
|
|
238
|
+
*/
|
|
239
|
+
placeholder?: string;
|
|
240
|
+
/**
|
|
241
|
+
* 自定义 money 的 Symbol
|
|
242
|
+
*/
|
|
243
|
+
customSymbol?: string;
|
|
244
|
+
/**
|
|
245
|
+
* 自定义 Popover 的值,false 可以关闭他
|
|
246
|
+
*/
|
|
247
|
+
numberPopoverRender?: ((props: InputNumberProps, defaultText: string) => VueNode) | boolean;
|
|
248
|
+
/**
|
|
249
|
+
* NumberFormat 的配置,文档可以查看 mdn
|
|
250
|
+
*
|
|
251
|
+
* @see https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
|
|
252
|
+
*/
|
|
253
|
+
numberFormatOptions?: {
|
|
254
|
+
/**
|
|
255
|
+
* @see https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
|
|
256
|
+
*/
|
|
257
|
+
localeMatcher?: string;
|
|
258
|
+
/**
|
|
259
|
+
* @see https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
|
|
260
|
+
*/
|
|
261
|
+
style?: string;
|
|
262
|
+
/**
|
|
263
|
+
* @see https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
|
|
264
|
+
*/
|
|
265
|
+
currency?: string;
|
|
266
|
+
/**
|
|
267
|
+
* @see https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
|
|
268
|
+
*/
|
|
269
|
+
currencyDisplay?: string;
|
|
270
|
+
/**
|
|
271
|
+
* @see https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
|
|
272
|
+
*/
|
|
273
|
+
currencySign?: string;
|
|
274
|
+
/**
|
|
275
|
+
* @see https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
|
|
276
|
+
*/
|
|
277
|
+
useGrouping?: boolean;
|
|
278
|
+
/**
|
|
279
|
+
* @see https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
|
|
280
|
+
*/
|
|
281
|
+
minimumIntegerDigits?: number;
|
|
282
|
+
/**
|
|
283
|
+
* @see https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
|
|
284
|
+
*/
|
|
285
|
+
minimumFractionDigits?: number;
|
|
286
|
+
/**
|
|
287
|
+
* @see https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
|
|
288
|
+
*/
|
|
289
|
+
maximumFractionDigits?: number;
|
|
290
|
+
/**
|
|
291
|
+
* @see https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
|
|
292
|
+
*/
|
|
293
|
+
minimumSignificantDigits?: number;
|
|
294
|
+
/**
|
|
295
|
+
* @see https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
|
|
296
|
+
*/
|
|
297
|
+
maximumSignificantDigits?: number;
|
|
298
|
+
};
|
|
299
|
+
} & {
|
|
300
|
+
id?: string;
|
|
301
|
+
} & {}, _$vue.PublicProps>;
|
|
302
|
+
//#endregion
|
|
303
|
+
export { FieldMoneyProps, FieldMoney as default };
|