sard-uniapp
Version:
sard-uniapp 是一套基于 Uniapp + Vue3 框架开发的兼容多端的 UI 组件库
21 lines (20 loc) • 536 B
JavaScript
import { shallowRef } from 'vue';
import { defaultConfig } from '../config';
export const defaultInputProps = () => ({
enableNative: false,
controlled: true,
maxlength: 140,
adjustPosition: true,
ignoreCompositionEvent: true,
showConfirmBar: true,
disableDefaultPadding: true,
modelValue: '',
validateEvent: true,
cursorSpacing: 30,
cursor: -1,
selectionStart: -1,
selectionEnd: -1,
inputmode: 'text',
...defaultConfig.input,
});
export const lastFocusInput = shallowRef('');