(componentName: string, params: any)
| 174 | }; |
| 175 | |
| 176 | export const createMeta = (componentName: string, params: any) => { |
| 177 | return { |
| 178 | componentName, |
| 179 | docUrl: '', |
| 180 | screenshot: '', |
| 181 | devMode: 'proCode', |
| 182 | npm: { |
| 183 | package: '@ali/form-render-material', |
| 184 | version: '1.0.0', |
| 185 | exportName: componentName, |
| 186 | main: 'src/index.tsx', |
| 187 | destructuring: true, |
| 188 | subName: '', |
| 189 | }, |
| 190 | configure: { |
| 191 | supports: { |
| 192 | loop: false, |
| 193 | condition: false |
| 194 | }, |
| 195 | component: { |
| 196 | isContainer: false, |
| 197 | isModal: false, |
| 198 | nestingRule: { |
| 199 | parentWhitelist: ['FormRender', 'Card', 'CardList', 'TableList'] |
| 200 | } |
| 201 | }, |
| 202 | }, |
| 203 | group: '基础组件', |
| 204 | category: '常用', |
| 205 | icon: 'https://img.alicdn.com/imgextra/i4/O1CN01gxzRdT1hm9KXRbZkU_!!6000000004319-2-tps-200-200.png', |
| 206 | ...params |
| 207 | }; |
| 208 | } |
| 209 |
no outgoing calls
no test coverage detected