Procházet zdrojové kódy

安装引入全局变量vue-print-nb

DongZ před 1 rokem
rodič
revize
1c3a73fc93
2 změnil soubory, kde provedl 4 přidání a 0 odebrání
  1. 1 0
      package.json
  2. 3 0
      src/main.js

+ 1 - 0
package.json

@@ -62,6 +62,7 @@
     "vue-count-to": "1.0.13",
     "vue-cropper": "0.5.5",
     "vue-meta": "2.4.0",
+    "vue-print-nb": "^1.7.5",
     "vue-router": "3.4.9",
     "vuedraggable": "2.24.3",
     "vuex": "3.6.0"

+ 3 - 0
src/main.js

@@ -55,6 +55,8 @@ import PopoverTreeSelect from "@/components/popover-tree-select";
 import ComputedInput from "@/components/computed-input";
 // 附件标签组件
 import FilePreview from "@/components/file-preview";
+//打印
+import Print from 'vue-print-nb'
 
 // 全局方法挂载
 Vue.prototype.getDicts = getDicts;
@@ -83,6 +85,7 @@ Vue.component("DrFilePreview", FilePreview);
 Vue.use(directive);
 Vue.use(plugins);
 Vue.use(VueMeta);
+Vue.use(Print);  //注册
 DictData.install();
 
 /**