@farris/x-ui 0.4.9 → 0.5.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/farris.x-ui.esm.js +9382 -9015
- package/farris.x-ui.umd.cjs +111 -110
- package/hitl-question/src/hitl-question.component.d.ts +2 -2
- package/hitl-question/src/types.d.ts +7 -0
- package/index.css +1 -1
- package/markdown/src/composition/use-literal-dollar-placeholders.d.ts +4 -0
- package/package.json +1 -1
|
@@ -10,7 +10,7 @@ declare const _default: import('../../../vue').DefineComponent<import('../../../
|
|
|
10
10
|
type: BooleanConstructor;
|
|
11
11
|
default: boolean;
|
|
12
12
|
};
|
|
13
|
-
/**
|
|
13
|
+
/** `props.required` 为 true 时启用题级必填校验;`false` 时全部放行(与原语义保持一致) */
|
|
14
14
|
required: {
|
|
15
15
|
type: BooleanConstructor;
|
|
16
16
|
default: boolean;
|
|
@@ -63,7 +63,7 @@ declare const _default: import('../../../vue').DefineComponent<import('../../../
|
|
|
63
63
|
type: BooleanConstructor;
|
|
64
64
|
default: boolean;
|
|
65
65
|
};
|
|
66
|
-
/**
|
|
66
|
+
/** `props.required` 为 true 时启用题级必填校验;`false` 时全部放行(与原语义保持一致) */
|
|
67
67
|
required: {
|
|
68
68
|
type: BooleanConstructor;
|
|
69
69
|
default: boolean;
|
|
@@ -32,6 +32,13 @@ export interface HitlQuestionItem {
|
|
|
32
32
|
options?: HitlQuestionOption[];
|
|
33
33
|
fields?: HitlQuestionField[];
|
|
34
34
|
allow_other?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* 是否必填。
|
|
37
|
+
* - `true` 表示此题目可空(用户可不作答也能「下一条/提交」)。
|
|
38
|
+
* - 缺省/`undefined`/`false` 表示此题目必填,未作答会被门控拦截。
|
|
39
|
+
* 与 `form` 类型题目的 `fields[].required` 子字段级标记不同,此标记作用于整个题目。
|
|
40
|
+
*/
|
|
41
|
+
optional?: boolean;
|
|
35
42
|
placeholder?: string;
|
|
36
43
|
default_value?: string;
|
|
37
44
|
min?: number;
|