design.js 1000 B

123456789101112131415161718192021222324252627282930313233
  1. var diyPaymentQrcodeHtml = '<div></div>';
  2. Vue.component("diy-payment-qrcode-sources", {
  3. template: diyPaymentQrcodeHtml,
  4. data: function () {
  5. return {
  6. data: this.$parent.data,
  7. styleList: [
  8. {text: '样式一', value: 1},
  9. {text: '样式二', value: 2},
  10. {text: '样式三', value: 3},
  11. {text: '样式四', value: 4}
  12. ]
  13. };
  14. },
  15. created: function () {
  16. this.$parent.data.ignore = ['componentBgColor','componentAngle'];//加载忽略内容 -- 其他设置中的属性设置
  17. this.$parent.data.ignoreLoad = true; // 等待忽略数组赋值后加载
  18. // 组件所需的临时数据
  19. this.$parent.data.tempData = {
  20. styleList: this.styleList,
  21. methods: {
  22. },
  23. };
  24. },
  25. methods: {
  26. verify: function (index) {
  27. var res = {code: true, message: ""};
  28. return res;
  29. }
  30. }
  31. });