@gct-paas/word 0.1.28 → 0.1.30
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/input/src/input-number.vue.d.ts +1 -1
- package/dist/base/input/src/input.vue.d.ts +6 -6
- package/dist/base/input/src/text-area.vue.d.ts +4 -4
- package/dist/base/segment-slider/src/segment-slider.vue.d.ts +2 -0
- package/dist/core/command/commands/InsertField.d.ts +1 -3
- package/dist/core/cursor/render/cursor-renderer.vue.d.ts +2 -2
- package/dist/core/layout/providers/TableInfoProvider.d.ts +3 -1
- package/dist/core/utils/adaptive-image-cell.d.ts +47 -0
- package/dist/core/view/TableCell.d.ts +3 -2
- package/dist/core/view/runs/ImageRun.d.ts +2 -0
- package/dist/index.es.js +4269 -3699
- package/dist/runtime/canvas/table/utils/index.d.ts +1 -1
- package/dist/runtime/renderer/dropdowns/components/tables/rdo-table-dropdown.vue.d.ts +14 -14
- package/dist/runtime/renderer/dropdowns/components/tables/table-dropdown.vue.d.ts +14 -14
- package/dist/sdk/doc-runtime/composables/useDocLooperAutoSaveNotify.d.ts +24 -0
- package/dist/sdk/doc-runtime/factories/runtime-json-builder.d.ts +2 -1
- package/dist/sdk/doc-runtime/factories/useDocumentFactory.d.ts +12 -2
- package/dist/sdk/types/index.d.ts +13 -2
- package/dist/suites/edhr/panel-schema/data-load/common/form-field-select.vue.d.ts +1 -1
- package/dist/suites/edhr/paper-widget-manifest/_common_/basic.d.ts +10 -0
- package/dist/word.css +76 -59
- package/package.json +1 -1
|
@@ -84,7 +84,7 @@ export declare function mapCellsToOutlineCells(cells: any[]): {
|
|
|
84
84
|
}[];
|
|
85
85
|
export declare function groupBy<T>(list: T[], getKey: (item: T) => string): Record<string, T[]>;
|
|
86
86
|
export declare function buildPosMap<T>(layers: Record<string, T>, getRect: (layer: T) => any | null, toDom: (rect: any) => any): Record<string, any>;
|
|
87
|
-
export declare function getDataIndexLayersMap({ type, cells, isEdit, convertExtraProps }: {
|
|
87
|
+
export declare function getDataIndexLayersMap({ type, cells, isEdit, convertExtraProps, }: {
|
|
88
88
|
type: 'fixed-table' | 'check-table' | 'dynamic-table' | '2d-table';
|
|
89
89
|
cells: any[];
|
|
90
90
|
isEdit: boolean;
|
|
@@ -55,8 +55,8 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
55
55
|
readonly onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
56
56
|
readonly onKeypress?: ((event: KeyboardEvent) => any) | undefined;
|
|
57
57
|
readonly onKeyup?: ((event: KeyboardEvent) => any) | undefined;
|
|
58
|
-
readonly onClear?: (() => any) | undefined;
|
|
59
58
|
readonly "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
59
|
+
readonly onClear?: (() => any) | undefined;
|
|
60
60
|
readonly onPressEnter?: ((event: KeyboardEvent) => any) | undefined;
|
|
61
61
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
62
62
|
$attrs: {
|
|
@@ -73,7 +73,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
73
73
|
$root: import('vue').ComponentPublicInstance | null;
|
|
74
74
|
$parent: import('vue').ComponentPublicInstance | null;
|
|
75
75
|
$host: Element | null;
|
|
76
|
-
$emit: ((event: "input", value: string | number, event: Event) => void) & ((event: "search", value: string | number) => void) & ((event: "blur", event: FocusEvent) => void) & ((event: "change", value: string | number, event: Event) => void) & ((event: "focus", event: FocusEvent) => void) & ((event: "keydown", event: KeyboardEvent) => void) & ((event: "keypress", event: KeyboardEvent) => void) & ((event: "keyup", event: KeyboardEvent) => void) & ((event: "
|
|
76
|
+
$emit: ((event: "input", value: string | number, event: Event) => void) & ((event: "search", value: string | number) => void) & ((event: "blur", event: FocusEvent) => void) & ((event: "change", value: string | number, event: Event) => void) & ((event: "focus", event: FocusEvent) => void) & ((event: "keydown", event: KeyboardEvent) => void) & ((event: "keypress", event: KeyboardEvent) => void) & ((event: "keyup", event: KeyboardEvent) => void) & ((event: "update:modelValue", value: string | number) => void) & ((event: "clear") => void) & ((event: "pressEnter", event: KeyboardEvent) => void);
|
|
77
77
|
$el: HTMLDivElement;
|
|
78
78
|
$options: import('vue').ComponentOptionsBase<Readonly<import('../../../../../base/input/src/types').GctInputProps> & Readonly<{
|
|
79
79
|
onInput?: ((value: string | number, event: Event) => any) | undefined;
|
|
@@ -84,14 +84,14 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
84
84
|
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
85
85
|
onKeypress?: ((event: KeyboardEvent) => any) | undefined;
|
|
86
86
|
onKeyup?: ((event: KeyboardEvent) => any) | undefined;
|
|
87
|
-
onClear?: (() => any) | undefined;
|
|
88
87
|
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
88
|
+
onClear?: (() => any) | undefined;
|
|
89
89
|
onPressEnter?: ((event: KeyboardEvent) => any) | undefined;
|
|
90
90
|
}>, {
|
|
91
91
|
focus: () => void;
|
|
92
92
|
blur: () => void;
|
|
93
93
|
select: () => void;
|
|
94
|
-
inputRef: import('vue').Ref<
|
|
94
|
+
inputRef: import('vue').Ref<HTMLInputElement | HTMLTextAreaElement | null, HTMLInputElement | HTMLTextAreaElement | null>;
|
|
95
95
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
96
96
|
input: (value: string | number, event: Event) => any;
|
|
97
97
|
search: (value: string | number) => any;
|
|
@@ -101,8 +101,8 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
101
101
|
keydown: (event: KeyboardEvent) => any;
|
|
102
102
|
keypress: (event: KeyboardEvent) => any;
|
|
103
103
|
keyup: (event: KeyboardEvent) => any;
|
|
104
|
-
clear: () => any;
|
|
105
104
|
"update:modelValue": (value: string | number) => any;
|
|
105
|
+
clear: () => any;
|
|
106
106
|
pressEnter: (event: KeyboardEvent) => any;
|
|
107
107
|
}, string, {
|
|
108
108
|
name: string;
|
|
@@ -113,10 +113,8 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
113
113
|
disabled: boolean;
|
|
114
114
|
size: import('../../../../../base/input/src/types').InputSize;
|
|
115
115
|
placeholder: string;
|
|
116
|
-
autocomplete: string;
|
|
117
|
-
spellcheck: boolean;
|
|
118
|
-
prefix: string;
|
|
119
116
|
modelValue: string | number;
|
|
117
|
+
prefix: string;
|
|
120
118
|
suffix: string;
|
|
121
119
|
addonBefore: string;
|
|
122
120
|
addonAfter: string;
|
|
@@ -125,8 +123,10 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
125
123
|
showPasswordToggle: boolean;
|
|
126
124
|
maxLength: number;
|
|
127
125
|
autofocus: boolean;
|
|
126
|
+
autocomplete: string;
|
|
128
127
|
bordered: boolean;
|
|
129
128
|
showSearchButton: boolean;
|
|
129
|
+
spellcheck: boolean;
|
|
130
130
|
customStyle: Record<string, string | number>;
|
|
131
131
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
132
132
|
beforeCreate?: (() => void) | (() => void)[];
|
|
@@ -157,10 +157,8 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
157
157
|
disabled: boolean;
|
|
158
158
|
size: import('../../../../../base/input/src/types').InputSize;
|
|
159
159
|
placeholder: string;
|
|
160
|
-
autocomplete: string;
|
|
161
|
-
spellcheck: boolean;
|
|
162
|
-
prefix: string;
|
|
163
160
|
modelValue: string | number;
|
|
161
|
+
prefix: string;
|
|
164
162
|
suffix: string;
|
|
165
163
|
addonBefore: string;
|
|
166
164
|
addonAfter: string;
|
|
@@ -169,8 +167,10 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
169
167
|
showPasswordToggle: boolean;
|
|
170
168
|
maxLength: number;
|
|
171
169
|
autofocus: boolean;
|
|
170
|
+
autocomplete: string;
|
|
172
171
|
bordered: boolean;
|
|
173
172
|
showSearchButton: boolean;
|
|
173
|
+
spellcheck: boolean;
|
|
174
174
|
customStyle: Record<string, string | number>;
|
|
175
175
|
}> & Omit<Readonly<import('../../../../../base/input/src/types').GctInputProps> & Readonly<{
|
|
176
176
|
onInput?: ((value: string | number, event: Event) => any) | undefined;
|
|
@@ -181,14 +181,14 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
181
181
|
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
182
182
|
onKeypress?: ((event: KeyboardEvent) => any) | undefined;
|
|
183
183
|
onKeyup?: ((event: KeyboardEvent) => any) | undefined;
|
|
184
|
-
onClear?: (() => any) | undefined;
|
|
185
184
|
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
185
|
+
onClear?: (() => any) | undefined;
|
|
186
186
|
onPressEnter?: ((event: KeyboardEvent) => any) | undefined;
|
|
187
|
-
}>, "select" | "blur" | "focus" | "inputRef" | ("name" | "type" | "id" | "rows" | "readonly" | "disabled" | "size" | "placeholder" | "
|
|
187
|
+
}>, "select" | "blur" | "focus" | "inputRef" | ("name" | "type" | "id" | "rows" | "readonly" | "disabled" | "size" | "placeholder" | "modelValue" | "prefix" | "suffix" | "addonBefore" | "addonAfter" | "allowClear" | "showCount" | "showPasswordToggle" | "maxLength" | "autofocus" | "autocomplete" | "bordered" | "showSearchButton" | "spellcheck" | "customStyle")> & import('vue').ShallowUnwrapRef<{
|
|
188
188
|
focus: () => void;
|
|
189
189
|
blur: () => void;
|
|
190
190
|
select: () => void;
|
|
191
|
-
inputRef: import('vue').Ref<
|
|
191
|
+
inputRef: import('vue').Ref<HTMLInputElement | HTMLTextAreaElement | null, HTMLInputElement | HTMLTextAreaElement | null>;
|
|
192
192
|
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
193
193
|
$slots: {
|
|
194
194
|
prependIcon?(_: {}): any;
|
|
@@ -50,8 +50,8 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
50
50
|
readonly onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
51
51
|
readonly onKeypress?: ((event: KeyboardEvent) => any) | undefined;
|
|
52
52
|
readonly onKeyup?: ((event: KeyboardEvent) => any) | undefined;
|
|
53
|
-
readonly onClear?: (() => any) | undefined;
|
|
54
53
|
readonly "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
54
|
+
readonly onClear?: (() => any) | undefined;
|
|
55
55
|
readonly onPressEnter?: ((event: KeyboardEvent) => any) | undefined;
|
|
56
56
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
57
57
|
$attrs: {
|
|
@@ -68,7 +68,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
68
68
|
$root: import('vue').ComponentPublicInstance | null;
|
|
69
69
|
$parent: import('vue').ComponentPublicInstance | null;
|
|
70
70
|
$host: Element | null;
|
|
71
|
-
$emit: ((event: "input", value: string | number, event: Event) => void) & ((event: "search", value: string | number) => void) & ((event: "blur", event: FocusEvent) => void) & ((event: "change", value: string | number, event: Event) => void) & ((event: "focus", event: FocusEvent) => void) & ((event: "keydown", event: KeyboardEvent) => void) & ((event: "keypress", event: KeyboardEvent) => void) & ((event: "keyup", event: KeyboardEvent) => void) & ((event: "
|
|
71
|
+
$emit: ((event: "input", value: string | number, event: Event) => void) & ((event: "search", value: string | number) => void) & ((event: "blur", event: FocusEvent) => void) & ((event: "change", value: string | number, event: Event) => void) & ((event: "focus", event: FocusEvent) => void) & ((event: "keydown", event: KeyboardEvent) => void) & ((event: "keypress", event: KeyboardEvent) => void) & ((event: "keyup", event: KeyboardEvent) => void) & ((event: "update:modelValue", value: string | number) => void) & ((event: "clear") => void) & ((event: "pressEnter", event: KeyboardEvent) => void);
|
|
72
72
|
$el: HTMLDivElement;
|
|
73
73
|
$options: import('vue').ComponentOptionsBase<Readonly<import('../../../../../base/input/src/types').GctInputProps> & Readonly<{
|
|
74
74
|
onInput?: ((value: string | number, event: Event) => any) | undefined;
|
|
@@ -79,14 +79,14 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
79
79
|
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
80
80
|
onKeypress?: ((event: KeyboardEvent) => any) | undefined;
|
|
81
81
|
onKeyup?: ((event: KeyboardEvent) => any) | undefined;
|
|
82
|
-
onClear?: (() => any) | undefined;
|
|
83
82
|
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
83
|
+
onClear?: (() => any) | undefined;
|
|
84
84
|
onPressEnter?: ((event: KeyboardEvent) => any) | undefined;
|
|
85
85
|
}>, {
|
|
86
86
|
focus: () => void;
|
|
87
87
|
blur: () => void;
|
|
88
88
|
select: () => void;
|
|
89
|
-
inputRef: import('vue').Ref<
|
|
89
|
+
inputRef: import('vue').Ref<HTMLInputElement | HTMLTextAreaElement | null, HTMLInputElement | HTMLTextAreaElement | null>;
|
|
90
90
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
91
91
|
input: (value: string | number, event: Event) => any;
|
|
92
92
|
search: (value: string | number) => any;
|
|
@@ -96,8 +96,8 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
96
96
|
keydown: (event: KeyboardEvent) => any;
|
|
97
97
|
keypress: (event: KeyboardEvent) => any;
|
|
98
98
|
keyup: (event: KeyboardEvent) => any;
|
|
99
|
-
clear: () => any;
|
|
100
99
|
"update:modelValue": (value: string | number) => any;
|
|
100
|
+
clear: () => any;
|
|
101
101
|
pressEnter: (event: KeyboardEvent) => any;
|
|
102
102
|
}, string, {
|
|
103
103
|
name: string;
|
|
@@ -108,10 +108,8 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
108
108
|
disabled: boolean;
|
|
109
109
|
size: import('../../../../../base/input/src/types').InputSize;
|
|
110
110
|
placeholder: string;
|
|
111
|
-
autocomplete: string;
|
|
112
|
-
spellcheck: boolean;
|
|
113
|
-
prefix: string;
|
|
114
111
|
modelValue: string | number;
|
|
112
|
+
prefix: string;
|
|
115
113
|
suffix: string;
|
|
116
114
|
addonBefore: string;
|
|
117
115
|
addonAfter: string;
|
|
@@ -120,8 +118,10 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
120
118
|
showPasswordToggle: boolean;
|
|
121
119
|
maxLength: number;
|
|
122
120
|
autofocus: boolean;
|
|
121
|
+
autocomplete: string;
|
|
123
122
|
bordered: boolean;
|
|
124
123
|
showSearchButton: boolean;
|
|
124
|
+
spellcheck: boolean;
|
|
125
125
|
customStyle: Record<string, string | number>;
|
|
126
126
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
127
127
|
beforeCreate?: (() => void) | (() => void)[];
|
|
@@ -152,10 +152,8 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
152
152
|
disabled: boolean;
|
|
153
153
|
size: import('../../../../../base/input/src/types').InputSize;
|
|
154
154
|
placeholder: string;
|
|
155
|
-
autocomplete: string;
|
|
156
|
-
spellcheck: boolean;
|
|
157
|
-
prefix: string;
|
|
158
155
|
modelValue: string | number;
|
|
156
|
+
prefix: string;
|
|
159
157
|
suffix: string;
|
|
160
158
|
addonBefore: string;
|
|
161
159
|
addonAfter: string;
|
|
@@ -164,8 +162,10 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
164
162
|
showPasswordToggle: boolean;
|
|
165
163
|
maxLength: number;
|
|
166
164
|
autofocus: boolean;
|
|
165
|
+
autocomplete: string;
|
|
167
166
|
bordered: boolean;
|
|
168
167
|
showSearchButton: boolean;
|
|
168
|
+
spellcheck: boolean;
|
|
169
169
|
customStyle: Record<string, string | number>;
|
|
170
170
|
}> & Omit<Readonly<import('../../../../../base/input/src/types').GctInputProps> & Readonly<{
|
|
171
171
|
onInput?: ((value: string | number, event: Event) => any) | undefined;
|
|
@@ -176,14 +176,14 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
176
176
|
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
177
177
|
onKeypress?: ((event: KeyboardEvent) => any) | undefined;
|
|
178
178
|
onKeyup?: ((event: KeyboardEvent) => any) | undefined;
|
|
179
|
-
onClear?: (() => any) | undefined;
|
|
180
179
|
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
180
|
+
onClear?: (() => any) | undefined;
|
|
181
181
|
onPressEnter?: ((event: KeyboardEvent) => any) | undefined;
|
|
182
|
-
}>, "select" | "blur" | "focus" | "inputRef" | ("name" | "type" | "id" | "rows" | "readonly" | "disabled" | "size" | "placeholder" | "
|
|
182
|
+
}>, "select" | "blur" | "focus" | "inputRef" | ("name" | "type" | "id" | "rows" | "readonly" | "disabled" | "size" | "placeholder" | "modelValue" | "prefix" | "suffix" | "addonBefore" | "addonAfter" | "allowClear" | "showCount" | "showPasswordToggle" | "maxLength" | "autofocus" | "autocomplete" | "bordered" | "showSearchButton" | "spellcheck" | "customStyle")> & import('vue').ShallowUnwrapRef<{
|
|
183
183
|
focus: () => void;
|
|
184
184
|
blur: () => void;
|
|
185
185
|
select: () => void;
|
|
186
|
-
inputRef: import('vue').Ref<
|
|
186
|
+
inputRef: import('vue').Ref<HTMLInputElement | HTMLTextAreaElement | null, HTMLInputElement | HTMLTextAreaElement | null>;
|
|
187
187
|
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
188
188
|
$slots: {
|
|
189
189
|
prependIcon?(_: {}): any;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ShallowRef } from 'vue';
|
|
2
|
+
import { DocumentFactory } from '../factories/useDocumentFactory';
|
|
3
|
+
import { DocOperations } from './useDocOperations';
|
|
4
|
+
/** 与外部 nocode EmitterEnum.__on_looper_auto_save 对齐的事件名 */
|
|
5
|
+
export declare const DOC_LOOPER_AUTO_SAVE_EVENT: "__on_looper_auto_save";
|
|
6
|
+
export interface DocLooperAutoSavePayload {
|
|
7
|
+
changed?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface UseDocLooperAutoSaveNotifyOptions {
|
|
10
|
+
onLooperAutoSave?: (payload?: DocLooperAutoSavePayload) => void;
|
|
11
|
+
/**
|
|
12
|
+
* 当值为 true 时,取消挂起的防抖并跳过所有通知。
|
|
13
|
+
* 由 factory.isRefreshingData 驱动,防止 refreshData() 触发循环。
|
|
14
|
+
*/
|
|
15
|
+
suppressSignal?: ShallowRef<boolean>;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* 监听文档数据/模型变更,在用户停止输入后(防抖 300ms)检测 dirty 状态,
|
|
19
|
+
* 若有未保存改动则触发 onLooperAutoSave 回调。
|
|
20
|
+
*
|
|
21
|
+
* 返回 releaseSuppressOnLoad,需由外部在文档成功加载后调用,以准确控制
|
|
22
|
+
* suppress 的释放时机(避免初始化阶段的数据变更触发误报)。
|
|
23
|
+
*/
|
|
24
|
+
export declare function useDocLooperAutoSaveNotify(factory: DocumentFactory, ops: DocOperations, options: UseDocLooperAutoSaveNotifyOptions): () => void;
|
|
@@ -6,9 +6,10 @@ export declare class RuntimeJsonBuilder {
|
|
|
6
6
|
/**
|
|
7
7
|
* 页面设置
|
|
8
8
|
*/
|
|
9
|
-
setPageSize(size: PageSizeEnum, options
|
|
9
|
+
setPageSize(size: PageSizeEnum, options: {
|
|
10
10
|
width: number;
|
|
11
11
|
height: number;
|
|
12
|
+
direction?: 'portrait' | 'landscape';
|
|
12
13
|
}): this;
|
|
13
14
|
/**
|
|
14
15
|
* 构建
|
|
@@ -47,7 +47,7 @@ export interface IDocPayload extends IDocTemplatePayload, IDocInstancePayload {
|
|
|
47
47
|
* 文档接口请求成功且引擎挂载完成后的回调(每轮成功加载触发一次)。
|
|
48
48
|
* 不会在 requestId 为空、请求被丢弃、或初始化抛错时调用。
|
|
49
49
|
*/
|
|
50
|
-
onDocumentLoadSuccess?: (
|
|
50
|
+
onDocumentLoadSuccess?: () => void;
|
|
51
51
|
}
|
|
52
52
|
/** 文档加载工厂 — 只负责响应式加载与生命周期,不包含业务操作 */
|
|
53
53
|
export interface DocumentFactory {
|
|
@@ -61,8 +61,18 @@ export interface DocumentFactory {
|
|
|
61
61
|
hasData: ComputedRef<boolean>;
|
|
62
62
|
/** 是否正在加载 */
|
|
63
63
|
loading: ComputedRef<boolean>;
|
|
64
|
-
/**
|
|
64
|
+
/**
|
|
65
|
+
* refreshData() 执行期间为 true。
|
|
66
|
+
* 供 useDocLooperAutoSaveNotify 读取以抑制通知,防止循环触发。
|
|
67
|
+
*/
|
|
68
|
+
isRefreshingData: ShallowRef<boolean>;
|
|
69
|
+
/** 手动触发文档重新加载(重新请求接口 + 重建引擎) */
|
|
65
70
|
reload(): void;
|
|
71
|
+
/**
|
|
72
|
+
* 仅重新拉取填报数据并更新 dataManager,不重建引擎。
|
|
73
|
+
* 适用于填报模式保存后需要同步服务端最新数据的场景。
|
|
74
|
+
*/
|
|
75
|
+
refreshData(): Promise<void>;
|
|
66
76
|
}
|
|
67
77
|
export interface Execute {
|
|
68
78
|
/** 文档实例id或者文档模板id */
|
|
@@ -6,7 +6,6 @@ import { DocBaselineContext, DocUnsavedChanges, DocOperations, DocGetUnsavedChan
|
|
|
6
6
|
import { OnlineFormInstanceResponse, OnlineFormTmplResponse } from '@gct-paas/api/apaas';
|
|
7
7
|
import { FieldChangeItem } from '../../runtime/interface/change-diff';
|
|
8
8
|
import { FormTmplConfigController } from '../../suites/edhr/panel-schema/data-load/hooks/form-tmpl-config';
|
|
9
|
-
import { Execute } from '../doc-runtime/factories/useDocumentFactory';
|
|
10
9
|
export type { DocUnsavedChanges, DocGetUnsavedChangesOptions, } from '../doc-runtime/composables/useDocOperations';
|
|
11
10
|
export type { FieldModelQuery } from './field-model-query';
|
|
12
11
|
/** 字段权限信息 */
|
|
@@ -75,6 +74,11 @@ export interface DocControllerMethods extends DocOperations {
|
|
|
75
74
|
}>;
|
|
76
75
|
/** 手动触发文档重新加载 */
|
|
77
76
|
reload(): void;
|
|
77
|
+
/**
|
|
78
|
+
* 仅重新拉取填报数据并更新 dataManager,不重建引擎。
|
|
79
|
+
* 适用于填报模式保存后需要同步服务端最新数据的场景。
|
|
80
|
+
*/
|
|
81
|
+
refreshData(): Promise<void>;
|
|
78
82
|
/** 校验全量字段,返回错误映射;通过时返回 null */
|
|
79
83
|
validate(): Promise<Record<string, string[]> | null>;
|
|
80
84
|
/** 导出当前文档模型 XmlJson(常用于保存) */
|
|
@@ -193,7 +197,14 @@ export interface UseWordOptions {
|
|
|
193
197
|
* 文档接口请求成功且引擎挂载完成后的回调(每轮成功加载触发一次)。
|
|
194
198
|
* 不会在 requestId 为空、请求被丢弃、或初始化抛错时调用。
|
|
195
199
|
*/
|
|
196
|
-
onDocumentLoadSuccess?: (
|
|
200
|
+
onDocumentLoadSuccess?: () => void;
|
|
201
|
+
/**
|
|
202
|
+
* 文档数据发生变化(防抖 300ms 后)的回调,可在此处触发外部自动保存通知。
|
|
203
|
+
* 例:() => emitter.emit(EmitterEnum.__on_looper_auto_save)
|
|
204
|
+
*/
|
|
205
|
+
onLooperAutoSave?: (payload?: {
|
|
206
|
+
changed?: boolean;
|
|
207
|
+
}) => void;
|
|
197
208
|
/** 扩展字段 - 兼容其他未明确定义的负载参数 */
|
|
198
209
|
[key: string]: any;
|
|
199
210
|
}
|
|
@@ -12,8 +12,8 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
12
12
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
13
13
|
}>, {
|
|
14
14
|
readonly: boolean;
|
|
15
|
-
subModelKey: string;
|
|
16
15
|
modelValue: string;
|
|
16
|
+
subModelKey: string;
|
|
17
17
|
onlySubFields: boolean;
|
|
18
18
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
19
19
|
export default _default;
|