feat:选择文字
This commit is contained in:
@@ -6,18 +6,25 @@ module.exports = {
|
||||
var loading = dataSet.loading;
|
||||
|
||||
if (instance && !disabled && !loading) {
|
||||
instance.addClass('active')
|
||||
instance.addClass('active');
|
||||
}
|
||||
},
|
||||
|
||||
touchEnd: function (event, ownerInstance) {
|
||||
var instance = event.instance
|
||||
var instance = event.instance;
|
||||
var dataSet = instance.getDataset();
|
||||
var disabled = dataSet.disabled;
|
||||
var loading = dataSet.loading;
|
||||
|
||||
|
||||
if (instance && !disabled && !loading) {
|
||||
instance.removeClass('active')
|
||||
instance.removeClass('active');
|
||||
}
|
||||
},
|
||||
|
||||
getIconColor: function (iconColor, type, plain, disabled) {
|
||||
if (type === 'white' && !plain) {
|
||||
return disabled ? 'rgba(34, 36, 37, 0.7)' : 'rgba(34, 36, 37, 0.9)';
|
||||
}
|
||||
return iconColor;
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user