Blame view

src/Alert/Alert.html 943 Bytes
3a3ecabe   Imshann   init
1
  <div className={'ant-alert' + (type ? " ant-alert-" + type : "") + (!showIcon ? " ant-alert-no-icon" : "") + (description?" ant-alert-with-description":"")}>
81f8a467   Imshann   调整组件前缀
2
3
4
5
      {showIcon && type === 'warning' && <span className="anticon ant-alert-icon"><antd-icon type="ExclamationCircleFilled"></antd-icon></span>}
      {showIcon && type === 'success' && <span className="anticon ant-alert-icon"><antd-icon type="CheckCircleFilled"></antd-icon></span>}
      {showIcon && type === 'info' && <span className="anticon ant-alert-icon"><antd-icon type="InfoCircleFilled"></antd-icon></span>}
      {showIcon && type === 'error' && <span className="anticon ant-alert-icon"><antd-icon type="CloseCircleFilled"></antd-icon></span>}
3a3ecabe   Imshann   init
6
7
      <div className="ant-alert-content">
          <div className="ant-alert-message">{message}</div>
81f8a467   Imshann   调整组件前缀
8
          {description && <div className="ant-alert-description" ><antd-slot content="{{description}}"></antd-slot></div>}
3a3ecabe   Imshann   init
9
10
      </div>
  </div>