Skip to content
  • This project
    • Loading...
  • Sign in

dev / home-with-kids-mp

Go to a project
Toggle navigation
Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • home-with-kids-mp
  • src
  • component
  • bottom-tips
  • bottom-tips.js
  • simon's avatar
    默认提交 · 2632c460
    2632c460
    simon committed 2019-11-10 14:48:36 +0800
bottom-tips.js 371 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
Component({
	properties: {
		// 这里定义了innerText属性,属性值可以在组件使用时指定
		innerText: {
			type: String,
			value: 'default value',
		},
		bottomVisible: {
			type: Boolean,
			value: false
		}
	},
	data: {
		// 这里是一些组件内部数据
		someData: {}
	},
	methods: {
		// 这里是一个自定义方法
		customMethod() {}
	}
})