Component helpers
formUtil.validate(ref) and validateScrollToField(ref) resolve true on success. Since 2.0.16, invalid forms reject with Element Plus invalidFields rather than resolving false; catch the rejection. Unmounted instances reject with Error. FaForm.validate() without a callback and validateScrollToField() follow the same contract; validate(callback) retains native Element Plus callback behavior.
| Category | Runtime exports | Purpose |
|---|---|---|
| Props | faAvatarProps、faButtonProps、faDialogProps、faDrawerProps、faFormProps、faFormItemProps、faFormItemTipProps、faIconProps、faImageProps、faInputDialogPageProps、faSelectProps、faSelectPageProps、faSelectV2Props、faTableProps、faTreeProps、faTreeSelectProps、faUploadProps、faUploadImageProps、faUploadImagesProps | Reusable runtime prop definitions |
| Emits | faAvatarEmits、faButtonEmits、faDialogEmits、faDrawerEmits、faFormEmits、faImageEmits、faInputDialogPageEmits、faSelectPageEmits、faTableEmits、faTreeEmits、faTreeSelectEmits、faUploadEmits、faUploadImageEmits、faUploadImagesEmits | Reusable runtime emit validators |
| Native table definitions | tableProps、tableColumnProps | Element Plus table prop baseline used by the wrapper |
| Table utilities | PagedSearchTypeEnum、getTableDefaultSlots、formUtil、tableUtil | Pagination, slot data, and business table helpers |
| Selectors | SelectV2Props | Reusable FaSelectV2 prop types and values |
| License plates | CarNumberArea、CarNumberDigit、CarNumberLetter | Region, digit, and letter keyboard data |
Public types include component Props, Emits, Slots, Instance, Exposes, DefaultRow, ElSelectorValue, ElSelectorModelValue, ElSelectorOutput, ElTreeValue, ElTreeOutput, FaLayoutGridBreakpoint, FaTableColumnCtx, FaTableSearchColumnCtx, PagedInput, and PagedResult. Generated root TypeScript declarations define exact fields, generics, and nullability.
Business data whose shape is unknown to the SDK defaults to any. Constrain known models with PagedResult<Output>, ElSelectorOutput<Value, Data>, or ElTreeOutput<Value, Data>. Unvalidated runtime input, errors, reflection results, and values requiring narrowing continue to use unknown.
getTableDefaultSlots Slots
Gets data and operations shared with the FaTable default slot.
Signature
getTableDefaultSlots(state: FaTableState): FaTableDefaultSlotsResult;Example
import { getTableDefaultSlots } from "fast-element-plus";
const result = getTableDefaultSlots(tableState);Input
| Input | Type | Required / default | Description |
|---|---|---|---|
state | FaTableState | Required | Table state held by FaTable internals or a composition wrapper. |
Returns
| Value | Type | Description |
|---|---|---|
result | FaTableDefaultSlotsResult | New object containing loading, search, selection, and optional search operations. |
