UNPKG

@lxlib/seed

Version:

This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 9.1.1.

107 lines (106 loc) 2.71 kB
import { IifBehaviorType, STColumnButtonDrawerConfig, STColumnButtonModalConfig, STColumnButtonPop, STIcon, STMultiSort, STPage, STReq, STRes, STRowClassName, STSingleSort, STWidthMode } from './st.interfaces'; export declare class STConfig { /** * 起始页码,默认为:`1` */ pi?: number; /** * 每页数量,当设置为 `0` 表示不分页,默认:`10` */ ps?: number; /** * 是否显示边框 */ bordered?: boolean; /** * table大小 */ size?: 'small' | 'middle' | 'default'; /** * 是否开启响应式,默认:`true` */ responsive?: boolean; /** * 是否在小屏幕下才显示顶部与底部,默认:`false` */ responsiveHideHeaderFooter?: boolean; /** 请求体配置 */ req?: STReq; /** 返回体配置 */ res?: STRes; /** 返回体配置 */ page?: STPage; /** * 重命名排序值,`columns` 的重命名高于属性 */ sortReName?: { ascend?: string; descend?: string; }; /** * 单排序规则 * - 若不指定,则返回:`columnName=ascend|descend` * - 若指定,则返回:`sort=columnName.(ascend|descend)` */ singleSort?: STSingleSort | null; /** * 是否多排序,当 `sort` 多个相同值时自动合并,建议后端支持时使用 */ multiSort?: STMultiSort | null; /** * 按钮模态框配置 */ modal?: STColumnButtonModalConfig; /** * 按钮抽屉配置 */ drawer?: STColumnButtonDrawerConfig; /** * 气泡参数 */ pop?: STColumnButtonPop; /** * 行单击多少时长之类为双击(单位:毫秒),默认:`200` */ rowClickTime?: number; /** * 过滤按钮确认文本 */ filterConfirmText?: string; /** * 过滤按钮重置文本 */ filterClearText?: string; /** * 按钮图标 */ btnIcon?: STIcon; /** * 行号索引,默认:`1` * - 计算规则为:`index + noIndex` */ noIndex?: number; /** * 表格行的类名 */ rowClassName?: STRowClassName; /** * 通过点击行来展开子行 */ expandRowByClick?: boolean; /** * 手风琴模式 */ expandAccordion?: boolean; /** * 指定 `width` 模式 */ widthMode?: STWidthMode; virtualItemSize?: number | undefined; virtualMaxBufferPx?: number | undefined; virtualMinBufferPx?: number | undefined; /** * Conditional expression rendering behavior, can be set to `hide` (default) or `disabled` */ iifBehavior?: IifBehaviorType; }