Operation
abstract class Operation implements Renderable
Properties
protected bool | $disabled | 禁用 | |
protected array | $attributes | 属性 | |
protected array | $classes | 样式 | |
protected string | $plain | 朴素模式 | |
protected bool | $round | 圆角 | |
protected string | $type | 按钮的类型 | |
protected string | $size | 大小 | |
protected string | $icon | icon | |
protected bool | $only | 是否只显示 ICON |
|
protected bool | $link | 文字模式 | |
protected string | $confirm | 是否进行请求前确认 | |
protected string | $method | 请求方法 | |
protected string | $url | 请求的Url | |
protected string | $title | 标题/说明 | |
protected string | $renderType | 渲染类型 |
Methods
__construct($title, $url)
创建 Action
__call($method, $args)
No description
string
render()
No description
string
createIconTitle()
创建图标标题
self
bare()
素颜, 不进行样式修饰
self
primary()
主要
self
normal()
默认
self
warm()
暖色
self
danger()
危险
self
disabled()
禁用
self
default()
默认
self
lg()
大型
self
sm()
小型
self
xs()
迷你
self
round()
圆角
self
only()
仅仅显示图标
Details
at line 144
__construct($title, $url)
创建 Action
at line 156
Operation
icon(string $icon)
设置 ICON 图标,默认支持 bootstrap icon, 可以使用 lay: 前缀来引用 layui 图标
at line 166
Operation
plain(string $color)
No description
at line 176
Operation
fluid()
No description
at line 187
Operation
confirm(string $text = '')
确认
at line 193
Operation
tooltip(string $tooltip = '')
No description
at line 199
__call($method, $args)
No description
at line 228
string
render()
No description
at line 292
protected string
createIconTitle()
创建图标标题
at line 28
self
bare()
素颜, 不进行样式修饰
at line 28
self
primary()
主要
at line 28
self
normal()
默认
at line 28
self
warm()
暖色
at line 28
self
danger()
危险
at line 28
self
disabled()
禁用
at line 28
self
default()
默认
at line 28
self
lg()
大型
at line 28
self
sm()
小型
at line 28
self
xs()
迷你
at line 28
self
round()
圆角
at line 28
self
only()
仅仅显示图标