Pro Controls
Pro Controls are commonly used in Table Columns and Form Toolbars, and can also be rendered independently using <component />
.
It returns a Function Component that renders the component based on the provided parameters.
Item Props
Name | Type | Default | Description |
---|---|---|---|
render | string | (...args) => string | VNodeChild | - | Render the button item content |
helper | (...args) => void | Promise<void> | - | Handle click events, if a promise is returned, it will automatically enable loading |
enable | (...args) => void | Promise<void> | - | Whether to enable the control, returning false will not render the control |
custom | (...args) => VNodeChild | - | custom render |
For more parameters, please refer to n-button.