zhytech-ui 1.1.21 → 1.1.23

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
@@ -71,6 +71,17 @@ setTheme("dark");
71
71
 
72
72
  > #### 版本更新清单:
73
73
 
74
+ **V 1.1.23**
75
+ ```html
76
+ 1.调整zhy-dynamic-filter组件中下拉框项目支持显示后缀
77
+ ```
78
+
79
+ **V 1.1.22**
80
+ ```html
81
+ 1.修复zhy-dynamic-designer组件在查看模式下,人员、岗位组件显示不正确
82
+ 2.优化代码
83
+ ```
84
+
74
85
  **V 1.1.21**
75
86
  ```html
76
87
  1.调整zhy-dynamic-filter组件的items参数支持unit(单位)属性
@@ -46,6 +46,10 @@ export interface propOptionType {
46
46
  * @description: 禁用
47
47
  */
48
48
  disabled?: boolean;
49
+ /**
50
+ * @description: 后缀
51
+ */
52
+ suffix?: string;
49
53
  }
50
54
  /**
51
55
  * @description: 过滤条件的属性类型
@@ -65,6 +65,13 @@ declare const _default: import('vue').DefineComponent<{
65
65
  type: BooleanConstructor;
66
66
  default: boolean;
67
67
  };
68
+ /**
69
+ * 实时显示答案模式
70
+ */
71
+ realTimeDisplayAnswerMode: {
72
+ type: BooleanConstructor;
73
+ default: boolean;
74
+ };
68
75
  }, {
69
76
  /**
70
77
  * @description: 获取表单数据
@@ -169,6 +176,13 @@ declare const _default: import('vue').DefineComponent<{
169
176
  type: BooleanConstructor;
170
177
  default: boolean;
171
178
  };
179
+ /**
180
+ * 实时显示答案模式
181
+ */
182
+ realTimeDisplayAnswerMode: {
183
+ type: BooleanConstructor;
184
+ default: boolean;
185
+ };
172
186
  }>> & {
173
187
  onChange?: ((...args: any[]) => any) | undefined;
174
188
  onSelect?: ((...args: any[]) => any) | undefined;
@@ -178,6 +192,7 @@ declare const _default: import('vue').DefineComponent<{
178
192
  selectMode: boolean;
179
193
  disabled: boolean;
180
194
  uploadOptions: uploadOption;
195
+ realTimeDisplayAnswerMode: boolean;
181
196
  device: string;
182
197
  watching: boolean;
183
198
  hiddenTitle: boolean;
@@ -18,4 +18,12 @@ export interface checkboxAttribute {
18
18
  * 选项
19
19
  */
20
20
  options: Record<string, any>[];
21
+ /**
22
+ * 试卷模式时,正确答案选项的值
23
+ */
24
+ correctOptions?: string[];
25
+ /**
26
+ * 试卷模式时,答案状态
27
+ */
28
+ examinationStatus?: number;
21
29
  }
@@ -10,4 +10,12 @@ export interface radioAttribute {
10
10
  * 选项
11
11
  */
12
12
  options: Record<string, any>[];
13
+ /**
14
+ * 试卷模式时,正确答案选项的值
15
+ */
16
+ correctOptions?: string[];
17
+ /**
18
+ * 试卷模式时,答案状态
19
+ */
20
+ examinationStatus?: number;
13
21
  }
@@ -0,0 +1,30 @@
1
+ /**
2
+ * 表单类型
3
+ */
4
+ export declare enum formTypeEnum {
5
+ /**
6
+ * 问卷
7
+ */
8
+ Form = "1",
9
+ /**
10
+ * 试卷
11
+ */
12
+ Examination = "2"
13
+ }
14
+ /**
15
+ * 试卷答案状态
16
+ */
17
+ export declare enum examinationStatusEnum {
18
+ /**
19
+ * 未作答
20
+ */
21
+ NotAnswered = 1,
22
+ /**
23
+ * 正确
24
+ */
25
+ Correct = 2,
26
+ /**
27
+ * 错误
28
+ */
29
+ Error = 3
30
+ }
@@ -56,11 +56,11 @@ export declare function useUtils(): {
56
56
  * @param selectVale 级联选择器选择的值
57
57
  * @param options 级联选择器的所有数据
58
58
  * @param valueName 级联选择器的数据类型value名字
59
- * @param chilName 级联选择器的数据类型children名字
59
+ * @param childName 级联选择器的数据类型children名字
60
60
  * @param multipleFlag 是否是多选
61
61
  * @returns
62
62
  */
63
- getCascaderFullValue<V, L>(selectVale: V | V[], options: L[], valueName: string, chilName: string, multipleFlag?: boolean): (L | V[] | L[] | V[][])[];
63
+ getCascaderFullValue<V, L>(selectVale: V | V[], options: L[], valueName: string, childName: string, multipleFlag?: boolean): (L | V[] | L[] | V[][])[];
64
64
  /**
65
65
  * 存储/读取localStorage数据
66
66
  * name: localStorage的key