Advertisement
Guest User

Untitled

a guest
Apr 19th, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. # 순수하게 기능으로
  2.  
  3. ```js
  4.  
  5. class A extends Inspector {
  6. title () { return `` }
  7. body () { return `` }
  8. tool () { return `` }
  9. // ref 로 instance 지정하고
  10.  
  11. [click('$ref')] (e) {
  12. // 이벤트 정의하고
  13. }
  14.  
  15. }
  16.  
  17. template : `
  18. <A />
  19. `
  20.  
  21.  
  22. ```
  23.  
  24. # 동적 확장
  25.  
  26. ```js
  27. const A = editor.inspector.create({
  28. title () { return `` }
  29. body () { return `` }
  30. tool () { return `` }
  31.  
  32. [click('$ref')] (e) {
  33.  
  34. }
  35. });
  36.  
  37. A.directMethod ();
  38. A.emit('message', data);
  39.  
  40. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement