zhangwencui
8 天以前 4eaf74efba7ead917bf53155a9b9fa59c4743cf8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<script lang="ts" setup>
import { Button, message } from 'ant-design-vue';
 
defineOptions({ name: 'WlsPrinterLabel' });
 
withDefaults(
  defineProps<{
    bizCode?: string;
    bizId?: number;
    bizType?: string;
    labelText?: string;
  }>(),
  {
    bizCode: undefined,
    bizId: undefined,
    bizType: undefined,
    labelText: '标签打印',
  },
);
 
function handlePrint() {
  message.warning('标签打印功能暂未实现,敬请期待');
}
</script>
 
<template>
  <Button type="link" @click="handlePrint">
    {{ labelText }}
  </Button>
</template>