zhytech-ui 1.2.0 → 1.2.1

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/README.md CHANGED
@@ -70,7 +70,13 @@ setTheme("dark");
70
70
 
71
71
  > #### 版本更新清单:
72
72
 
73
- **V 1.1.40**
73
+ **V 1.2.1**
74
+ ```html
75
+ 1.新增验证码组件(verificationCode),支持点击文字验证码(clickTextVCode)、滑动验证码(zhyPuzzleVcode)
76
+ 2.原拼图验证码组件(zhyPuzzleVcode)已废弃,不建议使用
77
+ ```
78
+
79
+ **V 1.2.0**
74
80
  ```html
75
81
  1.文件预览组件中视频更换为西瓜视频播放组件,解决视频全屏 无法显示弹窗的问题
76
82
  ```
@@ -0,0 +1,54 @@
1
+ import { configOptionView } from '../types/configOptionView';
2
+ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
3
+ defaultImgs: {
4
+ type: {
5
+ (arrayLength: number): string[];
6
+ (...items: string[]): string[];
7
+ new (arrayLength: number): string[];
8
+ new (...items: string[]): string[];
9
+ isArray(arg: any): arg is any[];
10
+ readonly prototype: any[];
11
+ from<T>(arrayLike: ArrayLike<T>): T[];
12
+ from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
13
+ from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
14
+ from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
15
+ of<T_4>(...items: T_4[]): T_4[];
16
+ readonly [Symbol.species]: ArrayConstructor;
17
+ };
18
+ default: () => never[];
19
+ };
20
+ option: {
21
+ type: globalThis.PropType<configOptionView>;
22
+ default: () => {};
23
+ };
24
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
25
+ success: (...args: any[]) => void;
26
+ }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
27
+ defaultImgs: {
28
+ type: {
29
+ (arrayLength: number): string[];
30
+ (...items: string[]): string[];
31
+ new (arrayLength: number): string[];
32
+ new (...items: string[]): string[];
33
+ isArray(arg: any): arg is any[];
34
+ readonly prototype: any[];
35
+ from<T>(arrayLike: ArrayLike<T>): T[];
36
+ from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
37
+ from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
38
+ from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
39
+ of<T_4>(...items: T_4[]): T_4[];
40
+ readonly [Symbol.species]: ArrayConstructor;
41
+ };
42
+ default: () => never[];
43
+ };
44
+ option: {
45
+ type: globalThis.PropType<configOptionView>;
46
+ default: () => {};
47
+ };
48
+ }>> & Readonly<{
49
+ onSuccess?: ((...args: any[]) => any) | undefined;
50
+ }>, {
51
+ option: configOptionView;
52
+ defaultImgs: string[];
53
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
54
+ export default _default;
@@ -0,0 +1,28 @@
1
+ import { configOptionView } from '../types/configOptionView';
2
+ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
3
+ defaultImgs: {
4
+ type: globalThis.PropType<string[]>;
5
+ default: () => never[];
6
+ };
7
+ option: {
8
+ type: globalThis.PropType<configOptionView>;
9
+ default: () => {};
10
+ };
11
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
12
+ success: (...args: any[]) => void;
13
+ }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
14
+ defaultImgs: {
15
+ type: globalThis.PropType<string[]>;
16
+ default: () => never[];
17
+ };
18
+ option: {
19
+ type: globalThis.PropType<configOptionView>;
20
+ default: () => {};
21
+ };
22
+ }>> & Readonly<{
23
+ onSuccess?: ((...args: any[]) => any) | undefined;
24
+ }>, {
25
+ option: configOptionView;
26
+ defaultImgs: string[];
27
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
28
+ export default _default;
@@ -1,4 +1,4 @@
1
- import { default as puzzleVcode } from './index.vue';
1
+ import { default as verificationCode } from './index.vue';
2
2
  import { configOptionView as vcodeConfigOption } from './types/configOptionView';
3
- export { puzzleVcode };
3
+ export { verificationCode };
4
4
  export type { vcodeConfigOption };
@@ -3,7 +3,11 @@
3
3
  */
4
4
  export interface configOptionView {
5
5
  /**
6
- * 显示类型,"modal"模态框形式 / "inside"内嵌形式
6
+ * 验证码类型,puzzle:拼图; clickText:点击文字
7
+ */
8
+ verificationType?: "puzzle" | "clickText";
9
+ /**
10
+ * 显示类型,"modal"模态框形式 ; "inside"内嵌形式
7
11
  */
8
12
  type?: "modal" | "inside";
9
13
  /**
@@ -13,19 +17,11 @@ export interface configOptionView {
13
17
  /**
14
18
  * 验证码宽度,单位px,默认400px
15
19
  */
16
- canvasWidth?: number;
20
+ width?: number;
17
21
  /**
18
22
  * 验证码高度,单位px,默认220px
19
23
  */
20
- canvasHeight?: number;
21
- /**
22
- * 拼图块(小的拼图)的大小比例,0.2 ~ 2 ,数字越大,拼图越大
23
- */
24
- puzzleScale?: number;
25
- /**
26
- * 判断成功的误差范围,单位 px, 滑动的距离和拼图的距离小于等于此值时,会判定重合,默认10px
27
- */
28
- range?: number;
24
+ height?: number;
29
25
  /**
30
26
  * 自定义图片集合
31
27
  */
@@ -38,6 +34,14 @@ export interface configOptionView {
38
34
  * 验证失败时的提示文字,默认:验证失败,请重试
39
35
  */
40
36
  failText?: string;
37
+ /**
38
+ * 拼图块(小的拼图)的大小比例,0.2 ~ 2 ,数字越大,拼图越大
39
+ */
40
+ puzzleScale?: number;
41
+ /**
42
+ * 判断成功的误差范围,单位 px, 滑动的距离和拼图的距离小于等于此值时,会判定重合,默认10px
43
+ */
44
+ range?: number;
41
45
  /**
42
46
  * 左下角用户拖动的那个滑块的尺寸,单位 px,默认 40px
43
47
  */
@@ -56,7 +56,7 @@ export declare function useUtils(): {
56
56
  * @param fileName
57
57
  * @return
58
58
  */
59
- getFileType(fileName: string): "" | "radio" | "image" | "video" | "word" | "excel" | "ppt" | "pdf" | "txt" | "zip" | "other";
59
+ getFileType(fileName: string): "" | "image" | "audio" | "video" | "word" | "excel" | "ppt" | "pdf" | "txt" | "zip" | "other";
60
60
  /**
61
61
  * @description: 根据传入值获取:①对应节点所在的各级菜单的值所组成的数组(多选为二维数组)②对应节点的对象(多选为对象数组)
62
62
  * @param selectVale 级联选择器选择的值
@@ -4,7 +4,7 @@ import { documentView, dynamicFormData, formAttribute, dictionaryData, dictionar
4
4
  import { icon as zhyIcon } from './components/icon/index';
5
5
  import { filePreview as zhyFilePreview, fileView, previewOption, videoConfigType } from './components/filePreview/index';
6
6
  import { richTextEditor as zhyRichTextEditor, richTextConfigOption } from './components/richTextEditor/index';
7
- import { puzzleVcode as zhyPuzzleVcode, vcodeConfigOption } from './components/puzzleVCode/index';
7
+ import { verificationCode as zhyVerificationCode, vcodeConfigOption } from './components/verificationCode/index';
8
8
  /**
9
9
  * @description: 设置组件库主题
10
10
  * @param theme
@@ -16,7 +16,7 @@ type selectOptionsView = SelectOptionsView;
16
16
  export type { optionView, selectOptionsView, conditionType, filterConditionPropType, filterConditionType, filterItemType, propOptionType, dynamicFormData, formAttribute, dictionaryData, dictionaryItem, uploadOption, documentView, batchAddComponentParam, getFormTemplateMethod, formListView, searchParam, fileView, previewOption, videoConfigType, richTextConfigOption, vcodeConfigOption };
17
17
  export { MessageType, filterConditionTypes, componentType };
18
18
  export { setTheme };
19
- export { zhyFormDesigner, zhyFormRenderer, zhyDynamicFilter, zhyIcon, zhyFilePreview, zhyRichTextEditor, zhyPuzzleVcode };
19
+ export { zhyFormDesigner, zhyFormRenderer, zhyDynamicFilter, zhyIcon, zhyFilePreview, zhyRichTextEditor, zhyVerificationCode };
20
20
  declare const _default: {
21
21
  install: (app: any, options?: Record<string, any> | undefined) => void;
22
22
  };