@gct-paas/word 0.1.73-patch.4 → 0.1.73-patch.5

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.
@@ -1,2 +1,2 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
2
2
  export default _default;
@@ -33,8 +33,10 @@ export interface IDocPayload extends IDocTemplatePayload, IDocInstancePayload {
33
33
  deviceConfig?: IDeviceConfig;
34
34
  /** 是否是模拟填报 */
35
35
  isMockReport: boolean;
36
- /** 是否是预览模式 */
36
+ /** 是否是预览模式(隐藏设计器壳);与 refer 互斥 */
37
37
  isPreview: boolean;
38
+ /** 设计器引用只读态(仅保留属性 panel);与 isPreview 互斥 */
39
+ isRefer?: boolean;
38
40
  ctx: DesignSuiteContext;
39
41
  /**
40
42
  * 文档接口请求成功且引擎挂载完成后的回调(每轮成功加载触发一次)。
@@ -221,8 +221,13 @@ export interface UseWordOptions {
221
221
  modelKey: string;
222
222
  /** 套件 key(默认 'edhr') */
223
223
  suiteKey?: string;
224
- /** 是否预览模式 */
224
+ /** 是否预览模式(隐藏 ribbon / toolkit / panel);与 isRefer 互斥 */
225
225
  isPreview?: boolean;
226
+ /**
227
+ * 设计器引用只读态;与 isPreview 互斥。
228
+ * 仅保留右侧属性 panel,禁止修改文档与配置。
229
+ */
230
+ isRefer?: boolean;
226
231
  /** 是否模拟填报 */
227
232
  isMockReport?: boolean;
228
233
  /** 是否详情页(强制只读) */
@@ -14,6 +14,8 @@ type __VLS_Props = {
14
14
  fieldPathChains: string[];
15
15
  sortDependency: FieldDependencyType[];
16
16
  data?: FieldDependencyOption;
17
+ /** 设计器引用只读 */
18
+ readonly?: boolean;
17
19
  };
18
20
  declare function onSave(): Promise<{
19
21
  type: FieldDependencyType;
@@ -0,0 +1,7 @@
1
+ import { IModalInstance, IModalOptions } from '../../../../base/modal/src/modal.type';
2
+ /**
3
+ * 设计器弹窗:refer 模式下自动只读查看(可打开看配置,不可保存修改)。
4
+ */
5
+ export declare function useOpenDesignModal(): {
6
+ open: (options: IModalOptions) => IModalInstance;
7
+ };