0.0.27 • Published 12 months ago

@zdzz/components v0.0.27

Weekly downloads
-
License
ISC
Repository
-
Last release
12 months ago

components

业务中常用的vue组件

  1. PDFRender
<script setup lang="ts">
import { PDFRender } from "@zdzz/components";
import type { PDFRenderInstance } from "@zdzz/components";
import "@zdzz/components/es/PDFRender/style.css";

const pdfRef = ref<PDFRenderInstance | null>(null);

function handleError() {}
function update() {
  pdfRef.value?.update();
}
</script>

<template>
  <PDFRender ref="pdfRef" url="./a.pdf" @error="handleError">
    <template #error> 发生错误 </template>
    <template #refresh-btn><button @click="update">刷新</button></template>
  </PDFRender>
</template>
  1. ExcelRender
<script setup lang="ts">
import { ExcelRender } from "@zdzz/components";
import type { ExcelRenderInstance } from "@zdzz/components";
import "@zdzz/components/es/ExcelRender/style.css";

const excelfRef = ref<ExcelRenderInstance | null>(null);

function handleError() {}

function update() {
  excelfRef.value?.update();
}
</script>

<template>
  <ExcelRender ref="excelfRef" url="./a.xls" @error="handleError">
    <template #error> 发生错误 </template>
    <template #refresh-btn> <button @click="update">刷新</button></template>
  </ExcelRender>
</template>
0.0.27

12 months ago

0.0.26

1 year ago

0.0.25

1 year ago

0.0.24

1 year ago

0.0.23

1 year ago

0.0.22

1 year ago

0.0.21

1 year ago

0.0.20

1 year ago

0.0.19

1 year ago

0.0.18

1 year ago

0.0.17

1 year ago

0.0.16

1 year ago

0.0.15

1 year ago

0.0.14

1 year ago

0.0.13

1 year ago

0.0.12

1 year ago

0.0.11

1 year ago

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

1.0.0

1 year ago

0.0.1

1 year ago