zhytech-ui-mobile 1.0.15 → 1.0.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.
@@ -0,0 +1,5 @@
1
+ import { default as puzzleVcode } from './index';
2
+ import { configOptionView as vcodeConfigOption } from './types/configOptionView';
3
+
4
+ export { puzzleVcode };
5
+ export type { vcodeConfigOption };
@@ -0,0 +1,53 @@
1
+ /**
2
+ * @description: 配置选项类型
3
+ */
4
+ export interface configOptionView {
5
+ /**
6
+ * 显示类型,"modal"模态框形式 / "inside"内嵌形式
7
+ */
8
+ type?: "modal" | "inside";
9
+ /**
10
+ * 自定义样式类名
11
+ */
12
+ className?: string;
13
+ /**
14
+ * 验证码宽度,单位px,默认400px
15
+ */
16
+ canvasWidth?: number;
17
+ /**
18
+ * 验证码高度,单位px,默认220px
19
+ */
20
+ canvasHeight?: number;
21
+ /**
22
+ * 拼图块(小的拼图)的大小比例,0.2 ~ 2 ,数字越大,拼图越大
23
+ */
24
+ puzzleScale?: number;
25
+ /**
26
+ * 判断成功的误差范围,单位 px, 滑动的距离和拼图的距离小于等于此值时,会判定重合,默认10px
27
+ */
28
+ range?: number;
29
+ /**
30
+ * 自定义图片集合
31
+ */
32
+ imgs?: string[];
33
+ /**
34
+ * 验证成功时的提示文字,默认:验证通过
35
+ */
36
+ successText?: string;
37
+ /**
38
+ * 验证失败时的提示文字,默认:验证失败,请重试
39
+ */
40
+ failText?: string;
41
+ /**
42
+ * 左下角用户拖动的那个滑块的尺寸,单位 px,默认 40px
43
+ */
44
+ sliderSize?: number;
45
+ /**
46
+ * 下方滑动条里的文字,默认:拖动滑块完成拼图
47
+ */
48
+ sliderText?: string;
49
+ /**
50
+ * 验证成功的回调函数
51
+ */
52
+ onSuccess?: Function;
53
+ }
@@ -1,5 +1,6 @@
1
1
  import { ConfigProviderThemeVars } from 'wot-design-uni';
2
2
  import { dynamicFormData, formAttribute, dictionaryData, dictionaryItem, uploadOption, documentView, formRenderer as zhyFormRenderer } from './components/dynamicForm/index';
3
+ import { puzzleVcode as zhyPuzzleVcode, vcodeConfigOption } from './components/puzzleVCode/index';
3
4
 
4
5
  interface ZhyConfigOptions {
5
6
  /**
@@ -7,7 +8,7 @@ interface ZhyConfigOptions {
7
8
  */
8
9
  theme: ConfigProviderThemeVars;
9
10
  }
10
- export type { ZhyConfigOptions, ConfigProviderThemeVars, dynamicFormData, formAttribute, dictionaryData, dictionaryItem, uploadOption, documentView };
11
+ export type { ZhyConfigOptions, ConfigProviderThemeVars, dynamicFormData, formAttribute, dictionaryData, dictionaryItem, uploadOption, documentView, vcodeConfigOption };
11
12
  declare const setTheme: (options: ConfigProviderThemeVars) => {
12
13
  colorTheme?: string;
13
14
  colorWhite?: string;
@@ -781,7 +782,7 @@ declare const setTheme: (options: ConfigProviderThemeVars) => {
781
782
  signatureButtonMarginLeft?: string;
782
783
  };
783
784
  export { setTheme };
784
- export { zhyFormRenderer };
785
+ export { zhyFormRenderer, zhyPuzzleVcode };
785
786
  declare const _default: {
786
787
  install: (app: any, options?: ZhyConfigOptions) => void;
787
788
  };