Skip to content

byc233518/vue-hiprint-example

 
 

Repository files navigation

常见问题


  1. 打印设计页面, 始化没有把之前模板清掉 ==> 直接 操作DOM $("#hiprint-printTemplate").html("");
  2. 内容全部都打印在了第一页 ==> 引入打印样式( html 中引入打印样式的css 复制一份 加上 media="print" 属性 );
  3. 页码不能设置隐藏 ==> 双击页码;
  4. 设计页面字段改成下拉选择 ==> new template 实例的时候传入 fields , 具体参数为 [{field:'name' ,text:'姓名' }, xxx]
  5. 远程打印 ==> 修改源码 # 5169 (2.5.3 版本) this.socket = io("http://192.168.102.166:17521", 改为自己的服务地址或者动态全局配置;

Vue Hiprint Example Project

hiprint project based on Vue Element-UI

Screenshots

Getting Started

This project is a starting point for a vue hiprint.

Step 1

> git clone https://github.com/peakcool/vue-hiprint-example.git

Step 2

> cd YOUR_PROJECT/vue-hiprint-example

Step 3

> npm install

or

> yarn

Step 4

> npm run dev

Resources

A few resources to get you started:

https://blog.csdn.net/byc233518/article/details/107705278#comments_16333108

About

hiprint project based on Vue Element-UI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 92.2%
  • HTML 4.2%
  • CSS 2.4%
  • Vue 1.2%