index.js 361 B

123456789101112131415161718
  1. define([
  2. 'text!./index.html'
  3. ], function(html) {
  4. return {
  5. props: {
  6. visible: {
  7. type: Boolean,
  8. default: false
  9. }
  10. },
  11. methods: {
  12. guideClick: function () {
  13. this.$emit('update:visible', false);
  14. }
  15. },
  16. template: html
  17. };
  18. });