You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importReactfrom'react'importReactDOMfrom'react-dom'import{Button,Message,Icon}from'@kdcloudjs/kdesign'importtype{IMessageProps}from'@kdcloudjs/kdesign'constDemo: React.FC=()=>{constopenConfig: IMessageProps={content: 'this is a base',closable: true,duration: 0}constsuccessConfig: IMessageProps={content: <div>this is a jsx success</div>,closable: true,icon: <Icontype="user-info"/>,duration: 0}constwarningConfig: IMessageProps={content: 'this is a warning',icon: ''}consterrorConfig: IMessageProps={content: 'this is a error',closable: true}constbase=()=>{Message.open(openConfig)}constsuccess=()=>{Message.success(successConfig)}constwarning=()=>{Message.warning(warningConfig)}consterror=()=>{Message.error(errorConfig)}return(<div><Buttonstyle={{marginRight: '12px'}}onClick={base}>
base
</Button><Buttonstyle={{marginRight: '12px'}}onClick={success}>
success
</Button><Buttonstyle={{marginRight: '12px'}}onClick={warning}>
warning
</Button><Buttonstyle={{marginRight: '12px'}}onClick={error}>
error
</Button></div>)}ReactDOM.render(<Demo/>,mountNode)
重现问题步骤
import type { IMessageProps } from '@kdcloudjs/kdesign'
期望的结果是什么
实际的结果是什么
组件库版本号、浏览器信息
组件库与浏览器均为最新版本
The text was updated successfully, but these errors were encountered:
重现链接或代码
重现问题步骤
import type { IMessageProps } from '@kdcloudjs/kdesign'
期望的结果是什么
实际的结果是什么
组件库版本号、浏览器信息
组件库与浏览器均为最新版本
The text was updated successfully, but these errors were encountered: