import {PlcEmitsOptions, PlcPropsOptions} from "../plc/utils/plc.utils"; import {designComponent} from "@peryl/react-compose"; import {PlcScopeSlotsOptions} from "../plc/utils/plc.scope-slots"; import {usePlc} from "../plc/use/usePlc"; import Input from "../../Input"; export const PlcTextarea = designComponent({ name: 'plc-textarea', props: { ...PlcPropsOptions, }, scopeSlots: PlcScopeSlotsOptions, emits: PlcEmitsOptions, setup({ props, slots, scopeSlots, event }) { return usePlc({ props, scopeSlots, slots, event, defaultScopeSlots: { edit: ({ row, plc }) => !plc.props.field ? null : , form: ({ row, plc }) => !plc.props.field ? null : , } }); }, });