You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
63 lines
1.7 KiB
63 lines
1.7 KiB
3 years ago
|
<template>
|
||
|
<uvInput
|
||
|
:value="value"
|
||
|
:type="type"
|
||
|
:fixed="fixed"
|
||
|
:disabled="disabled"
|
||
|
:disabledColor="disabledColor"
|
||
|
:clearable="clearable"
|
||
|
:password="password"
|
||
|
:maxlength="maxlength"
|
||
|
:placeholder="placeholder"
|
||
|
:placeholderClass="placeholderClass"
|
||
|
:placeholderStyle="placeholderStyle"
|
||
|
:showWordLimit="showWordLimit"
|
||
|
:confirmType="confirmType"
|
||
|
:confirmHold="confirmHold"
|
||
|
:holdKeyboard="holdKeyboard"
|
||
|
:focus="focus"
|
||
|
:autoBlur="autoBlur"
|
||
|
:disableDefaultPadding="disableDefaultPadding"
|
||
|
:cursor="cursor"
|
||
|
:cursorSpacing="cursorSpacing"
|
||
|
:selectionStart="selectionStart"
|
||
|
:selectionEnd="selectionEnd"
|
||
|
:adjustPosition="adjustPosition"
|
||
|
:inputAlign="inputAlign"
|
||
|
:autosize="autosize"
|
||
|
:fontSize="fontSize"
|
||
|
:color="color"
|
||
|
:prefixIcon="prefixIcon"
|
||
|
:suffixIcon="suffixIcon"
|
||
|
:suffixIconStyle="suffixIconStyle"
|
||
|
:prefixIconStyle="prefixIconStyle"
|
||
|
:border="border"
|
||
|
:readonly="readonly"
|
||
|
:shape="shape"
|
||
|
:customStyle="customStyle"
|
||
|
:formatter="formatter"
|
||
|
@focus="$emit('focus')"
|
||
|
@blur="$emit('blur')"
|
||
|
@keyboardheightchange="$emit('keyboardheightchange')"
|
||
|
@change="e => $emit('change', e)"
|
||
|
@input="e => $emit('input', e)"
|
||
|
@clear="$emit('clear')"
|
||
|
@click="$emit('click')"
|
||
|
></uvInput>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
/**
|
||
|
* 此组件存在的理由是,在nvue下,u-input被uni-app官方占用了,u-input在nvue中相当于input组件
|
||
|
* 所以在nvue下,取名为u--input,内部其实还是u-input.vue,只不过做一层中转
|
||
|
*/
|
||
|
import uvInput from '../u-input/u-input.vue';
|
||
|
import props from '../u-input/props.js'
|
||
|
export default {
|
||
|
name: 'u--input',
|
||
|
mixins: [uni.$u.mpMixin, props, uni.$u.mixin],
|
||
|
components: {
|
||
|
uvInput
|
||
|
},
|
||
|
}
|
||
|
</script>
|