1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
| @/*
| 按钮标签中各个参数的说明:
|
| btnType : 按钮的类型决定了颜色(default-灰色,primary-绿色,success-蓝色,info-淡蓝色,warning-黄色,danger-红色,white-白色)
| space : 按钮左侧是否有间隔(true/false)
| clickFun : 点击按钮所执行的方法
| icon : 按钮上的图标的样式
| name : 按钮名称
| @*/
|
| @var spaceCss = "";
| @var btnType = "";
| @if(isEmpty(space) || space == "false"){
| @ spaceCss = "";
| @}else{
| @ spaceCss = "button-margin";
| @}
| @if(isEmpty(btnCss)){
| @ btnType = "primary";
| @}else{
| @ btnType = btnCss;
| @}
| <button type="button" class="btn btn-${btnType} ${spaceCss}" onclick="${clickFun!}" id="${id!}">
| <i class="fa ${icon}"></i> ${name}
| </button>
|
|