demo.js 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. (wx["webpackJsonp"] = wx["webpackJsonp"] || []).push([["components/demo"],{
  2. /***/ "./src/components/demo.ts":
  3. /*!********************************!*\
  4. !*** ./src/components/demo.ts ***!
  5. \********************************/
  6. /***/ (function() {
  7. // components/demo.ts
  8. Component({
  9. /**
  10. * Component properties
  11. */
  12. properties: {
  13. content: {
  14. type: String,
  15. value: '111'
  16. },
  17. detail: {
  18. type: Object
  19. },
  20. func: {
  21. type: Function
  22. }
  23. },
  24. /**
  25. * Component initial data
  26. */
  27. data: {},
  28. /**
  29. * Component methods
  30. */
  31. methods: {
  32. hello: function hello() {
  33. console.log('hello');
  34. this.triggerEvent('apple', {
  35. name: 'hello'
  36. });
  37. // debugger
  38. // this.data.func({name:'hello'})
  39. }
  40. }
  41. });
  42. /***/ })
  43. },
  44. /******/ function(__webpack_require__) { // webpackRuntimeModules
  45. /******/ var __webpack_exec__ = function(moduleId) { return __webpack_require__(__webpack_require__.s = moduleId); }
  46. /******/ var __webpack_exports__ = (__webpack_exec__("./src/components/demo.ts"));
  47. /******/ }
  48. ]);
  49. //# sourceMappingURL=demo.js.map