import {designComponent} from "@peryl/react-compose"; import {createPlcPropOptions, PlcEmitsOptions} from "../plc/utils/plc.utils"; import {PlcScopeSlotsOptions} from "../plc/utils/plc.scope-slots"; import {usePlc} from "../plc/use/usePlc"; import Rate from "../../Rate"; export const PlcRate = designComponent({ name: 'plc-rate', props: { ...createPlcPropOptions({ addEditPadding: true, }), }, scopeSlots: PlcScopeSlotsOptions, emits: PlcEmitsOptions, setup({ props, slots, scopeSlots, event }) { return usePlc({ props, scopeSlots, slots, event, defaultScopeSlots: { normal: ({ row, plc }) => !plc.props.field ? null : , edit: ({ row, plc }) => !plc.props.field ? null : , } }); }, });