amis icon indicating copy to clipboard operation
amis copied to clipboard

设置disabledTip:'xxxx',之后,该按钮样式padding变为0,

Open WangShaoyu1 opened this issue 6 years ago • 2 comments

image

image

code如下: { type: 'button', // icon: 'fa fa-times text-danger', label: '删除', level: 'primary', disabledOn: enabled === true, actionType: 'ajax', tooltip: '删除', disabledTip: '启用状态的不能直接删除,需要先设置为未启用才可以删除。', confirmText: '你确定要删除该数据源吗?', api: delete:${baseUrl}/projectDataSource/$id, }, 移除了disabledTip属性,样式即恢复

WangShaoyu1 avatar Oct 22 '20 09:10 WangShaoyu1

https://github.com/baidu/amis/commit/49a3ad13544ebbd67061755e61f0bd154e68dec9

RickCole21 avatar Oct 23 '20 07:10 RickCole21

更新最新版再试试

RickCole21 avatar Nov 27 '20 09:11 RickCole21