@aloudata/aloudata-design 0.3.0 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -5
- package/es/Breadcrumb/index.d.ts +0 -1
- package/es/Button/index.js +3 -2
- package/es/Button/style/index.less +135 -126
- package/es/Button/style/variables.less +53 -53
- package/es/Card/index.d.ts +3 -0
- package/es/Card/index.js +3 -0
- package/es/{Message → Card}/style/index.d.ts +0 -0
- package/es/{Message → Card}/style/index.js +0 -0
- package/es/{Message → Card}/style/index.less +0 -0
- package/es/Checkbox/index.d.ts +0 -1
- package/es/Drawer/index.d.ts +4 -0
- package/es/Drawer/index.js +3 -0
- package/es/{Notification → Drawer}/style/index.d.ts +0 -0
- package/es/{Notification → Drawer}/style/index.js +0 -0
- package/es/{Notification → Drawer}/style/index.less +0 -0
- package/es/Dropdown/Button.js +4 -3
- package/es/Empty/image/Authority.d.ts +0 -1
- package/es/Empty/image/Dataspace.d.ts +0 -1
- package/es/Empty/image/Search.d.ts +0 -1
- package/es/Empty/image/Simple.d.ts +0 -1
- package/es/Empty/image/Worksheet.d.ts +0 -1
- package/es/Empty/image/empty.d.ts +0 -1
- package/es/Icon/icons/CheckLine.d.ts +13 -0
- package/es/Icon/icons/CheckLine.js +73 -0
- package/es/Icon/icons.json +410 -0
- package/es/Input/components/Group/index.d.ts +2 -2
- package/es/Input/components/Group/index.js +6 -12
- package/es/Input/components/Input/index.d.ts +3 -2
- package/es/Input/components/Input/index.js +11 -22
- package/es/Input/components/Password/index.js +11 -16
- package/es/Input/style/index.less +102 -102
- package/es/InputNumber/index.d.ts +0 -1
- package/es/InputNumber/style/index.less +69 -69
- package/es/Menu/Divider.d.ts +0 -1
- package/es/Modal/index.js +20 -16
- package/es/Modal/locale.d.ts +7 -0
- package/es/Modal/locale.js +20 -0
- package/es/Modal/style/index.less +45 -45
- package/es/Navigator/components/Header/index.d.ts +0 -1
- package/es/Navigator/components/Menu/index.d.ts +0 -1
- package/es/Navigator/components/MenuItem/index.d.ts +1 -1
- package/es/Navigator/index.d.ts +1 -1
- package/es/PageHeader/index.d.ts +3 -0
- package/es/PageHeader/index.js +3 -0
- package/{lib/Message → es/PageHeader}/style/index.d.ts +0 -0
- package/es/PageHeader/style/index.js +2 -0
- package/{lib/Message → es/PageHeader}/style/index.less +0 -0
- package/es/Popover/index.d.ts +0 -1
- package/es/Select/rc-select/OptionList.js +4 -4
- package/es/Select/rc-select/Selector/MultipleSelector.js +11 -1
- package/es/Select/rc-select/hooks/useOptions.d.ts +1 -1
- package/es/Select/style/index.less +69 -45
- package/es/Select/style/variables.less +45 -45
- package/es/Select/utils/iconUtil.d.ts +2 -2
- package/es/Select/utils/iconUtil.js +9 -5
- package/es/Steps/components/ProcessIcon/index.d.ts +5 -0
- package/es/Steps/components/ProcessIcon/index.js +8 -0
- package/es/Steps/components/Step/index.d.ts +20 -0
- package/es/Steps/components/Step/index.js +45 -0
- package/es/Steps/index.d.ts +36 -2
- package/es/Steps/index.js +30 -1
- package/es/Steps/matchMedia.mock.d.ts +1 -0
- package/es/Steps/matchMedia.mock.js +17 -0
- package/es/Steps/style/index.less +251 -0
- package/es/Switch/index.d.ts +46 -2
- package/es/Switch/index.js +71 -1
- package/es/Switch/style/index.less +129 -0
- package/es/Table/Table.js +3 -3
- package/es/Table/style/index.less +1 -1
- package/es/Tabs/index.js +7 -9
- package/es/Tabs/style/index.less +57 -25
- package/es/index.d.ts +13 -7
- package/es/index.js +6 -3
- package/es/locale/default.d.ts +2 -0
- package/es/locale/default.js +2 -0
- package/es/locale/en_US.d.ts +3 -0
- package/es/locale/en_US.js +132 -0
- package/es/locale/zh_CN.d.ts +3 -2
- package/es/locale/zh_CN.js +131 -2
- package/es/locale-provider/LocaleReceiver.d.ts +4 -0
- package/es/locale-provider/LocaleReceiver.js +3 -0
- package/es/locale-provider/context.d.ts +7 -0
- package/es/locale-provider/context.js +3 -0
- package/es/locale-provider/default.d.ts +2 -0
- package/es/locale-provider/default.js +2 -0
- package/es/locale-provider/en_US.d.ts +2 -0
- package/es/locale-provider/en_US.js +2 -0
- package/es/locale-provider/index.d.ts +61 -0
- package/es/locale-provider/index.js +102 -0
- package/es/locale-provider/style/index.d.ts +1 -0
- package/es/locale-provider/style/index.js +1 -0
- package/es/locale-provider/style/index.less +2 -0
- package/es/locale-provider/zh_CN.d.ts +2 -0
- package/es/locale-provider/zh_CN.js +2 -0
- package/es/{Message → message}/index.d.ts +0 -0
- package/es/{Message → message}/index.js +0 -0
- package/{lib/Notification → es/message}/style/index.d.ts +0 -0
- package/es/message/style/index.js +2 -0
- package/{lib/Notification → es/message}/style/index.less +0 -0
- package/es/{Notification → notification}/index.d.ts +0 -0
- package/es/{Notification → notification}/index.js +0 -0
- package/es/notification/style/index.d.ts +2 -0
- package/es/notification/style/index.js +2 -0
- package/es/notification/style/index.less +1 -0
- package/es/style/index.less +1 -1
- package/es/style/themes/default/index.less +30 -30
- package/lib/Breadcrumb/index.d.ts +0 -1
- package/lib/Button/index.js +5 -3
- package/lib/Button/style/index.less +135 -126
- package/lib/Button/style/variables.less +53 -53
- package/lib/Card/index.d.ts +3 -0
- package/lib/Card/index.js +15 -0
- package/lib/Card/style/index.d.ts +2 -0
- package/lib/{Message → Card}/style/index.js +0 -0
- package/lib/Card/style/index.less +1 -0
- package/lib/Checkbox/index.d.ts +0 -1
- package/lib/Drawer/index.d.ts +4 -0
- package/lib/Drawer/index.js +15 -0
- package/lib/Drawer/style/index.d.ts +2 -0
- package/lib/{Notification → Drawer}/style/index.js +0 -0
- package/lib/Drawer/style/index.less +1 -0
- package/lib/Dropdown/Button.js +8 -6
- package/lib/Empty/image/Authority.d.ts +0 -1
- package/lib/Empty/image/Dataspace.d.ts +0 -1
- package/lib/Empty/image/Search.d.ts +0 -1
- package/lib/Empty/image/Simple.d.ts +0 -1
- package/lib/Empty/image/Worksheet.d.ts +0 -1
- package/lib/Empty/image/empty.d.ts +0 -1
- package/lib/Icon/icons/CheckLine.d.ts +13 -0
- package/lib/Icon/icons/CheckLine.js +90 -0
- package/lib/Icon/icons.json +410 -0
- package/lib/Input/components/Group/index.d.ts +2 -2
- package/lib/Input/components/Group/index.js +7 -12
- package/lib/Input/components/Input/index.d.ts +3 -2
- package/lib/Input/components/Input/index.js +13 -22
- package/lib/Input/components/Password/index.js +13 -17
- package/lib/Input/style/index.less +102 -102
- package/lib/InputNumber/index.d.ts +0 -1
- package/lib/InputNumber/style/index.less +69 -69
- package/lib/Menu/Divider.d.ts +0 -1
- package/lib/Modal/index.js +25 -18
- package/lib/Modal/locale.d.ts +7 -0
- package/lib/Modal/locale.js +31 -0
- package/lib/Modal/style/index.less +45 -45
- package/lib/Navigator/components/Header/index.d.ts +0 -1
- package/lib/Navigator/components/Menu/index.d.ts +0 -1
- package/lib/Navigator/components/MenuItem/index.d.ts +1 -1
- package/lib/Navigator/index.d.ts +1 -1
- package/lib/PageHeader/index.d.ts +3 -0
- package/lib/PageHeader/index.js +15 -0
- package/lib/PageHeader/style/index.d.ts +2 -0
- package/lib/PageHeader/style/index.js +5 -0
- package/lib/PageHeader/style/index.less +1 -0
- package/lib/Popover/index.d.ts +0 -1
- package/lib/Select/rc-select/OptionList.js +8 -7
- package/lib/Select/rc-select/Selector/MultipleSelector.js +11 -1
- package/lib/Select/rc-select/hooks/useOptions.d.ts +1 -1
- package/lib/Select/style/index.less +69 -45
- package/lib/Select/style/variables.less +45 -45
- package/lib/Select/utils/iconUtil.d.ts +2 -2
- package/lib/Select/utils/iconUtil.js +13 -7
- package/lib/Steps/components/ProcessIcon/index.d.ts +5 -0
- package/lib/Steps/components/ProcessIcon/index.js +19 -0
- package/lib/Steps/components/Step/index.d.ts +20 -0
- package/lib/Steps/components/Step/index.js +61 -0
- package/lib/Steps/index.d.ts +36 -2
- package/lib/Steps/index.js +34 -1
- package/lib/Steps/matchMedia.mock.d.ts +1 -0
- package/lib/Steps/matchMedia.mock.js +17 -0
- package/lib/Steps/style/index.less +251 -0
- package/lib/Switch/index.d.ts +46 -2
- package/lib/Switch/index.js +78 -1
- package/lib/Switch/style/index.less +129 -0
- package/lib/Table/Table.js +3 -3
- package/lib/Table/style/index.less +1 -1
- package/lib/Tabs/index.js +9 -11
- package/lib/Tabs/style/index.less +57 -25
- package/lib/index.d.ts +13 -7
- package/lib/index.js +34 -10
- package/lib/locale/default.d.ts +2 -0
- package/lib/locale/default.js +13 -0
- package/lib/locale/en_US.d.ts +3 -0
- package/lib/locale/en_US.js +146 -0
- package/lib/locale/zh_CN.d.ts +3 -2
- package/lib/locale/zh_CN.js +134 -2
- package/lib/locale-provider/LocaleReceiver.d.ts +4 -0
- package/lib/locale-provider/LocaleReceiver.js +23 -0
- package/lib/locale-provider/context.d.ts +7 -0
- package/lib/locale-provider/context.js +12 -0
- package/lib/locale-provider/default.d.ts +2 -0
- package/lib/locale-provider/default.js +13 -0
- package/lib/locale-provider/en_US.d.ts +2 -0
- package/lib/locale-provider/en_US.js +13 -0
- package/lib/locale-provider/index.d.ts +61 -0
- package/lib/locale-provider/index.js +116 -0
- package/lib/locale-provider/style/index.d.ts +1 -0
- package/lib/locale-provider/style/index.js +3 -0
- package/lib/locale-provider/style/index.less +2 -0
- package/lib/locale-provider/zh_CN.d.ts +2 -0
- package/lib/locale-provider/zh_CN.js +13 -0
- package/lib/{Message → message}/index.d.ts +0 -0
- package/lib/{Message → message}/index.js +0 -0
- package/lib/message/style/index.d.ts +2 -0
- package/lib/message/style/index.js +5 -0
- package/lib/message/style/index.less +1 -0
- package/lib/{Notification → notification}/index.d.ts +0 -0
- package/lib/{Notification → notification}/index.js +0 -0
- package/lib/notification/style/index.d.ts +2 -0
- package/lib/notification/style/index.js +5 -0
- package/lib/notification/style/index.less +1 -0
- package/lib/style/index.less +1 -1
- package/lib/style/themes/default/index.less +30 -30
- package/package.json +11 -8
|
@@ -0,0 +1,410 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"id": 0,
|
|
4
|
+
"title": "加载中",
|
|
5
|
+
"name": "loading-line",
|
|
6
|
+
"category": "Line",
|
|
7
|
+
"categoryCN": "线",
|
|
8
|
+
"author": "阿广"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"id": 1,
|
|
12
|
+
"title": "全部",
|
|
13
|
+
"name": "all-line",
|
|
14
|
+
"category": "Line",
|
|
15
|
+
"categoryCN": "线",
|
|
16
|
+
"author": "阿广"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"id": 2,
|
|
20
|
+
"title": "至底",
|
|
21
|
+
"name": "to-bottom-line",
|
|
22
|
+
"category": "Line",
|
|
23
|
+
"categoryCN": "线",
|
|
24
|
+
"author": "阿广"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"id": 3,
|
|
28
|
+
"title": "闪电",
|
|
29
|
+
"name": "lightning-line",
|
|
30
|
+
"category": "Line",
|
|
31
|
+
"categoryCN": "线",
|
|
32
|
+
"author": "阿广"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"id": 4,
|
|
36
|
+
"title": "复制",
|
|
37
|
+
"name": "copy-line",
|
|
38
|
+
"category": "Line",
|
|
39
|
+
"categoryCN": "线",
|
|
40
|
+
"author": "阿广"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"id": 5,
|
|
44
|
+
"title": "标签",
|
|
45
|
+
"name": "hashtag-line",
|
|
46
|
+
"category": "Line",
|
|
47
|
+
"categoryCN": "线",
|
|
48
|
+
"author": "阿广"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"id": 6,
|
|
52
|
+
"title": "日历",
|
|
53
|
+
"name": "calendar-line",
|
|
54
|
+
"category": "Line",
|
|
55
|
+
"categoryCN": "线",
|
|
56
|
+
"author": "阿广"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"id": 7,
|
|
60
|
+
"title": "至顶",
|
|
61
|
+
"name": "to-top-line",
|
|
62
|
+
"category": "Line",
|
|
63
|
+
"categoryCN": "线",
|
|
64
|
+
"author": "阿广"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"id": 8,
|
|
68
|
+
"title": "最大化",
|
|
69
|
+
"name": "maximize-line",
|
|
70
|
+
"category": "Line",
|
|
71
|
+
"categoryCN": "线",
|
|
72
|
+
"author": "阿广"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"id": 9,
|
|
76
|
+
"title": "等待中_圆形",
|
|
77
|
+
"name": "waiting-line",
|
|
78
|
+
"category": "Line",
|
|
79
|
+
"categoryCN": "线",
|
|
80
|
+
"author": "阿广"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"id": 10,
|
|
84
|
+
"title": "收缩",
|
|
85
|
+
"name": "shrink-line",
|
|
86
|
+
"category": "Line",
|
|
87
|
+
"categoryCN": "线",
|
|
88
|
+
"author": "阿广"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"id": 11,
|
|
92
|
+
"title": "明细",
|
|
93
|
+
"name": "lists-line",
|
|
94
|
+
"category": "Line",
|
|
95
|
+
"categoryCN": "线",
|
|
96
|
+
"author": "阿广"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"id": 12,
|
|
100
|
+
"title": "正确_圆形",
|
|
101
|
+
"name": "check-circle-line",
|
|
102
|
+
"category": "Line",
|
|
103
|
+
"categoryCN": "线",
|
|
104
|
+
"author": "阿广"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"id": 13,
|
|
108
|
+
"title": "错误_圆形",
|
|
109
|
+
"name": "error-circle-line",
|
|
110
|
+
"category": "Line",
|
|
111
|
+
"categoryCN": "线",
|
|
112
|
+
"author": "阿广"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"id": 14,
|
|
116
|
+
"title": "右箭头_小号",
|
|
117
|
+
"name": "arrows-right-sm-line",
|
|
118
|
+
"category": "Line",
|
|
119
|
+
"categoryCN": "线",
|
|
120
|
+
"author": "阿广"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"id": 15,
|
|
124
|
+
"title": "优化",
|
|
125
|
+
"name": "optimize-line",
|
|
126
|
+
"category": "Line",
|
|
127
|
+
"categoryCN": "线",
|
|
128
|
+
"author": "阿广"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"id": 16,
|
|
132
|
+
"title": "文本",
|
|
133
|
+
"name": "text-line",
|
|
134
|
+
"category": "Line",
|
|
135
|
+
"categoryCN": "线",
|
|
136
|
+
"author": "阿广"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"id": 17,
|
|
140
|
+
"title": "用户_圆形",
|
|
141
|
+
"name": "user-circle-line",
|
|
142
|
+
"category": "Line",
|
|
143
|
+
"categoryCN": "线",
|
|
144
|
+
"author": "阿广"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"id": 18,
|
|
148
|
+
"title": "智能_模板",
|
|
149
|
+
"name": "ai-template-line",
|
|
150
|
+
"category": "Line",
|
|
151
|
+
"categoryCN": "线",
|
|
152
|
+
"author": "阿广"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"id": 19,
|
|
156
|
+
"title": "添加",
|
|
157
|
+
"name": "add-line",
|
|
158
|
+
"category": "Line",
|
|
159
|
+
"categoryCN": "线",
|
|
160
|
+
"author": "阿广"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"id": 20,
|
|
164
|
+
"title": "智能_明细",
|
|
165
|
+
"name": "ai-lists-line",
|
|
166
|
+
"category": "Line",
|
|
167
|
+
"categoryCN": "线",
|
|
168
|
+
"author": "阿广"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"id": 21,
|
|
172
|
+
"title": "check",
|
|
173
|
+
"name": "check-line",
|
|
174
|
+
"category": "Line",
|
|
175
|
+
"categoryCN": "线",
|
|
176
|
+
"author": "阿广"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"id": 22,
|
|
180
|
+
"title": "聚合",
|
|
181
|
+
"name": "column-line",
|
|
182
|
+
"category": "Line",
|
|
183
|
+
"categoryCN": "线",
|
|
184
|
+
"author": "阿广"
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"id": 23,
|
|
188
|
+
"title": "新窗口",
|
|
189
|
+
"name": "new-windows-line",
|
|
190
|
+
"category": "Line",
|
|
191
|
+
"categoryCN": "线",
|
|
192
|
+
"author": "阿广"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"id": 24,
|
|
196
|
+
"title": "智能_聚合",
|
|
197
|
+
"name": "ai-column-line",
|
|
198
|
+
"category": "Line",
|
|
199
|
+
"categoryCN": "线",
|
|
200
|
+
"author": "阿广"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"id": 25,
|
|
204
|
+
"title": "文章",
|
|
205
|
+
"name": "article-fill",
|
|
206
|
+
"category": "Fill",
|
|
207
|
+
"categoryCN": "填充",
|
|
208
|
+
"author": "阿广"
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"id": 26,
|
|
212
|
+
"title": "存储",
|
|
213
|
+
"name": "storage-fill",
|
|
214
|
+
"category": "Fill",
|
|
215
|
+
"categoryCN": "填充",
|
|
216
|
+
"author": "阿广"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"id": 27,
|
|
220
|
+
"title": "点",
|
|
221
|
+
"name": "dot-fill",
|
|
222
|
+
"category": "Fill",
|
|
223
|
+
"categoryCN": "填充",
|
|
224
|
+
"author": "阿广"
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"id": 28,
|
|
228
|
+
"title": "信息",
|
|
229
|
+
"name": "info-fill",
|
|
230
|
+
"category": "Fill",
|
|
231
|
+
"categoryCN": "填充",
|
|
232
|
+
"author": "阿广"
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"id": 29,
|
|
236
|
+
"title": "闪电",
|
|
237
|
+
"name": "lightning-fill",
|
|
238
|
+
"category": "Fill",
|
|
239
|
+
"categoryCN": "填充",
|
|
240
|
+
"author": "阿广"
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"id": 30,
|
|
244
|
+
"title": "文件夹_打开",
|
|
245
|
+
"name": "folder-open-fill",
|
|
246
|
+
"category": "Fill",
|
|
247
|
+
"categoryCN": "填充",
|
|
248
|
+
"author": "阿广"
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"id": 31,
|
|
252
|
+
"title": "文件夹",
|
|
253
|
+
"name": "folder-fill",
|
|
254
|
+
"category": "Fill",
|
|
255
|
+
"categoryCN": "填充",
|
|
256
|
+
"author": "阿广"
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"id": 32,
|
|
260
|
+
"title": "箭头_向下",
|
|
261
|
+
"name": "arrows-down-line",
|
|
262
|
+
"category": "Line",
|
|
263
|
+
"categoryCN": "线",
|
|
264
|
+
"author": "阿广"
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"id": 33,
|
|
268
|
+
"title": "取消",
|
|
269
|
+
"name": "cancel-fill",
|
|
270
|
+
"category": "Fill",
|
|
271
|
+
"categoryCN": "填充",
|
|
272
|
+
"author": "阿广"
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"id": 34,
|
|
276
|
+
"title": "关闭",
|
|
277
|
+
"name": "close-line",
|
|
278
|
+
"category": "Line",
|
|
279
|
+
"categoryCN": "线",
|
|
280
|
+
"author": "阿广"
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"id": 35,
|
|
284
|
+
"title": "删除",
|
|
285
|
+
"name": "delete-line",
|
|
286
|
+
"category": "Line",
|
|
287
|
+
"categoryCN": "线",
|
|
288
|
+
"author": "阿广"
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
"id": 36,
|
|
292
|
+
"title": "下载",
|
|
293
|
+
"name": "download-line",
|
|
294
|
+
"category": "Line",
|
|
295
|
+
"categoryCN": "线",
|
|
296
|
+
"author": "阿广"
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"id": 37,
|
|
300
|
+
"title": "闭眼",
|
|
301
|
+
"name": "eye-off-line",
|
|
302
|
+
"category": "Line",
|
|
303
|
+
"categoryCN": "线",
|
|
304
|
+
"author": "阿广"
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
"id": 38,
|
|
308
|
+
"title": "睁眼",
|
|
309
|
+
"name": "eye-on-line",
|
|
310
|
+
"category": "Line",
|
|
311
|
+
"categoryCN": "线",
|
|
312
|
+
"author": "阿广"
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
"id": 39,
|
|
316
|
+
"title": "更多",
|
|
317
|
+
"name": "more",
|
|
318
|
+
"category": "Fill",
|
|
319
|
+
"categoryCN": "填充",
|
|
320
|
+
"author": "阿广"
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"id": 40,
|
|
324
|
+
"title": "查询",
|
|
325
|
+
"name": "search-line",
|
|
326
|
+
"category": "Line",
|
|
327
|
+
"categoryCN": "线",
|
|
328
|
+
"author": "阿广"
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
"id": 41,
|
|
332
|
+
"title": "升序排列",
|
|
333
|
+
"name": "sort-ascending-line",
|
|
334
|
+
"category": "Line",
|
|
335
|
+
"categoryCN": "线",
|
|
336
|
+
"author": "阿广"
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
"id": 42,
|
|
340
|
+
"title": "降序排列",
|
|
341
|
+
"name": "sort-descending-line",
|
|
342
|
+
"category": "Line",
|
|
343
|
+
"categoryCN": "线",
|
|
344
|
+
"author": "阿广"
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
"id": 43,
|
|
348
|
+
"title": "check@fill",
|
|
349
|
+
"name": "check-fill",
|
|
350
|
+
"category": "Fill",
|
|
351
|
+
"categoryCN": "填充",
|
|
352
|
+
"author": "阿广"
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
"id": 44,
|
|
356
|
+
"title": "数据空间",
|
|
357
|
+
"name": "data-space-line",
|
|
358
|
+
"category": "Line",
|
|
359
|
+
"categoryCN": "线",
|
|
360
|
+
"author": "阿广"
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
"id": 45,
|
|
364
|
+
"title": "数据集",
|
|
365
|
+
"name": "dataset-line",
|
|
366
|
+
"category": "Line",
|
|
367
|
+
"categoryCN": "线",
|
|
368
|
+
"author": "阿广"
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
"id": 46,
|
|
372
|
+
"title": "文件",
|
|
373
|
+
"name": "file-line",
|
|
374
|
+
"category": "Line",
|
|
375
|
+
"categoryCN": "线",
|
|
376
|
+
"author": "阿广"
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
"id": 47,
|
|
380
|
+
"title": "同步刷新",
|
|
381
|
+
"name": "sync-refresh-line",
|
|
382
|
+
"category": "Line",
|
|
383
|
+
"categoryCN": "线",
|
|
384
|
+
"author": "阿广"
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
"id": 48,
|
|
388
|
+
"title": "表格",
|
|
389
|
+
"name": "table-line",
|
|
390
|
+
"category": "Line",
|
|
391
|
+
"categoryCN": "线",
|
|
392
|
+
"author": "阿广"
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
"id": 49,
|
|
396
|
+
"title": "视图",
|
|
397
|
+
"name": "view-line",
|
|
398
|
+
"category": "Line",
|
|
399
|
+
"categoryCN": "线",
|
|
400
|
+
"author": "阿广"
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
"id": 50,
|
|
404
|
+
"title": "错误",
|
|
405
|
+
"name": "error-fill",
|
|
406
|
+
"category": "Fill",
|
|
407
|
+
"categoryCN": "填充",
|
|
408
|
+
"author": "阿广"
|
|
409
|
+
}
|
|
410
|
+
]
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { GroupProps } from 'antd/lib/input';
|
|
3
2
|
import { TSize } from '../Input';
|
|
4
3
|
export interface IGroupProps extends Omit<GroupProps, 'size'> {
|
|
@@ -9,9 +8,10 @@ export interface IGroupProps extends Omit<GroupProps, 'size'> {
|
|
|
9
8
|
compact?: boolean;
|
|
10
9
|
/**
|
|
11
10
|
* @description Input.Group 中所有的 Input 的大小,可选 large default small
|
|
12
|
-
* @type 'mini'|'small' | '
|
|
11
|
+
* @type 'mini'|'small' | 'middle' | 'large';
|
|
13
12
|
* @default default
|
|
14
13
|
*/
|
|
15
14
|
size?: TSize;
|
|
15
|
+
className?: string;
|
|
16
16
|
}
|
|
17
17
|
export default function Group(props: IGroupProps): JSX.Element;
|
|
@@ -9,9 +9,11 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
|
|
10
10
|
var _input = _interopRequireDefault(require("antd/lib/input"));
|
|
11
11
|
|
|
12
|
+
var _Input = require("../Input");
|
|
13
|
+
|
|
12
14
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
15
|
|
|
14
|
-
var _excluded = ["size"];
|
|
16
|
+
var _excluded = ["size", "className"];
|
|
15
17
|
|
|
16
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
19
|
|
|
@@ -23,19 +25,12 @@ var AntdGroup = _input.default.Group;
|
|
|
23
25
|
|
|
24
26
|
function Group(props) {
|
|
25
27
|
var _props$size = props.size,
|
|
26
|
-
size = _props$size === void 0 ? '
|
|
28
|
+
size = _props$size === void 0 ? 'middle' : _props$size,
|
|
29
|
+
_props$className = props.className,
|
|
30
|
+
className = _props$className === void 0 ? '' : _props$className,
|
|
27
31
|
rest = _objectWithoutProperties(props, _excluded);
|
|
28
32
|
|
|
29
|
-
var getClassName = function getClassName(groupSize) {
|
|
30
|
-
return (0, _classnames.default)('ald-input-group', {
|
|
31
|
-
'ald-input-group-large': groupSize === 'large',
|
|
32
|
-
'ald-input-group-small': groupSize === 'small',
|
|
33
|
-
'ald-input-group-mini': groupSize === 'mini',
|
|
34
|
-
'ald-input-group-middle': !['mini', 'small', 'large'].includes(groupSize)
|
|
35
|
-
});
|
|
36
|
-
};
|
|
37
|
-
|
|
38
33
|
return /*#__PURE__*/_react.default.createElement(AntdGroup, Object.assign({
|
|
39
|
-
className:
|
|
34
|
+
className: (0, _classnames.default)("ald-input-group-".concat((0, _Input.getSizeType)(size)), className)
|
|
40
35
|
}, rest));
|
|
41
36
|
}
|
|
@@ -7,14 +7,14 @@ interface IShowCountProps {
|
|
|
7
7
|
maxLength?: number;
|
|
8
8
|
}) => string;
|
|
9
9
|
}
|
|
10
|
-
export declare type TSize = 'mini' | 'small' | '
|
|
10
|
+
export declare type TSize = 'mini' | 'small' | 'middle' | 'large';
|
|
11
11
|
export type { InputRef };
|
|
12
12
|
declare type ChangeEventHandler = (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
13
13
|
export interface IInputProps extends Omit<InputProps, 'size' | 'id' | 'prefix' | 'allowClear' | 'disabled' | 'showCount' | 'maxLength' | 'value' | 'defaultValue' | 'onPressEnter' | 'onChange'> {
|
|
14
14
|
/**
|
|
15
15
|
* @description 输入框尺寸
|
|
16
16
|
* @default default
|
|
17
|
-
* @type 'small' | '
|
|
17
|
+
* @type 'mini' | 'small' | 'middle' | 'large';
|
|
18
18
|
*/
|
|
19
19
|
size?: TSize;
|
|
20
20
|
/**
|
|
@@ -63,5 +63,6 @@ export interface IInputProps extends Omit<InputProps, 'size' | 'id' | 'prefix' |
|
|
|
63
63
|
*/
|
|
64
64
|
onChange?: ChangeEventHandler;
|
|
65
65
|
}
|
|
66
|
+
export declare function getSizeType(sizeType: TSize): TSize;
|
|
66
67
|
declare const Input: React.ForwardRefExoticComponent<IInputProps & React.RefAttributes<InputRef>>;
|
|
67
68
|
export default Input;
|
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
+
exports.getSizeType = getSizeType;
|
|
7
8
|
|
|
8
9
|
var _react = _interopRequireDefault(require("react"));
|
|
9
10
|
|
|
@@ -11,7 +12,7 @@ var _Input = _interopRequireDefault(require("antd/lib/input/Input"));
|
|
|
11
12
|
|
|
12
13
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
14
|
|
|
14
|
-
var _excluded = ["size"];
|
|
15
|
+
var _excluded = ["size", "className"];
|
|
15
16
|
|
|
16
17
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
18
|
|
|
@@ -19,35 +20,25 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
19
20
|
|
|
20
21
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
21
22
|
|
|
23
|
+
function getSizeType(sizeType) {
|
|
24
|
+
if (['mini', 'small', 'middle', 'large'].includes(sizeType)) {
|
|
25
|
+
return sizeType;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
return 'middle';
|
|
29
|
+
}
|
|
30
|
+
|
|
22
31
|
var Input = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
23
32
|
var _props$size = props.size,
|
|
24
|
-
size = _props$size === void 0 ? '
|
|
33
|
+
size = _props$size === void 0 ? 'middle' : _props$size,
|
|
34
|
+
className = props.className,
|
|
25
35
|
rest = _objectWithoutProperties(props, _excluded);
|
|
26
36
|
|
|
27
|
-
var getInputSize = function getInputSize(inputSize) {
|
|
28
|
-
if (inputSize === 'small' || inputSize === 'large') {
|
|
29
|
-
return inputSize;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
return 'middle';
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
var getClassName = function getClassName(inputSize) {
|
|
36
|
-
return (0, _classnames.default)('ald-input', {
|
|
37
|
-
'ald-input-small': inputSize === 'small',
|
|
38
|
-
'ald-input-large': inputSize === 'large',
|
|
39
|
-
'ald-input-mini': inputSize === 'mini',
|
|
40
|
-
'ald-input-middle': !['small', 'mini', 'large'].includes(inputSize),
|
|
41
|
-
'ald-input-showCount': props.showCount
|
|
42
|
-
});
|
|
43
|
-
};
|
|
44
|
-
|
|
45
37
|
return /*#__PURE__*/_react.default.createElement(_Input.default, Object.assign({}, rest, {
|
|
46
38
|
// @ts-ignore
|
|
47
39
|
ref: ref,
|
|
48
|
-
size: getInputSize(size),
|
|
49
40
|
bordered: true,
|
|
50
|
-
className:
|
|
41
|
+
className: (0, _classnames.default)('ald-input', "ald-input-".concat(getSizeType(size)), className),
|
|
51
42
|
addonAfter: null,
|
|
52
43
|
addonBefore: null,
|
|
53
44
|
suffix: null
|
|
@@ -5,17 +5,21 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
require("@aloudata/icons-react/styles/index.less");
|
|
9
|
+
|
|
10
|
+
var _EyeOffLine2 = _interopRequireDefault(require("@aloudata/icons-react/es/icons/EyeOffLine"));
|
|
9
11
|
|
|
10
|
-
var
|
|
12
|
+
var _EyeOnLine2 = _interopRequireDefault(require("@aloudata/icons-react/es/icons/EyeOnLine"));
|
|
11
13
|
|
|
12
|
-
var
|
|
14
|
+
var _react = _interopRequireDefault(require("react"));
|
|
13
15
|
|
|
14
16
|
var _Password = _interopRequireDefault(require("antd/lib/input/Password"));
|
|
15
17
|
|
|
18
|
+
var _Input = require("../Input");
|
|
19
|
+
|
|
16
20
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
17
21
|
|
|
18
|
-
var _excluded = ["size"];
|
|
22
|
+
var _excluded = ["size", "className"];
|
|
19
23
|
|
|
20
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
25
|
|
|
@@ -26,25 +30,17 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
26
30
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
27
31
|
var _default = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
28
32
|
var _props$size = props.size,
|
|
29
|
-
size = _props$size === void 0 ? '
|
|
33
|
+
size = _props$size === void 0 ? 'middle' : _props$size,
|
|
34
|
+
className = props.className,
|
|
30
35
|
restProps = _objectWithoutProperties(props, _excluded);
|
|
31
36
|
|
|
32
|
-
var getClassName = function getClassName(inputSize) {
|
|
33
|
-
return (0, _classnames.default)('ald-input', {
|
|
34
|
-
'ald-input-small': inputSize === 'small',
|
|
35
|
-
'ald-input-large': inputSize === 'large',
|
|
36
|
-
'ald-input-mini': inputSize === 'mini',
|
|
37
|
-
'ald-input-middle': !['small', 'mini', 'large'].includes(inputSize)
|
|
38
|
-
});
|
|
39
|
-
};
|
|
40
|
-
|
|
41
37
|
return /*#__PURE__*/_react.default.createElement(_Password.default, Object.assign({}, restProps, {
|
|
42
38
|
ref: ref,
|
|
43
|
-
className:
|
|
39
|
+
className: (0, _classnames.default)('ald-input', "ald-input-".concat((0, _Input.getSizeType)(size)), className),
|
|
44
40
|
iconRender: function iconRender(visible) {
|
|
45
|
-
return visible ? /*#__PURE__*/_react.default.createElement(
|
|
41
|
+
return visible ? /*#__PURE__*/_react.default.createElement(_EyeOnLine2.default, {
|
|
46
42
|
fill: "currentColor"
|
|
47
|
-
}) : /*#__PURE__*/_react.default.createElement(
|
|
43
|
+
}) : /*#__PURE__*/_react.default.createElement(_EyeOffLine2.default, {
|
|
48
44
|
fill: "currentColor"
|
|
49
45
|
});
|
|
50
46
|
}
|