index.js 534 B

12345678910111213141516171819202122232425
  1. define([
  2. 'store/index',
  3. 'text!./index.html',
  4. 'css!./index.css'
  5. ], function(store, html) {
  6. return {
  7. props: {
  8. agreeContent: {
  9. type: Object,
  10. default: function () {
  11. return {};
  12. }
  13. }
  14. },
  15. data: function () {
  16. return store.state;
  17. },
  18. methods: {
  19. agreeClose: function () {
  20. store.setAgreeAction(false);
  21. }
  22. },
  23. template: html
  24. };
  25. });