UNPKG

1.55 kBTypeScriptView Raw
1import { VXETableComponent } from './component'
2import { ColumnCellRenderParams, RenderOptions, OptionProps, OptionGroupProps } from './v-x-e-table'
3
4/**
5 * 编辑
6 */
7export declare class Edit extends VXETableComponent {}
8
9export interface ColumnEditSlotParams extends ColumnEditRenderParams {}
10
11/**
12 * 单元格编辑渲染参数
13 */
14export interface ColumnEditRenderParams extends ColumnCellRenderParams {}
15
16/**
17 * 编辑渲染配置项
18 */
19export interface ColumnEditRenderOptions extends RenderOptions {
20 // /**
21 // * 渲染类型(可能废弃,不建议使用)
22 // */
23 // type?: 'default' | 'visible';
24 /**
25 * 下拉选项列表(需要渲染器支持)
26 */
27 options?: any[];
28 /**
29 * 下拉选项属性参数配置(需要渲染器支持)
30 */
31 optionProps?: OptionProps;
32 /**
33 * 下拉分组选项列表(需要渲染器支持)
34 */
35 optionGroups?: any[];
36 /**
37 * 下拉分组选项属性参数配置(需要渲染器支持)
38 */
39 optionGroupProps?: OptionGroupProps;
40 /**
41 * 指定聚焦的选择器(需要渲染器支持)
42 */
43 autofocus?: string;
44 /**
45 * 是否在激活编辑之后自动选中输入框内容(需要渲染器支持)
46 */
47 autoselect?: boolean;
48 /**
49 * 默认值(需要渲染器支持)
50 */
51 defaultValue?: any;
52 /**
53 * 输入值实时同步更新(需要渲染器支持)
54 */
55 immediate?: boolean;
56 /**
57 * 渲染组件的内容(需要渲染器支持)
58 */
59 content?: string;
60}