vue树形展示插件和一维码插件

1.vue2-org-tree

2.样式修改:

css 复制代码
.org-tree-container {
  height: 100%;
}
.horizontal .org-tree-node-children {
  padding-left: 70px !important;
}
.horizontal .org-tree-node-children::before {
  width: 70px !important;
}
.org-tree-node-label-inner {
  cursor: pointer;
}

3.一维码生成

javascript 复制代码
  barcode(item, index) {
      let barCode = item;
      let name = "#barcode" + index;
      let flag = true;
      if (index == 19) {
        flag = false;
      }
      JsBarcode(name, item, {
        format: "CODE128", //选择要使用的条形码类型
        text: barCode, //显示文本
        displayValue: flag, //是否在条形码下方显示文字
        textPosition: "bottom", //设置文本的垂直位置
        margin: 10, //设置条形码周围的空白边距
        height: 70,
        width: 1.3,
        textMargin: 10,
        fontSize: 22,
      });
    },

4.使用this.$refs.barcode1.innerHTML = "";清空打印值

相关推荐
毕业设计制作和分享13 分钟前
springboot150基于springboot的贸易行业crm系统
java·vue.js·spring boot·后端·毕业设计·mybatis
键盘不能没有CV键3 小时前
【图片处理】✈️HTML转图片字体异常处理
前端·javascript·html
yantuguiguziPGJ3 小时前
WPF 联合 Web 开发调试流程梳理(基于 Microsoft.Web.WebView2)
前端·microsoft·wpf
大飞记Python4 小时前
部门管理|“编辑部门”功能实现(Django5零基础Web平台)
前端·数据库·python·django
tsumikistep5 小时前
【前端】前端运行环境的结构
前端
你的人类朋友5 小时前
【Node】认识multer库
前端·javascript·后端
Aitter5 小时前
PDF和Word文件转换为Markdown的技术实现
前端·ai编程
mapbar_front5 小时前
面试问题—上家公司的离职原因
前端·面试
昔人'6 小时前
css使用 :where() 来简化大型 CSS 选择器列表
前端·css
昔人'6 小时前
css `dorp-shadow`
前端·css