1.2.0 • Published 3 months ago

@travel_wsy/export_word v1.2.0

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

export-word

介绍

根据后端返回数据,导出固定格式的word表格

引用

# yarn 安装
yarn add @travel_wsy/export_word

# npm 安装
npm install @travel_wsy/export_word -S

使用方法

1、 根据需求创建模板,在模板中使用需要导出数据对应的字段,如果存在数组,则在表格中使用{#数组字段名称}开始,使用{/数组字段名称}结束,例如:

Alt text

2、 数据结构如下:

Alt text

3、 引入方法,以及上传数据类型

import {exprot_doxc} from '@travel_wsy/export_word'

Alt text

注: 数据导出会保留work文档所有样式

1.2.0

3 months ago

1.1.1

3 months ago

1.1.0

3 months ago

1.0.6

5 months ago

1.0.5

5 months ago

1.0.4

5 months ago

1.0.3

5 months ago

1.0.2

5 months ago

1.0.1

5 months ago

1.0.0

5 months ago