@gct-paas/word 0.1.20 → 0.1.22

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.
@@ -41,13 +41,13 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
41
41
  "onUpdate:modelValue"?: ((val: string | number | null) => any) | undefined;
42
42
  }>, {
43
43
  disabled: boolean;
44
+ roundingMode: 1 | 4 | 6;
44
45
  modelValue: ValueType;
45
46
  step: number;
46
47
  allowClear: boolean;
47
48
  controls: boolean;
48
49
  returnString: boolean;
49
50
  emitOnInput: boolean;
50
- roundingMode: 1 | 4 | 6;
51
51
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
52
52
  inputRef: HTMLInputElement;
53
53
  }, HTMLDivElement>;
@@ -0,0 +1,10 @@
1
+ import { Doc } from '../../view/Doc';
2
+ import { CommandResult, CommandPayloadMap } from '../types';
3
+ import { CommandBase, PostCommandContext } from '../base/CommandBase';
4
+ export declare class CommitValidateNumber extends CommandBase<'commitValidateNumber'> {
5
+ private cursorResult;
6
+ constructor(doc: Doc, payload?: CommandPayloadMap['commitValidateNumber']);
7
+ protected execute(): Promise<PostCommandContext>;
8
+ protected afterDo(): CommandResult;
9
+ private resolvePayloadContext;
10
+ }
@@ -31,6 +31,7 @@ export declare const CommandType: {
31
31
  readonly setPadding: "setPadding";
32
32
  readonly setHeaderFooterConfig: "setHeaderFooterConfig";
33
33
  readonly insertText: "insertText";
34
+ readonly commitValidateNumber: "commitValidateNumber";
34
35
  readonly insertTable: "insertTable";
35
36
  readonly insertImage: "insertImage";
36
37
  readonly insertField: "insertField";
@@ -85,6 +86,12 @@ export type CommandPayloadMap = {
85
86
  insertText: CommandPayload & {
86
87
  text: string;
87
88
  };
89
+ commitValidateNumber: CommandPayload & {
90
+ valuePath?: string;
91
+ type?: 'fw:number' | 'fw:double';
92
+ digits?: number;
93
+ roundingMode?: 1 | 4 | 6;
94
+ };
88
95
  insertTable: CommandPayload & {
89
96
  rowCount?: number;
90
97
  colCount?: number;
@@ -18,4 +18,5 @@ export declare class IMEHandler implements IEventHandler {
18
18
  private handleKeydown;
19
19
  /** 入队文本,延迟批量执行 InsertText */
20
20
  private enqueueInsert;
21
+ private handleCommitValidate;
21
22
  }
@@ -5,7 +5,7 @@ import { WsecPr } from './WsecPr';
5
5
  import { Wdocument } from './Wdocument';
6
6
  import { ModelGroup, ModelGroupOptions } from '../base';
7
7
  /** Body 的子节点类型 */
8
- type Child = Wp | Wtbl | WsecPr;
8
+ export type Child = Wp | Wtbl | WsecPr;
9
9
  /**
10
10
  * 文档主体类 - Word 文档的主要内容容器
11
11
  *
@@ -33,4 +33,3 @@ export declare class Wbody extends ModelGroup<Child> {
33
33
  */
34
34
  toXmlJson(): RawElement;
35
35
  }
36
- export {};