mirror of
https://github.com/flarum/framework.git
synced 2025-05-29 03:21:57 +08:00
12
js/admin/dist/app.js
vendored
12
js/admin/dist/app.js
vendored
@ -17830,8 +17830,8 @@ System.register('flarum/components/BasicsPage', ['flarum/components/Page', 'flar
|
||||
});;
|
||||
'use strict';
|
||||
|
||||
System.register('flarum/components/Button', ['flarum/Component', 'flarum/helpers/icon', 'flarum/utils/extract', 'flarum/components/LoadingIndicator'], function (_export, _context) {
|
||||
var Component, icon, extract, LoadingIndicator, Button;
|
||||
System.register('flarum/components/Button', ['flarum/Component', 'flarum/helpers/icon', 'flarum/utils/extract', 'flarum/utils/extractText', 'flarum/components/LoadingIndicator'], function (_export, _context) {
|
||||
var Component, icon, extract, extractText, LoadingIndicator, Button;
|
||||
return {
|
||||
setters: [function (_flarumComponent) {
|
||||
Component = _flarumComponent.default;
|
||||
@ -17839,6 +17839,8 @@ System.register('flarum/components/Button', ['flarum/Component', 'flarum/helpers
|
||||
icon = _flarumHelpersIcon.default;
|
||||
}, function (_flarumUtilsExtract) {
|
||||
extract = _flarumUtilsExtract.default;
|
||||
}, function (_flarumUtilsExtractText) {
|
||||
extractText = _flarumUtilsExtractText.default;
|
||||
}, function (_flarumComponentsLoadingIndicator) {
|
||||
LoadingIndicator = _flarumComponentsLoadingIndicator.default;
|
||||
}],
|
||||
@ -17860,6 +17862,7 @@ System.register('flarum/components/Button', ['flarum/Component', 'flarum/helpers
|
||||
|
||||
attrs.className = attrs.className || '';
|
||||
attrs.type = attrs.type || 'button';
|
||||
attrs.title = attrs.title || this.getDefaultTitle();
|
||||
|
||||
var iconName = extract(attrs, 'icon');
|
||||
if (iconName) attrs.className += ' hasIcon';
|
||||
@ -17876,6 +17879,11 @@ System.register('flarum/components/Button', ['flarum/Component', 'flarum/helpers
|
||||
this.getButtonContent()
|
||||
);
|
||||
}
|
||||
}, {
|
||||
key: 'getDefaultTitle',
|
||||
value: function getDefaultTitle() {
|
||||
return extractText(this.props.children);
|
||||
}
|
||||
}, {
|
||||
key: 'getButtonContent',
|
||||
value: function getButtonContent() {
|
||||
|
Reference in New Issue
Block a user