仿互站小程序
This commit is contained in:
23
vant/goods-action/index.js
Normal file
23
vant/goods-action/index.js
Normal file
@@ -0,0 +1,23 @@
|
||||
(0, require("../common/component").VantComponent)({
|
||||
relation: {
|
||||
type: "descendant",
|
||||
name: "goods-action-button",
|
||||
linked: function(n) {
|
||||
this.children.push(n);
|
||||
},
|
||||
unlinked: function(n) {
|
||||
this.children = this.children.filter(function(e) {
|
||||
return e !== n;
|
||||
});
|
||||
}
|
||||
},
|
||||
beforeCreate: function() {
|
||||
this.children = [];
|
||||
},
|
||||
props: {
|
||||
safeAreaInsetBottom: {
|
||||
type: Boolean,
|
||||
value: !0
|
||||
}
|
||||
}
|
||||
});
|
Reference in New Issue
Block a user