home.js 1022 B

1234567891011121314151617181920212223
  1. Page({
  2. data: {
  3. elements: [
  4. { title: '布局', name: 'layout', color: 'cyan', icon: 'newsfill' },
  5. { title: '背景', name: 'background', color: 'blue', icon: 'colorlens' },
  6. { title: '文本', name: 'text', color: 'purple', icon: 'font' },
  7. { title: '图标 ', name: 'icon', color: 'mauve', icon: 'icon' },
  8. { title: '按钮', name: 'button', color: 'pink', icon: 'btn' },
  9. { title: '标签', name: 'tag', color: 'brown', icon: 'tagfill' },
  10. { title: '头像', name: 'avatar', color: 'red', icon: 'myfill' },
  11. { title: '进度条', name: 'progress', color: 'orange', icon: 'icloading' },
  12. { title: '边框阴影', name: 'shadow', color: 'olive', icon: 'copy' },
  13. { title: '加载', name: 'loading', color: 'green', icon: 'loading2' },
  14. ],
  15. },
  16. onShareAppMessage(){
  17. return {
  18. title: 'ColorUI-高颜值的小程序UI组件库',
  19. imageUrl:'https://image.weilanwl.com/color2.0/share2215.jpg',
  20. path: '/pages/basics/home/home'
  21. }
  22. }
  23. })