feat: 将主题令牌接入 DOCX 动态模板
This commit is contained in:
@@ -38,6 +38,7 @@ async function closeContext(context: BrowserContext) {
|
||||
export class PlaywrightDocxMediaEngine
|
||||
implements ServerDocxMediaCaptureAdapter
|
||||
{
|
||||
readonly themeStyleBaseUrl: string;
|
||||
private readonly renderOrigin: string;
|
||||
private readonly renderUrl: string;
|
||||
private readonly launchBrowser: () => Promise<Browser>;
|
||||
@@ -54,6 +55,7 @@ export class PlaywrightDocxMediaEngine
|
||||
"/preview-frame.html?target=continuous",
|
||||
this.renderOrigin
|
||||
).href;
|
||||
this.themeStyleBaseUrl = this.renderUrl;
|
||||
this.launchBrowser =
|
||||
options.launchBrowser ??
|
||||
(() =>
|
||||
|
||||
Reference in New Issue
Block a user