()
| 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 | { |
nothing calls this directly
no test coverage detected