kopia lustrzana https://github.com/shoelace-style/shoelace
hide private methods
rodzic
114dfa3904
commit
12b0365ce0
|
@ -373,8 +373,8 @@
|
|||
return next(content);
|
||||
}
|
||||
|
||||
// Remove members that don't have a description
|
||||
const members = component.members?.filter(member => member.description);
|
||||
// Remove members that are private or don't have a description
|
||||
const members = component.members?.filter(member => member.description && member.privacy !== 'private');
|
||||
const methods = members?.filter(prop => prop.kind === 'method' && prop.privacy !== 'private');
|
||||
const props = members?.filter(prop => {
|
||||
// Look for a corresponding attribute
|
||||
|
|
|
@ -96,23 +96,23 @@ export default class SlButton extends LitElement {
|
|||
this.button.blur();
|
||||
}
|
||||
|
||||
private handleSlotChange() {
|
||||
handleSlotChange() {
|
||||
this.hasLabel = hasSlot(this);
|
||||
this.hasPrefix = hasSlot(this, 'prefix');
|
||||
this.hasSuffix = hasSlot(this, 'suffix');
|
||||
}
|
||||
|
||||
private handleBlur() {
|
||||
handleBlur() {
|
||||
this.hasFocus = false;
|
||||
emit(this, 'sl-blur');
|
||||
}
|
||||
|
||||
private handleFocus() {
|
||||
handleFocus() {
|
||||
this.hasFocus = true;
|
||||
emit(this, 'sl-focus');
|
||||
}
|
||||
|
||||
private handleClick(event: MouseEvent) {
|
||||
handleClick(event: MouseEvent) {
|
||||
if (this.disabled || this.loading) {
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
|
|
Ładowanie…
Reference in New Issue