@gct-paas/word 0.1.62-patch.2 → 0.1.62-patch.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/base/utils/image-size-util.d.ts +6 -4
- package/dist/core/view/Doc.d.ts +13 -0
- package/dist/domain/constants/enum.d.ts +7 -0
- package/dist/index.es.js +858 -656
- package/dist/sdk/doc-runtime/factories/useDocumentFactory.d.ts +4 -0
- package/dist/suites/edhr/manifest/field/_common_/basic.d.ts +1 -0
- package/dist/utils/fonts/normalize-document-font.d.ts +16 -0
- package/dist/word.css +38 -17
- package/package.json +1 -1
|
@@ -17,6 +17,10 @@ interface IDeviceConfig {
|
|
|
17
17
|
defaultUserId: string | undefined;
|
|
18
18
|
/** 默认的部门id */
|
|
19
19
|
defaultOrgId: string | undefined;
|
|
20
|
+
/** 默认的登录账号 */
|
|
21
|
+
defaultLoginAccount?: string;
|
|
22
|
+
/** 默认的用户姓名(预览/兜底签名展示用) */
|
|
23
|
+
defaultUserName?: string;
|
|
20
24
|
/** 默认的物料查询条件 */
|
|
21
25
|
defaultProductSearchFields: string;
|
|
22
26
|
/** 是否启用人员字段 false: 不使用 true: 使用;先留着扩展,后续如果需要在字段列表过滤才使用 */
|
|
@@ -44,6 +44,7 @@ export declare const signFieldDefaultProps: {
|
|
|
44
44
|
readonly signTimeType: string;
|
|
45
45
|
readonly signDisplayStyle: string;
|
|
46
46
|
readonly populateFields: readonly [];
|
|
47
|
+
readonly fallbackSignType: string;
|
|
47
48
|
};
|
|
48
49
|
export declare const fileFieldDefaultProps: {
|
|
49
50
|
readonly imageDisplayMode: string;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export type DocRFonts = {
|
|
2
|
+
ascii?: string;
|
|
3
|
+
hAnsi?: string;
|
|
4
|
+
eastAsia?: string;
|
|
5
|
+
cs?: string;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* 从 OOXML rFonts 取展示用字体名。
|
|
9
|
+
* 中文 Word 常把字体写在 eastAsia,优先于 ascii。
|
|
10
|
+
*/
|
|
11
|
+
export declare function pickDocumentFontName(rFonts?: DocRFonts | null): string | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* 将任意字体名归一到产品支持的黑 / 宋 / 楷。
|
|
14
|
+
* 无法识别(如 Arial、微软雅黑)时回落默认字体。
|
|
15
|
+
*/
|
|
16
|
+
export declare function normalizeSupportedFontFamily(fontFamily?: string): string;
|
package/dist/word.css
CHANGED
|
@@ -8511,42 +8511,42 @@ textarea[data-v-e709484b]::placeholder {
|
|
|
8511
8511
|
width: 100%;
|
|
8512
8512
|
height: 100%;
|
|
8513
8513
|
}
|
|
8514
|
-
.signature-form[data-v-
|
|
8514
|
+
.signature-form[data-v-36be8117] {
|
|
8515
8515
|
position: relative;
|
|
8516
8516
|
width: 100%;
|
|
8517
8517
|
}
|
|
8518
|
-
.signature-form .form-row[data-v-
|
|
8518
|
+
.signature-form .form-row[data-v-36be8117] {
|
|
8519
8519
|
display: flex;
|
|
8520
8520
|
align-items: center;
|
|
8521
8521
|
margin-bottom: 24px;
|
|
8522
8522
|
gap: 16px;
|
|
8523
8523
|
padding-right: 24px;
|
|
8524
8524
|
}
|
|
8525
|
-
.signature-form .form-footer[data-v-
|
|
8525
|
+
.signature-form .form-footer[data-v-36be8117] {
|
|
8526
8526
|
display: flex;
|
|
8527
8527
|
justify-content: flex-end;
|
|
8528
8528
|
gap: 24px;
|
|
8529
8529
|
font-size: 14px;
|
|
8530
8530
|
padding-right: 24px;
|
|
8531
8531
|
}
|
|
8532
|
-
.signature-form .form-footer .form-button[data-v-
|
|
8532
|
+
.signature-form .form-footer .form-button[data-v-36be8117] {
|
|
8533
8533
|
color: #0b57d0;
|
|
8534
8534
|
cursor: pointer;
|
|
8535
8535
|
}
|
|
8536
|
-
.signature-form .label[data-v-
|
|
8536
|
+
.signature-form .label[data-v-36be8117] {
|
|
8537
8537
|
width: 100px;
|
|
8538
8538
|
text-align: right;
|
|
8539
8539
|
line-height: 32px;
|
|
8540
8540
|
color: rgba(0, 0, 0, 0.85);
|
|
8541
8541
|
font-size: 13px;
|
|
8542
8542
|
}
|
|
8543
|
-
.signature-form .label[data-v-
|
|
8543
|
+
.signature-form .label[data-v-36be8117]:after {
|
|
8544
8544
|
content: ':';
|
|
8545
8545
|
margin: 0 2px 0 2px;
|
|
8546
8546
|
position: relative;
|
|
8547
8547
|
top: -0.5px;
|
|
8548
8548
|
}
|
|
8549
|
-
.signature-form .label.required[data-v-
|
|
8549
|
+
.signature-form .label.required[data-v-36be8117]::before {
|
|
8550
8550
|
color: #ff4d4f;
|
|
8551
8551
|
content: '*';
|
|
8552
8552
|
display: inline-block;
|
|
@@ -8555,25 +8555,25 @@ textarea[data-v-e709484b]::placeholder {
|
|
|
8555
8555
|
line-height: 1;
|
|
8556
8556
|
margin-right: 4px;
|
|
8557
8557
|
}
|
|
8558
|
-
.signature-form .control[data-v-
|
|
8558
|
+
.signature-form .control[data-v-36be8117] {
|
|
8559
8559
|
flex: 1;
|
|
8560
8560
|
display: flex;
|
|
8561
8561
|
align-items: center;
|
|
8562
8562
|
position: relative;
|
|
8563
8563
|
}
|
|
8564
|
-
.signature-form .error[data-v-
|
|
8564
|
+
.signature-form .error[data-v-36be8117] {
|
|
8565
8565
|
color: #ff4d4f;
|
|
8566
8566
|
font-size: 12px;
|
|
8567
8567
|
position: absolute;
|
|
8568
8568
|
bottom: -22px;
|
|
8569
8569
|
line-height: 20px;
|
|
8570
8570
|
}
|
|
8571
|
-
.signature-form .scrollbar[data-v-
|
|
8571
|
+
.signature-form .scrollbar[data-v-36be8117] {
|
|
8572
8572
|
position: relative;
|
|
8573
8573
|
margin-top: 8px;
|
|
8574
8574
|
padding-right: 24px;
|
|
8575
8575
|
}
|
|
8576
|
-
.signature-form .img-box[data-v-
|
|
8576
|
+
.signature-form .img-box[data-v-36be8117] {
|
|
8577
8577
|
display: flex;
|
|
8578
8578
|
gap: 12px;
|
|
8579
8579
|
flex-wrap: wrap;
|
|
@@ -8581,12 +8581,12 @@ textarea[data-v-e709484b]::placeholder {
|
|
|
8581
8581
|
padding-top: 8px;
|
|
8582
8582
|
padding-bottom: 8px;
|
|
8583
8583
|
}
|
|
8584
|
-
.signature-form .img-item[data-v-
|
|
8584
|
+
.signature-form .img-item[data-v-36be8117] {
|
|
8585
8585
|
width: 80px;
|
|
8586
8586
|
height: 80px;
|
|
8587
8587
|
position: relative;
|
|
8588
8588
|
}
|
|
8589
|
-
.signature-form .img[data-v-
|
|
8589
|
+
.signature-form .img[data-v-36be8117] {
|
|
8590
8590
|
display: block;
|
|
8591
8591
|
width: 100%;
|
|
8592
8592
|
height: 100%;
|
|
@@ -8595,7 +8595,7 @@ textarea[data-v-e709484b]::placeholder {
|
|
|
8595
8595
|
cursor: pointer;
|
|
8596
8596
|
background-color: #f7f8fa;
|
|
8597
8597
|
}
|
|
8598
|
-
.signature-form .delete[data-v-
|
|
8598
|
+
.signature-form .delete[data-v-36be8117] {
|
|
8599
8599
|
position: absolute;
|
|
8600
8600
|
top: -6px;
|
|
8601
8601
|
right: -6px;
|
|
@@ -8608,7 +8608,7 @@ textarea[data-v-e709484b]::placeholder {
|
|
|
8608
8608
|
justify-content: center;
|
|
8609
8609
|
cursor: pointer;
|
|
8610
8610
|
}
|
|
8611
|
-
.signature-form .preview-mask[data-v-
|
|
8611
|
+
.signature-form .preview-mask[data-v-36be8117] {
|
|
8612
8612
|
position: fixed;
|
|
8613
8613
|
inset: 0;
|
|
8614
8614
|
background: rgba(0, 0, 0, 0.4);
|
|
@@ -8617,7 +8617,7 @@ textarea[data-v-e709484b]::placeholder {
|
|
|
8617
8617
|
justify-content: center;
|
|
8618
8618
|
z-index: 9999;
|
|
8619
8619
|
}
|
|
8620
|
-
.signature-form .preview-mask img[data-v-
|
|
8620
|
+
.signature-form .preview-mask img[data-v-36be8117] {
|
|
8621
8621
|
max-width: 80%;
|
|
8622
8622
|
max-height: 80%;
|
|
8623
8623
|
}
|
|
@@ -12315,9 +12315,30 @@ svg.portrait-icon[data-v-8bdb451e] {
|
|
|
12315
12315
|
height: 65px;
|
|
12316
12316
|
box-sizing: border-box;
|
|
12317
12317
|
}
|
|
12318
|
-
.panel-field-sign-config[data-v-
|
|
12318
|
+
.panel-field-sign-config[data-v-63b151a2] {
|
|
12319
12319
|
padding: 16px;
|
|
12320
12320
|
}
|
|
12321
|
+
.form-custom-label[data-v-63b151a2] {
|
|
12322
|
+
display: inline-flex;
|
|
12323
|
+
align-items: center;
|
|
12324
|
+
gap: 4px;
|
|
12325
|
+
}
|
|
12326
|
+
.form-custom-label .icon[data-v-63b151a2] {
|
|
12327
|
+
color: #a6a6a6;
|
|
12328
|
+
cursor: pointer;
|
|
12329
|
+
vertical-align: text-top;
|
|
12330
|
+
}
|
|
12331
|
+
.option-label[data-v-63b151a2] {
|
|
12332
|
+
display: inline-block;
|
|
12333
|
+
width: 100%;
|
|
12334
|
+
line-height: 24px;
|
|
12335
|
+
}
|
|
12336
|
+
.fallback-sign-preview[data-v-63b151a2] {
|
|
12337
|
+
display: block;
|
|
12338
|
+
width: 180px;
|
|
12339
|
+
height: auto;
|
|
12340
|
+
background: #fff;
|
|
12341
|
+
}
|
|
12321
12342
|
.panel-field-sign-style[data-v-a883d56b] {
|
|
12322
12343
|
padding: 16px;
|
|
12323
12344
|
}
|