leiDa.js 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. "use strict";
  2. const common_vendor = require("../../common/vendor.js");
  3. const echarts = () => "../echarts-uniapp/echarts-uniapp.js";
  4. const _sfc_main = {
  5. name: "leiDa",
  6. props: ["indicator", "reference", "scoreList"],
  7. components: {
  8. echarts
  9. },
  10. data() {
  11. return {
  12. option: {}
  13. // indicator:[]
  14. };
  15. },
  16. watch: {
  17. indicator: {
  18. immediate: true,
  19. handler(newValue, oldValue) {
  20. this.drawLine();
  21. }
  22. }
  23. },
  24. mounted() {
  25. },
  26. methods: {
  27. drawLine() {
  28. }
  29. }
  30. };
  31. if (!Array) {
  32. const _component_echarts = common_vendor.resolveComponent("echarts");
  33. _component_echarts();
  34. }
  35. function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
  36. return common_vendor.e({
  37. a: $props.indicator.length > 0
  38. }, $props.indicator.length > 0 ? {
  39. b: common_vendor.sr("echarts", "8f838d84-0"),
  40. c: common_vendor.p({
  41. option: $data.option,
  42. canvasId: "echartsT"
  43. })
  44. } : {});
  45. }
  46. const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "E:/psy_web_share/components/mpvueEcharts/leiDa.vue"]]);
  47. tt.createComponent(Component);