docs: fix transition typo (#8623)

This commit is contained in:
neverland
2021-04-26 20:48:37 +08:00
committed by GitHub
parent cee662f1d8
commit 0e1609f017
9 changed files with 15 additions and 15 deletions
+3 -3
View File
@@ -193,13 +193,13 @@ export default defineComponent({
input.value = formatted;
}
// perfer number type
// prefer number type
const isNumeric = formatted === String(+formatted);
setValue(isNumeric ? +formatted : formatted);
};
const onFocus = (event: Event) => {
// readonly not work in lagacy mobile safari
// readonly not work in legacy mobile safari
if (props.disableInput) {
inputRef.value?.blur();
} else {
@@ -317,7 +317,7 @@ export default defineComponent({
style={inputStyle.value}
disabled={props.disabled}
readonly={props.disableInput}
// set keyboard in mordern browers
// set keyboard in modern browsers
inputmode={props.integer ? 'numeric' : 'decimal'}
placeholder={props.placeholder}
aria-valuemax={+props.max}