Skip to content

Commit e2d8663

Browse files
authored
♻️ Optimize alarm rule annotations input (#80)
* ♻️ Optimize alarm rule annotations input
1 parent d85593d commit e2d8663

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/pages/alert/rule/create.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ import ESImg from "./img/ElasticSearch.svg"
4242
import {PrometheusPromQL} from "../../promethues";
4343
import {getKubernetesReasonList, getKubernetesResourceList} from "../../../api/kubernetes";
4444
import { useRule } from '../../../context/RuleContext';
45+
import TextArea from "antd/es/input/TextArea";
4546

4647
const format = 'HH:mm';
4748
const MyFormItemContext = React.createContext([])
@@ -1041,7 +1042,7 @@ export const AlertRule = ({ type }) => {
10411042
required: true,
10421043
},
10431044
]}>
1044-
<Input/>
1045+
<TextArea rows={2} placeholder="输入告警事件的详细消息内容,如:服务器: ${instanace},发生故障请紧急排查!" maxLength={10000} />
10451046
</MyFormItem>
10461047
</div>
10471048

0 commit comments

Comments
 (0)