@zenweb/form
Version:
Zenweb Form module
30 lines (29 loc) • 606 B
TypeScript
import { WidgetOption } from "./types.js";
export declare class Widget {
option: WidgetOption;
/**
* 显示名
*/
label(label: string): this;
/**
* 帮助信息
*/
help(help: string): this;
/**
* 提示信息
*/
placeholder(text: string): this;
/**
* 只读,即使提交也不会更新
*/
readonly(is?: boolean): this;
/**
* 额外输出参数
*/
protected extra?(): Record<string, any>;
/**
* 输出结果给客户端
* - 内部调用
*/
output(): WidgetOption & Record<string, any>;
}