MCPcopy
hub / github.com/baidu/amis / scaffoldForm

Method scaffoldForm

packages/amis-editor/src/plugin/Table.tsx:101–177  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

99 };
100
101 get scaffoldForm(): ScaffoldForm {
102 const i18nEnabled = getI18nEnabled();
103 return {
104 title: '快速构建表格',
105 body: [
106 {
107 name: 'columns',
108 type: 'combo',
109 multiple: true,
110 label: false,
111 addButtonText: '新增一列',
112 draggable: true,
113 items: [
114 {
115 type: i18nEnabled ? 'input-text-i18n' : 'input-text',
116 name: 'label',
117 placeholder: '标题'
118 },
119 {
120 type: 'input-text',
121 name: 'name',
122 placeholder: '绑定字段名'
123 },
124 {
125 type: 'select',
126 name: 'type',
127 placeholder: '类型',
128 value: 'text',
129 options: [
130 {
131 value: 'text',
132 label: '纯文本'
133 },
134 {
135 value: 'tpl',
136 label: '模板'
137 },
138 {
139 value: 'image',
140 label: '图片'
141 },
142 {
143 value: 'date',
144 label: '日期'
145 },
146 // {
147 // value: 'datetime',
148 // label: '日期时间'
149 // },
150 // {
151 // value: 'time',
152 // label: '时间'
153 // },
154 {
155 value: 'progress',
156 label: '进度'
157 },
158 {

Callers

nothing calls this directly

Calls 1

getI18nEnabledFunction · 0.90

Tested by

no test coverage detected