forked from alibaba/lowcode-materials
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsnippets.ts
More file actions
23 lines (22 loc) · 747 Bytes
/
snippets.ts
File metadata and controls
23 lines (22 loc) · 747 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import { getDataFromPlainText } from './adaptor';
const plainData =
'Step 1\n\tOpen the door Put the elephant into the fridge\n*Step 2\n\tOpen the door Put the elephant into the fridge\nStep 3\n\tOpen the door Put the elephant into the fridge\nStep 4\n\tOpen the door Put the elephant into the fridge';
const { children } = getDataFromPlainText(plainData);
export default [
{
title: '步骤',
screenshot:
'https://alifd.oss-cn-hangzhou.aliyuncs.com/fusion-cool/icons/icon-light/ic_light_step.png',
schema: {
componentName: 'Step',
props: {
prefix: 'next-',
direction: 'hoz',
labelPlacement: 'ver',
shape: 'circle',
animation: true,
},
children,
},
},
];