template中写

代码

<div class="style1" style="height:50px;margin-top: 10px">
    <span style="font-size:15px;width:200px;margin-right: 30px">生成的破片场excel表格位置</span>
    <span class="style1" style="font-size:15px;width:500px;height:40px;border:solid 2px gray;margin-right: 30px">{{ excelPath }}</span>
</div>

上面的是直接显示指定文字,下面的绑定变量,数据改变会跟着改变。
边框

style="font-size:15px;width:500px;height:40px;border:solid 2px gray;margin-right: 30px"

span标签的style中指定widthheight,并且指定边框border宽度以及颜色,即可显示为显示框样式。font-size为字体的大小。

script中写

data() {
    return {
      excelPath: ''
    }
  },

showText(){
    ...
    this.excelPath = ''
    ...
},

具体实现情况不同

Logo

前往低代码交流专区

更多推荐