forked from alibaba/lowcode-materials
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmeta.ts
More file actions
95 lines (95 loc) · 2.01 KB
/
meta.ts
File metadata and controls
95 lines (95 loc) · 2.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
module.exports = {
group: '原子组件',
componentName: 'Radio',
title: '单选框',
docUrl: '',
screenshot: '',
npm: {
package: '@alifd/next',
version: '{{version}}',
exportName: 'Radio',
main: '',
destructuring: true,
subName: '',
},
props: [
{
name: 'className',
propType: 'string',
description: '自定义类名',
},
{
name: 'style',
propType: 'object',
description: '自定义内敛样式',
},
{
name: 'id',
propType: 'string',
description: 'input元素id',
},
{
name: 'name',
propType: 'string',
description: 'name',
},
{
name: 'checked',
propType: 'bool',
description: '是否选中',
},
{
name: 'defaultChecked',
propType: 'bool',
description: '是否默认选中',
},
{
name: 'label',
propType: 'string',
description: '通过属性配置label',
},
{
name: 'disabled',
propType: 'bool',
description: '是否被禁用',
},
{
name: 'value',
propType: {
type: 'oneOfType',
value: ['string', 'number', 'bool'],
},
description: 'value',
},
{
name: 'isPreview',
propType: 'bool',
description: '是否为预览态',
defaultValue: false,
},
{
name: 'renderPreview',
propType: 'func',
description: '预览态模式下渲染的内容',
},
{
name: 'onChange',
propType: 'func',
description:
'状态变化时触发的事件\n@param {Boolean} checked 是否选中\n@param {Event} e Dom 事件对象',
},
{
name: 'onMouseEnter',
propType: 'func',
description: '鼠标进入enter事件\n@param {Event} e Dom 事件对象',
},
{
name: 'onMouseLeave',
propType: 'func',
description: '鼠标离开事件\n@param {Event} e Dom 事件对象',
},
],
icon: '',
category: '信息输入',
snippets: require('./snippets'),
};