You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
468 B
JavaScript

2 years ago
// components/goodList/goodList.js
Component({
/**
* 组件的属性列表
*/
properties: {
goods: { // 属性名
type: Array, // 类型必填目前接受的类型包括String, Number, Boolean, Object, Array, null表示任意类型
value: [] // 属性初始值(可选),如果未指定则会根据类型选择一个
},
},
/**
* 组件的初始数据
*/
data: {
},
/**
* 组件的方法列表
*/
methods: {
}
})