0.3.5 • Published 4 years ago

le-print v0.3.5

Weekly downloads
-
License
MIT
Repository
-
Last release
4 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

4 years ago

0.3.4

4 years ago

0.3.3

4 years ago

0.3.2

4 years ago

0.3.1

4 years ago

0.3.0

4 years ago

0.2.997

4 years ago

0.2.996

4 years ago

0.2.995

4 years ago

0.2.994

4 years ago

0.2.993

4 years ago

0.2.992

4 years ago

0.2.991

4 years ago

0.2.971

4 years ago

0.2.97

4 years ago

0.2.96

4 years ago

0.2.95

4 years ago

0.2.94

4 years ago

0.2.93

4 years ago

0.2.92

4 years ago

0.2.91

4 years ago

0.2.9

4 years ago

0.2.8

4 years ago

0.2.7

4 years ago

0.2.6

4 years ago

0.2.5

4 years ago

0.2.4

4 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.9

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago