mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-26 01:01:52 +08:00
48 lines
1.3 KiB
Vue
48 lines
1.3 KiB
Vue
|
<template>
|
|||
|
<uvTextarea
|
|||
|
:value="value"
|
|||
|
:placeholder="placeholder"
|
|||
|
:height="height"
|
|||
|
:confirmType="confirmType"
|
|||
|
:disabled="disabled"
|
|||
|
:count="count"
|
|||
|
:focus="focus"
|
|||
|
:autoHeight="autoHeight"
|
|||
|
:fixed="fixed"
|
|||
|
:cursorSpacing="cursorSpacing"
|
|||
|
:cursor="cursor"
|
|||
|
:showConfirmBar="showConfirmBar"
|
|||
|
:selectionStart="selectionStart"
|
|||
|
:selectionEnd="selectionEnd"
|
|||
|
:adjustPosition="adjustPosition"
|
|||
|
:disableDefaultPadding="disableDefaultPadding"
|
|||
|
:holdKeyboard="holdKeyboard"
|
|||
|
:maxlength="maxlength"
|
|||
|
:border="border"
|
|||
|
:customStyle="customStyle"
|
|||
|
:formatter="formatter"
|
|||
|
@focus="$emit('focus')"
|
|||
|
@blur="$emit('blur')"
|
|||
|
@linechange="$emit('linechange')"
|
|||
|
@confirm="$emit('confirm')"
|
|||
|
@input="e => $emit('input', e)"
|
|||
|
@keyboardheightchange="$emit('keyboardheightchange')"
|
|||
|
></uvTextarea>
|
|||
|
</template>
|
|||
|
|
|||
|
<script>
|
|||
|
/**
|
|||
|
* 此组件存在的理由是,在nvue下,u--textarea被uni-app官方占用了,u-textarea在nvue中相当于textarea组件
|
|||
|
* 所以在nvue下,取名为u--textarea,内部其实还是u-textarea.vue,只不过做一层中转
|
|||
|
*/
|
|||
|
import uvTextarea from '../u-textarea/u-textarea.vue';
|
|||
|
import props from '../u-textarea/props.js'
|
|||
|
export default {
|
|||
|
name: 'u--textarea',
|
|||
|
mixins: [uni.$u.mpMixin, props, uni.$u.mixin],
|
|||
|
components: {
|
|||
|
uvTextarea
|
|||
|
},
|
|||
|
}
|
|||
|
</script>
|