@vtj/ui 0.8.94 → 0.8.96

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.
Files changed (29) hide show
  1. package/dist/index.mjs +7573 -7549
  2. package/dist/index.umd.js +12 -12
  3. package/dist/style.css +1 -1
  4. package/package.json +4 -4
  5. package/types/components/attachment/Attachment.d.ts +11 -2
  6. package/types/components/attachment/props.d.ts +4 -0
  7. package/types/components/{image-code-input/ImageCodeInput.d.ts → captcha/Captcha.d.ts} +16 -13
  8. package/types/components/captcha/index.d.ts +4 -0
  9. package/types/components/captcha/types.d.ts +20 -0
  10. package/types/components/dialog-grid/DialogGrid.d.ts +18 -2
  11. package/types/components/grid/Grid.d.ts +176 -176
  12. package/types/components/grid/hooks/useLoader.d.ts +176 -176
  13. package/types/components/grid/hooks/useState.d.ts +176 -176
  14. package/types/components/index.d.ts +2 -2
  15. package/types/components/query-form/QueryForm.d.ts +2 -1
  16. package/types/components/query-form/types.d.ts +2 -1
  17. package/types/components/tabs/Tabs.d.ts +19 -2
  18. package/types/components/tabs/types.d.ts +4 -0
  19. package/types/components/verify/Verify.d.ts +43 -0
  20. package/types/components/verify/index.d.ts +4 -0
  21. package/types/components/verify/types.d.ts +18 -0
  22. package/types/hooks/index.d.ts +1 -0
  23. package/types/hooks/useDefineSlots.d.ts +1 -0
  24. package/types/version.d.ts +2 -2
  25. package/types/components/image-code-input/index.d.ts +0 -4
  26. package/types/components/image-code-input/types.d.ts +0 -32
  27. package/types/components/sms-code-input/SmsCodeInput.d.ts +0 -3
  28. package/types/components/sms-code-input/index.d.ts +0 -4
  29. package/types/components/sms-code-input/types.d.ts +0 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vtj/ui",
3
3
  "private": false,
4
- "version": "0.8.94",
4
+ "version": "0.8.96",
5
5
  "type": "module",
6
6
  "engines": {
7
7
  "node": ">=16.0.0"
@@ -12,8 +12,8 @@
12
12
  "sortablejs": "~1.15.2",
13
13
  "vxe-table": "~4.6.17",
14
14
  "vxe-table-plugin-menus": "~4.0.3",
15
- "@vtj/icons": "~0.8.94",
16
- "@vtj/utils": "~0.8.94"
15
+ "@vtj/icons": "~0.8.96",
16
+ "@vtj/utils": "~0.8.96"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@types/qrcode": "^1.5.5",
@@ -21,7 +21,7 @@
21
21
  "qrcode": "~1.5.3",
22
22
  "vue": "~3.4.15",
23
23
  "vue-router": "~4.4.0",
24
- "@vtj/cli": "~0.8.22"
24
+ "@vtj/cli": "~0.8.24"
25
25
  },
26
26
  "files": [
27
27
  "dist",
@@ -85,6 +85,10 @@ declare const __VLS_component: DefineComponent<{
85
85
  downloader: {
86
86
  type: PropType<(file: AttachmentFile) => void>;
87
87
  };
88
+ autoUpload: {
89
+ type: BooleanConstructor;
90
+ default: boolean;
91
+ };
88
92
  }, {
89
93
  elUploadRef: Ref<any>;
90
94
  remove: (file: AttachmentFile) => Promise<void>;
@@ -92,8 +96,8 @@ declare const __VLS_component: DefineComponent<{
92
96
  selections: Ref<{
93
97
  [x: string]: any;
94
98
  url: string;
95
- name?: string;
96
- type?: AttachmentFileType;
99
+ name?: string | undefined;
100
+ type?: AttachmentFileType | undefined;
97
101
  }[]>;
98
102
  fileList: Ref<UploadUserFile[]>;
99
103
  upload: () => void;
@@ -184,6 +188,10 @@ declare const __VLS_component: DefineComponent<{
184
188
  downloader: {
185
189
  type: PropType<(file: AttachmentFile) => void>;
186
190
  };
191
+ autoUpload: {
192
+ type: BooleanConstructor;
193
+ default: boolean;
194
+ };
187
195
  }>> & {
188
196
  onClick?: ((file: AttachmentFile) => any) | undefined;
189
197
  onChange?: ((files: AttachmentFile[]) => any) | undefined;
@@ -207,6 +215,7 @@ declare const __VLS_component: DefineComponent<{
207
215
  clickable: boolean;
208
216
  listType: "card" | "list";
209
217
  limitSize: string;
218
+ autoUpload: boolean;
210
219
  }, {}>;
211
220
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
212
221
  export default _default;
@@ -133,4 +133,8 @@ export declare const attachmentProps: {
133
133
  downloader: {
134
134
  type: PropType<(file: AttachmentFile) => void>;
135
135
  };
136
+ autoUpload: {
137
+ type: BooleanConstructor;
138
+ default: boolean;
139
+ };
136
140
  };
@@ -1,36 +1,39 @@
1
1
  import { DefineComponent, PropType, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
2
+ import { MaybePromise } from '..';
2
3
  declare const _default: DefineComponent<{
3
- image: {
4
- type: PropType<() => Promise<string>>;
4
+ modelValue: PropType<any>;
5
+ src: {
6
+ type: PropType<() => MaybePromise<string>>;
5
7
  };
6
- maxLength: {
7
- type: NumberConstructor;
8
+ maxlength: {
9
+ type: PropType<number>;
8
10
  default: number;
9
11
  };
10
12
  placeholder: {
11
- type: StringConstructor;
13
+ type: PropType<string>;
12
14
  default: string;
13
15
  };
14
16
  validate: {
15
- type: PropType<(value: string) => Promise<boolean>>;
17
+ type: PropType<(value: string) => MaybePromise<boolean>>;
16
18
  };
17
19
  }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
18
- image: {
19
- type: PropType<() => Promise<string>>;
20
+ modelValue: PropType<any>;
21
+ src: {
22
+ type: PropType<() => MaybePromise<string>>;
20
23
  };
21
- maxLength: {
22
- type: NumberConstructor;
24
+ maxlength: {
25
+ type: PropType<number>;
23
26
  default: number;
24
27
  };
25
28
  placeholder: {
26
- type: StringConstructor;
29
+ type: PropType<string>;
27
30
  default: string;
28
31
  };
29
32
  validate: {
30
- type: PropType<(value: string) => Promise<boolean>>;
33
+ type: PropType<(value: string) => MaybePromise<boolean>>;
31
34
  };
32
35
  }>>, {
36
+ maxlength: number;
33
37
  placeholder: string;
34
- maxLength: number;
35
38
  }, {}>;
36
39
  export default _default;
@@ -0,0 +1,4 @@
1
+ import { default as XCaptcha } from './Captcha';
2
+
3
+ export { XCaptcha };
4
+ export * from './types';
@@ -0,0 +1,20 @@
1
+ import { MaybePromise } from '../shared';
2
+
3
+ export interface CaptchaProps {
4
+ /**
5
+ * 图片加载函数
6
+ * @returns
7
+ */
8
+ src?: () => MaybePromise<string>;
9
+ /**
10
+ * 验证码长度
11
+ */
12
+ maxlength?: number;
13
+ placeholder?: string;
14
+ /**
15
+ * 校验函数
16
+ * @param value
17
+ * @returns
18
+ */
19
+ validate?: (value: string) => MaybePromise<boolean>;
20
+ }
@@ -1,7 +1,22 @@
1
+ import { VxeTableConstructor, VxeGridConstructor, VxeTableDataRow } from 'vxe-table';
1
2
  import { DefineComponent, PropType, ComputedRef, Ref, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
2
3
  import { GridColumns } from '../grid';
3
- import { VxeTableDataRow } from 'vxe-table';
4
- declare function __VLS_template(): {
4
+ declare function __VLS_template(): Partial<Record<string, (_: {
5
+ [x: string]: any;
6
+ $table: VxeTableConstructor<any>;
7
+ $grid: VxeGridConstructor<any> | null | undefined;
8
+ row: any;
9
+ rowIndex: number;
10
+ $rowIndex: number;
11
+ _rowIndex: number;
12
+ column: import("vxe-table/types/table").VxeTableDefines.ColumnInfo<any>;
13
+ columnIndex: number;
14
+ $columnIndex: number;
15
+ _columnIndex: number;
16
+ checked?: boolean;
17
+ indeterminate?: boolean;
18
+ items: any[];
19
+ }) => any>> & {
5
20
  buttons?(_: {}): any;
6
21
  top?(_: {}): any;
7
22
  extra?(_: {}): any;
@@ -39,6 +54,7 @@ declare const __VLS_component: DefineComponent<{
39
54
  };
40
55
  }, {
41
56
  $vtjEl: ComputedRef<any>;
57
+ $vtjDynamicSlots: () => any;
42
58
  gridRef: Ref<any>;
43
59
  dialogRef: Ref<any>;
44
60
  addRow: () => void;