DataV-Team / DataV

Vue数据可视化组件库(类似阿里DataV,大屏数据展示),提供SVG的边框及装饰、图表、水位图、飞线图等组件,简单易用,长期更新(React版已发布)
http://datav.jiaminghi.com
MIT License
9.09k stars 1.79k forks source link

边框类11 dv-border-box-11 中titleWidth属性设置无效 #54

Closed winston1991 closed 4 years ago

winston1991 commented 4 years ago

Bug report

边框类11 dv-border-box-11 中titleWidth属性设置无效,

出现Bug的组件?

dv-border-box-11 无法设置标题宽度

组件配置数据?

dv-border-box-11 class="border-box" titleWidth=250 title="车间列表"

控制台错误输出?

期望情况?

期望上面那个设置文字的框框可以设置宽最好高也可以设置, 特别是文字较多 字体较大时就会溢出来

实际情况?

捕获

其他相关信息

jiaming743 commented 4 years ago

试试:title-width="400"这样

winston1991 commented 4 years ago

刚刚试了,也不行

jiaming743 commented 4 years ago
<!DOCTYPE html>
<html>
<head>
  <title>DataV</title>
  <script src="https://unpkg.com/vue"></script>
  <!--调试版-->
  <script src="https://unpkg.com/@jiaminghi/data-view/dist/datav.map.vue.js"></script>
  <style>
    html, body, #app {
      width: 100%;
      height: 100%;
      margin: 0px;
      padding: 0px;
    }

    .border-box-content {
      color: rgb(66,185,131);
      font-size: 40px;
      font-weight: bold;
      display: flex;
      justify-content: center;
      align-items: center;
    }
  </style>
</head>
<body>
  <div id="app">
    <dv-border-box-11 :title-width="500">Welcome to DataV</dv-border-box-11>
  </div>

  <script>
    var app = new Vue({
      el: '#app'
    })
  </script>
</body>
</html>
winston1991 commented 4 years ago

ok 了, 谢谢大佬

winston1991 commented 4 years ago

如果可以设置title-height就更好了