@gct-paas/word 0.1.2 → 0.1.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/index.es.js +1379 -1052
- package/dist/word.css +16 -16
- package/package.json +3 -3
- package/dist/base/utils/asset-helper-util.d.ts +0 -19
- package/dist/index.d.ts +0 -3
- package/dist/runtime/designer/doc-design-layout.vue.d.ts +0 -2
- package/dist/runtime/designer/main/preview-container.vue.d.ts +0 -2
- package/dist/runtime/designer/main/view-layer/__common__/widget-component.vue.d.ts +0 -2
- package/dist/runtime/designer/main/view-layer/builtin/paper/paper-group.vue.d.ts +0 -2
- package/dist/runtime/designer/main/view-layer/builtin/paper/themes.d.ts +0 -37
- package/dist/runtime/designer/main/view-layer/render-entry.vue.d.ts +0 -2
- package/dist/runtime/designer/panel/panel.vue.d.ts +0 -2
- package/dist/runtime/designer/ribbon/common/button-icon.vue.d.ts +0 -2
- package/dist/runtime/designer/ribbon/components/bullet-point-select.vue.d.ts +0 -2
- package/dist/runtime/designer/ribbon/components/insert-table-form-modal.vue.d.ts +0 -2
- package/dist/runtime/designer/ribbon/components/marker-color-select.vue.d.ts +0 -2
- package/dist/runtime/designer/ribbon/components/multistage-no-select.vue.d.ts +0 -2
- package/dist/runtime/designer/ribbon/components/sub-table-form-modal.vue.d.ts +0 -2
- package/dist/runtime/designer/ribbon/components/text-color-select.vue.d.ts +0 -2
- package/dist/runtime/designer/ribbon/constant/color.d.ts +0 -62
- package/dist/runtime/designer/ribbon/constant/font.d.ts +0 -31
- package/dist/runtime/designer/ribbon/constant/word.d.ts +0 -26
- package/dist/runtime/designer/ribbon/ribbon.vue.d.ts +0 -2
- package/dist/runtime/designer/ribbon/svg/bj-marker-svg.vue.d.ts +0 -2
- package/dist/runtime/designer/ribbon/svg/color-wheel-svg.vue.d.ts +0 -2
- package/dist/runtime/designer/ribbon/svg/font-color-svg.vue.d.ts +0 -2
- package/dist/runtime/designer/ribbon/tabs/home-tab.vue.d.ts +0 -2
- package/dist/runtime/designer/ribbon/tabs/insert-tab.vue.d.ts +0 -2
- package/dist/runtime/designer/ribbon/tabs/layout-tab.vue.d.ts +0 -2
- package/dist/runtime/designer/ribbon/tabs/structured-tab.vue.d.ts +0 -2
- package/dist/runtime/designer/ribbon/tabs/table-tab.vue.d.ts +0 -2
- package/dist/runtime/designer/toolkit/renderer/toolkit-content-fields.vue.d.ts +0 -2
- package/dist/runtime/designer/toolkit/renderer/toolkit-content-widgets.vue.d.ts +0 -2
- package/dist/runtime/designer/toolkit/toolkit-item.vue.d.ts +0 -19
- package/dist/runtime/designer/toolkit/toolkit.vue.d.ts +0 -2
- package/dist/setup.d.ts +0 -5
package/dist/word.css
CHANGED
|
@@ -3455,34 +3455,34 @@ svg.portrait-icon[data-v-8bdb451e] {
|
|
|
3455
3455
|
.panel-data-group .line-content .delete-title[data-v-6c08ebe9]:hover {
|
|
3456
3456
|
opacity: 0.7;
|
|
3457
3457
|
}
|
|
3458
|
-
.field-dependency-form .form-row[data-v-
|
|
3458
|
+
.field-dependency-form .form-row[data-v-f7304cea] {
|
|
3459
3459
|
display: flex;
|
|
3460
3460
|
align-items: center;
|
|
3461
3461
|
margin-bottom: 16px;
|
|
3462
3462
|
gap: 12px;
|
|
3463
3463
|
padding-right: 24px;
|
|
3464
3464
|
}
|
|
3465
|
-
.field-dependency-form .form-row.current-component[data-v-
|
|
3465
|
+
.field-dependency-form .form-row.current-component[data-v-f7304cea] {
|
|
3466
3466
|
align-items: flex-start;
|
|
3467
3467
|
}
|
|
3468
|
-
.field-dependency-form .form-row.current-component .control[data-v-
|
|
3468
|
+
.field-dependency-form .form-row.current-component .control[data-v-f7304cea] {
|
|
3469
3469
|
flex-direction: column;
|
|
3470
3470
|
align-items: flex-start;
|
|
3471
3471
|
}
|
|
3472
|
-
.field-dependency-form .label[data-v-
|
|
3472
|
+
.field-dependency-form .label[data-v-f7304cea] {
|
|
3473
3473
|
width: 100px;
|
|
3474
3474
|
text-align: right;
|
|
3475
3475
|
line-height: 32px;
|
|
3476
3476
|
color: rgba(0, 0, 0, 0.85);
|
|
3477
3477
|
font-size: 13px;
|
|
3478
3478
|
}
|
|
3479
|
-
.field-dependency-form .label[data-v-
|
|
3479
|
+
.field-dependency-form .label[data-v-f7304cea]:after {
|
|
3480
3480
|
content: ':';
|
|
3481
3481
|
margin: 0 2px 0 2px;
|
|
3482
3482
|
position: relative;
|
|
3483
3483
|
top: -0.5px;
|
|
3484
3484
|
}
|
|
3485
|
-
.field-dependency-form .label.required[data-v-
|
|
3485
|
+
.field-dependency-form .label.required[data-v-f7304cea]::before {
|
|
3486
3486
|
color: #ff4d4f;
|
|
3487
3487
|
content: '*';
|
|
3488
3488
|
display: inline-block;
|
|
@@ -3491,46 +3491,46 @@ svg.portrait-icon[data-v-8bdb451e] {
|
|
|
3491
3491
|
line-height: 1;
|
|
3492
3492
|
margin-right: 4px;
|
|
3493
3493
|
}
|
|
3494
|
-
.field-dependency-form .control[data-v-
|
|
3494
|
+
.field-dependency-form .control[data-v-f7304cea] {
|
|
3495
3495
|
flex: 1;
|
|
3496
3496
|
display: flex;
|
|
3497
3497
|
align-items: center;
|
|
3498
3498
|
position: relative;
|
|
3499
3499
|
}
|
|
3500
|
-
.field-dependency-form .field-icon[data-v-
|
|
3500
|
+
.field-dependency-form .field-icon[data-v-f7304cea] {
|
|
3501
3501
|
display: flex;
|
|
3502
3502
|
align-items: center;
|
|
3503
3503
|
color: rgba(0, 0, 0, 0.85);
|
|
3504
3504
|
font-size: 13px;
|
|
3505
3505
|
line-height: 32px;
|
|
3506
3506
|
}
|
|
3507
|
-
.field-dependency-form .field-icon .icon[data-v-
|
|
3507
|
+
.field-dependency-form .field-icon .icon[data-v-f7304cea] {
|
|
3508
3508
|
margin-right: 8px;
|
|
3509
3509
|
}
|
|
3510
|
-
.field-dependency-form .message[data-v-
|
|
3510
|
+
.field-dependency-form .message[data-v-f7304cea] {
|
|
3511
3511
|
font-size: 12px;
|
|
3512
3512
|
color: #c3c3c3;
|
|
3513
3513
|
margin-top: 4px;
|
|
3514
3514
|
}
|
|
3515
|
-
.field-dependency-form .error[data-v-
|
|
3515
|
+
.field-dependency-form .error[data-v-f7304cea] {
|
|
3516
3516
|
color: #ff4d4f;
|
|
3517
3517
|
font-size: 12px;
|
|
3518
3518
|
line-height: 20px;
|
|
3519
3519
|
margin-top: 4px;
|
|
3520
3520
|
}
|
|
3521
|
-
.field-dependency-form[data-v-
|
|
3521
|
+
.field-dependency-form[data-v-f7304cea] .field-dependency-breadcrumb-link.gct-breadcrumb {
|
|
3522
3522
|
font-size: 13px;
|
|
3523
3523
|
}
|
|
3524
|
-
.field-dependency-form[data-v-
|
|
3524
|
+
.field-dependency-form[data-v-f7304cea] .field-dependency-breadcrumb-link.gct-breadcrumb .gct-breadcrumb-separator {
|
|
3525
3525
|
margin: 0 2px;
|
|
3526
3526
|
}
|
|
3527
|
-
.field-dependency-form[data-v-
|
|
3527
|
+
.field-dependency-form[data-v-f7304cea] .field-dependency-breadcrumb-link.gct-breadcrumb .gct-breadcrumb-link {
|
|
3528
3528
|
color: rgba(0, 0, 0, 0.45);
|
|
3529
3529
|
}
|
|
3530
|
-
.field-dependency-form[data-v-
|
|
3530
|
+
.field-dependency-form[data-v-f7304cea] .field-dependency-breadcrumb-link.gct-breadcrumb .gct-breadcrumb-item:last-child .gct-breadcrumb-link {
|
|
3531
3531
|
color: rgba(0, 0, 0, 0.85);
|
|
3532
3532
|
}
|
|
3533
|
-
.field-dependency-form[data-v-
|
|
3533
|
+
.field-dependency-form[data-v-f7304cea] .field-dependency-radio.gct-radio-group {
|
|
3534
3534
|
gap: 24px;
|
|
3535
3535
|
color: rgba(0, 0, 0, 0.85);
|
|
3536
3536
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gct-paas/word",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "GCT 在线 word",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vue",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"scripts": {
|
|
32
32
|
"build": "vite build",
|
|
33
33
|
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx --fix",
|
|
34
|
-
"publish": "pnpm build && npm publish --registry=https://registry.npmjs.org/ --access public",
|
|
35
|
-
"publish:
|
|
34
|
+
"publish:beta": "pnpm build && npm publish --registry=https://registry.npmjs.org/ --access public --tag beta",
|
|
35
|
+
"publish:prod": "pnpm build && npm publish --registry=https://registry.npmjs.org/ --access public"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@gct-paas/api": "0.1.0-word.2",
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export declare class AssetHelper {
|
|
2
|
-
static minioBasePath: string;
|
|
3
|
-
private static transfer;
|
|
4
|
-
private static fileUrlMap;
|
|
5
|
-
static init(opts: {
|
|
6
|
-
transfer: (key: string) => string | Promise<string>;
|
|
7
|
-
}): void;
|
|
8
|
-
/** 上传 */
|
|
9
|
-
static upload(file: File): Promise<any>;
|
|
10
|
-
/** 地址转化 */
|
|
11
|
-
static resolveUrl(src?: string | File | null): Promise<string | null>;
|
|
12
|
-
/**
|
|
13
|
-
* 加载图片,返回 HTMLImageElement
|
|
14
|
-
* @param src File | minio key | http url
|
|
15
|
-
*/
|
|
16
|
-
static loadImage(src?: string | File | null): Promise<HTMLImageElement | null>;
|
|
17
|
-
static revoke(file?: File | null): void;
|
|
18
|
-
static clear(): void;
|
|
19
|
-
}
|
package/dist/index.d.ts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/** 纸张页面背景和边框主题 */
|
|
2
|
-
export interface IPaperTheme {
|
|
3
|
-
/** 背景色 */
|
|
4
|
-
background: string;
|
|
5
|
-
/** 边框 */
|
|
6
|
-
border: string;
|
|
7
|
-
/** 阴影 */
|
|
8
|
-
shadow: {
|
|
9
|
-
/** 阴影颜色 */
|
|
10
|
-
color: string;
|
|
11
|
-
/** 模糊半径 */
|
|
12
|
-
blur: number;
|
|
13
|
-
/** x偏移 */
|
|
14
|
-
offsetX: number;
|
|
15
|
-
/** y偏移 */
|
|
16
|
-
offsetY: number;
|
|
17
|
-
/** 颜色透明度 */
|
|
18
|
-
opacity: number;
|
|
19
|
-
};
|
|
20
|
-
/** 圆角 */
|
|
21
|
-
borderRadius?: number;
|
|
22
|
-
}
|
|
23
|
-
export declare const PaperThemes: {
|
|
24
|
-
readonly default: {
|
|
25
|
-
readonly background: "rgb(255, 255, 255)";
|
|
26
|
-
readonly border: "rgba(13, 13, 13, 0.06)";
|
|
27
|
-
readonly shadow: {
|
|
28
|
-
readonly color: "rgb(13, 13, 13)";
|
|
29
|
-
readonly blur: 3;
|
|
30
|
-
readonly offsetX: 0;
|
|
31
|
-
readonly offsetY: 0;
|
|
32
|
-
readonly opacity: 0.06;
|
|
33
|
-
};
|
|
34
|
-
readonly borderRadius: 0;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
export type PaperThemeKey = keyof typeof PaperThemes;
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
export declare const colorUtils: {
|
|
2
|
-
none: {
|
|
3
|
-
color: any;
|
|
4
|
-
title: string;
|
|
5
|
-
};
|
|
6
|
-
auto: {
|
|
7
|
-
color: string;
|
|
8
|
-
title: string;
|
|
9
|
-
};
|
|
10
|
-
theme: {
|
|
11
|
-
bgPrimary: {
|
|
12
|
-
color: string;
|
|
13
|
-
title: string;
|
|
14
|
-
}[];
|
|
15
|
-
textPrimary: {
|
|
16
|
-
color: string;
|
|
17
|
-
title: string;
|
|
18
|
-
}[];
|
|
19
|
-
bgSecondary: {
|
|
20
|
-
color: string;
|
|
21
|
-
title: string;
|
|
22
|
-
}[];
|
|
23
|
-
textAccent: {
|
|
24
|
-
color: string;
|
|
25
|
-
title: string;
|
|
26
|
-
}[];
|
|
27
|
-
/** 主题色 1–6 */
|
|
28
|
-
accent1: {
|
|
29
|
-
color: string;
|
|
30
|
-
title: string;
|
|
31
|
-
}[];
|
|
32
|
-
accent2: {
|
|
33
|
-
color: string;
|
|
34
|
-
title: string;
|
|
35
|
-
}[];
|
|
36
|
-
accent3: {
|
|
37
|
-
color: string;
|
|
38
|
-
title: string;
|
|
39
|
-
}[];
|
|
40
|
-
accent4: {
|
|
41
|
-
color: string;
|
|
42
|
-
title: string;
|
|
43
|
-
}[];
|
|
44
|
-
accent5: {
|
|
45
|
-
color: string;
|
|
46
|
-
title: string;
|
|
47
|
-
}[];
|
|
48
|
-
accent6: {
|
|
49
|
-
color: string;
|
|
50
|
-
title: string;
|
|
51
|
-
}[];
|
|
52
|
-
};
|
|
53
|
-
standard: {
|
|
54
|
-
color: string;
|
|
55
|
-
title: string;
|
|
56
|
-
}[];
|
|
57
|
-
undertint: {
|
|
58
|
-
color: string;
|
|
59
|
-
title: string;
|
|
60
|
-
}[];
|
|
61
|
-
};
|
|
62
|
-
export declare const getThemeColor2d: () => any[];
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/** 字重 */
|
|
2
|
-
export declare enum FontFamilyEnum {
|
|
3
|
-
Serif = "",
|
|
4
|
-
/** 宋体 */
|
|
5
|
-
SimSun = "\"SimSun\", \"\u5B8B\u4F53\", \"\u534E\u6587\u5B8B\u4F53\", STSong, STSongti-SC-Light, sans-serif",
|
|
6
|
-
/** 黑体 */
|
|
7
|
-
SimHei = "\"SimHei\", \"\u9ED1\u4F53\", \"\u534E\u6587\u9ED1\u4F53\", STHeiti, sans-serif",
|
|
8
|
-
/** 楷体 */
|
|
9
|
-
KaiTi = "\"Kai\", \"STKai\", \"\u6977\u4F53\", \"KaiTi\", \"\u534E\u6587\u6977\u4F53\", sans-serif"
|
|
10
|
-
}
|
|
11
|
-
export declare const FontFamilyOptions: {
|
|
12
|
-
label: string;
|
|
13
|
-
value: FontFamilyEnum;
|
|
14
|
-
}[];
|
|
15
|
-
export declare const FontSizeOptions: ({
|
|
16
|
-
label: string;
|
|
17
|
-
value: string;
|
|
18
|
-
} | {
|
|
19
|
-
label: string;
|
|
20
|
-
value: number;
|
|
21
|
-
})[];
|
|
22
|
-
export declare const ParagraphTitleOptions: {
|
|
23
|
-
label: string;
|
|
24
|
-
value: string;
|
|
25
|
-
class: string;
|
|
26
|
-
}[];
|
|
27
|
-
export declare const FontAttrsOptions: {
|
|
28
|
-
label: string;
|
|
29
|
-
value: string;
|
|
30
|
-
icon: string;
|
|
31
|
-
}[];
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/** 项目符号 */
|
|
2
|
-
export declare enum ListBulletsDisplayEnum {
|
|
3
|
-
BulletsNone = "BulletsNone",
|
|
4
|
-
BulletsOne = "BulletsOne",
|
|
5
|
-
BulletsTwo = "BulletsTwo",
|
|
6
|
-
BulletsThree = "BulletsThree",
|
|
7
|
-
BulletsFour = "BulletsFour",
|
|
8
|
-
BulletsFive = "BulletsFive",
|
|
9
|
-
BulletsSix = "BulletsSix",
|
|
10
|
-
BulletsSeven = "BulletsSeven"
|
|
11
|
-
}
|
|
12
|
-
/** 项目编号 */
|
|
13
|
-
export declare enum ListMultistageDisplayEnum {
|
|
14
|
-
MultistageNone = "MultistageNone",
|
|
15
|
-
MultistageOne = "MultistageOne",
|
|
16
|
-
MultistageTwo = "MultistageTwo",
|
|
17
|
-
MultistageThree = "MultistageThree",
|
|
18
|
-
MultistageFour = "MultistageFour",
|
|
19
|
-
MultistageFive = "MultistageFive",
|
|
20
|
-
MultistageSix = "MultistageSix",
|
|
21
|
-
MultistageSeven = "MultistageSeven",
|
|
22
|
-
MultistageEight = "MultistageEight",
|
|
23
|
-
MultistageNine = "MultistageNine",
|
|
24
|
-
MultistageTen = "MultistageTen"
|
|
25
|
-
}
|
|
26
|
-
export declare const getSvgComponents: (modules: any, prefix: string) => any[];
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
declare function __VLS_template(): {
|
|
2
|
-
attrs: Partial<{}>;
|
|
3
|
-
slots: {
|
|
4
|
-
default?(_: {}): any;
|
|
5
|
-
};
|
|
6
|
-
refs: {
|
|
7
|
-
dropdownRef: any;
|
|
8
|
-
};
|
|
9
|
-
rootEl: HTMLDivElement;
|
|
10
|
-
};
|
|
11
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
-
declare const __VLS_component: any;
|
|
13
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
14
|
-
export default _default;
|
|
15
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
16
|
-
new (): {
|
|
17
|
-
$slots: S;
|
|
18
|
-
};
|
|
19
|
-
};
|