* feature:support hide advanced params define * feature:all monitors set advanced params * feature:remove duplicate port monitor yml
18 lines
521 B
TypeScript
18 lines
521 B
TypeScript
export class ParamDefine {
|
|
name!: string;
|
|
field!: string;
|
|
type!: string;
|
|
required: boolean = false;
|
|
defaultValue: string | undefined;
|
|
placeholder!: string;
|
|
range: string | undefined;
|
|
limit: number | undefined;
|
|
//'[{"label":"GET请求","value":"GET"},{"label":"PUT请求","value":"PUT"}]'
|
|
options!: any[];
|
|
// 当type为key-value时有效,表示别名描述
|
|
keyAlias!: string;
|
|
valueAlias!: string;
|
|
// 此参数是否隐藏 即默认不显示, 在高级设置区显示
|
|
hide: boolean = false;
|
|
}
|