白色主题
This commit is contained in:
@@ -17,7 +17,7 @@ let Collapse = class Collapse extends SuperComponent {
|
||||
};
|
||||
this.externalClasses = [`${prefix}-class`];
|
||||
this.relations = {
|
||||
'./collapse-panel': {
|
||||
'../collapse-panel/collapse-panel': {
|
||||
type: 'descendant',
|
||||
linked() {
|
||||
this.updateExpanded();
|
||||
@@ -42,10 +42,7 @@ let Collapse = class Collapse extends SuperComponent {
|
||||
};
|
||||
this.methods = {
|
||||
updateExpanded() {
|
||||
const panels = this.$children;
|
||||
if (panels.length === 0)
|
||||
return;
|
||||
panels.forEach((child) => {
|
||||
this.$children.forEach((child) => {
|
||||
child.updateExpanded(this.properties.value);
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user