import { buildProps, definePropType } from '@kankan/utils'
import type { ExtractPropTypes } from 'vue'
export const textareaProps = buildProps({
    type: {
        type: String,
    },
    name: {
        type: String,
    },
    disabled: {
        type: Boolean,
        default: false,
    },
    modelValue: {
        type: String,
        required: false,
        default: '',
    },
    placeholder: {
        type: String,
        default: '请输入',
    },
    maxlength: {
        type: definePropType<number | string>([Number, String]),
    },
    readonly: {
        type: Boolean,
        default: false,
    },
    other: {
        type: Object,
        default: () => ({}),
    },
    right: {
        type: Boolean,
    },
    rich: {
        type: Boolean,
    },
})

export type TextareaProps = ExtractPropTypes<typeof textareaProps>
