@shwfed/config 2.10.0 → 2.10.2
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/mcp.mjs +4125 -3183
- package/dist/module.json +1 -1
- package/dist/preview/assets/{FieldGroup.vue_vue_type_script_setup_true_lang-CCaOWk_7.js → FieldGroup.vue_vue_type_script_setup_true_lang-DX5M_WNF.js} +1 -1
- package/dist/preview/assets/{badge-D9_7atSJ.js → badge-DFZBH8N6.js} +1 -1
- package/dist/preview/assets/{config-B2d8SiPi.js → config-BH2BmDoD.js} +1 -1
- package/dist/preview/assets/{config-Bk2VSNeu.js → config-Bg7a8Rid.js} +1 -1
- package/dist/preview/assets/{config-DYxMKhCU.js → config-BiOW8fS2.js} +1 -1
- package/dist/preview/assets/{config-CNKb25Qo.js → config-Bnp547Nm.js} +1 -1
- package/dist/preview/assets/{config-Bf5Vckj3.js → config-CSmHhOh2.js} +1 -1
- package/dist/preview/assets/{config-CQrqVV1U.js → config-CTF5-TTQ.js} +1 -1
- package/dist/preview/assets/{config-DWA385pD.js → config-CqeWJt_H.js} +1 -1
- package/dist/preview/assets/{config-BLEovXei.js → config-DBtEKoan.js} +1 -1
- package/dist/preview/assets/{config-DyPl6K2G.js → config-DeDCNzY_.js} +1 -1
- package/dist/preview/assets/{config-C9WPOoA7.js → config-Dj3w2JkF.js} +1 -1
- package/dist/preview/assets/{config-DZlaJUlF.js → config-XGJ9V32V.js} +1 -1
- package/dist/preview/assets/{config-C8lCItmz.js → config-uIHUHvNR.js} +1 -1
- package/dist/preview/assets/{definition.vue_vue_type_script_setup_true_lang-CFzQ7icU.js → definition.vue_vue_type_script_setup_true_lang-Cu0CEKYT.js} +1 -1
- package/dist/preview/assets/index-CGChrBji.js +1 -0
- package/dist/preview/assets/{index-CXOEVGFP.js → index-CQA6q2ay.js} +1 -1
- package/dist/preview/assets/index-DX9_iE4h.js +743 -0
- package/dist/preview/assets/{index-BnJ5p1Mx.css → index-pkoEF5dC.css} +1 -1
- package/dist/preview/assets/{item-DCVX69_o.js → item-C4VJfiq8.js} +1 -1
- package/dist/preview/assets/{runtime-DEWGIyvr.js → runtime-6Zrje7Y1.js} +1 -1
- package/dist/preview/assets/{runtime-O6MNC3GA.js → runtime-BN-jMAt7.js} +1 -1
- package/dist/preview/assets/{runtime-BD1A-g1h.js → runtime-BQMnWueG.js} +1 -1
- package/dist/preview/assets/{runtime-BsNSI1XP.js → runtime-CBz5XstF.js} +1 -1
- package/dist/preview/assets/{runtime-BNk4EliL.js → runtime-CFb1tHwr.js} +1 -1
- package/dist/preview/assets/{runtime-Cbc5NH57.js → runtime-DQL6lCFp.js} +1 -1
- package/dist/preview/assets/{runtime-DSfMvph3.js → runtime-DcdmMgqL.js} +1 -1
- package/dist/preview/assets/{runtime-DJ9ElxWB.js → runtime-okYOTQd6.js} +1 -1
- package/dist/preview/assets/{runtime-BO-KY3T_.js → runtime-qPyuMgsh.js} +1 -1
- package/dist/preview/assets/{runtime-r1wbrr4k.js → runtime-yfWYeUh4.js} +1 -1
- package/dist/preview/assets/{schema-meta-ovcuERKg.js → schema-meta-6ZPO8dHv.js} +1 -1
- package/dist/preview/index.html +2 -2
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.form/config.d.vue.ts +2 -2
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.form/config.vue.d.ts +2 -2
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.form/runtime.d.vue.ts +4 -4
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.form/runtime.vue.d.ts +4 -4
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.form/schema.d.ts +1 -1
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/config.d.vue.ts +2 -2
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/config.vue.d.ts +2 -2
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/runtime.d.vue.ts +2 -2
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/runtime.vue.d.ts +2 -2
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/schema.d.ts +2 -2
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.combobox.single/config.d.vue.ts +16 -16
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.combobox.single/config.vue.d.ts +16 -16
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/config.d.vue.ts +6 -6
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/config.vue.d.ts +6 -6
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/config.d.vue.ts +6 -6
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/config.vue.d.ts +6 -6
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.switch/config.d.vue.ts +22 -22
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.switch/config.vue.d.ts +22 -22
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.combobox.single.remote/config.d.vue.ts +16 -16
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.combobox.single.remote/config.vue.d.ts +16 -16
- package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/config.d.vue.ts +8 -8
- package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/config.vue.d.ts +8 -8
- package/dist/runtime/components/form/fields/2026-05-25/com.shwfed.form.field.combobox.multi/config.d.vue.ts +16 -16
- package/dist/runtime/components/form/fields/2026-05-25/com.shwfed.form.field.combobox.multi/config.vue.d.ts +16 -16
- package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.multi/config.d.vue.ts +8 -8
- package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.multi/config.vue.d.ts +8 -8
- package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.single/config.d.vue.ts +8 -8
- package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.single/config.vue.d.ts +8 -8
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/config.d.vue.ts +8 -8
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/config.vue.d.ts +8 -8
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/config.d.vue.ts +8 -8
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/config.vue.d.ts +8 -8
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/config.d.vue.ts +8 -8
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/config.vue.d.ts +8 -8
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/config.d.vue.ts +8 -8
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/config.vue.d.ts +8 -8
- package/dist/runtime/components/form/schema.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.combobox-single/runtime.vue +5 -1
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.number-input/runtime.vue +16 -3
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch/runtime.vue +5 -1
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch.local/runtime.vue +5 -1
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.text-input/runtime.vue +17 -3
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.d.vue.ts +4 -4
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.vue.d.ts +4 -4
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/runtime.vue +5 -1
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-static/runtime.vue +5 -1
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi/runtime.vue +5 -1
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.d.vue.ts +4 -4
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.vue.d.ts +4 -4
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/runtime.vue +5 -1
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-static/runtime.vue +5 -1
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi/runtime.vue +5 -1
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/runtime.vue +5 -1
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/runtime.vue +5 -1
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/runtime.vue +5 -1
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +10 -10
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +10 -10
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/runtime.vue +5 -1
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +10 -10
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +10 -10
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/runtime.vue +5 -1
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/runtime.vue +5 -1
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/runtime.vue +5 -1
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +10 -10
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +10 -10
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/runtime.vue +5 -1
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +10 -10
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +10 -10
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/runtime.vue +5 -1
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-multi/config.d.vue.ts +179 -0
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-multi/config.vue +942 -0
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-multi/config.vue.d.ts +179 -0
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-multi/runtime.d.vue.ts +9 -0
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-multi/runtime.vue +499 -0
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-multi/runtime.vue.d.ts +9 -0
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-multi/schema.d.ts +223 -0
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-multi/schema.js +276 -0
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-single/config.d.vue.ts +179 -0
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-single/config.vue +942 -0
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-single/config.vue.d.ts +179 -0
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-single/runtime.d.vue.ts +9 -0
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-single/runtime.vue +438 -0
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-single/runtime.vue.d.ts +9 -0
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-single/schema.d.ts +223 -0
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-single/schema.js +276 -0
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +123 -0
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/config.vue +646 -0
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +123 -0
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/runtime.d.vue.ts +9 -0
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/runtime.vue +500 -0
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/runtime.vue.d.ts +9 -0
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/schema.d.ts +83 -0
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/schema.js +179 -0
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +121 -0
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/config.vue +577 -0
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +121 -0
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/runtime.d.vue.ts +9 -0
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/runtime.vue +465 -0
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/runtime.vue.d.ts +9 -0
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/schema.d.ts +80 -0
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/schema.js +171 -0
- package/dist/runtime/components/table/columns/2026-06-14/combobox-migrate.d.ts +18 -0
- package/dist/runtime/components/table/columns/2026-06-14/combobox-migrate.js +36 -0
- package/dist/runtime/components/table/columns/2026-06-14/tree-combobox-shared.d.ts +35 -0
- package/dist/runtime/components/table/columns/2026-06-14/tree-combobox-shared.js +31 -0
- package/dist/runtime/components/table/config.vue +74 -8
- package/dist/runtime/components/table/index.d.vue.ts +2 -0
- package/dist/runtime/components/table/index.vue +24 -0
- package/dist/runtime/components/table/index.vue.d.ts +2 -0
- package/dist/runtime/components/table/schema.d.ts +3 -3
- package/dist/runtime/components/table/utils/shared.d.ts +1 -0
- package/dist/runtime/components/table/utils/shared.js +7 -13
- package/package.json +1 -1
- package/dist/preview/assets/index-7BE56IYF.js +0 -739
- package/dist/preview/assets/index-Bwv0Yz_L.js +0 -1
|
@@ -34,15 +34,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
34
34
|
readonly message: string;
|
|
35
35
|
}[]] | undefined;
|
|
36
36
|
readonly readonly?: string | undefined;
|
|
37
|
+
readonly dataSource: {
|
|
38
|
+
readonly data: string;
|
|
39
|
+
readonly request?: string | undefined;
|
|
40
|
+
};
|
|
37
41
|
readonly binding?: string | undefined;
|
|
38
42
|
readonly derived?: {
|
|
39
43
|
readonly mode: "formula" | "prefill";
|
|
40
44
|
readonly expression: string;
|
|
41
45
|
} | undefined;
|
|
42
|
-
readonly dataSource: {
|
|
43
|
-
readonly data: string;
|
|
44
|
-
readonly request?: string | undefined;
|
|
45
|
-
};
|
|
46
46
|
readonly validations?: readonly {
|
|
47
47
|
readonly message: readonly [{
|
|
48
48
|
readonly locale: "zh";
|
|
@@ -105,15 +105,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
105
105
|
readonly message: string;
|
|
106
106
|
}[]] | undefined;
|
|
107
107
|
readonly readonly?: string | undefined;
|
|
108
|
+
readonly dataSource: {
|
|
109
|
+
readonly data: string;
|
|
110
|
+
readonly request?: string | undefined;
|
|
111
|
+
};
|
|
108
112
|
readonly binding?: string | undefined;
|
|
109
113
|
readonly derived?: {
|
|
110
114
|
readonly mode: "formula" | "prefill";
|
|
111
115
|
readonly expression: string;
|
|
112
116
|
} | undefined;
|
|
113
|
-
readonly dataSource: {
|
|
114
|
-
readonly data: string;
|
|
115
|
-
readonly request?: string | undefined;
|
|
116
|
-
};
|
|
117
117
|
readonly validations?: readonly {
|
|
118
118
|
readonly message: readonly [{
|
|
119
119
|
readonly locale: "zh";
|
|
@@ -34,15 +34,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
34
34
|
readonly message: string;
|
|
35
35
|
}[]] | undefined;
|
|
36
36
|
readonly readonly?: string | undefined;
|
|
37
|
+
readonly dataSource: {
|
|
38
|
+
readonly data: string;
|
|
39
|
+
readonly request?: string | undefined;
|
|
40
|
+
};
|
|
37
41
|
readonly binding?: string | undefined;
|
|
38
42
|
readonly derived?: {
|
|
39
43
|
readonly mode: "formula" | "prefill";
|
|
40
44
|
readonly expression: string;
|
|
41
45
|
} | undefined;
|
|
42
|
-
readonly dataSource: {
|
|
43
|
-
readonly data: string;
|
|
44
|
-
readonly request?: string | undefined;
|
|
45
|
-
};
|
|
46
46
|
readonly validations?: readonly {
|
|
47
47
|
readonly message: readonly [{
|
|
48
48
|
readonly locale: "zh";
|
|
@@ -105,15 +105,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
105
105
|
readonly message: string;
|
|
106
106
|
}[]] | undefined;
|
|
107
107
|
readonly readonly?: string | undefined;
|
|
108
|
+
readonly dataSource: {
|
|
109
|
+
readonly data: string;
|
|
110
|
+
readonly request?: string | undefined;
|
|
111
|
+
};
|
|
108
112
|
readonly binding?: string | undefined;
|
|
109
113
|
readonly derived?: {
|
|
110
114
|
readonly mode: "formula" | "prefill";
|
|
111
115
|
readonly expression: string;
|
|
112
116
|
} | undefined;
|
|
113
|
-
readonly dataSource: {
|
|
114
|
-
readonly data: string;
|
|
115
|
-
readonly request?: string | undefined;
|
|
116
|
-
};
|
|
117
117
|
readonly validations?: readonly {
|
|
118
118
|
readonly message: readonly [{
|
|
119
119
|
readonly locale: "zh";
|
|
@@ -35,15 +35,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
35
35
|
}[]] | undefined;
|
|
36
36
|
readonly keywords?: string | undefined;
|
|
37
37
|
readonly readonly?: string | undefined;
|
|
38
|
+
readonly dataSource: {
|
|
39
|
+
readonly data: string;
|
|
40
|
+
readonly request?: string | undefined;
|
|
41
|
+
};
|
|
38
42
|
readonly binding?: string | undefined;
|
|
39
43
|
readonly derived?: {
|
|
40
44
|
readonly mode: "formula" | "prefill";
|
|
41
45
|
readonly expression: string;
|
|
42
46
|
} | undefined;
|
|
43
|
-
readonly dataSource: {
|
|
44
|
-
readonly data: string;
|
|
45
|
-
readonly request?: string | undefined;
|
|
46
|
-
};
|
|
47
47
|
readonly cascade: "independent" | "cascade-down" | "cascade-both";
|
|
48
48
|
readonly validations?: readonly {
|
|
49
49
|
readonly message: readonly [{
|
|
@@ -108,15 +108,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
108
108
|
}[]] | undefined;
|
|
109
109
|
readonly keywords?: string | undefined;
|
|
110
110
|
readonly readonly?: string | undefined;
|
|
111
|
+
readonly dataSource: {
|
|
112
|
+
readonly data: string;
|
|
113
|
+
readonly request?: string | undefined;
|
|
114
|
+
};
|
|
111
115
|
readonly binding?: string | undefined;
|
|
112
116
|
readonly derived?: {
|
|
113
117
|
readonly mode: "formula" | "prefill";
|
|
114
118
|
readonly expression: string;
|
|
115
119
|
} | undefined;
|
|
116
|
-
readonly dataSource: {
|
|
117
|
-
readonly data: string;
|
|
118
|
-
readonly request?: string | undefined;
|
|
119
|
-
};
|
|
120
120
|
readonly cascade: "independent" | "cascade-down" | "cascade-both";
|
|
121
121
|
readonly validations?: readonly {
|
|
122
122
|
readonly message: readonly [{
|
|
@@ -35,15 +35,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
35
35
|
}[]] | undefined;
|
|
36
36
|
readonly keywords?: string | undefined;
|
|
37
37
|
readonly readonly?: string | undefined;
|
|
38
|
+
readonly dataSource: {
|
|
39
|
+
readonly data: string;
|
|
40
|
+
readonly request?: string | undefined;
|
|
41
|
+
};
|
|
38
42
|
readonly binding?: string | undefined;
|
|
39
43
|
readonly derived?: {
|
|
40
44
|
readonly mode: "formula" | "prefill";
|
|
41
45
|
readonly expression: string;
|
|
42
46
|
} | undefined;
|
|
43
|
-
readonly dataSource: {
|
|
44
|
-
readonly data: string;
|
|
45
|
-
readonly request?: string | undefined;
|
|
46
|
-
};
|
|
47
47
|
readonly cascade: "independent" | "cascade-down" | "cascade-both";
|
|
48
48
|
readonly validations?: readonly {
|
|
49
49
|
readonly message: readonly [{
|
|
@@ -108,15 +108,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
108
108
|
}[]] | undefined;
|
|
109
109
|
readonly keywords?: string | undefined;
|
|
110
110
|
readonly readonly?: string | undefined;
|
|
111
|
+
readonly dataSource: {
|
|
112
|
+
readonly data: string;
|
|
113
|
+
readonly request?: string | undefined;
|
|
114
|
+
};
|
|
111
115
|
readonly binding?: string | undefined;
|
|
112
116
|
readonly derived?: {
|
|
113
117
|
readonly mode: "formula" | "prefill";
|
|
114
118
|
readonly expression: string;
|
|
115
119
|
} | undefined;
|
|
116
|
-
readonly dataSource: {
|
|
117
|
-
readonly data: string;
|
|
118
|
-
readonly request?: string | undefined;
|
|
119
|
-
};
|
|
120
120
|
readonly cascade: "independent" | "cascade-down" | "cascade-both";
|
|
121
121
|
readonly validations?: readonly {
|
|
122
122
|
readonly message: readonly [{
|
|
@@ -35,15 +35,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
35
35
|
}[]] | undefined;
|
|
36
36
|
readonly keywords?: string | undefined;
|
|
37
37
|
readonly readonly?: string | undefined;
|
|
38
|
+
readonly dataSource: {
|
|
39
|
+
readonly data: string;
|
|
40
|
+
readonly request?: string | undefined;
|
|
41
|
+
};
|
|
38
42
|
readonly binding?: string | undefined;
|
|
39
43
|
readonly derived?: {
|
|
40
44
|
readonly mode: "formula" | "prefill";
|
|
41
45
|
readonly expression: string;
|
|
42
46
|
} | undefined;
|
|
43
|
-
readonly dataSource: {
|
|
44
|
-
readonly data: string;
|
|
45
|
-
readonly request?: string | undefined;
|
|
46
|
-
};
|
|
47
47
|
readonly validations?: readonly {
|
|
48
48
|
readonly message: readonly [{
|
|
49
49
|
readonly locale: "zh";
|
|
@@ -107,15 +107,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
107
107
|
}[]] | undefined;
|
|
108
108
|
readonly keywords?: string | undefined;
|
|
109
109
|
readonly readonly?: string | undefined;
|
|
110
|
+
readonly dataSource: {
|
|
111
|
+
readonly data: string;
|
|
112
|
+
readonly request?: string | undefined;
|
|
113
|
+
};
|
|
110
114
|
readonly binding?: string | undefined;
|
|
111
115
|
readonly derived?: {
|
|
112
116
|
readonly mode: "formula" | "prefill";
|
|
113
117
|
readonly expression: string;
|
|
114
118
|
} | undefined;
|
|
115
|
-
readonly dataSource: {
|
|
116
|
-
readonly data: string;
|
|
117
|
-
readonly request?: string | undefined;
|
|
118
|
-
};
|
|
119
119
|
readonly validations?: readonly {
|
|
120
120
|
readonly message: readonly [{
|
|
121
121
|
readonly locale: "zh";
|
|
@@ -35,15 +35,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
35
35
|
}[]] | undefined;
|
|
36
36
|
readonly keywords?: string | undefined;
|
|
37
37
|
readonly readonly?: string | undefined;
|
|
38
|
+
readonly dataSource: {
|
|
39
|
+
readonly data: string;
|
|
40
|
+
readonly request?: string | undefined;
|
|
41
|
+
};
|
|
38
42
|
readonly binding?: string | undefined;
|
|
39
43
|
readonly derived?: {
|
|
40
44
|
readonly mode: "formula" | "prefill";
|
|
41
45
|
readonly expression: string;
|
|
42
46
|
} | undefined;
|
|
43
|
-
readonly dataSource: {
|
|
44
|
-
readonly data: string;
|
|
45
|
-
readonly request?: string | undefined;
|
|
46
|
-
};
|
|
47
47
|
readonly validations?: readonly {
|
|
48
48
|
readonly message: readonly [{
|
|
49
49
|
readonly locale: "zh";
|
|
@@ -107,15 +107,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
107
107
|
}[]] | undefined;
|
|
108
108
|
readonly keywords?: string | undefined;
|
|
109
109
|
readonly readonly?: string | undefined;
|
|
110
|
+
readonly dataSource: {
|
|
111
|
+
readonly data: string;
|
|
112
|
+
readonly request?: string | undefined;
|
|
113
|
+
};
|
|
110
114
|
readonly binding?: string | undefined;
|
|
111
115
|
readonly derived?: {
|
|
112
116
|
readonly mode: "formula" | "prefill";
|
|
113
117
|
readonly expression: string;
|
|
114
118
|
} | undefined;
|
|
115
|
-
readonly dataSource: {
|
|
116
|
-
readonly data: string;
|
|
117
|
-
readonly request?: string | undefined;
|
|
118
|
-
};
|
|
119
119
|
readonly validations?: readonly {
|
|
120
120
|
readonly message: readonly [{
|
|
121
121
|
readonly locale: "zh";
|
|
@@ -37,15 +37,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
37
37
|
readonly displayName?: string | undefined;
|
|
38
38
|
readonly compatibilityDate: "2026-05-28";
|
|
39
39
|
readonly readonly?: string | undefined;
|
|
40
|
+
readonly dataSource: {
|
|
41
|
+
readonly data: string;
|
|
42
|
+
readonly request?: string | undefined;
|
|
43
|
+
};
|
|
40
44
|
readonly binding?: string | undefined;
|
|
41
45
|
readonly derived?: {
|
|
42
46
|
readonly mode: "formula" | "prefill";
|
|
43
47
|
readonly expression: string;
|
|
44
48
|
} | undefined;
|
|
45
|
-
readonly dataSource: {
|
|
46
|
-
readonly data: string;
|
|
47
|
-
readonly request?: string | undefined;
|
|
48
|
-
};
|
|
49
49
|
readonly cascade: "independent" | "cascade-down" | "cascade-both";
|
|
50
50
|
readonly validations?: readonly {
|
|
51
51
|
readonly message: readonly [{
|
|
@@ -112,15 +112,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
112
112
|
readonly displayName?: string | undefined;
|
|
113
113
|
readonly compatibilityDate: "2026-05-28";
|
|
114
114
|
readonly readonly?: string | undefined;
|
|
115
|
+
readonly dataSource: {
|
|
116
|
+
readonly data: string;
|
|
117
|
+
readonly request?: string | undefined;
|
|
118
|
+
};
|
|
115
119
|
readonly binding?: string | undefined;
|
|
116
120
|
readonly derived?: {
|
|
117
121
|
readonly mode: "formula" | "prefill";
|
|
118
122
|
readonly expression: string;
|
|
119
123
|
} | undefined;
|
|
120
|
-
readonly dataSource: {
|
|
121
|
-
readonly data: string;
|
|
122
|
-
readonly request?: string | undefined;
|
|
123
|
-
};
|
|
124
124
|
readonly cascade: "independent" | "cascade-down" | "cascade-both";
|
|
125
125
|
readonly validations?: readonly {
|
|
126
126
|
readonly message: readonly [{
|
|
@@ -37,15 +37,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
37
37
|
readonly displayName?: string | undefined;
|
|
38
38
|
readonly compatibilityDate: "2026-05-28";
|
|
39
39
|
readonly readonly?: string | undefined;
|
|
40
|
+
readonly dataSource: {
|
|
41
|
+
readonly data: string;
|
|
42
|
+
readonly request?: string | undefined;
|
|
43
|
+
};
|
|
40
44
|
readonly binding?: string | undefined;
|
|
41
45
|
readonly derived?: {
|
|
42
46
|
readonly mode: "formula" | "prefill";
|
|
43
47
|
readonly expression: string;
|
|
44
48
|
} | undefined;
|
|
45
|
-
readonly dataSource: {
|
|
46
|
-
readonly data: string;
|
|
47
|
-
readonly request?: string | undefined;
|
|
48
|
-
};
|
|
49
49
|
readonly cascade: "independent" | "cascade-down" | "cascade-both";
|
|
50
50
|
readonly validations?: readonly {
|
|
51
51
|
readonly message: readonly [{
|
|
@@ -112,15 +112,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
112
112
|
readonly displayName?: string | undefined;
|
|
113
113
|
readonly compatibilityDate: "2026-05-28";
|
|
114
114
|
readonly readonly?: string | undefined;
|
|
115
|
+
readonly dataSource: {
|
|
116
|
+
readonly data: string;
|
|
117
|
+
readonly request?: string | undefined;
|
|
118
|
+
};
|
|
115
119
|
readonly binding?: string | undefined;
|
|
116
120
|
readonly derived?: {
|
|
117
121
|
readonly mode: "formula" | "prefill";
|
|
118
122
|
readonly expression: string;
|
|
119
123
|
} | undefined;
|
|
120
|
-
readonly dataSource: {
|
|
121
|
-
readonly data: string;
|
|
122
|
-
readonly request?: string | undefined;
|
|
123
|
-
};
|
|
124
124
|
readonly cascade: "independent" | "cascade-down" | "cascade-both";
|
|
125
125
|
readonly validations?: readonly {
|
|
126
126
|
readonly message: readonly [{
|
|
@@ -37,15 +37,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
37
37
|
readonly displayName?: string | undefined;
|
|
38
38
|
readonly compatibilityDate: "2026-05-28";
|
|
39
39
|
readonly readonly?: string | undefined;
|
|
40
|
+
readonly dataSource: {
|
|
41
|
+
readonly data: string;
|
|
42
|
+
readonly request?: string | undefined;
|
|
43
|
+
};
|
|
40
44
|
readonly binding?: string | undefined;
|
|
41
45
|
readonly derived?: {
|
|
42
46
|
readonly mode: "formula" | "prefill";
|
|
43
47
|
readonly expression: string;
|
|
44
48
|
} | undefined;
|
|
45
|
-
readonly dataSource: {
|
|
46
|
-
readonly data: string;
|
|
47
|
-
readonly request?: string | undefined;
|
|
48
|
-
};
|
|
49
49
|
readonly validations?: readonly {
|
|
50
50
|
readonly message: readonly [{
|
|
51
51
|
readonly locale: "zh";
|
|
@@ -111,15 +111,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
111
111
|
readonly displayName?: string | undefined;
|
|
112
112
|
readonly compatibilityDate: "2026-05-28";
|
|
113
113
|
readonly readonly?: string | undefined;
|
|
114
|
+
readonly dataSource: {
|
|
115
|
+
readonly data: string;
|
|
116
|
+
readonly request?: string | undefined;
|
|
117
|
+
};
|
|
114
118
|
readonly binding?: string | undefined;
|
|
115
119
|
readonly derived?: {
|
|
116
120
|
readonly mode: "formula" | "prefill";
|
|
117
121
|
readonly expression: string;
|
|
118
122
|
} | undefined;
|
|
119
|
-
readonly dataSource: {
|
|
120
|
-
readonly data: string;
|
|
121
|
-
readonly request?: string | undefined;
|
|
122
|
-
};
|
|
123
123
|
readonly validations?: readonly {
|
|
124
124
|
readonly message: readonly [{
|
|
125
125
|
readonly locale: "zh";
|
|
@@ -37,15 +37,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
37
37
|
readonly displayName?: string | undefined;
|
|
38
38
|
readonly compatibilityDate: "2026-05-28";
|
|
39
39
|
readonly readonly?: string | undefined;
|
|
40
|
+
readonly dataSource: {
|
|
41
|
+
readonly data: string;
|
|
42
|
+
readonly request?: string | undefined;
|
|
43
|
+
};
|
|
40
44
|
readonly binding?: string | undefined;
|
|
41
45
|
readonly derived?: {
|
|
42
46
|
readonly mode: "formula" | "prefill";
|
|
43
47
|
readonly expression: string;
|
|
44
48
|
} | undefined;
|
|
45
|
-
readonly dataSource: {
|
|
46
|
-
readonly data: string;
|
|
47
|
-
readonly request?: string | undefined;
|
|
48
|
-
};
|
|
49
49
|
readonly validations?: readonly {
|
|
50
50
|
readonly message: readonly [{
|
|
51
51
|
readonly locale: "zh";
|
|
@@ -111,15 +111,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
111
111
|
readonly displayName?: string | undefined;
|
|
112
112
|
readonly compatibilityDate: "2026-05-28";
|
|
113
113
|
readonly readonly?: string | undefined;
|
|
114
|
+
readonly dataSource: {
|
|
115
|
+
readonly data: string;
|
|
116
|
+
readonly request?: string | undefined;
|
|
117
|
+
};
|
|
114
118
|
readonly binding?: string | undefined;
|
|
115
119
|
readonly derived?: {
|
|
116
120
|
readonly mode: "formula" | "prefill";
|
|
117
121
|
readonly expression: string;
|
|
118
122
|
} | undefined;
|
|
119
|
-
readonly dataSource: {
|
|
120
|
-
readonly data: string;
|
|
121
|
-
readonly request?: string | undefined;
|
|
122
|
-
};
|
|
123
123
|
readonly validations?: readonly {
|
|
124
124
|
readonly message: readonly [{
|
|
125
125
|
readonly locale: "zh";
|
|
@@ -102,6 +102,7 @@ export declare function FormConfig(configure: (env: Environment) => void): Schem
|
|
|
102
102
|
readonly displayName?: string | undefined;
|
|
103
103
|
readonly kind: "shwfed.component.form";
|
|
104
104
|
readonly fields: readonly any[];
|
|
105
|
+
readonly readonly?: string | undefined;
|
|
105
106
|
readonly layouts: readonly {
|
|
106
107
|
readonly name: string;
|
|
107
108
|
readonly layout: {
|
|
@@ -119,7 +120,6 @@ export declare function FormConfig(configure: (env: Environment) => void): Schem
|
|
|
119
120
|
};
|
|
120
121
|
readonly media?: string | undefined;
|
|
121
122
|
}[];
|
|
122
|
-
readonly readonly?: string | undefined;
|
|
123
123
|
}, Schema.Struct<{
|
|
124
124
|
fields: Schema.Array$<AnySchema>;
|
|
125
125
|
layouts: Schema.refine<readonly {
|
|
@@ -175,6 +175,7 @@ export declare function createFormConfig(body: Omit<Schema.Schema.Type<ReturnTyp
|
|
|
175
175
|
} | undefined;
|
|
176
176
|
displayName?: string | undefined;
|
|
177
177
|
fields: readonly any[];
|
|
178
|
+
readonly?: string | undefined;
|
|
178
179
|
layouts: readonly {
|
|
179
180
|
readonly name: string;
|
|
180
181
|
readonly layout: {
|
|
@@ -192,7 +193,6 @@ export declare function createFormConfig(body: Omit<Schema.Schema.Type<ReturnTyp
|
|
|
192
193
|
};
|
|
193
194
|
readonly media?: string | undefined;
|
|
194
195
|
}[];
|
|
195
|
-
readonly?: string | undefined;
|
|
196
196
|
kind: typeof KIND;
|
|
197
197
|
};
|
|
198
198
|
export declare function defaultFormConfig(): FormConfigValue;
|
|
@@ -5,6 +5,7 @@ import { computed, nextTick, ref, watch } from "vue";
|
|
|
5
5
|
import { useI18n } from "vue-i18n";
|
|
6
6
|
import { cel as _rawCel } from "../../../../../utils/cel";
|
|
7
7
|
import { celBindings, injectCELContext } from "../../../../../utils/cel-context";
|
|
8
|
+
import { useFormReadonly } from "../../../../form/utils/readonly";
|
|
8
9
|
import { getLocalizedText } from "../../../../../share/locale";
|
|
9
10
|
import {
|
|
10
11
|
Command,
|
|
@@ -61,7 +62,10 @@ function evalBool(expression, label) {
|
|
|
61
62
|
}
|
|
62
63
|
const isHidden = computed(() => evalBool(props.column.hidden, "hidden"));
|
|
63
64
|
const isDisabled = computed(() => evalBool(props.column.disabled, "disabled"));
|
|
64
|
-
const
|
|
65
|
+
const formReadonly = useFormReadonly();
|
|
66
|
+
const isReadonly = computed(
|
|
67
|
+
() => props.column.readonly != null ? evalBool(props.column.readonly, "readonly") : formReadonly.value
|
|
68
|
+
);
|
|
65
69
|
const effectiveReadonly = computed(
|
|
66
70
|
() => isReadonly.value || props.column.derived?.mode === "formula"
|
|
67
71
|
);
|
|
@@ -5,6 +5,7 @@ import { computed, nextTick } from "vue";
|
|
|
5
5
|
import { useI18n } from "vue-i18n";
|
|
6
6
|
import { cel as _rawCel } from "../../../../../utils/cel";
|
|
7
7
|
import { celBindings, injectCELContext } from "../../../../../utils/cel-context";
|
|
8
|
+
import { useFormReadonly } from "../../../../form/utils/readonly";
|
|
8
9
|
import { getLocalizedText } from "../../../../../share/locale";
|
|
9
10
|
import { InputGroup, InputGroupAddon, InputGroupButton, InputGroupNumberField } from "../../../../ui/input-group";
|
|
10
11
|
import { useFieldValue } from "../../../../form/utils/field-value";
|
|
@@ -40,7 +41,10 @@ function evalNumber(expression, label) {
|
|
|
40
41
|
}
|
|
41
42
|
const isHidden = computed(() => evalBool(props.column.hidden, "hidden"));
|
|
42
43
|
const isDisabled = computed(() => evalBool(props.column.disabled, "disabled"));
|
|
43
|
-
const
|
|
44
|
+
const formReadonly = useFormReadonly();
|
|
45
|
+
const isReadonly = computed(
|
|
46
|
+
() => props.column.readonly != null ? evalBool(props.column.readonly, "readonly") : formReadonly.value
|
|
47
|
+
);
|
|
44
48
|
const effectiveReadonly = computed(
|
|
45
49
|
() => isReadonly.value || props.column.derived?.mode === "formula"
|
|
46
50
|
);
|
|
@@ -108,11 +112,20 @@ async function onBlur() {
|
|
|
108
112
|
v-if="isHidden"
|
|
109
113
|
class="block h-7 w-full"
|
|
110
114
|
/>
|
|
115
|
+
<!--
|
|
116
|
+
Readonly empty state mirrors the `text` column exactly: a centered,
|
|
117
|
+
faded, non-selectable `-` in `font-mono`, so a readonly grid reads
|
|
118
|
+
uniformly regardless of column type. A present value keeps the
|
|
119
|
+
left-aligned dark text.
|
|
120
|
+
-->
|
|
111
121
|
<span
|
|
112
122
|
v-else-if="effectiveReadonly"
|
|
113
|
-
class="
|
|
123
|
+
:class="[
|
|
124
|
+
'flex items-center h-7 w-full px-2 text-[0.75rem] truncate',
|
|
125
|
+
draft !== void 0 ? 'text-zinc-700' : 'justify-center font-mono text-zinc-300 select-none'
|
|
126
|
+
]"
|
|
114
127
|
>
|
|
115
|
-
{{ draft ?? "
|
|
128
|
+
{{ draft ?? "-" }}
|
|
116
129
|
</span>
|
|
117
130
|
<InputGroup
|
|
118
131
|
v-else
|
package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch/runtime.vue
CHANGED
|
@@ -4,6 +4,7 @@ import { computed } from "vue";
|
|
|
4
4
|
import { useI18n } from "vue-i18n";
|
|
5
5
|
import { cel as _rawCel } from "../../../../../utils/cel";
|
|
6
6
|
import { celBindings, injectCELContext } from "../../../../../utils/cel-context";
|
|
7
|
+
import { useFormReadonly } from "../../../../form/utils/readonly";
|
|
7
8
|
import { getLocalizedText } from "../../../../../share/locale";
|
|
8
9
|
import { Switch } from "../../../../ui/switch";
|
|
9
10
|
import { useFieldValue } from "../../../../form/utils/field-value";
|
|
@@ -26,7 +27,10 @@ function evalBool(expression, label) {
|
|
|
26
27
|
}
|
|
27
28
|
const isHidden = computed(() => evalBool(props.column.hidden, "hidden"));
|
|
28
29
|
const isDisabled = computed(() => evalBool(props.column.disabled, "disabled"));
|
|
29
|
-
const
|
|
30
|
+
const formReadonly = useFormReadonly();
|
|
31
|
+
const isReadonly = computed(
|
|
32
|
+
() => props.column.readonly != null ? evalBool(props.column.readonly, "readonly") : formReadonly.value
|
|
33
|
+
);
|
|
30
34
|
const effectiveReadonly = computed(
|
|
31
35
|
() => isReadonly.value || props.column.derived?.mode === "formula"
|
|
32
36
|
);
|
|
@@ -4,6 +4,7 @@ import { computed } from "vue";
|
|
|
4
4
|
import { useI18n } from "vue-i18n";
|
|
5
5
|
import { cel as _rawCel } from "../../../../../utils/cel";
|
|
6
6
|
import { celBindings, injectCELContext } from "../../../../../utils/cel-context";
|
|
7
|
+
import { useFormReadonly } from "../../../../form/utils/readonly";
|
|
7
8
|
import { getLocalizedText } from "../../../../../share/locale";
|
|
8
9
|
import { Switch } from "../../../../ui/switch";
|
|
9
10
|
import { useFieldValue } from "../../../../form/utils/field-value";
|
|
@@ -26,7 +27,10 @@ function evalBool(expression, label) {
|
|
|
26
27
|
}
|
|
27
28
|
const isHidden = computed(() => evalBool(props.column.hidden, "hidden"));
|
|
28
29
|
const isDisabled = computed(() => evalBool(props.column.disabled, "disabled"));
|
|
29
|
-
const
|
|
30
|
+
const formReadonly = useFormReadonly();
|
|
31
|
+
const isReadonly = computed(
|
|
32
|
+
() => props.column.readonly != null ? evalBool(props.column.readonly, "readonly") : formReadonly.value
|
|
33
|
+
);
|
|
30
34
|
const effectiveReadonly = computed(
|
|
31
35
|
() => isReadonly.value || props.column.derived?.mode === "formula"
|
|
32
36
|
);
|
|
@@ -5,6 +5,7 @@ import { useI18n } from "vue-i18n";
|
|
|
5
5
|
import { Icon } from "@iconify/vue";
|
|
6
6
|
import { cel as $cel } from "../../../../../utils/cel";
|
|
7
7
|
import { celBindings, injectCELContext } from "../../../../../utils/cel-context";
|
|
8
|
+
import { useFormReadonly } from "../../../../form/utils/readonly";
|
|
8
9
|
import { getLocalizedText } from "../../../../../share/locale";
|
|
9
10
|
import {
|
|
10
11
|
InputGroup,
|
|
@@ -35,7 +36,10 @@ function evalBool(expression, label) {
|
|
|
35
36
|
}
|
|
36
37
|
const isHidden = computed(() => evalBool(props.column.hidden, "hidden"));
|
|
37
38
|
const isDisabled = computed(() => evalBool(props.column.disabled, "disabled"));
|
|
38
|
-
const
|
|
39
|
+
const formReadonly = useFormReadonly();
|
|
40
|
+
const isReadonly = computed(
|
|
41
|
+
() => props.column.readonly != null ? evalBool(props.column.readonly, "readonly") : formReadonly.value
|
|
42
|
+
);
|
|
39
43
|
const effectiveReadonly = computed(
|
|
40
44
|
() => isReadonly.value || props.column.derived?.mode === "formula"
|
|
41
45
|
);
|
|
@@ -89,11 +93,21 @@ function handleClear() {
|
|
|
89
93
|
v-if="isHidden"
|
|
90
94
|
class="block h-7 w-full"
|
|
91
95
|
/>
|
|
96
|
+
<!--
|
|
97
|
+
Readonly empty state mirrors the `text` column exactly: a centered,
|
|
98
|
+
faded, non-selectable `-` rendered in `font-mono`, so a readonly grid
|
|
99
|
+
reads uniformly regardless of which column type backs each cell. A
|
|
100
|
+
non-empty readonly value keeps the editable cell's left-aligned dark
|
|
101
|
+
text.
|
|
102
|
+
-->
|
|
92
103
|
<span
|
|
93
104
|
v-else-if="effectiveReadonly"
|
|
94
|
-
class="
|
|
105
|
+
:class="[
|
|
106
|
+
'flex items-center h-7 w-full px-2 text-[0.75rem] truncate',
|
|
107
|
+
draft ? 'text-zinc-700' : 'justify-center font-mono text-zinc-300 select-none'
|
|
108
|
+
]"
|
|
95
109
|
>
|
|
96
|
-
{{ draft || "
|
|
110
|
+
{{ draft || "-" }}
|
|
97
111
|
</span>
|
|
98
112
|
<!--
|
|
99
113
|
Idle border is faded to 30% so a whole grid of inputs reads as data, not
|
|
@@ -45,6 +45,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
45
45
|
readonly grow?: boolean | undefined;
|
|
46
46
|
readonly enableSorting?: boolean | undefined;
|
|
47
47
|
readonly options: string;
|
|
48
|
+
readonly accessor: string;
|
|
49
|
+
readonly sortKey?: string | undefined;
|
|
48
50
|
readonly optionValue: string;
|
|
49
51
|
readonly optionLabel: readonly [{
|
|
50
52
|
readonly locale: "zh";
|
|
@@ -53,8 +55,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
53
55
|
readonly locale: "en" | "ja" | "ko";
|
|
54
56
|
readonly message: string;
|
|
55
57
|
}[]];
|
|
56
|
-
readonly accessor: string;
|
|
57
|
-
readonly sortKey?: string | undefined;
|
|
58
58
|
readonly successMessage?: string | undefined;
|
|
59
59
|
}) => any;
|
|
60
60
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
@@ -100,6 +100,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
100
100
|
readonly grow?: boolean | undefined;
|
|
101
101
|
readonly enableSorting?: boolean | undefined;
|
|
102
102
|
readonly options: string;
|
|
103
|
+
readonly accessor: string;
|
|
104
|
+
readonly sortKey?: string | undefined;
|
|
103
105
|
readonly optionValue: string;
|
|
104
106
|
readonly optionLabel: readonly [{
|
|
105
107
|
readonly locale: "zh";
|
|
@@ -108,8 +110,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
108
110
|
readonly locale: "en" | "ja" | "ko";
|
|
109
111
|
readonly message: string;
|
|
110
112
|
}[]];
|
|
111
|
-
readonly accessor: string;
|
|
112
|
-
readonly sortKey?: string | undefined;
|
|
113
113
|
readonly successMessage?: string | undefined;
|
|
114
114
|
}) => any) | undefined;
|
|
115
115
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -45,6 +45,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
45
45
|
readonly grow?: boolean | undefined;
|
|
46
46
|
readonly enableSorting?: boolean | undefined;
|
|
47
47
|
readonly options: string;
|
|
48
|
+
readonly accessor: string;
|
|
49
|
+
readonly sortKey?: string | undefined;
|
|
48
50
|
readonly optionValue: string;
|
|
49
51
|
readonly optionLabel: readonly [{
|
|
50
52
|
readonly locale: "zh";
|
|
@@ -53,8 +55,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
53
55
|
readonly locale: "en" | "ja" | "ko";
|
|
54
56
|
readonly message: string;
|
|
55
57
|
}[]];
|
|
56
|
-
readonly accessor: string;
|
|
57
|
-
readonly sortKey?: string | undefined;
|
|
58
58
|
readonly successMessage?: string | undefined;
|
|
59
59
|
}) => any;
|
|
60
60
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
@@ -100,6 +100,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
100
100
|
readonly grow?: boolean | undefined;
|
|
101
101
|
readonly enableSorting?: boolean | undefined;
|
|
102
102
|
readonly options: string;
|
|
103
|
+
readonly accessor: string;
|
|
104
|
+
readonly sortKey?: string | undefined;
|
|
103
105
|
readonly optionValue: string;
|
|
104
106
|
readonly optionLabel: readonly [{
|
|
105
107
|
readonly locale: "zh";
|
|
@@ -108,8 +110,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
108
110
|
readonly locale: "en" | "ja" | "ko";
|
|
109
111
|
readonly message: string;
|
|
110
112
|
}[]];
|
|
111
|
-
readonly accessor: string;
|
|
112
|
-
readonly sortKey?: string | undefined;
|
|
113
113
|
readonly successMessage?: string | undefined;
|
|
114
114
|
}) => any) | undefined;
|
|
115
115
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|