You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
514 B
23 lines
514 B
12 months ago
|
import { VantComponent } from '../common/component';
|
||
|
VantComponent({
|
||
|
relation: {
|
||
|
type: 'descendant',
|
||
|
name: 'goods-action-button',
|
||
|
linked(child) {
|
||
|
this.children.push(child);
|
||
|
},
|
||
|
unlinked(child) {
|
||
|
this.children = this.children.filter((item) => item !== child);
|
||
|
}
|
||
|
},
|
||
|
beforeCreate() {
|
||
|
this.children = [];
|
||
|
},
|
||
|
props: {
|
||
|
safeAreaInsetBottom: {
|
||
|
type: Boolean,
|
||
|
value: true
|
||
|
}
|
||
|
}
|
||
|
});
|