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
107 lines (106 loc) · 2.42 KB
/
meta.ts
File metadata and controls
107 lines (106 loc) · 2.42 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
96
97
98
99
100
101
102
103
104
105
106
107
import snippets from './snippets';
export default {
group: '原子组件',
componentName: 'Icon',
title: '图标',
docUrl: '',
screenshot:
'https://img.alicdn.com/imgextra/i1/O1CN01yR8vcY1M504YbHxzo_!!6000000001382-55-tps-56-56.svg',
icon: 'https://img.alicdn.com/imgextra/i1/O1CN01yR8vcY1M504YbHxzo_!!6000000001382-55-tps-56-56.svg',
npm: {
package: '@alifd/next',
version: '{{version}}',
exportName: 'Icon',
main: '',
destructuring: true,
subName: '',
},
props: [
{
name: 'type',
propType: 'string',
description: '指定显示哪种图标',
},
{
name: 'size',
title: {
label: {
type: 'i18n',
zh_CN: '图标尺寸',
en_US: 'Icon Size',
},
tip: {
type: 'i18n',
zh_CN: '属性: size | 说明: 指定图标大小',
en_US: 'prop: size | description: icon size',
},
},
propType: {
type: 'oneOfType',
value: [
{
type: 'oneOf',
value: ['xxs', 'xs', 'small', 'medium', 'large', 'xl', 'xxl', 'xxxl', 'inherit'],
},
'number',
],
},
description: '指定图标大小',
defaultValue: 'medium',
},
{
name: 'className',
propType: 'string',
},
{
name: 'style',
propType: 'object',
},
],
configure: {
props: {
isExtends: true,
override: [
{
name: 'type',
title: {
label: {
type: 'i18n',
zh_CN: '图标类型',
en_US: 'Icon',
},
tip: {
type: 'i18n',
zh_CN: '属性: type | 说明: 图标类型',
en_US: 'prop: type | description: icon type',
},
},
setter: {
componentName: 'IconSetter',
props: {
hasClear: false,
},
},
},
],
},
},
experimental: {
callbacks: {
onHoverHook: (target) => {
return !target?.schema?.props?.disabled;
},
onMouseDownHook: (target) => {
return !target?.schema?.props?.disabled;
},
onClickHook: (target) => {
return !target?.schema?.props?.disabled;
},
onMove: (target) => {
return !target?.schema?.props?.disabled;
},
},
},
category: '通用',
snippets,
};