@shwfed/config 3.0.16 → 3.0.18
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/dist/module.json +1 -1
- package/dist/runtime/components/actions/buttons/2026-06-25/com.shwfed.actions.button.state.write/config.d.vue.ts +8 -8
- package/dist/runtime/components/actions/buttons/2026-06-25/com.shwfed.actions.button.state.write/config.vue.d.ts +8 -8
- package/dist/runtime/components/actions/buttons/2026-07-13/com.shwfed.actions.button.state.write/config.d.vue.ts +8 -8
- package/dist/runtime/components/actions/buttons/2026-07-13/com.shwfed.actions.button.state.write/config.vue.d.ts +8 -8
- package/dist/runtime/components/actions/buttons/2026-07-13/com.shwfed.actions.button.state.write/runtime.vue +1 -16
- package/dist/runtime/components/config/blocks/2026-07-17/com.shwfed.block.invoice.realestate.lease/config.d.vue.ts +6 -6
- package/dist/runtime/components/config/blocks/2026-07-17/com.shwfed.block.invoice.realestate.lease/config.vue.d.ts +6 -6
- package/dist/runtime/components/config/blocks/2026-07-17/com.shwfed.block.invoice.realestate.lease/runtime.d.vue.ts +6 -6
- package/dist/runtime/components/config/blocks/2026-07-17/com.shwfed.block.invoice.realestate.lease/runtime.vue.d.ts +6 -6
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/config.d.vue.ts +22 -22
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/config.vue.d.ts +22 -22
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/config.d.vue.ts +22 -22
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/config.vue.d.ts +22 -22
- package/dist/runtime/components/form/index.vue +57 -2
- package/dist/runtime/components/form/schema.d.ts +5 -0
- package/dist/runtime/components/form/schema.js +14 -1
- package/dist/runtime/components/form/utils/state-write.d.ts +9 -0
- package/dist/runtime/components/form/utils/state-write.js +16 -0
- package/dist/runtime/components/operations/2026-07-19/com.shwfed.operation.form.state.write/config.d.vue.ts +21 -0
- package/dist/runtime/components/operations/2026-07-19/com.shwfed.operation.form.state.write/config.vue +100 -0
- package/dist/runtime/components/operations/2026-07-19/com.shwfed.operation.form.state.write/config.vue.d.ts +21 -0
- package/dist/runtime/components/operations/2026-07-19/com.shwfed.operation.form.state.write/schema.d.ts +18 -0
- package/dist/runtime/components/operations/2026-07-19/com.shwfed.operation.form.state.write/schema.js +47 -0
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.combobox-single/config.d.vue.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.combobox-single/config.vue +32 -0
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.combobox-single/config.vue.d.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.combobox-single/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.combobox-single/schema.js +1 -1
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.number-input/config.vue +32 -0
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.number-input/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.number-input/schema.js +1 -1
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch/config.vue +28 -0
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch/schema.js +1 -1
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch.local/config.vue +32 -0
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch.local/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch.local/schema.js +1 -1
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.text-input/config.vue +32 -0
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.text-input/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.text-input/schema.js +1 -1
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi/config.d.vue.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi/config.vue +32 -0
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi/config.vue.d.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi/schema.js +1 -1
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi/config.d.vue.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi/config.vue +22 -0
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi/config.vue.d.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi/schema.js +1 -1
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/config.d.vue.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/config.vue +22 -0
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/config.vue.d.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/schema.js +1 -1
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +4 -2
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/config.vue +22 -0
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +4 -2
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/schema.js +1 -1
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +4 -2
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/config.vue +22 -0
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +4 -2
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/schema.js +1 -1
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +4 -2
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/config.vue +22 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +4 -2
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/schema.js +1 -1
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +4 -2
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/config.vue +22 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +4 -2
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/schema.js +1 -1
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-multi/config.d.vue.ts +2 -0
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-multi/config.vue +22 -0
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-multi/config.vue.d.ts +2 -0
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-multi/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-multi/schema.js +2 -0
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-single/config.d.vue.ts +2 -0
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-single/config.vue +22 -0
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-single/config.vue.d.ts +2 -0
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-single/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-single/schema.js +2 -0
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +4 -2
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/config.vue +22 -0
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +4 -2
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/schema.js +1 -1
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +4 -2
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/config.vue +22 -0
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +4 -2
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/schema.js +1 -1
- package/dist/runtime/components/table/columns/2026-06-17/com.shwfed.table.column.date-input/config.vue +32 -0
- package/dist/runtime/components/table/columns/2026-06-17/com.shwfed.table.column.date-input/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-06-17/com.shwfed.table.column.date-input/schema.js +1 -1
- package/dist/runtime/components/table/columns/2026-06-22/com.shwfed.table.column.date-range-input/config.vue +32 -0
- package/dist/runtime/components/table/columns/2026-06-22/com.shwfed.table.column.date-range-input/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-06-22/com.shwfed.table.column.date-range-input/schema.js +1 -1
- package/dist/runtime/components/table/columns/2026-07-16/com.shwfed.table.column.upload/config.vue +32 -0
- package/dist/runtime/components/table/columns/2026-07-16/com.shwfed.table.column.upload/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-07-16/com.shwfed.table.column.upload/schema.js +1 -1
- package/dist/runtime/components/table/index.d.vue.ts +1 -0
- package/dist/runtime/components/table/index.vue +12 -1
- package/dist/runtime/components/table/index.vue.d.ts +1 -0
- package/dist/runtime/components/table/utils/shared.d.ts +3 -1
- package/dist/runtime/components/table/utils/shared.js +28 -2
- package/package.json +1 -1
|
@@ -23,6 +23,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
23
23
|
readonly locale: "en" | "ja" | "ko";
|
|
24
24
|
readonly message: string;
|
|
25
25
|
}[]] | undefined;
|
|
26
|
+
readonly required?: string | undefined;
|
|
26
27
|
readonly compatibilityDate: "2026-05-27";
|
|
27
28
|
readonly grow?: boolean | undefined;
|
|
28
29
|
readonly groupId?: string | undefined;
|
|
@@ -43,7 +44,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
43
44
|
readonly mode: "formula" | "prefill";
|
|
44
45
|
readonly expression: string;
|
|
45
46
|
} | undefined;
|
|
46
|
-
readonly enableSorting?: boolean | undefined;
|
|
47
47
|
readonly nodeKey: string;
|
|
48
48
|
readonly nodeChildren: string;
|
|
49
49
|
readonly nodeLabel: readonly [{
|
|
@@ -53,6 +53,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
53
53
|
readonly locale: "en" | "ja" | "ko";
|
|
54
54
|
readonly message: string;
|
|
55
55
|
}[]];
|
|
56
|
+
readonly enableSorting?: boolean | undefined;
|
|
56
57
|
readonly nodeTooltip?: readonly [{
|
|
57
58
|
readonly locale: "zh";
|
|
58
59
|
readonly message: string;
|
|
@@ -85,6 +86,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
85
86
|
readonly locale: "en" | "ja" | "ko";
|
|
86
87
|
readonly message: string;
|
|
87
88
|
}[]] | undefined;
|
|
89
|
+
readonly required?: string | undefined;
|
|
88
90
|
readonly compatibilityDate: "2026-05-27";
|
|
89
91
|
readonly grow?: boolean | undefined;
|
|
90
92
|
readonly groupId?: string | undefined;
|
|
@@ -105,7 +107,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
105
107
|
readonly mode: "formula" | "prefill";
|
|
106
108
|
readonly expression: string;
|
|
107
109
|
} | undefined;
|
|
108
|
-
readonly enableSorting?: boolean | undefined;
|
|
109
110
|
readonly nodeKey: string;
|
|
110
111
|
readonly nodeChildren: string;
|
|
111
112
|
readonly nodeLabel: readonly [{
|
|
@@ -115,6 +116,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
115
116
|
readonly locale: "en" | "ja" | "ko";
|
|
116
117
|
readonly message: string;
|
|
117
118
|
}[]];
|
|
119
|
+
readonly enableSorting?: boolean | undefined;
|
|
118
120
|
readonly nodeTooltip?: readonly [{
|
|
119
121
|
readonly locale: "zh";
|
|
120
122
|
readonly message: string;
|
|
@@ -108,6 +108,7 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
|
|
|
108
108
|
readonly locale: "en" | "ja" | "ko";
|
|
109
109
|
readonly message: string;
|
|
110
110
|
}[]], never>>;
|
|
111
|
+
required: Schema.optional<Schema.Schema<string, string, never>>;
|
|
111
112
|
id: Schema.refine<string, typeof Schema.String>;
|
|
112
113
|
groupId: Schema.optional<typeof Schema.UUID>;
|
|
113
114
|
type: Schema.Literal<["com.shwfed.table.column.tree-combobox-single"]>;
|
|
@@ -61,7 +61,7 @@ export function schema(configure) {
|
|
|
61
61
|
return Schema.Struct({
|
|
62
62
|
type: Schema.Literal(type),
|
|
63
63
|
compatibilityDate: Schema.Literal(compatibilityDate),
|
|
64
|
-
...editableColumnFields(),
|
|
64
|
+
...editableColumnFields(configure),
|
|
65
65
|
placeholder: Schema.optional(Locale.annotations({
|
|
66
66
|
title: "\u5360\u4F4D\u7B26",
|
|
67
67
|
description: "\u672A\u9009\u4E2D\u4EFB\u4F55\u9009\u9879\u65F6\u8F93\u5165\u6846\u4E2D\u7684\u5360\u4F4D\u6587\u672C"
|
|
@@ -23,6 +23,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
23
23
|
readonly locale: "en" | "ja" | "ko";
|
|
24
24
|
readonly message: string;
|
|
25
25
|
}[]] | undefined;
|
|
26
|
+
readonly required?: string | undefined;
|
|
26
27
|
readonly compatibilityDate: "2026-05-28";
|
|
27
28
|
readonly grow?: boolean | undefined;
|
|
28
29
|
readonly groupId?: string | undefined;
|
|
@@ -44,7 +45,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
44
45
|
readonly mode: "formula" | "prefill";
|
|
45
46
|
readonly expression: string;
|
|
46
47
|
} | undefined;
|
|
47
|
-
readonly enableSorting?: boolean | undefined;
|
|
48
48
|
readonly nodeKey: string;
|
|
49
49
|
readonly nodeChildren: string;
|
|
50
50
|
readonly nodeLabel: readonly [{
|
|
@@ -54,6 +54,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
54
54
|
readonly locale: "en" | "ja" | "ko";
|
|
55
55
|
readonly message: string;
|
|
56
56
|
}[]];
|
|
57
|
+
readonly enableSorting?: boolean | undefined;
|
|
57
58
|
readonly cascade: "independent" | "cascade-down" | "cascade-both";
|
|
58
59
|
readonly nodeTooltip?: readonly [{
|
|
59
60
|
readonly locale: "zh";
|
|
@@ -87,6 +88,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
87
88
|
readonly locale: "en" | "ja" | "ko";
|
|
88
89
|
readonly message: string;
|
|
89
90
|
}[]] | undefined;
|
|
91
|
+
readonly required?: string | undefined;
|
|
90
92
|
readonly compatibilityDate: "2026-05-28";
|
|
91
93
|
readonly grow?: boolean | undefined;
|
|
92
94
|
readonly groupId?: string | undefined;
|
|
@@ -108,7 +110,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
108
110
|
readonly mode: "formula" | "prefill";
|
|
109
111
|
readonly expression: string;
|
|
110
112
|
} | undefined;
|
|
111
|
-
readonly enableSorting?: boolean | undefined;
|
|
112
113
|
readonly nodeKey: string;
|
|
113
114
|
readonly nodeChildren: string;
|
|
114
115
|
readonly nodeLabel: readonly [{
|
|
@@ -118,6 +119,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
118
119
|
readonly locale: "en" | "ja" | "ko";
|
|
119
120
|
readonly message: string;
|
|
120
121
|
}[]];
|
|
122
|
+
readonly enableSorting?: boolean | undefined;
|
|
121
123
|
readonly cascade: "independent" | "cascade-down" | "cascade-both";
|
|
122
124
|
readonly nodeTooltip?: readonly [{
|
|
123
125
|
readonly locale: "zh";
|
|
@@ -578,6 +578,28 @@ const derivedModel = computed({
|
|
|
578
578
|
@update:model-value="(v) => setOptionalExpression('readonly', v)"
|
|
579
579
|
/>
|
|
580
580
|
</Field>
|
|
581
|
+
<Field orientation="vertical">
|
|
582
|
+
<FieldLabel class="text-xs text-zinc-500">
|
|
583
|
+
<template
|
|
584
|
+
v-if="fieldDescription('required')"
|
|
585
|
+
#tooltip
|
|
586
|
+
>
|
|
587
|
+
<Markdown
|
|
588
|
+
:source="fieldDescription('required')"
|
|
589
|
+
block
|
|
590
|
+
class="prose prose-sm prose-zinc"
|
|
591
|
+
/>
|
|
592
|
+
</template>
|
|
593
|
+
{{ fieldTitle("required") }}
|
|
594
|
+
</FieldLabel>
|
|
595
|
+
<ExpressionEditor
|
|
596
|
+
:model-value="value.required ?? ''"
|
|
597
|
+
placeholder="例:row.type == 'company'"
|
|
598
|
+
result-type="bool"
|
|
599
|
+
:extra-vars="ROW_VARS"
|
|
600
|
+
@update:model-value="(v) => setOptionalExpression('required', v)"
|
|
601
|
+
/>
|
|
602
|
+
</Field>
|
|
581
603
|
<Field
|
|
582
604
|
orientation="vertical"
|
|
583
605
|
class="col-span-2"
|
|
@@ -23,6 +23,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
23
23
|
readonly locale: "en" | "ja" | "ko";
|
|
24
24
|
readonly message: string;
|
|
25
25
|
}[]] | undefined;
|
|
26
|
+
readonly required?: string | undefined;
|
|
26
27
|
readonly compatibilityDate: "2026-05-28";
|
|
27
28
|
readonly grow?: boolean | undefined;
|
|
28
29
|
readonly groupId?: string | undefined;
|
|
@@ -44,7 +45,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
44
45
|
readonly mode: "formula" | "prefill";
|
|
45
46
|
readonly expression: string;
|
|
46
47
|
} | undefined;
|
|
47
|
-
readonly enableSorting?: boolean | undefined;
|
|
48
48
|
readonly nodeKey: string;
|
|
49
49
|
readonly nodeChildren: string;
|
|
50
50
|
readonly nodeLabel: readonly [{
|
|
@@ -54,6 +54,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
54
54
|
readonly locale: "en" | "ja" | "ko";
|
|
55
55
|
readonly message: string;
|
|
56
56
|
}[]];
|
|
57
|
+
readonly enableSorting?: boolean | undefined;
|
|
57
58
|
readonly cascade: "independent" | "cascade-down" | "cascade-both";
|
|
58
59
|
readonly nodeTooltip?: readonly [{
|
|
59
60
|
readonly locale: "zh";
|
|
@@ -87,6 +88,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
87
88
|
readonly locale: "en" | "ja" | "ko";
|
|
88
89
|
readonly message: string;
|
|
89
90
|
}[]] | undefined;
|
|
91
|
+
readonly required?: string | undefined;
|
|
90
92
|
readonly compatibilityDate: "2026-05-28";
|
|
91
93
|
readonly grow?: boolean | undefined;
|
|
92
94
|
readonly groupId?: string | undefined;
|
|
@@ -108,7 +110,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
108
110
|
readonly mode: "formula" | "prefill";
|
|
109
111
|
readonly expression: string;
|
|
110
112
|
} | undefined;
|
|
111
|
-
readonly enableSorting?: boolean | undefined;
|
|
112
113
|
readonly nodeKey: string;
|
|
113
114
|
readonly nodeChildren: string;
|
|
114
115
|
readonly nodeLabel: readonly [{
|
|
@@ -118,6 +119,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
118
119
|
readonly locale: "en" | "ja" | "ko";
|
|
119
120
|
readonly message: string;
|
|
120
121
|
}[]];
|
|
122
|
+
readonly enableSorting?: boolean | undefined;
|
|
121
123
|
readonly cascade: "independent" | "cascade-down" | "cascade-both";
|
|
122
124
|
readonly nodeTooltip?: readonly [{
|
|
123
125
|
readonly locale: "zh";
|
|
@@ -113,6 +113,7 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
|
|
|
113
113
|
readonly locale: "en" | "ja" | "ko";
|
|
114
114
|
readonly message: string;
|
|
115
115
|
}[]], never>>;
|
|
116
|
+
required: Schema.optional<Schema.Schema<string, string, never>>;
|
|
116
117
|
id: Schema.refine<string, typeof Schema.String>;
|
|
117
118
|
groupId: Schema.optional<typeof Schema.UUID>;
|
|
118
119
|
type: Schema.Literal<["com.shwfed.table.column.tree-combobox-multi"]>;
|
|
@@ -64,7 +64,7 @@ export function schema(configure) {
|
|
|
64
64
|
return Schema.Struct({
|
|
65
65
|
type: Schema.Literal(type),
|
|
66
66
|
compatibilityDate: Schema.Literal(compatibilityDate),
|
|
67
|
-
...editableColumnFields(),
|
|
67
|
+
...editableColumnFields(configure),
|
|
68
68
|
placeholder: Schema.optional(Locale.annotations({
|
|
69
69
|
title: "\u5360\u4F4D\u7B26",
|
|
70
70
|
description: "\u672A\u9009\u4E2D\u4EFB\u4F55\u9009\u9879\u65F6\u8F93\u5165\u6846\u4E2D\u7684\u5360\u4F4D\u6587\u672C"
|
|
@@ -23,6 +23,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
23
23
|
readonly locale: "en" | "ja" | "ko";
|
|
24
24
|
readonly message: string;
|
|
25
25
|
}[]] | undefined;
|
|
26
|
+
readonly required?: string | undefined;
|
|
26
27
|
readonly compatibilityDate: "2026-05-28";
|
|
27
28
|
readonly grow?: boolean | undefined;
|
|
28
29
|
readonly groupId?: string | undefined;
|
|
@@ -44,7 +45,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
44
45
|
readonly mode: "formula" | "prefill";
|
|
45
46
|
readonly expression: string;
|
|
46
47
|
} | undefined;
|
|
47
|
-
readonly enableSorting?: boolean | undefined;
|
|
48
48
|
readonly nodeKey: string;
|
|
49
49
|
readonly nodeChildren: string;
|
|
50
50
|
readonly nodeLabel: readonly [{
|
|
@@ -54,6 +54,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
54
54
|
readonly locale: "en" | "ja" | "ko";
|
|
55
55
|
readonly message: string;
|
|
56
56
|
}[]];
|
|
57
|
+
readonly enableSorting?: boolean | undefined;
|
|
57
58
|
readonly nodeTooltip?: readonly [{
|
|
58
59
|
readonly locale: "zh";
|
|
59
60
|
readonly message: string;
|
|
@@ -86,6 +87,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
86
87
|
readonly locale: "en" | "ja" | "ko";
|
|
87
88
|
readonly message: string;
|
|
88
89
|
}[]] | undefined;
|
|
90
|
+
readonly required?: string | undefined;
|
|
89
91
|
readonly compatibilityDate: "2026-05-28";
|
|
90
92
|
readonly grow?: boolean | undefined;
|
|
91
93
|
readonly groupId?: string | undefined;
|
|
@@ -107,7 +109,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
107
109
|
readonly mode: "formula" | "prefill";
|
|
108
110
|
readonly expression: string;
|
|
109
111
|
} | undefined;
|
|
110
|
-
readonly enableSorting?: boolean | undefined;
|
|
111
112
|
readonly nodeKey: string;
|
|
112
113
|
readonly nodeChildren: string;
|
|
113
114
|
readonly nodeLabel: readonly [{
|
|
@@ -117,6 +118,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
117
118
|
readonly locale: "en" | "ja" | "ko";
|
|
118
119
|
readonly message: string;
|
|
119
120
|
}[]];
|
|
121
|
+
readonly enableSorting?: boolean | undefined;
|
|
120
122
|
readonly nodeTooltip?: readonly [{
|
|
121
123
|
readonly locale: "zh";
|
|
122
124
|
readonly message: string;
|
|
@@ -509,6 +509,28 @@ const derivedModel = computed({
|
|
|
509
509
|
@update:model-value="(v) => setOptionalExpression('readonly', v)"
|
|
510
510
|
/>
|
|
511
511
|
</Field>
|
|
512
|
+
<Field orientation="vertical">
|
|
513
|
+
<FieldLabel class="text-xs text-zinc-500">
|
|
514
|
+
<template
|
|
515
|
+
v-if="fieldDescription('required')"
|
|
516
|
+
#tooltip
|
|
517
|
+
>
|
|
518
|
+
<Markdown
|
|
519
|
+
:source="fieldDescription('required')"
|
|
520
|
+
block
|
|
521
|
+
class="prose prose-sm prose-zinc"
|
|
522
|
+
/>
|
|
523
|
+
</template>
|
|
524
|
+
{{ fieldTitle("required") }}
|
|
525
|
+
</FieldLabel>
|
|
526
|
+
<ExpressionEditor
|
|
527
|
+
:model-value="value.required ?? ''"
|
|
528
|
+
placeholder="例:row.type == 'company'"
|
|
529
|
+
result-type="bool"
|
|
530
|
+
:extra-vars="ROW_VARS"
|
|
531
|
+
@update:model-value="(v) => setOptionalExpression('required', v)"
|
|
532
|
+
/>
|
|
533
|
+
</Field>
|
|
512
534
|
<Field
|
|
513
535
|
orientation="vertical"
|
|
514
536
|
class="col-span-2"
|
|
@@ -23,6 +23,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
23
23
|
readonly locale: "en" | "ja" | "ko";
|
|
24
24
|
readonly message: string;
|
|
25
25
|
}[]] | undefined;
|
|
26
|
+
readonly required?: string | undefined;
|
|
26
27
|
readonly compatibilityDate: "2026-05-28";
|
|
27
28
|
readonly grow?: boolean | undefined;
|
|
28
29
|
readonly groupId?: string | undefined;
|
|
@@ -44,7 +45,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
44
45
|
readonly mode: "formula" | "prefill";
|
|
45
46
|
readonly expression: string;
|
|
46
47
|
} | undefined;
|
|
47
|
-
readonly enableSorting?: boolean | undefined;
|
|
48
48
|
readonly nodeKey: string;
|
|
49
49
|
readonly nodeChildren: string;
|
|
50
50
|
readonly nodeLabel: readonly [{
|
|
@@ -54,6 +54,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
54
54
|
readonly locale: "en" | "ja" | "ko";
|
|
55
55
|
readonly message: string;
|
|
56
56
|
}[]];
|
|
57
|
+
readonly enableSorting?: boolean | undefined;
|
|
57
58
|
readonly nodeTooltip?: readonly [{
|
|
58
59
|
readonly locale: "zh";
|
|
59
60
|
readonly message: string;
|
|
@@ -86,6 +87,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
86
87
|
readonly locale: "en" | "ja" | "ko";
|
|
87
88
|
readonly message: string;
|
|
88
89
|
}[]] | undefined;
|
|
90
|
+
readonly required?: string | undefined;
|
|
89
91
|
readonly compatibilityDate: "2026-05-28";
|
|
90
92
|
readonly grow?: boolean | undefined;
|
|
91
93
|
readonly groupId?: string | undefined;
|
|
@@ -107,7 +109,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
107
109
|
readonly mode: "formula" | "prefill";
|
|
108
110
|
readonly expression: string;
|
|
109
111
|
} | undefined;
|
|
110
|
-
readonly enableSorting?: boolean | undefined;
|
|
111
112
|
readonly nodeKey: string;
|
|
112
113
|
readonly nodeChildren: string;
|
|
113
114
|
readonly nodeLabel: readonly [{
|
|
@@ -117,6 +118,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
117
118
|
readonly locale: "en" | "ja" | "ko";
|
|
118
119
|
readonly message: string;
|
|
119
120
|
}[]];
|
|
121
|
+
readonly enableSorting?: boolean | undefined;
|
|
120
122
|
readonly nodeTooltip?: readonly [{
|
|
121
123
|
readonly locale: "zh";
|
|
122
124
|
readonly message: string;
|
|
@@ -110,6 +110,7 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
|
|
|
110
110
|
readonly locale: "en" | "ja" | "ko";
|
|
111
111
|
readonly message: string;
|
|
112
112
|
}[]], never>>;
|
|
113
|
+
required: Schema.optional<Schema.Schema<string, string, never>>;
|
|
113
114
|
id: Schema.refine<string, typeof Schema.String>;
|
|
114
115
|
groupId: Schema.optional<typeof Schema.UUID>;
|
|
115
116
|
type: Schema.Literal<["com.shwfed.table.column.tree-combobox-single"]>;
|
|
@@ -64,7 +64,7 @@ export function schema(configure) {
|
|
|
64
64
|
return Schema.Struct({
|
|
65
65
|
type: Schema.Literal(type),
|
|
66
66
|
compatibilityDate: Schema.Literal(compatibilityDate),
|
|
67
|
-
...editableColumnFields(),
|
|
67
|
+
...editableColumnFields(configure),
|
|
68
68
|
placeholder: Schema.optional(Locale.annotations({
|
|
69
69
|
title: "\u5360\u4F4D\u7B26",
|
|
70
70
|
description: "\u672A\u9009\u4E2D\u4EFB\u4F55\u9009\u9879\u65F6\u8F93\u5165\u6846\u4E2D\u7684\u5360\u4F4D\u6587\u672C"
|
|
@@ -24,6 +24,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
24
24
|
readonly message: string;
|
|
25
25
|
}[]] | undefined;
|
|
26
26
|
readonly align: "center" | "left" | "right";
|
|
27
|
+
readonly required?: string | undefined;
|
|
27
28
|
readonly options: {
|
|
28
29
|
readonly kind: "remote";
|
|
29
30
|
readonly options: string;
|
|
@@ -111,6 +112,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
111
112
|
readonly message: string;
|
|
112
113
|
}[]] | undefined;
|
|
113
114
|
readonly align: "center" | "left" | "right";
|
|
115
|
+
readonly required?: string | undefined;
|
|
114
116
|
readonly options: {
|
|
115
117
|
readonly kind: "remote";
|
|
116
118
|
readonly options: string;
|
|
@@ -105,6 +105,7 @@ function celModel(field) {
|
|
|
105
105
|
}
|
|
106
106
|
const disabledModel = celModel("disabled");
|
|
107
107
|
const readonlyModel = celModel("readonly");
|
|
108
|
+
const requiredModel = celModel("required");
|
|
108
109
|
function onHiddenChange(v) {
|
|
109
110
|
if (v) {
|
|
110
111
|
value.value = { ...value.value, hidden: true };
|
|
@@ -1004,6 +1005,27 @@ function setItemKeywords(index, text) {
|
|
|
1004
1005
|
:extra-vars="ROW_VARS"
|
|
1005
1006
|
/>
|
|
1006
1007
|
</Field>
|
|
1008
|
+
<Field orientation="vertical">
|
|
1009
|
+
<FieldLabel class="text-xs text-zinc-500">
|
|
1010
|
+
<template
|
|
1011
|
+
v-if="fieldDescription('required')"
|
|
1012
|
+
#tooltip
|
|
1013
|
+
>
|
|
1014
|
+
<Markdown
|
|
1015
|
+
:source="fieldDescription('required')"
|
|
1016
|
+
block
|
|
1017
|
+
class="prose prose-sm prose-zinc"
|
|
1018
|
+
/>
|
|
1019
|
+
</template>
|
|
1020
|
+
{{ fieldTitle("required") }}
|
|
1021
|
+
</FieldLabel>
|
|
1022
|
+
<ExpressionEditor
|
|
1023
|
+
v-model="requiredModel"
|
|
1024
|
+
placeholder="例:row.type == 'company'"
|
|
1025
|
+
result-type="bool"
|
|
1026
|
+
:extra-vars="ROW_VARS"
|
|
1027
|
+
/>
|
|
1028
|
+
</Field>
|
|
1007
1029
|
</div>
|
|
1008
1030
|
<Separator />
|
|
1009
1031
|
<div class="flex flex-wrap gap-x-8 gap-y-3">
|
|
@@ -24,6 +24,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
24
24
|
readonly message: string;
|
|
25
25
|
}[]] | undefined;
|
|
26
26
|
readonly align: "center" | "left" | "right";
|
|
27
|
+
readonly required?: string | undefined;
|
|
27
28
|
readonly options: {
|
|
28
29
|
readonly kind: "remote";
|
|
29
30
|
readonly options: string;
|
|
@@ -111,6 +112,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
111
112
|
readonly message: string;
|
|
112
113
|
}[]] | undefined;
|
|
113
114
|
readonly align: "center" | "left" | "right";
|
|
115
|
+
readonly required?: string | undefined;
|
|
114
116
|
readonly options: {
|
|
115
117
|
readonly kind: "remote";
|
|
116
118
|
readonly options: string;
|
|
@@ -168,6 +168,7 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
|
|
|
168
168
|
}[]], never>>;
|
|
169
169
|
disabled: Schema.optional<Schema.Schema<string, string, never>>;
|
|
170
170
|
readonly: Schema.optional<Schema.Schema<string, string, never>>;
|
|
171
|
+
required: Schema.optional<Schema.Schema<string, string, never>>;
|
|
171
172
|
enableSorting: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
172
173
|
sortKey: Schema.optional<Schema.refine<string, typeof Schema.String>>;
|
|
173
174
|
size: Schema.optional<Schema.refine<number, Schema.filter<typeof Schema.Number>>>;
|
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
columnFields,
|
|
10
10
|
columnIdentityFields,
|
|
11
11
|
editableHeader,
|
|
12
|
+
editableRequiredField,
|
|
12
13
|
LocaleMarkdownWithRow,
|
|
13
14
|
registerRowVariablesIfAbsent
|
|
14
15
|
} from "../../../utils/shared.js";
|
|
@@ -192,6 +193,7 @@ export function schema(configure) {
|
|
|
192
193
|
title: "\u53EA\u8BFB\u6761\u4EF6",
|
|
193
194
|
description: "\u8FD4\u56DE `true` \u65F6\u4EC5\u4EE5\u7EAF\u6587\u672C\u5C55\u793A\u5F53\u524D\u5DF2\u9009\u9879\u7684\u6807\u7B7E"
|
|
194
195
|
})),
|
|
196
|
+
required: editableRequiredField(configure),
|
|
195
197
|
enableSorting: display.enableSorting,
|
|
196
198
|
sortKey: display.sortKey,
|
|
197
199
|
size: display.size,
|
|
@@ -24,6 +24,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
24
24
|
readonly message: string;
|
|
25
25
|
}[]] | undefined;
|
|
26
26
|
readonly align: "center" | "left" | "right";
|
|
27
|
+
readonly required?: string | undefined;
|
|
27
28
|
readonly options: {
|
|
28
29
|
readonly kind: "remote";
|
|
29
30
|
readonly options: string;
|
|
@@ -111,6 +112,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
111
112
|
readonly message: string;
|
|
112
113
|
}[]] | undefined;
|
|
113
114
|
readonly align: "center" | "left" | "right";
|
|
115
|
+
readonly required?: string | undefined;
|
|
114
116
|
readonly options: {
|
|
115
117
|
readonly kind: "remote";
|
|
116
118
|
readonly options: string;
|
|
@@ -105,6 +105,7 @@ function celModel(field) {
|
|
|
105
105
|
}
|
|
106
106
|
const disabledModel = celModel("disabled");
|
|
107
107
|
const readonlyModel = celModel("readonly");
|
|
108
|
+
const requiredModel = celModel("required");
|
|
108
109
|
function onHiddenChange(v) {
|
|
109
110
|
if (v) {
|
|
110
111
|
value.value = { ...value.value, hidden: true };
|
|
@@ -1004,6 +1005,27 @@ function setItemKeywords(index, text) {
|
|
|
1004
1005
|
:extra-vars="ROW_VARS"
|
|
1005
1006
|
/>
|
|
1006
1007
|
</Field>
|
|
1008
|
+
<Field orientation="vertical">
|
|
1009
|
+
<FieldLabel class="text-xs text-zinc-500">
|
|
1010
|
+
<template
|
|
1011
|
+
v-if="fieldDescription('required')"
|
|
1012
|
+
#tooltip
|
|
1013
|
+
>
|
|
1014
|
+
<Markdown
|
|
1015
|
+
:source="fieldDescription('required')"
|
|
1016
|
+
block
|
|
1017
|
+
class="prose prose-sm prose-zinc"
|
|
1018
|
+
/>
|
|
1019
|
+
</template>
|
|
1020
|
+
{{ fieldTitle("required") }}
|
|
1021
|
+
</FieldLabel>
|
|
1022
|
+
<ExpressionEditor
|
|
1023
|
+
v-model="requiredModel"
|
|
1024
|
+
placeholder="例:row.type == 'company'"
|
|
1025
|
+
result-type="bool"
|
|
1026
|
+
:extra-vars="ROW_VARS"
|
|
1027
|
+
/>
|
|
1028
|
+
</Field>
|
|
1007
1029
|
</div>
|
|
1008
1030
|
<Separator />
|
|
1009
1031
|
<div class="flex flex-wrap gap-x-8 gap-y-3">
|
|
@@ -24,6 +24,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
24
24
|
readonly message: string;
|
|
25
25
|
}[]] | undefined;
|
|
26
26
|
readonly align: "center" | "left" | "right";
|
|
27
|
+
readonly required?: string | undefined;
|
|
27
28
|
readonly options: {
|
|
28
29
|
readonly kind: "remote";
|
|
29
30
|
readonly options: string;
|
|
@@ -111,6 +112,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
111
112
|
readonly message: string;
|
|
112
113
|
}[]] | undefined;
|
|
113
114
|
readonly align: "center" | "left" | "right";
|
|
115
|
+
readonly required?: string | undefined;
|
|
114
116
|
readonly options: {
|
|
115
117
|
readonly kind: "remote";
|
|
116
118
|
readonly options: string;
|
|
@@ -168,6 +168,7 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
|
|
|
168
168
|
}[]], never>>;
|
|
169
169
|
disabled: Schema.optional<Schema.Schema<string, string, never>>;
|
|
170
170
|
readonly: Schema.optional<Schema.Schema<string, string, never>>;
|
|
171
|
+
required: Schema.optional<Schema.Schema<string, string, never>>;
|
|
171
172
|
enableSorting: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
172
173
|
sortKey: Schema.optional<Schema.refine<string, typeof Schema.String>>;
|
|
173
174
|
size: Schema.optional<Schema.refine<number, Schema.filter<typeof Schema.Number>>>;
|
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
columnFields,
|
|
10
10
|
columnIdentityFields,
|
|
11
11
|
editableHeader,
|
|
12
|
+
editableRequiredField,
|
|
12
13
|
LocaleMarkdownWithRow,
|
|
13
14
|
registerRowVariablesIfAbsent
|
|
14
15
|
} from "../../../utils/shared.js";
|
|
@@ -192,6 +193,7 @@ export function schema(configure) {
|
|
|
192
193
|
title: "\u53EA\u8BFB\u6761\u4EF6",
|
|
193
194
|
description: "\u8FD4\u56DE `true` \u65F6\u4EC5\u4EE5\u7EAF\u6587\u672C\u5C55\u793A\u5F53\u524D\u9009\u9879\u7684\u6807\u7B7E"
|
|
194
195
|
})),
|
|
196
|
+
required: editableRequiredField(configure),
|
|
195
197
|
enableSorting: display.enableSorting,
|
|
196
198
|
sortKey: display.sortKey,
|
|
197
199
|
size: display.size,
|
|
@@ -24,6 +24,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
24
24
|
readonly message: string;
|
|
25
25
|
}[]] | undefined;
|
|
26
26
|
readonly align: "center" | "left" | "right";
|
|
27
|
+
readonly required?: string | undefined;
|
|
27
28
|
readonly compatibilityDate: "2026-06-14";
|
|
28
29
|
readonly grow?: boolean | undefined;
|
|
29
30
|
readonly groupId?: string | undefined;
|
|
@@ -45,10 +46,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
45
46
|
readonly mode: "formula" | "prefill";
|
|
46
47
|
readonly expression: string;
|
|
47
48
|
} | undefined;
|
|
48
|
-
readonly enableSorting?: boolean | undefined;
|
|
49
49
|
readonly nodeKey: string;
|
|
50
50
|
readonly nodeChildren: string;
|
|
51
51
|
readonly nodeLabel: string;
|
|
52
|
+
readonly enableSorting?: boolean | undefined;
|
|
52
53
|
readonly cascade: "independent" | "cascade-down" | "cascade-both";
|
|
53
54
|
readonly nodeTooltip?: readonly [{
|
|
54
55
|
readonly locale: "zh";
|
|
@@ -83,6 +84,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
83
84
|
readonly message: string;
|
|
84
85
|
}[]] | undefined;
|
|
85
86
|
readonly align: "center" | "left" | "right";
|
|
87
|
+
readonly required?: string | undefined;
|
|
86
88
|
readonly compatibilityDate: "2026-06-14";
|
|
87
89
|
readonly grow?: boolean | undefined;
|
|
88
90
|
readonly groupId?: string | undefined;
|
|
@@ -104,10 +106,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
104
106
|
readonly mode: "formula" | "prefill";
|
|
105
107
|
readonly expression: string;
|
|
106
108
|
} | undefined;
|
|
107
|
-
readonly enableSorting?: boolean | undefined;
|
|
108
109
|
readonly nodeKey: string;
|
|
109
110
|
readonly nodeChildren: string;
|
|
110
111
|
readonly nodeLabel: string;
|
|
112
|
+
readonly enableSorting?: boolean | undefined;
|
|
111
113
|
readonly cascade: "independent" | "cascade-down" | "cascade-both";
|
|
112
114
|
readonly nodeTooltip?: readonly [{
|
|
113
115
|
readonly locale: "zh";
|
|
@@ -602,6 +602,28 @@ const derivedModel = computed({
|
|
|
602
602
|
@update:model-value="(v) => setOptionalExpression('readonly', v)"
|
|
603
603
|
/>
|
|
604
604
|
</Field>
|
|
605
|
+
<Field orientation="vertical">
|
|
606
|
+
<FieldLabel class="text-xs text-zinc-500">
|
|
607
|
+
<template
|
|
608
|
+
v-if="fieldDescription('required')"
|
|
609
|
+
#tooltip
|
|
610
|
+
>
|
|
611
|
+
<Markdown
|
|
612
|
+
:source="fieldDescription('required')"
|
|
613
|
+
block
|
|
614
|
+
class="prose prose-sm prose-zinc"
|
|
615
|
+
/>
|
|
616
|
+
</template>
|
|
617
|
+
{{ fieldTitle("required") }}
|
|
618
|
+
</FieldLabel>
|
|
619
|
+
<ExpressionEditor
|
|
620
|
+
:model-value="value.required ?? ''"
|
|
621
|
+
placeholder="例:row.type == 'company'"
|
|
622
|
+
result-type="bool"
|
|
623
|
+
:extra-vars="ROW_VARS"
|
|
624
|
+
@update:model-value="(v) => setOptionalExpression('required', v)"
|
|
625
|
+
/>
|
|
626
|
+
</Field>
|
|
605
627
|
<Field
|
|
606
628
|
orientation="vertical"
|
|
607
629
|
class="col-span-2"
|