import{a as s,j as e}from"./index-b983ad9b.js";/* empty css                *//* empty css              *//* empty css              *//* empty css              */import{r as u}from"./react-b0e0d18a.js";import{s as h}from"./Select.module-b0cb8f14.js";import{R as f,a as o,S as n}from"./antd-8ca2e36c.js";const{Option:t}=n;function C({canSave:i,selected:r,layout:{label:c,value:p},onChange:l}){const[m,d]=u.useState();return s(f,{gutter:[8,8],children:[e(o,{span:c,className:h.selectLabel,children:"事件级别"}),e(o,{span:p,children:s(n,{style:{width:"100%"},placeholder:"请选择事件级别",value:r||(i?m:null),onChange:a=>{l&&l(a),d(a)},allowClear:!0,children:[e(t,{value:"info",children:"通知"}),e(t,{value:"warn",children:"警告"}),e(t,{value:"danger",children:"危险"}),e(t,{value:"fatal",children:"致命"})]})})]})}export{C as E};
