mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:39:05 +08:00
feat: pdfjs worker 增加默认值配置
This commit is contained in:
parent
900cb29c07
commit
dcac3de529
@ -249,6 +249,7 @@ export function embed(
|
|||||||
richTextToken: '',
|
richTextToken: '',
|
||||||
affixOffsetBottom: 0,
|
affixOffsetBottom: 0,
|
||||||
customStyleClassPrefix: '.amis-scope',
|
customStyleClassPrefix: '.amis-scope',
|
||||||
|
pdfjsWorkerSrc: '/sdk/thirds/pdfjs-dist/build/pdf.worker.min.mjs',
|
||||||
...env
|
...env
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -147,7 +147,7 @@ fis.match('/node_modules/**.{js,cjs}', {
|
|||||||
rExt: 'js'
|
rExt: 'js'
|
||||||
});
|
});
|
||||||
|
|
||||||
fis.match('pdfjs-dist/**.mjs', {
|
fis.match('pdfjs-dist/**/pdf.mjs', {
|
||||||
isMod: true,
|
isMod: true,
|
||||||
rExt: 'js',
|
rExt: 'js',
|
||||||
parser: fis.plugin('typescript', {
|
parser: fis.plugin('typescript', {
|
||||||
|
@ -25,6 +25,9 @@ rm -rf sdk && ../../node_modules/.bin/fis3 release publish-sdk -c -f ../../fis-c
|
|||||||
|
|
||||||
cp -r ../../node_modules/monaco-editor/min/vs/base/browser sdk/thirds/monaco-editor/min/vs/base
|
cp -r ../../node_modules/monaco-editor/min/vs/base/browser sdk/thirds/monaco-editor/min/vs/base
|
||||||
|
|
||||||
|
#pdfjs worker js
|
||||||
|
cp -r ../../node_modules/pdfjs-dist/build/pdf.worker.min.mjs sdk/thirds/pdfjs-dist/build/pdf.worker.min.mjs
|
||||||
|
|
||||||
echo "===postcss ie11==="
|
echo "===postcss ie11==="
|
||||||
# 生成去掉变量的 css,动画设置为零
|
# 生成去掉变量的 css,动画设置为零
|
||||||
echo ':root { --animation-duration: 0s;}' >>sdk/ie11-patch.css
|
echo ':root { --animation-duration: 0s;}' >>sdk/ie11-patch.css
|
||||||
|
Loading…
Reference in New Issue
Block a user