mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-08-29 20:29:46 +08:00
chore: using Infinity (#9606)
This commit is contained in:
parent
3fc3dd3f6b
commit
5686b385a4
@ -47,7 +47,7 @@ export default defineComponent({
|
|||||||
theme: makeStringProp<NumberKeyboardTheme>('default'),
|
theme: makeStringProp<NumberKeyboardTheme>('default'),
|
||||||
zIndex: numericProp,
|
zIndex: numericProp,
|
||||||
teleport: [String, Object] as PropType<TeleportProps['to']>,
|
teleport: [String, Object] as PropType<TeleportProps['to']>,
|
||||||
maxlength: makeNumericProp(Number.MAX_VALUE),
|
maxlength: makeNumericProp(Infinity),
|
||||||
modelValue: makeStringProp(''),
|
modelValue: makeStringProp(''),
|
||||||
transition: truthProp,
|
transition: truthProp,
|
||||||
blurOnClose: truthProp,
|
blurOnClose: truthProp,
|
||||||
|
@ -172,7 +172,7 @@ export default {
|
|||||||
| show | Whether to show keyboard | _boolean_ | - |
|
| show | Whether to show keyboard | _boolean_ | - |
|
||||||
| title | Keyboard title | _string_ | - |
|
| title | Keyboard title | _string_ | - |
|
||||||
| theme | Keyboard theme,can be set to `custom` | _string_ | `default` |
|
| theme | Keyboard theme,can be set to `custom` | _string_ | `default` |
|
||||||
| maxlength | Value maxlength | _number \| string_ | - |
|
| maxlength | Value maxlength | _number \| string_ | `Infinity` |
|
||||||
| transition | Whether to show transition animation | _boolean_ | `true` |
|
| transition | Whether to show transition animation | _boolean_ | `true` |
|
||||||
| z-index | Keyboard z-index | _number \| string_ | `100` |
|
| z-index | Keyboard z-index | _number \| string_ | `100` |
|
||||||
| extra-key | Content of bottom left key | _string \| string[]_ | `''` |
|
| extra-key | Content of bottom left key | _string \| string[]_ | `''` |
|
||||||
|
@ -179,7 +179,7 @@ export default {
|
|||||||
| show | 是否显示键盘 | _boolean_ | - |
|
| show | 是否显示键盘 | _boolean_ | - |
|
||||||
| title | 键盘标题 | _string_ | - |
|
| title | 键盘标题 | _string_ | - |
|
||||||
| theme | 样式风格,可选值为 `custom` | _string_ | `default` |
|
| theme | 样式风格,可选值为 `custom` | _string_ | `default` |
|
||||||
| maxlength | 输入值最大长度 | _number \| string_ | - |
|
| maxlength | 输入值最大长度 | _number \| string_ | `Infinity` |
|
||||||
| transition | 是否开启过场动画 | _boolean_ | `true` |
|
| transition | 是否开启过场动画 | _boolean_ | `true` |
|
||||||
| z-index | 键盘 z-index 层级 | _number \| string_ | `100` |
|
| z-index | 键盘 z-index 层级 | _number \| string_ | `100` |
|
||||||
| extra-key | 底部额外按键的内容 | _string \| string[]_ | `''` |
|
| extra-key | 底部额外按键的内容 | _string \| string[]_ | `''` |
|
||||||
|
@ -307,8 +307,8 @@ export default {
|
|||||||
| after-read | Hook after reading the file | _Function_ | - |
|
| after-read | Hook after reading the file | _Function_ | - |
|
||||||
| before-read | Hook before reading the file, return false to stop reading the file, can return Promise | _Function_ | - |
|
| before-read | Hook before reading the file, return false to stop reading the file, can return Promise | _Function_ | - |
|
||||||
| before-delete | Hook before delete the file, return false to stop reading the file, can return Promise | _Function_ | - |
|
| before-delete | Hook before delete the file, return false to stop reading the file, can return Promise | _Function_ | - |
|
||||||
| max-size `v3.0.17` | Max size of file | _number \| string \| (file: File) => boolean_ | - |
|
| max-size `v3.0.17` | Max size of file | _number \| string \| (file: File) => boolean_ | `Infinity` |
|
||||||
| max-count | Max count of image | _number \| string_ | - |
|
| max-count | Max count of image | _number \| string_ | `Infinity` |
|
||||||
| result-type | Type of file read result, can be set to `file` `text` | _string_ | `dataUrl` |
|
| result-type | Type of file read result, can be set to `file` `text` | _string_ | `dataUrl` |
|
||||||
| upload-text | Upload text | _string_ | - |
|
| upload-text | Upload text | _string_ | - |
|
||||||
| image-fit | Preview image fit mode | _string_ | `cover` |
|
| image-fit | Preview image fit mode | _string_ | `cover` |
|
||||||
|
@ -328,8 +328,8 @@ export default {
|
|||||||
| after-read | 文件读取完成后的回调函数 | _Function_ | - |
|
| after-read | 文件读取完成后的回调函数 | _Function_ | - |
|
||||||
| before-read | 文件读取前的回调函数,返回 `false` 可终止文件读取,<br>支持返回 `Promise` | _Function_ | - |
|
| before-read | 文件读取前的回调函数,返回 `false` 可终止文件读取,<br>支持返回 `Promise` | _Function_ | - |
|
||||||
| before-delete | 文件删除前的回调函数,返回 `false` 可终止文件读取,<br>支持返回 `Promise` | _Function_ | - |
|
| before-delete | 文件删除前的回调函数,返回 `false` 可终止文件读取,<br>支持返回 `Promise` | _Function_ | - |
|
||||||
| max-size `v3.0.17` | 文件大小限制,单位为 `byte` | _number \| string \| (file: File) => boolean_ | - |
|
| max-size `v3.0.17` | 文件大小限制,单位为 `byte` | _number \| string \| (file: File) => boolean_ | `Infinity` |
|
||||||
| max-count | 文件上传数量限制 | _number \| string_ | - |
|
| max-count | 文件上传数量限制 | _number \| string_ | `Infinity` |
|
||||||
| result-type | 文件读取结果类型,可选值为 `file` `text` | _string_ | `dataUrl` |
|
| result-type | 文件读取结果类型,可选值为 `file` `text` | _string_ | `dataUrl` |
|
||||||
| upload-text | 上传区域文字提示 | _string_ | - |
|
| upload-text | 上传区域文字提示 | _string_ | - |
|
||||||
| image-fit | 预览图裁剪模式,可选值见 [Image](#/zh-CN/image) 组件 | _string_ | `cover` |
|
| image-fit | 预览图裁剪模式,可选值见 [Image](#/zh-CN/image) 组件 | _string_ | `cover` |
|
||||||
|
@ -57,7 +57,7 @@ const props = {
|
|||||||
disabled: Boolean,
|
disabled: Boolean,
|
||||||
readonly: Boolean,
|
readonly: Boolean,
|
||||||
lazyLoad: Boolean,
|
lazyLoad: Boolean,
|
||||||
maxCount: makeNumericProp(Number.MAX_VALUE),
|
maxCount: makeNumericProp(Infinity),
|
||||||
imageFit: makeStringProp<ImageFit>('cover'),
|
imageFit: makeStringProp<ImageFit>('cover'),
|
||||||
resultType: makeStringProp<UploaderResultType>('dataUrl'),
|
resultType: makeStringProp<UploaderResultType>('dataUrl'),
|
||||||
uploadIcon: makeStringProp('photograph'),
|
uploadIcon: makeStringProp('photograph'),
|
||||||
@ -77,7 +77,7 @@ const props = {
|
|||||||
},
|
},
|
||||||
maxSize: {
|
maxSize: {
|
||||||
type: [Number, String, Function] as PropType<UploaderMaxSize>,
|
type: [Number, String, Function] as PropType<UploaderMaxSize>,
|
||||||
default: Number.MAX_VALUE,
|
default: Infinity,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user