Components
Import shared components from @ray-template/ui or use subpaths such as /table-pro and /barcode. Inside Ray Admin you can also use @/components. The route transition lives in @ray-template/admin-shell, and the application supplies current route and cache state. This reference lists props, slots, and events the template adds, overrides, or uses. For inherited functionality, consult the types in the pinned Naive UI dependency.
| Component | Props type | Purpose |
|---|---|---|
| RTablePro | TableProProps | Bare tables, remote queries, automatic height, column settings, export, and optional printing |
| RForm | FormProps | Form loading, validation, reset, and keyboard submission |
| RModal | ModalProps | Controlled modal, preset widths, and fullscreen cards |
| RChart | ChartProps | ECharts initialization, themes, and export |
| RFlow | FlowProps | LogicFlow diagrams and read-only mode |
| RCollapseGrid | CollapseGridProps | Collapsible filters with action columns |
| RSegment | SegmentProps | Segmented options, icons, and tooltips |
| RMoreDropdown | MoreDropdownProps | Icon menus and row actions |
| RIframe | IframeProps | Embedded pages with loading state |
| RBarcode | BarcodeProps | Canvas and SVG barcodes |
| RDraggableCard | DefaultPosition (position type) | Draggable card and movement boundaries |
| RTransitionComponent | TransitionComponentProps | Route transitions and KeepAlive |
| RIcon | IconProps | Typed SVG sprites |
Import App Components and Providers by file. These use template state, themes, or routing. QR codes use vue3-next-qrcode directly.
Each component directory contains its implementation, styles, and types. Prop definitions such as formProps, modalProps, and chartProps also have named exports. Application code normally uses the component and public prop types. To get a TablePro instance directly, use a component ref. RForm, RChart, and RFlow use their respective onRegister contracts.