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 = "";清空打印值

相关推荐
神探小白牙15 分钟前
eCharts 多系列柱状图增加背景图
javascript·ecmascript·echarts
女生也可以敲代码21 分钟前
AI时代下的50道前端开发面试题:从基础到大模型应用
前端·面试
ZhengEnCi28 分钟前
M5-markconv自定义CSS样式指南 📝
前端·css·python
IT_陈寒1 小时前
SpringBoot自动配置的坑差点让我加班到天亮
前端·人工智能·后端
xingpanvip1 小时前
星盘接口开发文档:星相日历接口指南
android·开发语言·前端·css·php·lua
@PHARAOH1 小时前
WHAT - GitLens supercharged 插件
前端
TT模板1 小时前
苹果cms整合西瓜播放器XGplayer插件支持跳过片头尾
前端·html5
Wect2 小时前
React 性能优化精讲
前端·react.js·性能优化
追风筝的人er2 小时前
SpringBoot+Vue3 企业考勤如何处理法定假期?节假日方案、调休补班与工作日判断链路拆解
前端·vue.js·后端
无敌的黑星星3 小时前
Java8 CompletableFuture 实战指南
linux·前端·python