1.1.1 • Published 3 years ago

yak-barcode v1.1.1

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

yak-barcode

一个适用于 vue3 的条形码生成器,利用 jabarcode

安装

npm i yak-barcode
#or
yarn add yak-barcode
#or
pnpm add yak-barcode

使用

import {createApp } from 'vue';
import App form './app.vue';

// import {Barcode} from 'yak-barcode'
// createApp(App).component('Barcode', Barcode).mount('#app')

import Barcode from 'yak-barcode'
createApp(App).use(Barcode).mount('#app')

Attrs

属性名说明类型默认值
tag条形码渲染的元素Stringcanvas(svg)
type条形码的类型StringCODE128
options其它配置Object{}

type 相当于 options.format,但是如果 typeoptions.format 同时存在,type 的值的优先级最高;完整的配置

1.1.1

3 years ago

1.1.0

3 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago