This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
// components/good/good.js
Component({
/**
* 组件的属性列表
*/
properties: {
title: { // 属性名
type: String, // 类型(必填),目前接受的类型包括:String, Number, Boolean, Object, Array, null(表示任意类型)
value: '标题' // 属性初始值(可选),如果未指定则会根据类型选择一个
},
imageUrl: {
type: String,
value: ''
counterPrice: {
type: Number,
value: 0
retailPrice: {
* 组件的初始数据
data: {
* 组件的方法列表
methods: {
}
})