tileItem.json 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. {
  2. "viewSetting": {
  3. "html": "<div styles='tileListNode'></div>"
  4. },
  5. "headSetting": {
  6. "html": "<div styles='tileToolbar'><div styles='tileSelectAllNode' item='selectAll'>全选</div></div>"
  7. },
  8. "documentSetting": {
  9. "html": "<div styles='tileNode'></div>",
  10. "mouseoverStyles": "tileNode_over",
  11. "action": "open",
  12. "event" : "mouseover^^function( documentNode, ev ){ this.mouseoverDocument() }##mouseout^^function( documentNode, ev ){ this.mouseoutDocument() }"
  13. },
  14. "items": [
  15. {
  16. "name": "work",
  17. "content": {
  18. "html": "<div styles='tileItemNode'>" +
  19. " <div styles='tileItemSelectNode' item='select'></div>"+
  20. " <div styles='tileItemIconNode'><img src='' item='thumbnail' style='max-width:156px;max-height:156px;'/></div>" +
  21. " <div item='name' styles='tileItemTitleNode'></div>"+
  22. " <div item='sharedIcon' styles='tileSharedIcon' style=''></div>"+
  23. "</div>",
  24. "items": {
  25. "name": {
  26. "value" : "function(d){ return d.name.length > 50 ? d.name.substr(0,50)+'...' : d.name }"
  27. },
  28. "thumbnail" : {
  29. },
  30. "sharedIcon" : {
  31. "attr" : "title^^已分享",
  32. "show" : "function(d){ return d.shared }",
  33. "event" : "click^^function(d, ev){ this.showShareRecord(ev) }"
  34. }
  35. }
  36. }
  37. }
  38. ]
  39. }