Button 按钮

基础组件,触发业务逻辑时使用。

代码示例

按钮类型有:主按钮、次按钮、成功按钮、文字按钮、警告按钮以及危险按钮六种颜色按钮。

通过设置styleClassui-button-secondaryui-button-successui-button-infoui-button-warningui-button-danger创建不同样式的按钮,不设置为默认样式即主按钮。

在p-button中加上on*(标准事件)。例如:onClick

在p-button中加上on*(标准事件)。例如:onClick

按钮上的icon使用时需要添加icon属性,icon的位置需要使用iconPos决定。默认情况下,iicon的位置是在左侧。

pButton属性

{{header.name}} {{parameter.name}} {{parameter.type}} {{parameter.default}} {{parameter.des}}

p-button属性

{{header.name}} {{property.name}} {{property.type}} {{property.default}} {{property.des}}

样式

结构样式列表,对于它们的样式可以访问它们的相关页面。

{{header.name}} {{property.name}} {{property.type}} {{property.default}} {{property.des}}