// 这段代码定义了一个 TypeScript 接口 `DialogProps`,它描述了一个对话框(Dialog)组件的所有可配置属性。
export interface DialogProps {
// children: 可以是字符串、React 节点或一个接受 `{ close }` 参数的函数。若为字符串,则用 `<Paragraph />` 包裹
children?: React.ReactNode | (({ close }: { close: () => void }) => void)
// The intent of the Dialog. Used for the button. Defaults to none.
intent?: IntentTypes
// 一个布尔值,指示对话框是否显示。默认为 `false`
isShown?: boolean
// 对话框的标题 Title of the Dialog. Titles should use Title Case.
title?: React.ReactNode
// When true, the header with the title and close icon button is shown.Defaults to true.
hasHeader?: boolean
// 自定义的头部内容,可以是 React 节点或接受 `{ close }` 参数的函数。
header?: React.ReactNode | (({ close }: { close: () => void }) => void)
// When true, the footer with the cancel and confirm button is shown.Defaults to true
hasFooter?: boolean
// You can override the default footer with your own custom component.
footer?: React.ReactNode | (({ close }: { close: () => void }) => void)
// When true, the cancel button is shown. Defaults to true.
hasCancel?: boolean
// When true, the close button is shown. Defaults to true.
hasClose?: boolean
// 当退出过渡完成时调用的函数。
onCloseComplete?: () => void
// **onOpenComplete**: 当进入过渡完成时调用的函数。
onOpenComplete?: () => void
// **onConfirm**: 当确认按钮被点击时调用的函数,传入一个 `close` 函数,默认行为是关闭对话框。
onConfirm?: (close: () => void) => void
// **confirmLabel**: 确认按钮的标签,默认为“Confirm”。
confirmLabel?: string
// When true, the confirm button is set to loading. Defaults to false.
isConfirmLoading?: boolean
// When true, the confirm button is set to disabled. Defaults to false.
isConfirmDisabled?: boolean
// Function that will be called when the cancel button is clicked.This closes the Dialog by default./
onCancel?: (close: () => void) => void
// **cancelLabel**: 取消按钮的标签,默认为“Cancel”。
cancelLabel?: string
// Boolean indicating if clicking the overlay should close the overlay.Defaults to true.
shouldCloseOnOverlayClick?: boolean
// Boolean indicating if pressing the esc key should close the overlay.Defaults to true.
shouldCloseOnEscapePress?: boolean
// Width of the Dialog.
width?: string | number
// The space above the dialog.
topOffset?: string | number
// The space on the left/right sides of the dialog when there isn't enough horizontal space available on screen.
sideOffset?: string | number
// The min height of the body content.Makes it less weird when only showing little content.
minHeightContent?: string | number
// Props that are passed to the dialog container.
containerProps?: React.ComponentProps<typeof Pane>
// Props that are passed to the content container.
contentContainerProps?: React.ComponentProps<typeof Pane>
// Whether or not to prevent scrolling in the outer body. Defaults to false.
preventBodyScrolling?: boolean
}
export declare const Dialog: React.FC<DialogProps>
Spring Cloud Gateway 是 Spring Cloud 的一个全新项目,该项目是基于 Spring 5.0,Spring Boot 2.0 和 Project Reactor 等响应式编程和事件流技术开发的网关,它旨在为微服务架构提供一种简单有效的统一的 API 路由管理方式。
为什么需要网关…
RPM包注册安装问题 无法执行yum安装rpm问题(后面安装Mysql会遇到):This system is not registered with an entitlement server. You can use "rhc" or "subscription-manager" to register.
Mysql5.7本地无法注册: Mysql8本地无法…
在工业自动化领域,不同设备之间的通信协议兼容性是一个关键问题。EtherNET IP 和 Profinet 作为两种常用的工业以太网协议,各自在不同的设备和系统中广泛应用。而 EtherNET IP 转 Profinet 网关则成为了连接这两个不同协议世界的桥梁,发挥着至…