@yimoka/designable-playground 0.0.0-stage → 0.1.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/README.md +8 -2
- package/dist/demo/components/Alert/index.d.ts +4 -0
- package/dist/demo/components/Alert/index.js +41 -0
- package/dist/demo/components/ArrayCards/index.d.ts +17 -0
- package/dist/demo/components/ArrayCards/index.js +62 -0
- package/dist/demo/components/ArrayList/index.d.ts +25 -0
- package/dist/demo/components/ArrayList/index.js +143 -0
- package/dist/demo/components/ArrayTable/index.d.ts +39 -0
- package/dist/demo/components/ArrayTable/index.js +247 -0
- package/dist/demo/components/AutoComplete/index.d.ts +4 -0
- package/dist/demo/components/AutoComplete/index.js +52 -0
- package/dist/demo/components/Avatar/index.d.ts +4 -0
- package/dist/demo/components/Avatar/index.js +34 -0
- package/dist/demo/components/Badge/index.d.ts +4 -0
- package/dist/demo/components/Badge/index.js +35 -0
- package/dist/demo/components/Button/index.d.ts +4 -0
- package/dist/demo/components/Button/index.js +86 -0
- package/dist/demo/components/Card/index.d.ts +4 -0
- package/dist/demo/components/Card/index.js +72 -0
- package/dist/demo/components/Carousel/index.d.ts +4 -0
- package/dist/demo/components/Carousel/index.js +33 -0
- package/dist/demo/components/Cascader/index.d.ts +4 -0
- package/dist/demo/components/Cascader/index.js +60 -0
- package/dist/demo/components/Checkbox/index.d.ts +8 -0
- package/dist/demo/components/Checkbox/index.js +55 -0
- package/dist/demo/components/ColorPicker/index.d.ts +4 -0
- package/dist/demo/components/ColorPicker/index.js +38 -0
- package/dist/demo/components/DatePicker/index.d.ts +4 -0
- package/dist/demo/components/DatePicker/index.js +61 -0
- package/dist/demo/components/DateRangePicker/index.d.ts +4 -0
- package/dist/demo/components/DateRangePicker/index.js +58 -0
- package/dist/demo/components/Divider/index.d.ts +4 -0
- package/dist/demo/components/Divider/index.js +39 -0
- package/dist/demo/components/Empty/index.d.ts +4 -0
- package/dist/demo/components/Empty/index.js +29 -0
- package/dist/demo/components/Flex/index.d.ts +4 -0
- package/dist/demo/components/Flex/index.js +51 -0
- package/dist/demo/components/Form/index.d.ts +21 -0
- package/dist/demo/components/Form/index.js +116 -0
- package/dist/demo/components/FormCollapse/index.d.ts +28 -0
- package/dist/demo/components/FormCollapse/index.js +164 -0
- package/dist/demo/components/FormGrid/index.d.ts +22 -0
- package/dist/demo/components/FormGrid/index.js +134 -0
- package/dist/demo/components/FormItem/index.d.ts +14 -0
- package/dist/demo/components/FormItem/index.js +33 -0
- package/dist/demo/components/FormLayout/index.d.ts +26 -0
- package/dist/demo/components/FormLayout/index.js +260 -0
- package/dist/demo/components/FormTab/index.d.ts +15 -0
- package/dist/demo/components/FormTab/index.js +186 -0
- package/dist/demo/components/GridCol/index.d.ts +4 -0
- package/dist/demo/components/GridCol/index.js +53 -0
- package/dist/demo/components/GridRow/index.d.ts +4 -0
- package/dist/demo/components/GridRow/index.js +70 -0
- package/dist/demo/components/HTMLContent/index.d.ts +4 -0
- package/dist/demo/components/HTMLContent/index.js +34 -0
- package/dist/demo/components/I18nEditor/index.d.ts +8 -0
- package/dist/demo/components/I18nEditor/index.js +64 -0
- package/dist/demo/components/Image/index.d.ts +4 -0
- package/dist/demo/components/Image/index.js +36 -0
- package/dist/demo/components/Input/index.d.ts +4 -0
- package/dist/demo/components/Input/index.js +36 -0
- package/dist/demo/components/InputSearch/index.d.ts +4 -0
- package/dist/demo/components/InputSearch/index.js +40 -0
- package/dist/demo/components/Link/index.d.ts +4 -0
- package/dist/demo/components/Link/index.js +37 -0
- package/dist/demo/components/Mentions/index.d.ts +4 -0
- package/dist/demo/components/Mentions/index.js +41 -0
- package/dist/demo/components/NumberPicker/index.d.ts +6 -0
- package/dist/demo/components/NumberPicker/index.js +63 -0
- package/dist/demo/components/ObjectContainer/index.d.ts +14 -0
- package/dist/demo/components/ObjectContainer/index.js +46 -0
- package/dist/demo/components/Password/index.d.ts +6 -0
- package/dist/demo/components/Password/index.js +44 -0
- package/dist/demo/components/QRCode/index.d.ts +4 -0
- package/dist/demo/components/QRCode/index.js +34 -0
- package/dist/demo/components/Radio/index.d.ts +6 -0
- package/dist/demo/components/Radio/index.js +49 -0
- package/dist/demo/components/Rate/index.d.ts +6 -0
- package/dist/demo/components/Rate/index.js +43 -0
- package/dist/demo/components/Search/index.d.ts +4 -0
- package/dist/demo/components/Search/index.js +42 -0
- package/dist/demo/components/SearchSelect/index.d.ts +4 -0
- package/dist/demo/components/SearchSelect/index.js +53 -0
- package/dist/demo/components/Select/index.d.ts +4 -0
- package/dist/demo/components/Select/index.js +59 -0
- package/dist/demo/components/Slider/index.d.ts +6 -0
- package/dist/demo/components/Slider/index.js +61 -0
- package/dist/demo/components/Space/index.d.ts +9 -0
- package/dist/demo/components/Space/index.js +61 -0
- package/dist/demo/components/Statistic/index.d.ts +4 -0
- package/dist/demo/components/Statistic/index.js +33 -0
- package/dist/demo/components/Switch/index.d.ts +4 -0
- package/dist/demo/components/Switch/index.js +49 -0
- package/dist/demo/components/Tabs/index.d.ts +10 -0
- package/dist/demo/components/Tabs/index.js +181 -0
- package/dist/demo/components/Tag/index.d.ts +4 -0
- package/dist/demo/components/Tag/index.js +33 -0
- package/dist/demo/components/Text/index.d.ts +11 -0
- package/dist/demo/components/Text/index.js +64 -0
- package/dist/demo/components/TextArea/index.d.ts +6 -0
- package/dist/demo/components/TextArea/index.js +43 -0
- package/dist/demo/components/TimePicker/index.d.ts +4 -0
- package/dist/demo/components/TimePicker/index.js +69 -0
- package/dist/demo/components/TimeRangePicker/index.d.ts +4 -0
- package/dist/demo/components/TimeRangePicker/index.js +68 -0
- package/dist/demo/components/Transfer/index.d.ts +6 -0
- package/dist/demo/components/Transfer/index.js +59 -0
- package/dist/demo/components/TreeSelect/index.d.ts +4 -0
- package/dist/demo/components/TreeSelect/index.js +63 -0
- package/dist/demo/components/Upload/index.d.ts +8 -0
- package/dist/demo/components/Upload/index.js +64 -0
- package/dist/demo/components/index.d.ts +55 -0
- package/dist/demo/components/index.js +55 -0
- package/dist/demo/components/shared.d.ts +143 -0
- package/dist/demo/components/shared.js +315 -0
- package/dist/src/Playground.d.ts +3 -0
- package/dist/src/Playground.js +304 -0
- package/dist/src/antd/AntdPlayground.d.ts +16 -0
- package/dist/src/antd/AntdPlayground.js +136 -0
- package/dist/src/antd/index.d.ts +1 -0
- package/dist/src/antd/index.js +1 -0
- package/dist/src/context.d.ts +4 -0
- package/dist/src/context.js +13 -0
- package/dist/src/examples/index.d.ts +267 -0
- package/dist/src/examples/index.js +824 -0
- package/dist/src/hooks/index.d.ts +4 -0
- package/dist/src/hooks/index.js +4 -0
- package/dist/src/hooks/remoteSchemaAdapter.d.ts +53 -0
- package/dist/src/hooks/remoteSchemaAdapter.js +262 -0
- package/dist/src/hooks/usePlayground.d.ts +38 -0
- package/dist/src/hooks/usePlayground.js +642 -0
- package/dist/src/hooks/usePlaygroundRemotePersistence.d.ts +135 -0
- package/dist/src/hooks/usePlaygroundRemotePersistence.js +736 -0
- package/dist/src/hooks/useSchemaEditorDraft.d.ts +4 -0
- package/dist/src/hooks/useSchemaEditorDraft.js +44 -0
- package/dist/src/index.d.ts +14 -0
- package/dist/src/index.js +14 -0
- package/dist/src/layouts/PlaygroundLayout/ErrorBoundaries.d.ts +59 -0
- package/dist/src/layouts/PlaygroundLayout/ErrorBoundaries.js +161 -0
- package/dist/src/layouts/PlaygroundLayout/index.d.ts +7 -0
- package/dist/src/layouts/PlaygroundLayout/index.js +443 -0
- package/dist/src/layouts/index.d.ts +1 -0
- package/dist/src/layouts/index.js +1 -0
- package/dist/src/panels/CompositePanel/index.d.ts +6 -0
- package/dist/src/panels/CompositePanel/index.js +139 -0
- package/dist/src/panels/ToolbarPanel/index.d.ts +3 -0
- package/dist/src/panels/ToolbarPanel/index.js +24 -0
- package/dist/src/panels/index.d.ts +2 -0
- package/dist/src/panels/index.js +2 -0
- package/dist/src/presets/antd.d.ts +19 -0
- package/dist/src/presets/antd.js +112 -0
- package/dist/src/presets/index.d.ts +4 -0
- package/dist/src/presets/index.js +3 -0
- package/dist/src/presets/runtime-array-helpers.d.ts +8 -0
- package/dist/src/presets/runtime-array-helpers.js +147 -0
- package/dist/src/presets/runtime-component-props.d.ts +3 -0
- package/dist/src/presets/runtime-component-props.js +5 -0
- package/dist/src/presets/runtime-components.d.ts +5 -0
- package/dist/src/presets/runtime-components.js +419 -0
- package/dist/src/presets/runtime-form-components.d.ts +9 -0
- package/dist/src/presets/runtime-form-components.js +94 -0
- package/dist/src/presets/scenario-catalog.d.ts +6 -0
- package/dist/src/presets/scenario-catalog.js +128 -0
- package/dist/src/presets/scenarios.d.ts +52 -0
- package/dist/src/presets/scenarios.js +603 -0
- package/dist/src/runtime/actions.d.ts +19 -0
- package/dist/src/runtime/actions.js +307 -0
- package/dist/src/runtime/contracts.d.ts +149 -0
- package/dist/src/runtime/contracts.js +1 -0
- package/dist/src/runtime/document-bindings.d.ts +3 -0
- package/dist/src/runtime/document-bindings.js +101 -0
- package/dist/src/runtime/document-core.d.ts +57 -0
- package/dist/src/runtime/document-core.js +379 -0
- package/dist/src/runtime/document-entity.d.ts +12 -0
- package/dist/src/runtime/document-entity.js +351 -0
- package/dist/src/runtime/document-expressions.d.ts +35 -0
- package/dist/src/runtime/document-expressions.js +346 -0
- package/dist/src/runtime/document-security.d.ts +34 -0
- package/dist/src/runtime/document-security.js +538 -0
- package/dist/src/runtime/document.d.ts +16 -0
- package/dist/src/runtime/document.js +212 -0
- package/dist/src/runtime/environment.d.ts +16 -0
- package/dist/src/runtime/environment.js +76 -0
- package/dist/src/runtime/i18n-schema.d.ts +36 -0
- package/dist/src/runtime/i18n-schema.js +338 -0
- package/dist/src/runtime/i18n.d.ts +25 -0
- package/dist/src/runtime/i18n.js +447 -0
- package/dist/src/runtime/index.d.ts +8 -0
- package/dist/src/runtime/index.js +8 -0
- package/dist/src/runtime/navigation.d.ts +5 -0
- package/dist/src/runtime/navigation.js +43 -0
- package/dist/src/runtime/playground.d.ts +30 -0
- package/dist/src/runtime/playground.js +243 -0
- package/dist/src/runtime/preview-boundaries.d.ts +13 -0
- package/dist/src/runtime/preview-boundaries.js +43 -0
- package/dist/src/runtime/preview.d.ts +44 -0
- package/dist/src/runtime/preview.js +574 -0
- package/dist/src/runtime/settings/RuntimeJsonEditor.d.ts +10 -0
- package/dist/src/runtime/settings/RuntimeJsonEditor.js +21 -0
- package/dist/src/runtime/settings/RuntimeStoreEntitySettings.d.ts +15 -0
- package/dist/src/runtime/settings/RuntimeStoreEntitySettings.js +65 -0
- package/dist/src/runtime/templates.d.ts +1560 -0
- package/dist/src/runtime/templates.js +508 -0
- package/dist/src/runtime/website-contact-template.d.ts +1 -0
- package/dist/src/runtime/website-contact-template.js +66 -0
- package/dist/src/runtime/website-template-shared.d.ts +14 -0
- package/dist/src/runtime/website-template-shared.js +210 -0
- package/dist/src/runtime/website-templates.d.ts +5 -0
- package/dist/src/runtime/website-templates.js +976 -0
- package/dist/src/shared/clipboard.d.ts +4 -0
- package/dist/src/shared/clipboard.js +56 -0
- package/dist/src/shared/componentRegistry.d.ts +133 -0
- package/dist/src/shared/componentRegistry.js +381 -0
- package/dist/src/shared/formilyCompatibility.d.ts +8 -0
- package/dist/src/shared/formilyCompatibility.js +40 -0
- package/dist/src/shared/index.d.ts +6 -0
- package/dist/src/shared/index.js +6 -0
- package/dist/src/shared/productionAcceptance.d.ts +63 -0
- package/dist/src/shared/productionAcceptance.js +201 -0
- package/dist/src/shared/schema-options.d.ts +16 -0
- package/dist/src/shared/schema-options.js +138 -0
- package/dist/src/shared/schema.d.ts +63 -0
- package/dist/src/shared/schema.js +627 -0
- package/dist/src/shared/styleSecurity.d.ts +2 -0
- package/dist/src/shared/styleSecurity.js +35 -0
- package/dist/src/transformers/formily.d.ts +34 -0
- package/dist/src/transformers/formily.js +943 -0
- package/dist/src/transformers/index.d.ts +1 -0
- package/dist/src/transformers/index.js +1 -0
- package/dist/src/types.d.ts +186 -0
- package/dist/src/types.js +1 -0
- package/dist/src/widgets/ActionsWidget/index.d.ts +3 -0
- package/dist/src/widgets/ActionsWidget/index.js +10 -0
- package/dist/src/widgets/ComponentTreeWidget/index.d.ts +3 -0
- package/dist/src/widgets/ComponentTreeWidget/index.js +333 -0
- package/dist/src/widgets/NodeActionsWidget/index.d.ts +2 -0
- package/dist/src/widgets/NodeActionsWidget/index.js +125 -0
- package/dist/src/widgets/OutlineTreeWidget/index.d.ts +3 -0
- package/dist/src/widgets/OutlineTreeWidget/index.js +432 -0
- package/dist/src/widgets/OutlineTreeWidget/shared.d.ts +32 -0
- package/dist/src/widgets/OutlineTreeWidget/shared.js +79 -0
- package/dist/src/widgets/PreviewWidget/index.d.ts +2 -0
- package/dist/src/widgets/PreviewWidget/index.js +1566 -0
- package/dist/src/widgets/ProductionReadinessWidget/index.d.ts +18 -0
- package/dist/src/widgets/ProductionReadinessWidget/index.js +356 -0
- package/dist/src/widgets/RemotePersistenceStatusWidget/index.d.ts +18 -0
- package/dist/src/widgets/RemotePersistenceStatusWidget/index.js +438 -0
- package/dist/src/widgets/RemoteVersionHistoryWidget/index.d.ts +39 -0
- package/dist/src/widgets/RemoteVersionHistoryWidget/index.js +475 -0
- package/dist/src/widgets/ResourceWidget/index.d.ts +3 -0
- package/dist/src/widgets/ResourceWidget/index.js +491 -0
- package/dist/src/widgets/SchemaCodeView/index.d.ts +7 -0
- package/dist/src/widgets/SchemaCodeView/index.js +225 -0
- package/dist/src/widgets/SchemaEditorWidget/index.d.ts +10 -0
- package/dist/src/widgets/SchemaEditorWidget/index.js +484 -0
- package/dist/src/widgets/SettingsPanelWidget/index.d.ts +3 -0
- package/dist/src/widgets/SettingsPanelWidget/index.js +190 -0
- package/dist/src/widgets/StorageActionsWidget/index.d.ts +2 -0
- package/dist/src/widgets/StorageActionsWidget/index.js +284 -0
- package/dist/src/widgets/index.d.ts +13 -0
- package/dist/src/widgets/index.js +13 -0
- package/package.json +100 -4
|
@@ -0,0 +1,824 @@
|
|
|
1
|
+
import { aboutTemplateDocument, contactTemplateDocument, freezeRuntimeData, landingHomeTemplateDocument, newsDetailTemplateDocument, newsIndexTemplateDocument, } from "../runtime/templates.js";
|
|
2
|
+
const formBasicDocument = {
|
|
3
|
+
kind: 'yimoka.designable.runtime-document',
|
|
4
|
+
version: 1,
|
|
5
|
+
metadata: {
|
|
6
|
+
scenarioId: 'form',
|
|
7
|
+
},
|
|
8
|
+
schema: {
|
|
9
|
+
type: 'object',
|
|
10
|
+
properties: {
|
|
11
|
+
form: {
|
|
12
|
+
type: 'void',
|
|
13
|
+
'x-component': 'FormLayout',
|
|
14
|
+
'x-component-props': {
|
|
15
|
+
title: '基础信息',
|
|
16
|
+
},
|
|
17
|
+
properties: {
|
|
18
|
+
name: {
|
|
19
|
+
type: 'string',
|
|
20
|
+
title: '姓名',
|
|
21
|
+
required: true,
|
|
22
|
+
'x-decorator': 'FormItem',
|
|
23
|
+
'x-component': 'Input',
|
|
24
|
+
'x-component-props': {
|
|
25
|
+
placeholder: '请输入姓名',
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
status: {
|
|
29
|
+
type: 'string',
|
|
30
|
+
title: '状态',
|
|
31
|
+
'x-decorator': 'FormItem',
|
|
32
|
+
'x-component': 'Select',
|
|
33
|
+
'x-component-props': {
|
|
34
|
+
options: [
|
|
35
|
+
{
|
|
36
|
+
label: '启用',
|
|
37
|
+
value: 'enabled',
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
label: '停用',
|
|
41
|
+
value: 'disabled',
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
placeholder: '请选择状态',
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
store: {
|
|
52
|
+
type: 'base',
|
|
53
|
+
defaultValues: {
|
|
54
|
+
name: '低码体验者',
|
|
55
|
+
status: 'enabled',
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
};
|
|
59
|
+
const officialFormilyAntdDocument = {
|
|
60
|
+
kind: 'yimoka.designable.runtime-document',
|
|
61
|
+
version: 1,
|
|
62
|
+
metadata: {
|
|
63
|
+
scenarioId: 'form',
|
|
64
|
+
},
|
|
65
|
+
schema: {
|
|
66
|
+
type: 'object',
|
|
67
|
+
properties: {
|
|
68
|
+
form: {
|
|
69
|
+
type: 'object',
|
|
70
|
+
'x-component': 'Form',
|
|
71
|
+
'x-component-props': {
|
|
72
|
+
layout: 'vertical',
|
|
73
|
+
},
|
|
74
|
+
properties: {
|
|
75
|
+
grid: {
|
|
76
|
+
type: 'void',
|
|
77
|
+
'x-component': 'FormGrid',
|
|
78
|
+
'x-component-props': {
|
|
79
|
+
columnGap: 16,
|
|
80
|
+
rowGap: 12,
|
|
81
|
+
},
|
|
82
|
+
properties: {
|
|
83
|
+
firstNameColumn: {
|
|
84
|
+
type: 'void',
|
|
85
|
+
'x-component': 'FormGridColumn',
|
|
86
|
+
'x-component-props': {
|
|
87
|
+
gridSpan: 6,
|
|
88
|
+
},
|
|
89
|
+
properties: {
|
|
90
|
+
firstName: {
|
|
91
|
+
type: 'string',
|
|
92
|
+
title: '名',
|
|
93
|
+
'x-decorator': 'FormItem',
|
|
94
|
+
'x-component': 'Input',
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
lastNameColumn: {
|
|
99
|
+
type: 'void',
|
|
100
|
+
'x-component': 'FormGridColumn',
|
|
101
|
+
'x-component-props': {
|
|
102
|
+
gridSpan: 6,
|
|
103
|
+
},
|
|
104
|
+
properties: {
|
|
105
|
+
lastName: {
|
|
106
|
+
type: 'string',
|
|
107
|
+
title: '姓',
|
|
108
|
+
'x-decorator': 'FormItem',
|
|
109
|
+
'x-component': 'Input',
|
|
110
|
+
},
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
members: {
|
|
116
|
+
type: 'array',
|
|
117
|
+
title: '成员',
|
|
118
|
+
'x-component': 'ArrayList',
|
|
119
|
+
'x-component-props': {
|
|
120
|
+
addButtonText: '新增成员',
|
|
121
|
+
header: '成员列表',
|
|
122
|
+
},
|
|
123
|
+
items: {
|
|
124
|
+
type: 'object',
|
|
125
|
+
title: '成员项',
|
|
126
|
+
'x-component': 'ArrayItem',
|
|
127
|
+
properties: {
|
|
128
|
+
memberName: {
|
|
129
|
+
type: 'string',
|
|
130
|
+
title: '成员姓名',
|
|
131
|
+
'x-decorator': 'FormItem',
|
|
132
|
+
'x-component': 'Input',
|
|
133
|
+
},
|
|
134
|
+
role: {
|
|
135
|
+
type: 'string',
|
|
136
|
+
title: '角色',
|
|
137
|
+
'x-decorator': 'FormItem',
|
|
138
|
+
'x-component': 'Select',
|
|
139
|
+
'x-component-props': {
|
|
140
|
+
options: [
|
|
141
|
+
{
|
|
142
|
+
label: '负责人',
|
|
143
|
+
value: 'owner',
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
label: '协作者',
|
|
147
|
+
value: 'member',
|
|
148
|
+
},
|
|
149
|
+
],
|
|
150
|
+
},
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
},
|
|
154
|
+
},
|
|
155
|
+
},
|
|
156
|
+
},
|
|
157
|
+
},
|
|
158
|
+
},
|
|
159
|
+
store: {
|
|
160
|
+
type: 'base',
|
|
161
|
+
defaultValues: {
|
|
162
|
+
form: {
|
|
163
|
+
firstName: 'Designable',
|
|
164
|
+
lastName: 'Formily',
|
|
165
|
+
members: [
|
|
166
|
+
{
|
|
167
|
+
memberName: '示例成员',
|
|
168
|
+
role: 'owner',
|
|
169
|
+
},
|
|
170
|
+
],
|
|
171
|
+
},
|
|
172
|
+
},
|
|
173
|
+
},
|
|
174
|
+
};
|
|
175
|
+
const runtimeStoreInjectionDocument = {
|
|
176
|
+
kind: 'yimoka.designable.runtime-document',
|
|
177
|
+
version: 1,
|
|
178
|
+
metadata: {
|
|
179
|
+
scenarioId: 'form',
|
|
180
|
+
},
|
|
181
|
+
schema: {
|
|
182
|
+
type: 'object',
|
|
183
|
+
properties: {
|
|
184
|
+
storePanel: {
|
|
185
|
+
type: 'void',
|
|
186
|
+
'x-component': 'FormLayout',
|
|
187
|
+
'x-component-props': {
|
|
188
|
+
title: 'Store 注入预览',
|
|
189
|
+
},
|
|
190
|
+
properties: {
|
|
191
|
+
title: {
|
|
192
|
+
type: 'string',
|
|
193
|
+
title: '标题',
|
|
194
|
+
'x-decorator': 'FormItem',
|
|
195
|
+
'x-component': 'Input',
|
|
196
|
+
},
|
|
197
|
+
source: {
|
|
198
|
+
type: 'void',
|
|
199
|
+
'x-component': 'Alert',
|
|
200
|
+
'x-component-props': {
|
|
201
|
+
message: '{{$store.values.runtimeMessage}}',
|
|
202
|
+
showIcon: true,
|
|
203
|
+
type: 'info',
|
|
204
|
+
},
|
|
205
|
+
},
|
|
206
|
+
},
|
|
207
|
+
},
|
|
208
|
+
},
|
|
209
|
+
},
|
|
210
|
+
scope: {
|
|
211
|
+
exampleName: 'runtime-store-injection',
|
|
212
|
+
},
|
|
213
|
+
store: {
|
|
214
|
+
type: 'base',
|
|
215
|
+
defaultValues: {
|
|
216
|
+
runtimeMessage: '当前内容来自 RuntimeDocumentV1 Store',
|
|
217
|
+
title: 'Runtime Store 基础示例',
|
|
218
|
+
},
|
|
219
|
+
},
|
|
220
|
+
};
|
|
221
|
+
const i18nSchema = {
|
|
222
|
+
type: 'object',
|
|
223
|
+
properties: {
|
|
224
|
+
summary: {
|
|
225
|
+
type: 'string',
|
|
226
|
+
title: '摘要',
|
|
227
|
+
'x-decorator': 'FormItem',
|
|
228
|
+
'x-component': 'TextArea',
|
|
229
|
+
},
|
|
230
|
+
title: {
|
|
231
|
+
type: 'string',
|
|
232
|
+
title: '标题',
|
|
233
|
+
'x-decorator': 'FormItem',
|
|
234
|
+
'x-component': 'Input',
|
|
235
|
+
},
|
|
236
|
+
},
|
|
237
|
+
};
|
|
238
|
+
const i18nStoreConfigDocument = {
|
|
239
|
+
kind: 'yimoka.designable.runtime-document',
|
|
240
|
+
version: 1,
|
|
241
|
+
entityConfig: {
|
|
242
|
+
i18nFieldMap: {
|
|
243
|
+
summaryI18n: 'summary',
|
|
244
|
+
titleI18n: 'title',
|
|
245
|
+
},
|
|
246
|
+
i18nInSchema: i18nSchema,
|
|
247
|
+
i18nLangAPI: {
|
|
248
|
+
method: 'GET',
|
|
249
|
+
url: 'fixture://i18n-languages',
|
|
250
|
+
},
|
|
251
|
+
i18nOutSchema: {
|
|
252
|
+
type: 'object',
|
|
253
|
+
properties: {
|
|
254
|
+
summary: {
|
|
255
|
+
...i18nSchema.properties.summary,
|
|
256
|
+
'x-pattern': 'readPretty',
|
|
257
|
+
},
|
|
258
|
+
title: {
|
|
259
|
+
...i18nSchema.properties.title,
|
|
260
|
+
'x-pattern': 'readPretty',
|
|
261
|
+
},
|
|
262
|
+
},
|
|
263
|
+
},
|
|
264
|
+
},
|
|
265
|
+
metadata: {
|
|
266
|
+
scenarioId: 'form',
|
|
267
|
+
},
|
|
268
|
+
schema: {
|
|
269
|
+
type: 'object',
|
|
270
|
+
properties: {
|
|
271
|
+
editable: {
|
|
272
|
+
type: 'void',
|
|
273
|
+
'x-component': 'Flex',
|
|
274
|
+
'x-component-props': {
|
|
275
|
+
'data-testid': 'runtime-i18n-editable',
|
|
276
|
+
gap: 8,
|
|
277
|
+
vertical: true,
|
|
278
|
+
},
|
|
279
|
+
properties: {
|
|
280
|
+
label: {
|
|
281
|
+
type: 'void',
|
|
282
|
+
'x-component': 'Text',
|
|
283
|
+
'x-component-props': {
|
|
284
|
+
children: '编辑多语言内容',
|
|
285
|
+
style: {
|
|
286
|
+
fontWeight: 600,
|
|
287
|
+
},
|
|
288
|
+
},
|
|
289
|
+
},
|
|
290
|
+
editor: {
|
|
291
|
+
type: 'void',
|
|
292
|
+
'x-component': 'I18nEditor',
|
|
293
|
+
},
|
|
294
|
+
},
|
|
295
|
+
},
|
|
296
|
+
values: {
|
|
297
|
+
type: 'void',
|
|
298
|
+
'x-component': 'Flex',
|
|
299
|
+
'x-component-props': {
|
|
300
|
+
'data-testid': 'runtime-i18n-values',
|
|
301
|
+
gap: 8,
|
|
302
|
+
vertical: true,
|
|
303
|
+
},
|
|
304
|
+
properties: {
|
|
305
|
+
chinese: {
|
|
306
|
+
type: 'void',
|
|
307
|
+
'x-component': 'Flex',
|
|
308
|
+
'x-component-props': {
|
|
309
|
+
gap: 4,
|
|
310
|
+
},
|
|
311
|
+
properties: {
|
|
312
|
+
label: {
|
|
313
|
+
type: 'void',
|
|
314
|
+
'x-component': 'Text',
|
|
315
|
+
'x-component-props': {
|
|
316
|
+
children: '中文:',
|
|
317
|
+
},
|
|
318
|
+
},
|
|
319
|
+
value: {
|
|
320
|
+
type: 'void',
|
|
321
|
+
'x-component': 'Text',
|
|
322
|
+
'x-component-props': {
|
|
323
|
+
children: '{{$store.values.titleI18n["zh-CN"]}}',
|
|
324
|
+
},
|
|
325
|
+
},
|
|
326
|
+
},
|
|
327
|
+
},
|
|
328
|
+
english: {
|
|
329
|
+
type: 'void',
|
|
330
|
+
'x-component': 'Flex',
|
|
331
|
+
'x-component-props': {
|
|
332
|
+
gap: 4,
|
|
333
|
+
},
|
|
334
|
+
properties: {
|
|
335
|
+
label: {
|
|
336
|
+
type: 'void',
|
|
337
|
+
'x-component': 'Text',
|
|
338
|
+
'x-component-props': {
|
|
339
|
+
children: 'English:',
|
|
340
|
+
},
|
|
341
|
+
},
|
|
342
|
+
value: {
|
|
343
|
+
type: 'void',
|
|
344
|
+
'x-component': 'Text',
|
|
345
|
+
'x-component-props': {
|
|
346
|
+
children: '{{$store.values.titleI18n["en-US"]}}',
|
|
347
|
+
},
|
|
348
|
+
},
|
|
349
|
+
},
|
|
350
|
+
},
|
|
351
|
+
},
|
|
352
|
+
},
|
|
353
|
+
readonly: {
|
|
354
|
+
type: 'void',
|
|
355
|
+
'x-component': 'Flex',
|
|
356
|
+
'x-component-props': {
|
|
357
|
+
'data-testid': 'runtime-i18n-readonly',
|
|
358
|
+
gap: 8,
|
|
359
|
+
vertical: true,
|
|
360
|
+
},
|
|
361
|
+
properties: {
|
|
362
|
+
label: {
|
|
363
|
+
type: 'void',
|
|
364
|
+
'x-component': 'Text',
|
|
365
|
+
'x-component-props': {
|
|
366
|
+
children: '只读查看',
|
|
367
|
+
style: {
|
|
368
|
+
fontWeight: 600,
|
|
369
|
+
},
|
|
370
|
+
},
|
|
371
|
+
},
|
|
372
|
+
editor: {
|
|
373
|
+
type: 'void',
|
|
374
|
+
'x-component': 'I18nEditor',
|
|
375
|
+
'x-component-props': {
|
|
376
|
+
readOnly: true,
|
|
377
|
+
},
|
|
378
|
+
},
|
|
379
|
+
},
|
|
380
|
+
},
|
|
381
|
+
},
|
|
382
|
+
},
|
|
383
|
+
store: {
|
|
384
|
+
type: 'base',
|
|
385
|
+
defaultValues: {
|
|
386
|
+
summaryI18n: {
|
|
387
|
+
'en-US': 'A stable multilingual runtime example.',
|
|
388
|
+
'zh-CN': '一个稳定的多语言运行时示例。',
|
|
389
|
+
},
|
|
390
|
+
titleI18n: {
|
|
391
|
+
'en-US': 'Runtime foundation example',
|
|
392
|
+
'zh-CN': '运行时基础示例',
|
|
393
|
+
},
|
|
394
|
+
},
|
|
395
|
+
},
|
|
396
|
+
};
|
|
397
|
+
const dataManualDocument = {
|
|
398
|
+
kind: 'yimoka.designable.runtime-document',
|
|
399
|
+
version: 1,
|
|
400
|
+
metadata: {
|
|
401
|
+
scenarioId: 'form',
|
|
402
|
+
},
|
|
403
|
+
schema: {
|
|
404
|
+
type: 'object',
|
|
405
|
+
properties: {
|
|
406
|
+
manualData: {
|
|
407
|
+
type: 'void',
|
|
408
|
+
'x-component': 'FormLayout',
|
|
409
|
+
'x-component-props': {
|
|
410
|
+
title: '手动填写组件数据',
|
|
411
|
+
},
|
|
412
|
+
properties: {
|
|
413
|
+
select: {
|
|
414
|
+
type: 'string',
|
|
415
|
+
title: 'Select',
|
|
416
|
+
'x-decorator': 'FormItem',
|
|
417
|
+
'x-component': 'Select',
|
|
418
|
+
'x-component-props': {
|
|
419
|
+
options: [
|
|
420
|
+
{
|
|
421
|
+
label: '草稿',
|
|
422
|
+
value: 'draft',
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
label: '已发布',
|
|
426
|
+
value: 'published',
|
|
427
|
+
},
|
|
428
|
+
],
|
|
429
|
+
},
|
|
430
|
+
},
|
|
431
|
+
searchSelect: {
|
|
432
|
+
type: 'string',
|
|
433
|
+
title: 'SearchSelect',
|
|
434
|
+
'x-decorator': 'FormItem',
|
|
435
|
+
'x-component': 'SearchSelect',
|
|
436
|
+
'x-component-props': {
|
|
437
|
+
options: [
|
|
438
|
+
{
|
|
439
|
+
label: '成员甲',
|
|
440
|
+
value: 'member-a',
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
label: '成员乙',
|
|
444
|
+
value: 'member-b',
|
|
445
|
+
},
|
|
446
|
+
],
|
|
447
|
+
},
|
|
448
|
+
},
|
|
449
|
+
cascader: {
|
|
450
|
+
type: 'array',
|
|
451
|
+
title: 'Cascader',
|
|
452
|
+
'x-decorator': 'FormItem',
|
|
453
|
+
'x-component': 'Cascader',
|
|
454
|
+
'x-component-props': {
|
|
455
|
+
options: [
|
|
456
|
+
{
|
|
457
|
+
children: [
|
|
458
|
+
{
|
|
459
|
+
label: '上海',
|
|
460
|
+
value: 'shanghai',
|
|
461
|
+
},
|
|
462
|
+
],
|
|
463
|
+
label: '华东',
|
|
464
|
+
value: 'east',
|
|
465
|
+
},
|
|
466
|
+
],
|
|
467
|
+
},
|
|
468
|
+
},
|
|
469
|
+
mentions: {
|
|
470
|
+
type: 'string',
|
|
471
|
+
title: 'Mentions',
|
|
472
|
+
'x-decorator': 'FormItem',
|
|
473
|
+
'x-component': 'Mentions',
|
|
474
|
+
'x-component-props': {
|
|
475
|
+
options: [
|
|
476
|
+
{
|
|
477
|
+
label: '设计负责人',
|
|
478
|
+
value: 'designer',
|
|
479
|
+
},
|
|
480
|
+
],
|
|
481
|
+
},
|
|
482
|
+
},
|
|
483
|
+
radio: {
|
|
484
|
+
type: 'string',
|
|
485
|
+
title: 'Radio',
|
|
486
|
+
'x-decorator': 'FormItem',
|
|
487
|
+
'x-component': 'Radio',
|
|
488
|
+
'x-component-props': {
|
|
489
|
+
options: [
|
|
490
|
+
{
|
|
491
|
+
label: '公开',
|
|
492
|
+
value: 'public',
|
|
493
|
+
},
|
|
494
|
+
{
|
|
495
|
+
label: '私有',
|
|
496
|
+
value: 'private',
|
|
497
|
+
},
|
|
498
|
+
],
|
|
499
|
+
},
|
|
500
|
+
},
|
|
501
|
+
checkbox: {
|
|
502
|
+
type: 'array',
|
|
503
|
+
title: 'Checkbox',
|
|
504
|
+
'x-decorator': 'FormItem',
|
|
505
|
+
'x-component': 'Checkbox',
|
|
506
|
+
'x-component-props': {
|
|
507
|
+
options: [
|
|
508
|
+
{
|
|
509
|
+
label: '站点',
|
|
510
|
+
value: 'site',
|
|
511
|
+
},
|
|
512
|
+
{
|
|
513
|
+
label: '表单',
|
|
514
|
+
value: 'form',
|
|
515
|
+
},
|
|
516
|
+
],
|
|
517
|
+
},
|
|
518
|
+
},
|
|
519
|
+
treeSelect: {
|
|
520
|
+
type: 'string',
|
|
521
|
+
title: 'TreeSelect',
|
|
522
|
+
'x-decorator': 'FormItem',
|
|
523
|
+
'x-component': 'TreeSelect',
|
|
524
|
+
'x-component-props': {
|
|
525
|
+
treeData: [
|
|
526
|
+
{
|
|
527
|
+
children: [
|
|
528
|
+
{
|
|
529
|
+
title: '二级栏目',
|
|
530
|
+
value: 'child',
|
|
531
|
+
},
|
|
532
|
+
],
|
|
533
|
+
title: '一级栏目',
|
|
534
|
+
value: 'root',
|
|
535
|
+
},
|
|
536
|
+
],
|
|
537
|
+
},
|
|
538
|
+
},
|
|
539
|
+
transfer: {
|
|
540
|
+
type: 'array',
|
|
541
|
+
title: 'Transfer',
|
|
542
|
+
'x-decorator': 'FormItem',
|
|
543
|
+
'x-component': 'Transfer',
|
|
544
|
+
'x-component-props': {
|
|
545
|
+
dataSource: [
|
|
546
|
+
{
|
|
547
|
+
key: 'design',
|
|
548
|
+
title: '设计',
|
|
549
|
+
},
|
|
550
|
+
{
|
|
551
|
+
key: 'preview',
|
|
552
|
+
title: '预览',
|
|
553
|
+
},
|
|
554
|
+
],
|
|
555
|
+
},
|
|
556
|
+
},
|
|
557
|
+
},
|
|
558
|
+
},
|
|
559
|
+
},
|
|
560
|
+
},
|
|
561
|
+
store: {
|
|
562
|
+
type: 'base',
|
|
563
|
+
defaultValues: {},
|
|
564
|
+
},
|
|
565
|
+
};
|
|
566
|
+
const dataStoreCatalogDocument = {
|
|
567
|
+
kind: 'yimoka.designable.runtime-document',
|
|
568
|
+
version: 1,
|
|
569
|
+
metadata: {
|
|
570
|
+
scenarioId: 'form',
|
|
571
|
+
},
|
|
572
|
+
schema: {
|
|
573
|
+
type: 'object',
|
|
574
|
+
properties: {
|
|
575
|
+
catalogData: {
|
|
576
|
+
type: 'void',
|
|
577
|
+
'x-component': 'FormLayout',
|
|
578
|
+
'x-component-props': {
|
|
579
|
+
title: 'Store 数据目录',
|
|
580
|
+
},
|
|
581
|
+
properties: {
|
|
582
|
+
status: {
|
|
583
|
+
type: 'string',
|
|
584
|
+
title: '状态字典',
|
|
585
|
+
'x-decorator': 'FormItem',
|
|
586
|
+
'x-component': 'Select',
|
|
587
|
+
'x-component-props': {
|
|
588
|
+
dataKey: 'dict.status',
|
|
589
|
+
},
|
|
590
|
+
},
|
|
591
|
+
region: {
|
|
592
|
+
type: 'string',
|
|
593
|
+
title: '地区树',
|
|
594
|
+
'x-decorator': 'FormItem',
|
|
595
|
+
'x-component': 'TreeSelect',
|
|
596
|
+
'x-component-props': {
|
|
597
|
+
dataKey: 'dict.regions',
|
|
598
|
+
},
|
|
599
|
+
},
|
|
600
|
+
member: {
|
|
601
|
+
type: 'string',
|
|
602
|
+
title: '成员列表',
|
|
603
|
+
'x-decorator': 'FormItem',
|
|
604
|
+
'x-component': 'SearchSelect',
|
|
605
|
+
'x-component-props': {
|
|
606
|
+
dataKey: 'values.members',
|
|
607
|
+
},
|
|
608
|
+
},
|
|
609
|
+
unknown: {
|
|
610
|
+
type: 'string',
|
|
611
|
+
title: '未知 key 诊断',
|
|
612
|
+
'x-decorator': 'FormItem',
|
|
613
|
+
'x-component': 'Select',
|
|
614
|
+
'x-component-props': {
|
|
615
|
+
dataKey: 'dict.unknown',
|
|
616
|
+
},
|
|
617
|
+
},
|
|
618
|
+
},
|
|
619
|
+
},
|
|
620
|
+
},
|
|
621
|
+
},
|
|
622
|
+
store: {
|
|
623
|
+
type: 'base',
|
|
624
|
+
defaultValues: {
|
|
625
|
+
members: [
|
|
626
|
+
{
|
|
627
|
+
label: '成员甲',
|
|
628
|
+
value: 'member-a',
|
|
629
|
+
},
|
|
630
|
+
{
|
|
631
|
+
label: '成员乙',
|
|
632
|
+
value: 'member-b',
|
|
633
|
+
},
|
|
634
|
+
],
|
|
635
|
+
},
|
|
636
|
+
dictConfig: [
|
|
637
|
+
{
|
|
638
|
+
field: 'status',
|
|
639
|
+
data: [
|
|
640
|
+
{
|
|
641
|
+
label: '启用',
|
|
642
|
+
value: 'enabled',
|
|
643
|
+
},
|
|
644
|
+
{
|
|
645
|
+
label: '停用',
|
|
646
|
+
value: 'disabled',
|
|
647
|
+
},
|
|
648
|
+
],
|
|
649
|
+
},
|
|
650
|
+
{
|
|
651
|
+
field: 'regions',
|
|
652
|
+
data: [
|
|
653
|
+
{
|
|
654
|
+
children: [
|
|
655
|
+
{
|
|
656
|
+
title: '上海',
|
|
657
|
+
value: 'shanghai',
|
|
658
|
+
},
|
|
659
|
+
],
|
|
660
|
+
title: '华东',
|
|
661
|
+
value: 'east',
|
|
662
|
+
},
|
|
663
|
+
],
|
|
664
|
+
},
|
|
665
|
+
],
|
|
666
|
+
},
|
|
667
|
+
};
|
|
668
|
+
const uiJsonRoundtripDocument = {
|
|
669
|
+
kind: 'yimoka.designable.runtime-document',
|
|
670
|
+
version: 1,
|
|
671
|
+
metadata: {
|
|
672
|
+
scenarioId: 'form',
|
|
673
|
+
},
|
|
674
|
+
schema: {
|
|
675
|
+
type: 'object',
|
|
676
|
+
properties: {
|
|
677
|
+
modeSwitch: {
|
|
678
|
+
type: 'void',
|
|
679
|
+
'x-component': 'FormLayout',
|
|
680
|
+
'x-component-props': {
|
|
681
|
+
title: 'UI 与 JSON 双向一致',
|
|
682
|
+
},
|
|
683
|
+
properties: {
|
|
684
|
+
status: {
|
|
685
|
+
type: 'string',
|
|
686
|
+
title: '状态选项',
|
|
687
|
+
'x-decorator': 'FormItem',
|
|
688
|
+
'x-component': 'Select',
|
|
689
|
+
'x-component-props': {
|
|
690
|
+
options: [
|
|
691
|
+
{
|
|
692
|
+
label: '手动选项 A',
|
|
693
|
+
value: 'a',
|
|
694
|
+
},
|
|
695
|
+
{
|
|
696
|
+
label: '手动选项 B',
|
|
697
|
+
value: 'b',
|
|
698
|
+
},
|
|
699
|
+
],
|
|
700
|
+
placeholder: '在属性面板切换数据模式',
|
|
701
|
+
},
|
|
702
|
+
},
|
|
703
|
+
},
|
|
704
|
+
},
|
|
705
|
+
},
|
|
706
|
+
},
|
|
707
|
+
store: {
|
|
708
|
+
type: 'base',
|
|
709
|
+
defaultValues: {},
|
|
710
|
+
dictConfig: [
|
|
711
|
+
{
|
|
712
|
+
field: 'status',
|
|
713
|
+
data: [
|
|
714
|
+
{
|
|
715
|
+
label: '启用',
|
|
716
|
+
value: 'enabled',
|
|
717
|
+
},
|
|
718
|
+
{
|
|
719
|
+
label: '停用',
|
|
720
|
+
value: 'disabled',
|
|
721
|
+
},
|
|
722
|
+
],
|
|
723
|
+
},
|
|
724
|
+
],
|
|
725
|
+
},
|
|
726
|
+
};
|
|
727
|
+
export const runtimeExamples = freezeRuntimeData([
|
|
728
|
+
{
|
|
729
|
+
description: '最小 Runtime 文档,覆盖基础表单设计、JSON 与 DynamicView 预览。',
|
|
730
|
+
document: formBasicDocument,
|
|
731
|
+
id: 'form-basic',
|
|
732
|
+
scenarioId: 'form',
|
|
733
|
+
title: '基础表单',
|
|
734
|
+
},
|
|
735
|
+
{
|
|
736
|
+
description: '对照官方 Playground 的 Form、Grid、数组与布局概念做本仓兼容示例。',
|
|
737
|
+
document: officialFormilyAntdDocument,
|
|
738
|
+
id: 'official-formily-antd',
|
|
739
|
+
scenarioId: 'form',
|
|
740
|
+
source: {
|
|
741
|
+
adaptation: '仅借鉴官方示例的结构与交互概念,全部改用本仓库封装组件,未复制第三方实现。',
|
|
742
|
+
license: 'MIT',
|
|
743
|
+
revision: '3e961de947011df6ac5cd092c1084140494f5fc2',
|
|
744
|
+
url: 'https://github.com/alibaba/designable/tree/3e961de947011df6ac5cd092c1084140494f5fc2/formily/antd/playground',
|
|
745
|
+
},
|
|
746
|
+
title: '官方 Formily Antd 示例',
|
|
747
|
+
},
|
|
748
|
+
{
|
|
749
|
+
description: '展示 RuntimeDocumentV1 的 Store 配置、表达式与宿主覆盖入口。',
|
|
750
|
+
document: runtimeStoreInjectionDocument,
|
|
751
|
+
id: 'runtime-store-injection',
|
|
752
|
+
scenarioId: 'form',
|
|
753
|
+
title: 'Runtime Store 注入',
|
|
754
|
+
},
|
|
755
|
+
{
|
|
756
|
+
description: '展示 Entity 多语言映射、输入/只读 Schema、fixture 语言目录与 Store 写回。',
|
|
757
|
+
document: i18nStoreConfigDocument,
|
|
758
|
+
id: 'i18n-store-config',
|
|
759
|
+
scenarioId: 'form',
|
|
760
|
+
title: '多语言 Store 配置',
|
|
761
|
+
},
|
|
762
|
+
{
|
|
763
|
+
description: '展示八类数据依赖组件各自的标准手填属性。',
|
|
764
|
+
document: dataManualDocument,
|
|
765
|
+
id: 'data-manual',
|
|
766
|
+
scenarioId: 'form',
|
|
767
|
+
title: '手动填写组件数据',
|
|
768
|
+
},
|
|
769
|
+
{
|
|
770
|
+
description: '展示从宿主目录选择 dataKey、静态 Store 字典与未知 key 诊断。',
|
|
771
|
+
document: dataStoreCatalogDocument,
|
|
772
|
+
id: 'data-store-catalog',
|
|
773
|
+
scenarioId: 'form',
|
|
774
|
+
title: '选择 Store 数据',
|
|
775
|
+
},
|
|
776
|
+
{
|
|
777
|
+
description: '展示数据模式 UI 与 Runtime JSON 的互斥字段双向一致性。',
|
|
778
|
+
document: uiJsonRoundtripDocument,
|
|
779
|
+
id: 'ui-json-roundtrip',
|
|
780
|
+
scenarioId: 'form',
|
|
781
|
+
title: 'UI 与 JSON 双向编辑',
|
|
782
|
+
},
|
|
783
|
+
{
|
|
784
|
+
description: '展示 website 场景与 landing-home@2 的现代极简官网首页。',
|
|
785
|
+
document: landingHomeTemplateDocument,
|
|
786
|
+
id: 'template-landing-home',
|
|
787
|
+
scenarioId: 'website',
|
|
788
|
+
templateId: 'landing-home',
|
|
789
|
+
title: '极简官网首页',
|
|
790
|
+
},
|
|
791
|
+
{
|
|
792
|
+
description: '展示带精选内容、文章卡片与分类入口的新闻与观点列表页。',
|
|
793
|
+
document: newsIndexTemplateDocument,
|
|
794
|
+
id: 'template-news-index',
|
|
795
|
+
scenarioId: 'website',
|
|
796
|
+
templateId: 'news-index',
|
|
797
|
+
title: '新闻中心',
|
|
798
|
+
},
|
|
799
|
+
{
|
|
800
|
+
description: '展示带文章元信息、正文层级、引用与延伸阅读的新闻详情页。',
|
|
801
|
+
document: newsDetailTemplateDocument,
|
|
802
|
+
id: 'template-news-detail',
|
|
803
|
+
scenarioId: 'website',
|
|
804
|
+
templateId: 'news-detail',
|
|
805
|
+
title: '新闻详情',
|
|
806
|
+
},
|
|
807
|
+
{
|
|
808
|
+
description: '展示品牌故事、价值观、方法与团队数据组成的关于页面。',
|
|
809
|
+
document: aboutTemplateDocument,
|
|
810
|
+
id: 'template-about',
|
|
811
|
+
scenarioId: 'website',
|
|
812
|
+
templateId: 'about',
|
|
813
|
+
title: '关于我们',
|
|
814
|
+
},
|
|
815
|
+
{
|
|
816
|
+
description: '展示联系信息、需求收集表单与服务承诺组成的联系页面。',
|
|
817
|
+
document: contactTemplateDocument,
|
|
818
|
+
id: 'template-contact',
|
|
819
|
+
scenarioId: 'website',
|
|
820
|
+
templateId: 'contact',
|
|
821
|
+
title: '联系我们',
|
|
822
|
+
},
|
|
823
|
+
]);
|
|
824
|
+
export { applyRuntimeTemplate, findRuntimeTemplate, runtimeTemplates, } from "../runtime/templates.js";
|