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

34 lines
375 B

1 year ago
  1. // pages/common/comTree/index.js
  2. /**
  3. value = [
  4. {
  5. id: 1,
  6. name: '一级名称',
  7. children: []
  8. }
  9. ]
  10. */
  11. Component({
  12. /**
  13. * 组件的属性列表
  14. */
  15. properties: {
  16. type: {
  17. type: String,
  18. value: '10'
  19. },
  20. },
  21. /**
  22. * 组件的初始数据
  23. */
  24. data: {
  25. },
  26. /**
  27. * 组件的方法列表
  28. */
  29. methods: {
  30. }
  31. })