UNPKG

sard-uniapp

Version:

sard-uniapp 是一套基于 Uniapp + Vue3 框架开发的兼容多端的 UI 组件库

32 lines (31 loc) 1.01 kB
import { type StyleValue } from 'vue'; import { type CanvasTextAlign, type BarcodeFormat, type BarcodeTextPosition, type CanvasFontStyle, type CanvasFontWeight } from '../../utils'; import { type DefaultProps } from '../config'; export interface BarcodeProps { rootStyle?: StyleValue; rootClass?: string; value?: string; format?: BarcodeFormat; width?: number; height?: number; color?: string; background?: string; displayValue?: boolean; textPosition?: BarcodeTextPosition; textAlign?: CanvasTextAlign; textMargin?: number; fontStyle?: CanvasFontStyle; fontWeight?: CanvasFontWeight; fontSize?: number; fontFamily?: string; margin?: number; marginTop?: number; marginBottom?: number; marginLeft?: number; marginRight?: number; showMenuByLongpress?: boolean; } export declare const defaultBarcodeProps: () => DefaultProps<BarcodeProps>; export interface BarcodeEmits { (e: 'success', tempFilePath: string): void; }