Commit 7739f999 authored by XieZhiXiong's avatar XieZhiXiong

chore: 修改类型

parent 1c895cc0
......@@ -2,10 +2,10 @@
* @Author: XieZhiXiong
* @Date: 2020-08-31 17:52:14
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-06-29 16:13:23
* @LastEditTime: 2021-07-09 09:52:55
* @Description: 状态 tag
*/
import React from 'react';
import React, { HTMLAttributes } from 'react';
import classNames from 'classnames';
import styles from './index.less';
......@@ -14,7 +14,7 @@ export const STATUS_TYPE = ['success', 'warning', 'default', 'danger', 'primary'
export type StatusTagProps = {
type: 'success' | 'warning' | 'default' | 'danger' | 'primary' | 'nobility';
title: React.ReactNode;
style?: {[key: string]: any},
style?: HTMLAttributes<HTMLSpanElement>,
};
const StatusTag: React.FC<StatusTagProps> = ({ type, title, style }) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment