@cuvp1225/antd 0.3.1 → 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/LICENSE +21 -21
- package/README.md +11 -11
- package/dist/designer.js +886 -14079
- package/dist/index.js +530 -13820
- package/dist/index.less +1 -1
- package/lib/cjs/components/box.d.ts +1 -1
- package/lib/cjs/components/box.js +1 -1
- package/lib/cjs/components/button.d.ts +2 -2
- package/lib/cjs/components/columns.d.ts +2 -2
- package/lib/cjs/components/columns.js +1 -1
- package/lib/cjs/components/form.d.ts +16 -0
- package/lib/cjs/components/form.js +17 -0
- package/lib/cjs/components/formily.d.ts +5 -5
- package/lib/cjs/components/formily.js +2 -2
- package/lib/cjs/components/grid.d.ts +3 -0
- package/lib/cjs/components/grid.js +28 -0
- package/lib/cjs/components/gridCombination.d.ts +7 -0
- package/lib/cjs/components/gridCombination.js +26 -0
- package/lib/cjs/components/index.d.ts +1 -15
- package/lib/cjs/components/index.js +21 -35
- package/lib/cjs/components/input-number.d.ts +3 -3
- package/lib/cjs/components/modal.js +35 -35
- package/lib/cjs/components/multiColumns.d.ts +4 -0
- package/lib/cjs/components/multiColumns.js +17 -0
- package/lib/cjs/components/page.d.ts +1 -1
- package/lib/cjs/components/page.js +9 -9
- package/lib/cjs/components/placeholder.d.ts +1 -1
- package/lib/cjs/components/placeholder.js +22 -24
- package/lib/cjs/components/section.d.ts +1 -1
- package/lib/cjs/components/section.js +1 -1
- package/lib/cjs/components/select.d.ts +2 -2
- package/lib/cjs/components/shadow-container.js +9 -9
- package/lib/cjs/components/typography.d.ts +2 -2
- package/lib/cjs/designer.js +4 -4
- package/lib/cjs/index.less +1 -1
- package/lib/cjs/prototypes/affix.js +1 -1
- package/lib/cjs/prototypes/alert.js +2 -2
- package/lib/cjs/prototypes/anchor.js +2 -2
- package/lib/cjs/prototypes/auto-complete.js +1 -1
- package/lib/cjs/prototypes/avatar.js +2 -2
- package/lib/cjs/prototypes/back-top.js +1 -1
- package/lib/cjs/prototypes/badge.js +2 -2
- package/lib/cjs/prototypes/box.js +1 -1
- package/lib/cjs/prototypes/breadcrumb.js +3 -3
- package/lib/cjs/prototypes/button.js +1 -1
- package/lib/cjs/prototypes/calendar.js +1 -1
- package/lib/cjs/prototypes/card.js +3 -3
- package/lib/cjs/prototypes/carousel.js +1 -1
- package/lib/cjs/prototypes/cascader.js +1 -1
- package/lib/cjs/prototypes/checkbox.js +2 -2
- package/lib/cjs/prototypes/collapse.js +2 -2
- package/lib/cjs/prototypes/columns.js +2 -2
- package/lib/cjs/prototypes/comment.js +1 -1
- package/lib/cjs/prototypes/date-picker.js +33 -33
- package/lib/cjs/prototypes/descriptions.js +2 -2
- package/lib/cjs/prototypes/divider.js +1 -1
- package/lib/cjs/prototypes/drawer.js +1 -1
- package/lib/cjs/prototypes/dropdown.js +2 -2
- package/lib/cjs/prototypes/each.js +1 -1
- package/lib/cjs/prototypes/empty.js +1 -1
- package/lib/cjs/prototypes/form.js +19 -5
- package/lib/cjs/prototypes/formily.js +5 -5
- package/lib/cjs/prototypes/grid.d.ts +3 -0
- package/lib/cjs/prototypes/grid.js +56 -0
- package/lib/cjs/prototypes/iframe.js +1 -1
- package/lib/cjs/prototypes/image.js +2 -2
- package/lib/cjs/prototypes/index.d.ts +1 -0
- package/lib/cjs/prototypes/index.js +1 -0
- package/lib/cjs/prototypes/input-number.js +1 -1
- package/lib/cjs/prototypes/input.js +5 -5
- package/lib/cjs/prototypes/interval.js +1 -1
- package/lib/cjs/prototypes/link.js +1 -1
- package/lib/cjs/prototypes/list.js +3 -3
- package/lib/cjs/prototypes/mentions.js +2 -2
- package/lib/cjs/prototypes/menu.js +5 -5
- package/lib/cjs/prototypes/modal.js +1 -1
- package/lib/cjs/prototypes/page-header.js +1 -1
- package/lib/cjs/prototypes/page.js +1 -1
- package/lib/cjs/prototypes/pagination.js +2 -1
- package/lib/cjs/prototypes/popconfirm.js +1 -1
- package/lib/cjs/prototypes/popover.js +1 -1
- package/lib/cjs/prototypes/progress.js +1 -1
- package/lib/cjs/prototypes/radio.js +2 -2
- package/lib/cjs/prototypes/rate.js +1 -1
- package/lib/cjs/prototypes/result.js +1 -1
- package/lib/cjs/prototypes/section.js +1 -1
- package/lib/cjs/prototypes/select.js +1 -1
- package/lib/cjs/prototypes/skeleton.js +6 -6
- package/lib/cjs/prototypes/slider.js +1 -1
- package/lib/cjs/prototypes/space.js +1 -1
- package/lib/cjs/prototypes/spin.js +1 -1
- package/lib/cjs/prototypes/statistic.js +2 -2
- package/lib/cjs/prototypes/steps.js +2 -2
- package/lib/cjs/prototypes/switch.js +1 -1
- package/lib/cjs/prototypes/table.js +38 -27
- package/lib/cjs/prototypes/tabs.js +2 -2
- package/lib/cjs/prototypes/tag.js +3 -2
- package/lib/cjs/prototypes/text.js +1 -1
- package/lib/cjs/prototypes/time-picker.js +2 -2
- package/lib/cjs/prototypes/timeline.js +2 -2
- package/lib/cjs/prototypes/toolbar.js +1 -1
- package/lib/cjs/prototypes/tooltip.js +1 -1
- package/lib/cjs/prototypes/transfer.js +2 -2
- package/lib/cjs/prototypes/tree-select.js +1 -1
- package/lib/cjs/prototypes/tree.js +3 -3
- package/lib/cjs/prototypes/typography.js +3 -3
- package/lib/cjs/prototypes/upload.js +2 -2
- package/lib/cjs/prototypes/when.js +1 -1
- package/lib/esm/components/box.d.ts +1 -1
- package/lib/esm/components/box.js +1 -1
- package/lib/esm/components/button.d.ts +2 -2
- package/lib/esm/components/columns.d.ts +2 -2
- package/lib/esm/components/columns.js +1 -1
- package/lib/esm/components/form.d.ts +16 -0
- package/lib/esm/components/form.js +14 -0
- package/lib/esm/components/formily.d.ts +5 -5
- package/lib/esm/components/formily.js +2 -2
- package/lib/esm/components/grid.d.ts +3 -0
- package/lib/esm/components/grid.js +24 -0
- package/lib/esm/components/gridCombination.d.ts +7 -0
- package/lib/esm/components/gridCombination.js +22 -0
- package/lib/esm/components/index.d.ts +1 -15
- package/lib/esm/components/index.js +19 -15
- package/lib/esm/components/input-number.d.ts +3 -3
- package/lib/esm/components/modal.js +35 -35
- package/lib/esm/components/multiColumns.d.ts +4 -0
- package/lib/esm/components/multiColumns.js +13 -0
- package/lib/esm/components/page.d.ts +1 -1
- package/lib/esm/components/page.js +9 -9
- package/lib/esm/components/placeholder.d.ts +1 -1
- package/lib/esm/components/placeholder.js +22 -24
- package/lib/esm/components/section.d.ts +1 -1
- package/lib/esm/components/section.js +1 -1
- package/lib/esm/components/select.d.ts +2 -2
- package/lib/esm/components/shadow-container.js +9 -9
- package/lib/esm/components/typography.d.ts +2 -2
- package/lib/esm/designer.js +4 -4
- package/lib/esm/index.less +1 -1
- package/lib/esm/prototypes/affix.js +1 -1
- package/lib/esm/prototypes/alert.js +2 -2
- package/lib/esm/prototypes/anchor.js +2 -2
- package/lib/esm/prototypes/auto-complete.js +1 -1
- package/lib/esm/prototypes/avatar.js +2 -2
- package/lib/esm/prototypes/back-top.js +1 -1
- package/lib/esm/prototypes/badge.js +2 -2
- package/lib/esm/prototypes/box.js +1 -1
- package/lib/esm/prototypes/breadcrumb.js +3 -3
- package/lib/esm/prototypes/button.js +1 -1
- package/lib/esm/prototypes/calendar.js +1 -1
- package/lib/esm/prototypes/card.js +3 -3
- package/lib/esm/prototypes/carousel.js +1 -1
- package/lib/esm/prototypes/cascader.js +1 -1
- package/lib/esm/prototypes/checkbox.js +2 -2
- package/lib/esm/prototypes/collapse.js +2 -2
- package/lib/esm/prototypes/columns.js +2 -2
- package/lib/esm/prototypes/comment.js +1 -1
- package/lib/esm/prototypes/date-picker.js +33 -33
- package/lib/esm/prototypes/descriptions.js +2 -2
- package/lib/esm/prototypes/divider.js +1 -1
- package/lib/esm/prototypes/drawer.js +1 -1
- package/lib/esm/prototypes/dropdown.js +2 -2
- package/lib/esm/prototypes/each.js +1 -1
- package/lib/esm/prototypes/empty.js +1 -1
- package/lib/esm/prototypes/form.js +19 -5
- package/lib/esm/prototypes/formily.js +5 -5
- package/lib/esm/prototypes/grid.d.ts +3 -0
- package/lib/esm/prototypes/grid.js +53 -0
- package/lib/esm/prototypes/iframe.js +1 -1
- package/lib/esm/prototypes/image.js +2 -2
- package/lib/esm/prototypes/index.d.ts +1 -0
- package/lib/esm/prototypes/index.js +1 -0
- package/lib/esm/prototypes/input-number.js +1 -1
- package/lib/esm/prototypes/input.js +5 -5
- package/lib/esm/prototypes/interval.js +1 -1
- package/lib/esm/prototypes/link.js +1 -1
- package/lib/esm/prototypes/list.js +3 -3
- package/lib/esm/prototypes/mentions.js +2 -2
- package/lib/esm/prototypes/menu.js +5 -5
- package/lib/esm/prototypes/modal.js +1 -1
- package/lib/esm/prototypes/page-header.js +1 -1
- package/lib/esm/prototypes/page.js +1 -1
- package/lib/esm/prototypes/pagination.js +2 -1
- package/lib/esm/prototypes/popconfirm.js +1 -1
- package/lib/esm/prototypes/popover.js +1 -1
- package/lib/esm/prototypes/progress.js +1 -1
- package/lib/esm/prototypes/radio.js +2 -2
- package/lib/esm/prototypes/rate.js +1 -1
- package/lib/esm/prototypes/result.js +1 -1
- package/lib/esm/prototypes/section.js +1 -1
- package/lib/esm/prototypes/select.js +1 -1
- package/lib/esm/prototypes/skeleton.js +6 -6
- package/lib/esm/prototypes/slider.js +1 -1
- package/lib/esm/prototypes/space.js +1 -1
- package/lib/esm/prototypes/spin.js +1 -1
- package/lib/esm/prototypes/statistic.js +2 -2
- package/lib/esm/prototypes/steps.js +2 -2
- package/lib/esm/prototypes/switch.js +1 -1
- package/lib/esm/prototypes/table.js +38 -27
- package/lib/esm/prototypes/tabs.js +2 -2
- package/lib/esm/prototypes/tag.js +3 -2
- package/lib/esm/prototypes/text.js +1 -1
- package/lib/esm/prototypes/time-picker.js +2 -2
- package/lib/esm/prototypes/timeline.js +2 -2
- package/lib/esm/prototypes/toolbar.js +1 -1
- package/lib/esm/prototypes/tooltip.js +1 -1
- package/lib/esm/prototypes/transfer.js +2 -2
- package/lib/esm/prototypes/tree-select.js +1 -1
- package/lib/esm/prototypes/tree.js +3 -3
- package/lib/esm/prototypes/typography.js +3 -3
- package/lib/esm/prototypes/upload.js +2 -2
- package/lib/esm/prototypes/when.js +1 -1
- package/package.json +7 -4
@@ -9,7 +9,7 @@ exports.Image = {
|
|
9
9
|
icon: 'icon-tupian',
|
10
10
|
type: 'element',
|
11
11
|
help: '展示一种图片,并且可以进入快捷预览态。',
|
12
|
-
package: '@
|
12
|
+
package: '@cuvp1225/antd',
|
13
13
|
hasChildren: false,
|
14
14
|
props: [
|
15
15
|
...common_1.StylePrototypes,
|
@@ -61,7 +61,7 @@ exports.ImageList = {
|
|
61
61
|
icon: 'icon-tupian',
|
62
62
|
type: 'element',
|
63
63
|
help: '当需要展示一组图片时,从一张图片点开相册,可在 Table 的单元格或描述列表中使用',
|
64
|
-
package: '@
|
64
|
+
package: '@cuvp1225/antd',
|
65
65
|
hasChildren: false,
|
66
66
|
props: [
|
67
67
|
...common_1.StylePrototypes,
|
@@ -68,3 +68,4 @@ tslib_1.__exportStar(require("./tree-select"), exports);
|
|
68
68
|
tslib_1.__exportStar(require("./tree"), exports);
|
69
69
|
tslib_1.__exportStar(require("./typography"), exports);
|
70
70
|
tslib_1.__exportStar(require("./upload"), exports);
|
71
|
+
tslib_1.__exportStar(require("./grid"), exports);
|
@@ -7,7 +7,7 @@ exports.Input = {
|
|
7
7
|
title: '输入框',
|
8
8
|
icon: 'icon-shurukuang',
|
9
9
|
type: 'element',
|
10
|
-
package: '@
|
10
|
+
package: '@cuvp1225/antd',
|
11
11
|
help: '通过鼠标或键盘输入内容,是最基础的表单域的包装',
|
12
12
|
hasChildren: false,
|
13
13
|
props: [
|
@@ -122,7 +122,7 @@ exports.TextArea = {
|
|
122
122
|
title: '文本框',
|
123
123
|
icon: 'icon-wenbenyu',
|
124
124
|
type: 'element',
|
125
|
-
package: '@
|
125
|
+
package: '@cuvp1225/antd',
|
126
126
|
help: '用于多行文本输入',
|
127
127
|
hasChildren: false,
|
128
128
|
props: [
|
@@ -205,7 +205,7 @@ exports.Search = {
|
|
205
205
|
title: '搜索框',
|
206
206
|
icon: 'icon-sousuokuang',
|
207
207
|
type: 'element',
|
208
|
-
package: '@
|
208
|
+
package: '@cuvp1225/antd',
|
209
209
|
help: '带有搜索按钮的输入框',
|
210
210
|
hasChildren: false,
|
211
211
|
props: [
|
@@ -236,7 +236,7 @@ exports.Password = {
|
|
236
236
|
title: '密码输入',
|
237
237
|
icon: 'icon-password',
|
238
238
|
type: 'element',
|
239
|
-
package: '@
|
239
|
+
package: '@cuvp1225/antd',
|
240
240
|
help: '需要输入密码的控件',
|
241
241
|
hasChildren: false,
|
242
242
|
props: [
|
@@ -258,7 +258,7 @@ exports.InputGroup = {
|
|
258
258
|
title: '输入框组合',
|
259
259
|
icon: 'icon-shurukuang',
|
260
260
|
type: 'element',
|
261
|
-
package: '@
|
261
|
+
package: '@cuvp1225/antd',
|
262
262
|
help: '输入框的组合展现',
|
263
263
|
hasChildren: true,
|
264
264
|
props: [
|
@@ -6,7 +6,7 @@ const pagination_1 = require("./pagination");
|
|
6
6
|
exports.List = {
|
7
7
|
name: 'List',
|
8
8
|
title: '列表',
|
9
|
-
package: '@
|
9
|
+
package: '@cuvp1225/antd',
|
10
10
|
icon: 'icon-liebiao',
|
11
11
|
help: '最基础的列表展示,可承载文字、列表、图片、段落,常用于后台数据展示页面',
|
12
12
|
type: 'element',
|
@@ -92,7 +92,7 @@ exports.List = {
|
|
92
92
|
exports.ListItem = {
|
93
93
|
name: 'ListItem',
|
94
94
|
title: '列表Item',
|
95
|
-
package: '@
|
95
|
+
package: '@cuvp1225/antd',
|
96
96
|
icon: 'icon-shujuzhanshiitem',
|
97
97
|
type: 'element',
|
98
98
|
hasChildren: true,
|
@@ -116,7 +116,7 @@ exports.ListItem = {
|
|
116
116
|
exports.ListItemMeta = {
|
117
117
|
name: 'ListItemMeta',
|
118
118
|
title: '列表Item',
|
119
|
-
package: '@
|
119
|
+
package: '@cuvp1225/antd',
|
120
120
|
icon: '',
|
121
121
|
type: 'element',
|
122
122
|
relatedImports: ['Avatar'],
|
@@ -5,7 +5,7 @@ const common_1 = require("./common");
|
|
5
5
|
exports.Mentions = {
|
6
6
|
name: 'Mentions',
|
7
7
|
title: '提及',
|
8
|
-
package: '@
|
8
|
+
package: '@cuvp1225/antd',
|
9
9
|
icon: 'icon-tiji',
|
10
10
|
type: 'element',
|
11
11
|
help: '提及组件,用于在输入中提及某人或某事,常用于发布、聊天或评论功能',
|
@@ -90,7 +90,7 @@ exports.Mentions = {
|
|
90
90
|
exports.MentionsOption = {
|
91
91
|
name: 'MentionsOption',
|
92
92
|
title: '提及',
|
93
|
-
package: '@
|
93
|
+
package: '@cuvp1225/antd',
|
94
94
|
icon: 'icon-tijioption',
|
95
95
|
type: 'element',
|
96
96
|
props: [
|
@@ -5,7 +5,7 @@ const common_1 = require("./common");
|
|
5
5
|
exports.Menu = {
|
6
6
|
name: 'Menu',
|
7
7
|
title: '导航菜单',
|
8
|
-
package: '@
|
8
|
+
package: '@cuvp1225/antd',
|
9
9
|
icon: 'icon-daohangcaidan',
|
10
10
|
type: 'element',
|
11
11
|
help: '为页面和功能提供导航的菜单列表,一般分为顶部导航和侧边导航',
|
@@ -143,7 +143,7 @@ exports.Menu = {
|
|
143
143
|
exports.MenuItem = {
|
144
144
|
name: 'MenuItem',
|
145
145
|
title: '导航菜单',
|
146
|
-
package: '@
|
146
|
+
package: '@cuvp1225/antd',
|
147
147
|
icon: '',
|
148
148
|
type: 'element',
|
149
149
|
props: [
|
@@ -170,7 +170,7 @@ exports.MenuItem = {
|
|
170
170
|
exports.MenuSubMenu = {
|
171
171
|
name: 'MenuSubMenu',
|
172
172
|
title: '导航菜单',
|
173
|
-
package: '@
|
173
|
+
package: '@cuvp1225/antd',
|
174
174
|
icon: '',
|
175
175
|
type: 'element',
|
176
176
|
props: [
|
@@ -211,7 +211,7 @@ exports.MenuSubMenu = {
|
|
211
211
|
exports.MenuItemGroup = {
|
212
212
|
name: 'MenuItemGroup',
|
213
213
|
title: '导航菜单',
|
214
|
-
package: '@
|
214
|
+
package: '@cuvp1225/antd',
|
215
215
|
icon: '',
|
216
216
|
type: 'element',
|
217
217
|
props: [
|
@@ -223,7 +223,7 @@ exports.MenuItemGroup = {
|
|
223
223
|
exports.MenuDivider = {
|
224
224
|
name: 'MenuDivider',
|
225
225
|
title: '导航菜单',
|
226
|
-
package: '@
|
226
|
+
package: '@cuvp1225/antd',
|
227
227
|
icon: '',
|
228
228
|
type: 'element',
|
229
229
|
props: [
|
@@ -8,7 +8,7 @@ exports.Modal = {
|
|
8
8
|
exportType: 'namedExport',
|
9
9
|
icon: 'icon-tanchuang',
|
10
10
|
type: 'container',
|
11
|
-
package: '@
|
11
|
+
package: '@cuvp1225/antd',
|
12
12
|
help: '需要用户处理事务,又不希望跳转页面以致打断工作流程时,可以使用 Modal 在当前页面正中打开一个浮层,承载相应的操作。',
|
13
13
|
hasChildren: true,
|
14
14
|
initChildren: '',
|
@@ -5,7 +5,7 @@ const common_1 = require("./common");
|
|
5
5
|
exports.Pagination = {
|
6
6
|
name: 'Pagination',
|
7
7
|
title: '分页',
|
8
|
-
package: '@
|
8
|
+
package: '@cuvp1225/antd',
|
9
9
|
icon: 'icon-fenyeqi',
|
10
10
|
help: '采用分页的形式分隔长列表,每次只加载一个页面',
|
11
11
|
type: 'element',
|
@@ -57,6 +57,7 @@ exports.Pagination = {
|
|
57
57
|
name: 'showTotal',
|
58
58
|
title: '总量和当前数量展示',
|
59
59
|
setter: 'expressionSetter',
|
60
|
+
autoCompleteOptions: ['(total) => `共 ${total} 条`'],
|
60
61
|
},
|
61
62
|
{ name: 'total', title: '数据总数', setter: 'numberSetter', initValue: 20 },
|
62
63
|
{ name: 'current', title: '当前页数', setter: 'numberSetter' },
|
@@ -7,7 +7,7 @@ exports.Radio = {
|
|
7
7
|
title: '单选框',
|
8
8
|
icon: 'icon-danxuankuang',
|
9
9
|
type: 'element',
|
10
|
-
package: '@
|
10
|
+
package: '@cuvp1225/antd',
|
11
11
|
help: '单选框,用于在多个备选项中选中单个状态',
|
12
12
|
hasChildren: true,
|
13
13
|
initChildren: '单项1',
|
@@ -56,7 +56,7 @@ exports.RadioGroup = {
|
|
56
56
|
title: '单选框组',
|
57
57
|
icon: 'icon-danxuankuang',
|
58
58
|
type: 'element',
|
59
|
-
package: '@
|
59
|
+
package: '@cuvp1225/antd',
|
60
60
|
hasChildren: true,
|
61
61
|
help: '单选框组,一组互斥的 Radio 配合使用',
|
62
62
|
props: [
|
@@ -5,7 +5,7 @@ const common_1 = require("./common");
|
|
5
5
|
exports.SkeletonAvatar = {
|
6
6
|
name: 'SkeletonAvatar',
|
7
7
|
title: '骨架屏(头像)',
|
8
|
-
package: '@
|
8
|
+
package: '@cuvp1225/antd',
|
9
9
|
icon: 'icon-placeholder',
|
10
10
|
type: 'element',
|
11
11
|
hasChildren: true,
|
@@ -48,7 +48,7 @@ exports.SkeletonAvatar = {
|
|
48
48
|
exports.SkeletonButton = {
|
49
49
|
name: 'SkeletonButton',
|
50
50
|
title: '骨架屏(按钮)',
|
51
|
-
package: '@
|
51
|
+
package: '@cuvp1225/antd',
|
52
52
|
icon: 'icon-placeholder',
|
53
53
|
type: 'element',
|
54
54
|
hasChildren: true,
|
@@ -96,7 +96,7 @@ exports.SkeletonButton = {
|
|
96
96
|
exports.SkeletonInput = {
|
97
97
|
name: 'SkeletonInput',
|
98
98
|
title: '骨架屏(输入框)',
|
99
|
-
package: '@
|
99
|
+
package: '@cuvp1225/antd',
|
100
100
|
icon: 'icon-placeholder',
|
101
101
|
type: 'element',
|
102
102
|
hasChildren: true,
|
@@ -125,7 +125,7 @@ exports.SkeletonInput = {
|
|
125
125
|
exports.SkeletonImage = {
|
126
126
|
name: 'SkeletonImage',
|
127
127
|
title: '骨架屏(图片)',
|
128
|
-
package: '@
|
128
|
+
package: '@cuvp1225/antd',
|
129
129
|
icon: 'icon-placeholder',
|
130
130
|
type: 'element',
|
131
131
|
hasChildren: true,
|
@@ -141,7 +141,7 @@ exports.SkeletonImage = {
|
|
141
141
|
exports.SkeletonNode = {
|
142
142
|
name: 'SkeletonNode',
|
143
143
|
title: '骨架屏(结点)',
|
144
|
-
package: '@
|
144
|
+
package: '@cuvp1225/antd',
|
145
145
|
icon: 'icon-placeholder',
|
146
146
|
type: 'element',
|
147
147
|
hasChildren: true,
|
@@ -157,7 +157,7 @@ exports.SkeletonNode = {
|
|
157
157
|
exports.Skeleton = {
|
158
158
|
name: 'Skeleton',
|
159
159
|
title: '骨架屏',
|
160
|
-
package: '@
|
160
|
+
package: '@cuvp1225/antd',
|
161
161
|
icon: 'icon-placeholder',
|
162
162
|
help: '在需要等待加载内容的位置提供一个占位图形组合',
|
163
163
|
type: 'element',
|
@@ -5,7 +5,7 @@ const common_1 = require("./common");
|
|
5
5
|
exports.Statistic = {
|
6
6
|
name: 'Statistic',
|
7
7
|
title: '统计数值',
|
8
|
-
package: '@
|
8
|
+
package: '@cuvp1225/antd',
|
9
9
|
icon: 'icon-tongjishuzhi',
|
10
10
|
help: '展示统计数值组件,当需要突出某个或某组数字或展示带描述的统计类数据时使用',
|
11
11
|
type: 'element',
|
@@ -50,7 +50,7 @@ exports.Statistic = {
|
|
50
50
|
exports.StatisticCountdown = {
|
51
51
|
name: 'StatisticCountdown',
|
52
52
|
title: '统计数值',
|
53
|
-
package: '@
|
53
|
+
package: '@cuvp1225/antd',
|
54
54
|
icon: '',
|
55
55
|
type: 'element',
|
56
56
|
props: [
|
@@ -5,7 +5,7 @@ const common_1 = require("./common");
|
|
5
5
|
exports.Steps = {
|
6
6
|
name: 'Steps',
|
7
7
|
title: '步骤条',
|
8
|
-
package: '@
|
8
|
+
package: '@cuvp1225/antd',
|
9
9
|
icon: 'icon-buzhoutiao',
|
10
10
|
type: 'element',
|
11
11
|
help: '引导用户按照流程完成任务的导航条,当任务复杂或者存在先后关系时,将其分解成一系列步骤,从而简化任务。',
|
@@ -114,7 +114,7 @@ exports.Steps = {
|
|
114
114
|
exports.StepsItem = {
|
115
115
|
name: 'StepsItem',
|
116
116
|
title: '步骤条',
|
117
|
-
package: '@
|
117
|
+
package: '@cuvp1225/antd',
|
118
118
|
icon: '',
|
119
119
|
type: 'element',
|
120
120
|
props: [
|
@@ -8,7 +8,8 @@ const renderChildrenOptions = [
|
|
8
8
|
{
|
9
9
|
label: '自定义区域',
|
10
10
|
value: 'Box',
|
11
|
-
render: '{(record, index, indent, expanded) => <Box></Box>}',
|
11
|
+
//render: '{(record, index, indent, expanded) => <Box></Box>}',
|
12
|
+
render: '(record, index, indent, expanded) => <Box></Box>',
|
12
13
|
relatedImports: ['Box'],
|
13
14
|
},
|
14
15
|
];
|
@@ -18,7 +19,7 @@ exports.Table = {
|
|
18
19
|
exportType: 'namedExport',
|
19
20
|
icon: 'icon-biaoge',
|
20
21
|
type: 'element',
|
21
|
-
package: '@
|
22
|
+
package: '@cuvp1225/antd',
|
22
23
|
help: '最基本的表格组件,没有过多复杂的功能。',
|
23
24
|
hasChildren: false,
|
24
25
|
props: [
|
@@ -45,12 +46,6 @@ exports.Table = {
|
|
45
46
|
},
|
46
47
|
],
|
47
48
|
},
|
48
|
-
{
|
49
|
-
name: 'rowKey',
|
50
|
-
title: '数据主键',
|
51
|
-
setter: 'textSetter',
|
52
|
-
group: 'basic',
|
53
|
-
},
|
54
49
|
{
|
55
50
|
name: 'dataSource',
|
56
51
|
title: '数据源',
|
@@ -58,6 +53,18 @@ exports.Table = {
|
|
58
53
|
setter: 'expressionSetter',
|
59
54
|
group: 'basic',
|
60
55
|
},
|
56
|
+
{
|
57
|
+
name: 'loading',
|
58
|
+
title: '表格加载中',
|
59
|
+
setter: 'boolSetter',
|
60
|
+
group: 'basic',
|
61
|
+
},
|
62
|
+
{
|
63
|
+
name: 'rowKey',
|
64
|
+
title: '数据主键',
|
65
|
+
setter: 'textSetter',
|
66
|
+
group: 'basic',
|
67
|
+
},
|
61
68
|
{
|
62
69
|
name: 'rowSelection',
|
63
70
|
title: '是否开启多选',
|
@@ -164,7 +171,7 @@ exports.Table = {
|
|
164
171
|
},
|
165
172
|
{
|
166
173
|
name: 'expandable',
|
167
|
-
title: '
|
174
|
+
title: '行展开',
|
168
175
|
// tip: '{expandedRowRender:function(record, index, indent, expanded): ReactNode,其它配置项},详细见:',
|
169
176
|
// setter: 'tableExpandableSetter',
|
170
177
|
props: [
|
@@ -253,7 +260,7 @@ exports.Table = {
|
|
253
260
|
},
|
254
261
|
{
|
255
262
|
name: 'scroll',
|
256
|
-
title: '
|
263
|
+
title: '滚动',
|
257
264
|
tip: '可以指定滚动区域的宽、高,格式:{{x:宽,y:高,scrollToFirstRowOnChange:boolean}},详细参见:',
|
258
265
|
props: [
|
259
266
|
{
|
@@ -282,13 +289,6 @@ exports.Table = {
|
|
282
289
|
setter: 'expressionSetter',
|
283
290
|
group: 'basic',
|
284
291
|
},
|
285
|
-
{
|
286
|
-
name: 'summary',
|
287
|
-
title: '总结栏',
|
288
|
-
tip: '格式:(currentData) => ReactNode',
|
289
|
-
setter: 'expressionSetter',
|
290
|
-
group: 'basic',
|
291
|
-
},
|
292
292
|
{
|
293
293
|
name: 'footer',
|
294
294
|
title: '表格尾部',
|
@@ -319,12 +319,6 @@ exports.Table = {
|
|
319
319
|
defaultValue: true,
|
320
320
|
group: 'basic',
|
321
321
|
},
|
322
|
-
{
|
323
|
-
name: 'loading',
|
324
|
-
title: '表格加载中',
|
325
|
-
setter: 'boolSetter',
|
326
|
-
group: 'basic',
|
327
|
-
},
|
328
322
|
{
|
329
323
|
name: 'sticky',
|
330
324
|
title: '粘性头部和滚动条',
|
@@ -338,6 +332,23 @@ exports.Table = {
|
|
338
332
|
setter: 'expressionSetter',
|
339
333
|
group: 'event',
|
340
334
|
},
|
335
|
+
{
|
336
|
+
name: 'summary',
|
337
|
+
title: '总结栏',
|
338
|
+
tip: '格式:(currentData) => ReactNode',
|
339
|
+
setter: 'expressionSetter',
|
340
|
+
group: 'event',
|
341
|
+
autoCompleteOptions: [`(pageData) => {
|
342
|
+
console.log("pageData", pageData);
|
343
|
+
let sum = 100;
|
344
|
+
return (
|
345
|
+
<Table.Summary.Row>
|
346
|
+
<Table.Summary.Cell index={0}>合计:</Table.Summary.Cell>
|
347
|
+
<Table.Summary.Cell index={1}>{sum}</Table.Summary.Cell>
|
348
|
+
</Table.Summary.Row>
|
349
|
+
);
|
350
|
+
}`],
|
351
|
+
},
|
341
352
|
{
|
342
353
|
name: 'onHeaderRow',
|
343
354
|
title: '设置头部行属性',
|
@@ -372,7 +383,7 @@ exports.TableColumn = {
|
|
372
383
|
exportType: 'namedExport',
|
373
384
|
icon: 'icon-biaoge',
|
374
385
|
type: 'element',
|
375
|
-
package: '@
|
386
|
+
package: '@cuvp1225/antd',
|
376
387
|
hasChildren: false,
|
377
388
|
props: [
|
378
389
|
{
|
@@ -516,9 +527,9 @@ exports.TableColumn = {
|
|
516
527
|
setter: 'expressionSetter',
|
517
528
|
group: 'advanced',
|
518
529
|
autoCompleteOptions: [
|
519
|
-
`(record1,record2) => {
|
520
|
-
//示例:按照id降序排列
|
521
|
-
//return record1.id-record2.id
|
530
|
+
`(record1,record2) => {
|
531
|
+
//示例:按照id降序排列
|
532
|
+
//return record1.id-record2.id
|
522
533
|
}`,
|
523
534
|
],
|
524
535
|
},
|
@@ -8,7 +8,7 @@ exports.Tabs = {
|
|
8
8
|
exportType: 'namedExport',
|
9
9
|
icon: 'icon-xuanxiangka',
|
10
10
|
type: 'container',
|
11
|
-
package: '@
|
11
|
+
package: '@cuvp1225/antd',
|
12
12
|
help: '提供平级的区域将大块内容进行收纳和展现,保持界面整洁',
|
13
13
|
hasChildren: true,
|
14
14
|
initChildren: '<TabPane key="1" tab="选项卡1"></TabPane><TabPane key="2" tab="选项卡2"></TabPane>',
|
@@ -82,7 +82,7 @@ exports.TabPane = {
|
|
82
82
|
exportType: 'namedExport',
|
83
83
|
icon: 'icon-xuanxiangka',
|
84
84
|
type: 'container',
|
85
|
-
package: '@
|
85
|
+
package: '@cuvp1225/antd',
|
86
86
|
hasChildren: true,
|
87
87
|
props: [
|
88
88
|
...common_1.StylePrototypes,
|
@@ -5,7 +5,7 @@ const common_1 = require("./common");
|
|
5
5
|
exports.Tag = {
|
6
6
|
name: 'Tag',
|
7
7
|
title: '标签',
|
8
|
-
package: '@
|
8
|
+
package: '@cuvp1225/antd',
|
9
9
|
icon: 'icon-biaoqian',
|
10
10
|
type: 'element',
|
11
11
|
help: '进行标记和分类的小标签,用于标记事物的属性和维度或分类',
|
@@ -43,6 +43,7 @@ exports.Tag = {
|
|
43
43
|
title: '是否显示标签',
|
44
44
|
setter: 'boolSetter',
|
45
45
|
defaultValue: true,
|
46
|
+
autoCompleteOptions: ['() => text == "1"'],
|
46
47
|
},
|
47
48
|
{
|
48
49
|
name: 'onClose',
|
@@ -56,7 +57,7 @@ exports.Tag = {
|
|
56
57
|
exports.CheckableTag = {
|
57
58
|
name: 'CheckableTag',
|
58
59
|
title: '可选择标签',
|
59
|
-
package: '@
|
60
|
+
package: '@cuvp1225/antd',
|
60
61
|
icon: 'icon-kexuanzebiaoqian',
|
61
62
|
help: '可点击选中的 Tag 控件',
|
62
63
|
type: 'element',
|