mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 12:08:13 +08:00
ef9ada9783
* 支持嵌套 sdt * 初步支持 footnote 和 endnote * 修复默认展示问题 * 初步支持 footnote 和 endnote * 换包名
17 lines
399 B
TypeScript
17 lines
399 B
TypeScript
/**
|
||
* 构建一个空 word,主要是很多传参依赖
|
||
*/
|
||
|
||
import Word from '../src/Word';
|
||
import fs from 'fs';
|
||
import path from 'path';
|
||
import XMLPackageParser from '../src/package/XMLPackageParser';
|
||
|
||
export function createWord() {
|
||
const xmlContent = fs.readFileSync(
|
||
path.join(__dirname, './docx/empty.xml'),
|
||
'utf-8'
|
||
);
|
||
return new Word(xmlContent, {}, new XMLPackageParser());
|
||
}
|