2021-11-30 22:16:38 +08:00
|
|
|
export class ParamDefine {
|
|
|
|
|
name!: string;
|
|
|
|
|
field!: string;
|
|
|
|
|
type!: string;
|
2022-01-30 13:36:42 +08:00
|
|
|
required: boolean = false;
|
2021-12-04 09:00:11 +08:00
|
|
|
defaultValue: string | undefined;
|
|
|
|
|
placeholder!: string;
|
2021-11-30 22:16:38 +08:00
|
|
|
range: string | undefined;
|
|
|
|
|
limit: number | undefined;
|
2021-12-04 11:52:19 +08:00
|
|
|
//'[{"label":"GET请求","value":"GET"},{"label":"PUT请求","value":"PUT"}]'
|
|
|
|
|
options!: any[];
|
2022-04-03 21:35:56 +08:00
|
|
|
// 当type为key-value时有效,表示别名描述
|
|
|
|
|
keyAlias!: string;
|
|
|
|
|
valueAlias!: string;
|
2022-04-06 07:38:54 +08:00
|
|
|
// 此参数是否隐藏 即默认不显示, 在高级设置区显示
|
|
|
|
|
hide: boolean = false;
|
2021-11-30 22:16:38 +08:00
|
|
|
}
|