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

$link 文字模式
protected string $confirm 是否进行请求前确认
protected string $method 请求方法
protected string $url 请求的Url
protected string $title 标题/说明
protected string $renderType 渲染类型

Methods

__construct($title, $url)

创建 Action

icon(string $icon)

设置 ICON 图标,默认支持 bootstrap icon, 可以使用 lay: 前缀来引用 layui 图标

plain(string $color)

No description

fluid()

No description

confirm(string $text = '')

确认

tooltip(string $tooltip = '')

No description

__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

Parameters

$title
$url

at line 156
Operation icon(string $icon)

设置 ICON 图标,默认支持 bootstrap icon, 可以使用 lay: 前缀来引用 layui 图标

Parameters

string $icon

ICON 图标

Return Value

Operation

at line 166
Operation plain(string $color)

No description

Parameters

string $color

Return Value

Operation

at line 176
Operation fluid()

No description

Return Value

Operation

at line 187
Operation confirm(string $text = '')

确认

Parameters

string $text

Return Value

Operation

at line 193
Operation tooltip(string $tooltip = '')

No description

Parameters

string $tooltip

Return Value

Operation

at line 199
__call($method, $args)

No description

Parameters

$method
$args

at line 228
string render()

No description

Return Value

string

at line 292
protected string createIconTitle()

创建图标标题

Return Value

string

at line 28
self bare()

素颜, 不进行样式修饰

Return Value

self

at line 28
self primary()

主要

Return Value

self

at line 28
self normal()

默认

Return Value

self

at line 28
self warm()

暖色

Return Value

self

at line 28
self danger()

危险

Return Value

self

at line 28
self disabled()

禁用

Return Value

self

at line 28
self default()

默认

Return Value

self

at line 28
self lg()

大型

Return Value

self

at line 28
self sm()

小型

Return Value

self

at line 28
self xs()

迷你

Return Value

self

at line 28
self round()

圆角

Return Value

self

at line 28
self only()

仅仅显示图标

Return Value

self