0.3.5 • Published 2 years ago

le-print v0.3.5

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

le-print

描述: A print edit control based on Vue3, Element-Plus,Lodop

安装:
npm i le-print
使用
//main.ts
import { usePrint } from 'le-print'
import { createApp } from 'vue'
import App from './App.vue'

const app = createApp(App)
usePrint(app)
app.mount('#app', true)
<template>
  <print
    :component-options="OutStockOptions"
    :paper-size-options="paperSizeOptions"
    :print-data="data"
    :template="template"
  />
</template>
<script lang="ts" setup>
import print from 'le-print'
import 'le-print/dist/style.css'
import { OutStockOptions, paperSizeOptions, data, template } from './data'
</script>
属性说明类型
ComponentOptions可选项组件Array
PaperSizeOptions纸张选项Object
PrintData打印的数据Object
template默认打开的模板Object

ComponentOptions

属性说明类型
typeddedit:自定义文本, html:分页, LdTable:表格'ddedit' | 'html' | 'LdTable'
isEdit是否允许编辑Boolean
title选项中的文字String
value显示值,打印的缺省valueString
defaultValue打印的缺省valueString
width默认宽度String
height默认高度String
left默认left值String
top默认top值String
style默认样式{ FontSize:number }

PaperSizeOptions[]

属性说明类型
name选项中的nameString
width纸张宽度Number
height纸张高度Number
id纸张id,唯一值(id为0已经被使用,从id为1开始)Number

template[]

默认模板

事件

事件名描述类型
saveTemalmte点击保存模板时触发,返回模板数据-
0.3.5

2 years ago

0.3.4

2 years ago

0.3.3

2 years ago

0.3.2

2 years ago

0.3.1

2 years ago

0.3.0

2 years ago

0.2.997

2 years ago

0.2.996

2 years ago

0.2.995

2 years ago

0.2.994

2 years ago

0.2.993

2 years ago

0.2.992

2 years ago

0.2.991

2 years ago

0.2.971

2 years ago

0.2.97

2 years ago

0.2.96

2 years ago

0.2.95

2 years ago

0.2.94

2 years ago

0.2.93

2 years ago

0.2.92

2 years ago

0.2.91

2 years ago

0.2.9

2 years ago

0.2.8

2 years ago

0.2.7

2 years ago

0.2.6

2 years ago

0.2.5

2 years ago

0.2.4

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago