vue3-manner-report
组件下载
npm i vue3-manner-report
组件效果预览
全局使用方法
在 vue3 项目中全局引用的方式
//main.ts or main.js
import { createApp } from 'vue';
import App from './App.vue';
import Vue3MannerReport from 'vue3-manner-report';
import 'vue3-manner-report/lib/style.css';
const app = createApp(App);
app.use(Vue3MannerReport);
app.mount('#app');
如果使用 ts+vite 的方式,需要在 env.d.ts 中加入最后一句声明,否则 ts 会检测报错。
/// <reference types="vite/client" />
declare module '*.vue' {
import type { DefineComponent } from 'vue';
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
const component: DefineComponent<{}, {}, any>;
export default component;
}
declare module 'vue3-manner-report';
组件内使用
<script setup></script>
<template>
<ml-report dbWidth="300" @onSave="onSave" :reportName="reportName" :dbList="menuList" :sheets="sheets" />
</template>
<style></style>
参数说明
| 方法 | 类型 | 描述 |
|---|---|---|
| reportName | String | 报表标题 |
| dbList | Array | 实体数据列表 |
| sheets | Array | 报表数据 |
| dbWidth | Number | 实体数据列表的宽度(单位 px) |
方法说明
| 方法 | 类型 | 描述 |
|---|---|---|
| onSave | Function(reportName,reportJson) | 报表标题和报表数据 |
Related Packages
@focusring/wcagify-reporter
WCAGify's report schemas, scoring and render-only Nuxt layer, for apps that show...
175
1
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 0.1.26 | ^3.2.25 | ||
| 0.1.25 | ^3.2.25 | ||
| 0.1.24 | ^3.2.25 | ||
| 0.1.23 | ^3.2.25 | ||
| 0.1.22 | ^3.2.25 | ||
| 0.1.21 | ^3.2.25 | ||
| 0.1.20 | ^3.2.25 | ||
| 0.1.19 | ^3.2.25 | ||
| 0.1.18 | ^3.2.25 | ||
| 0.1.17 | ^3.2.25 | ||
| 0.1.16 | ^3.2.25 | ||
| 0.1.15 | ^3.2.25 | ||
| 0.1.14 | ^3.2.25 | ||
| 0.1.13 | ^3.2.25 | ||
| 0.1.12 | ^3.2.25 | ||
| 0.1.11 | ^3.2.25 | ||
| 0.1.10 | ^3.2.25 | ||
| 0.1.9 | ^3.2.25 | ||
| 0.1.8 | ^3.2.25 | ||
| 0.1.7 | ^3.2.25 | ||
| 0.1.6 | ^3.2.25 | ||
| 0.1.5 | ^3.2.25 | ||
| 0.1.4 | ^3.2.25 | ||
| 0.1.3 | ^3.2.25 | ||
| 0.1.2 | ^3.2.25 | ||
| 0.1.1 | ^3.2.25 | ||
| 0.1.0 | ^3.2.25 | ||
| 0.0.9 | ^3.2.25 | ||
| 0.0.8 | ^3.2.25 |