@vtj/designer 0.13.16 → 0.13.17

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.
@@ -12,9 +12,11 @@ export interface Props {
12
12
  declare const _default: DefineComponent<Props, {
13
13
  currentModel: Ref<any, any>;
14
14
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
15
+ cancel: () => any;
15
16
  "update:modelValue": (value: string) => any;
16
17
  send: (value: AISendData) => any;
17
18
  }, string, PublicProps, Readonly<Props> & Readonly<{
19
+ onCancel?: (() => any) | undefined;
18
20
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
19
21
  onSend?: ((value: AISendData) => any) | undefined;
20
22
  }>, {
@@ -25,7 +25,7 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
25
25
  readonly validateEvent: boolean;
26
26
  readonly inputStyle: StyleValue;
27
27
  readonly rows: number;
28
- readonly inputmode: "search" | "text" | "none" | "url" | "email" | "tel" | "numeric" | "decimal" | undefined;
28
+ readonly inputmode: "text" | "search" | "none" | "url" | "email" | "tel" | "numeric" | "decimal" | undefined;
29
29
  readonly clearable: boolean;
30
30
  readonly showPassword: boolean;
31
31
  readonly showWordLimit: boolean;
@@ -51,12 +51,13 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
51
51
  readonly ariaLabel?: string | undefined;
52
52
  readonly form?: string | undefined;
53
53
  readonly placeholder?: string | undefined;
54
- readonly inputmode?: "search" | "text" | "none" | "url" | "email" | "tel" | "numeric" | "decimal" | undefined;
54
+ readonly inputmode?: "text" | "search" | "none" | "url" | "email" | "tel" | "numeric" | "decimal" | undefined;
55
55
  readonly maxlength?: (string | number) | undefined;
56
56
  readonly minlength?: (string | number) | undefined;
57
57
  readonly resize?: ("none" | "horizontal" | "vertical" | "both") | undefined;
58
58
  readonly formatter?: Function | undefined;
59
59
  readonly parser?: Function | undefined;
60
+ readonly clearIcon?: (string | Component) | undefined;
60
61
  readonly suffixIcon?: (string | Component) | undefined;
61
62
  readonly prefixIcon?: (string | Component) | undefined;
62
63
  readonly containerRole?: string | undefined;
@@ -89,7 +90,7 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
89
90
  $el: any;
90
91
  $options: ComponentOptionsBase<Readonly< ExtractPropTypes<{
91
92
  readonly inputmode: {
92
- readonly type: PropType<"search" | "text" | "none" | "url" | "email" | "tel" | "numeric" | "decimal" | undefined>;
93
+ readonly type: PropType<"text" | "search" | "none" | "url" | "email" | "tel" | "numeric" | "decimal" | undefined>;
93
94
  readonly required: false;
94
95
  readonly validator: ((val: unknown) => boolean) | undefined;
95
96
  __epPropKey: true;
@@ -189,6 +190,12 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
189
190
  };
190
191
  readonly readonly: BooleanConstructor;
191
192
  readonly clearable: BooleanConstructor;
193
+ readonly clearIcon: {
194
+ readonly type: PropType<string | Component>;
195
+ readonly required: false;
196
+ readonly validator: ((val: unknown) => boolean) | undefined;
197
+ __epPropKey: true;
198
+ };
192
199
  readonly showPassword: BooleanConstructor;
193
200
  readonly showWordLimit: BooleanConstructor;
194
201
  readonly suffixIcon: {
@@ -295,7 +302,7 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
295
302
  readonly validateEvent: boolean;
296
303
  readonly inputStyle: StyleValue;
297
304
  readonly rows: number;
298
- readonly inputmode: "search" | "text" | "none" | "url" | "email" | "tel" | "numeric" | "decimal" | undefined;
305
+ readonly inputmode: "text" | "search" | "none" | "url" | "email" | "tel" | "numeric" | "decimal" | undefined;
299
306
  readonly clearable: boolean;
300
307
  readonly showPassword: boolean;
301
308
  readonly showWordLimit: boolean;
@@ -333,14 +340,14 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
333
340
  readonly validateEvent: boolean;
334
341
  readonly inputStyle: StyleValue;
335
342
  readonly rows: number;
336
- readonly inputmode: "search" | "text" | "none" | "url" | "email" | "tel" | "numeric" | "decimal" | undefined;
343
+ readonly inputmode: "text" | "search" | "none" | "url" | "email" | "tel" | "numeric" | "decimal" | undefined;
337
344
  readonly clearable: boolean;
338
345
  readonly showPassword: boolean;
339
346
  readonly showWordLimit: boolean;
340
347
  readonly autofocus: boolean;
341
348
  }> & Omit<Readonly< ExtractPropTypes<{
342
349
  readonly inputmode: {
343
- readonly type: PropType<"search" | "text" | "none" | "url" | "email" | "tel" | "numeric" | "decimal" | undefined>;
350
+ readonly type: PropType<"text" | "search" | "none" | "url" | "email" | "tel" | "numeric" | "decimal" | undefined>;
344
351
  readonly required: false;
345
352
  readonly validator: ((val: unknown) => boolean) | undefined;
346
353
  __epPropKey: true;
@@ -440,6 +447,12 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
440
447
  };
441
448
  readonly readonly: BooleanConstructor;
442
449
  readonly clearable: BooleanConstructor;
450
+ readonly clearIcon: {
451
+ readonly type: PropType<string | Component>;
452
+ readonly required: false;
453
+ readonly validator: ((val: unknown) => boolean) | undefined;
454
+ __epPropKey: true;
455
+ };
443
456
  readonly showPassword: BooleanConstructor;
444
457
  readonly showWordLimit: BooleanConstructor;
445
458
  readonly suffixIcon: {
@@ -48,6 +48,7 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
48
48
  readonly cancel?: string | boolean | undefined;
49
49
  readonly icon?: IconParam | undefined;
50
50
  readonly zIndex?: number | undefined;
51
+ readonly beforeClose?: (() => boolean | Promise<boolean>) | undefined;
51
52
  readonly content?: Record<string, any> | VNode<RendererNode, RendererElement, {
52
53
  [key: string]: any;
53
54
  }> | DefineComponent<any, any, any, any> | undefined;
@@ -56,7 +57,6 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
56
57
  readonly subtitle?: string | undefined;
57
58
  readonly resizable?: boolean | ResizableOptions | undefined;
58
59
  readonly componentInstance?: Record<string, any> | null | undefined;
59
- readonly beforeClose?: (() => boolean | Promise<boolean>) | undefined;
60
60
  readonly onClose?: (() => any) | undefined | undefined;
61
61
  readonly onOpen?: ((instance: ComponentInternalInstance) => any) | undefined | undefined;
62
62
  readonly onCancel?: (() => any) | undefined | undefined;
package/types/utils.d.ts CHANGED
@@ -1,7 +1,31 @@
1
1
  import { JSExpression, JSFunction } from '@vtj/core';
2
- import { MessageBoxData, NotificationHandle, MessageHandler } from 'element-plus';
2
+ import { LoadingOptions, MessageBoxData, NotificationHandle, LoadingParentElement, MessageHandler } from 'element-plus';
3
+ import { ComponentPublicInstance, ComponentOptionsBase, Ref } from 'vue';
3
4
  export declare function alert(message: string, options?: any): Promise< MessageBoxData>;
4
5
  export declare function notify(message: string, title?: string): NotificationHandle;
6
+ export declare function loading(options?: LoadingOptions): {
7
+ setText: (text: string) => void;
8
+ removeElLoadingChild: () => void;
9
+ close: () => void;
10
+ handleAfterLeave: () => void;
11
+ vm: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
12
+ $el: HTMLElement;
13
+ originalPosition: Ref<string>;
14
+ originalOverflow: Ref<string>;
15
+ visible: Ref<boolean>;
16
+ parent: Ref<LoadingParentElement>;
17
+ background: Ref<string>;
18
+ svg: Ref<string>;
19
+ svgViewBox: Ref<string>;
20
+ spinner: Ref<string | boolean>;
21
+ text: Ref<string>;
22
+ fullscreen: Ref<boolean>;
23
+ lock: Ref<boolean>;
24
+ customClass: Ref<string>;
25
+ target: Ref<HTMLElement>;
26
+ beforeClose?: Ref<(() => boolean) | undefined> | undefined;
27
+ closed?: Ref<(() => void) | undefined> | undefined;
28
+ };
5
29
  export declare function confirm(message: string, options?: any): Promise<boolean | MessageBoxData>;
6
30
  export declare function message(message: string, type?: 'success' | 'warning'): MessageHandler;
7
31
  export declare function proxyContext(context: any): any;
@@ -2,7 +2,7 @@
2
2
  * Copyright (c) 2025, VTJ.PRO All rights reserved.
3
3
  * @name @vtj/designer
4
4
  * @author CHC chenhuachun1549@dingtalk.com
5
- * @version 0.13.15
5
+ * @version 0.13.16
6
6
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
7
7
  */
8
- export declare const version = "0.13.15";
8
+ export declare const version = "0.13.16";
@@ -1,4 +0,0 @@
1
- import { _ as f } from "./index-Cz7lb3tK.js";
2
- export {
3
- f as default
4
- };