@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
@@ -5,7 +5,7 @@ const common_1 = require("./common");
|
|
5
5
|
exports.Alert = {
|
6
6
|
name: 'Alert',
|
7
7
|
title: '警告提示',
|
8
|
-
package: '@
|
8
|
+
package: '@cuvp1225/antd',
|
9
9
|
icon: 'icon-xinxitishi',
|
10
10
|
help: '警告提示,展现需要关注的信息',
|
11
11
|
type: 'element',
|
@@ -80,7 +80,7 @@ exports.Alert = {
|
|
80
80
|
exports.AlertErrorBoundary = {
|
81
81
|
name: 'AlertErrorBoundary',
|
82
82
|
title: '警告提示',
|
83
|
-
package: '@
|
83
|
+
package: '@cuvp1225/antd',
|
84
84
|
icon: '',
|
85
85
|
type: 'element',
|
86
86
|
props: [
|
@@ -5,7 +5,7 @@ const common_1 = require("./common");
|
|
5
5
|
exports.Anchor = {
|
6
6
|
name: 'Anchor',
|
7
7
|
title: '锚点',
|
8
|
-
package: '@
|
8
|
+
package: '@cuvp1225/antd',
|
9
9
|
icon: 'icon-maodian',
|
10
10
|
type: 'element',
|
11
11
|
props: [
|
@@ -65,7 +65,7 @@ exports.Anchor = {
|
|
65
65
|
exports.AnchorLink = {
|
66
66
|
name: 'Link',
|
67
67
|
title: '锚点',
|
68
|
-
package: '@
|
68
|
+
package: '@cuvp1225/antd',
|
69
69
|
icon: 'icon-maodianlink',
|
70
70
|
type: 'element',
|
71
71
|
props: [
|
@@ -5,7 +5,7 @@ const common_1 = require("./common");
|
|
5
5
|
exports.Avatar = {
|
6
6
|
name: 'Avatar',
|
7
7
|
title: '头像',
|
8
|
-
package: '@
|
8
|
+
package: '@cuvp1225/antd',
|
9
9
|
icon: 'icon-touxiang',
|
10
10
|
help: '用来代表用户或事物,支持图片、图标或字符展示',
|
11
11
|
type: 'element',
|
@@ -87,7 +87,7 @@ exports.Avatar = {
|
|
87
87
|
exports.AvatarGroup = {
|
88
88
|
name: 'AvatarGroup',
|
89
89
|
title: '头像',
|
90
|
-
package: '@
|
90
|
+
package: '@cuvp1225/antd',
|
91
91
|
icon: '',
|
92
92
|
type: 'element',
|
93
93
|
props: [
|
@@ -5,7 +5,7 @@ const common_1 = require("./common");
|
|
5
5
|
exports.Badge = {
|
6
6
|
name: 'Badge',
|
7
7
|
title: '徽标数',
|
8
|
-
package: '@
|
8
|
+
package: '@cuvp1225/antd',
|
9
9
|
icon: 'icon-huibiaoshu',
|
10
10
|
help: '图标右上角的圆形徽标数字,用于显示需要处理的消息条数',
|
11
11
|
type: 'element',
|
@@ -86,7 +86,7 @@ exports.Badge = {
|
|
86
86
|
exports.RibbonBadge = {
|
87
87
|
name: 'RibbonBadge',
|
88
88
|
title: '缎带徽标',
|
89
|
-
package: '@
|
89
|
+
package: '@cuvp1225/antd',
|
90
90
|
icon: 'icon-duandaihuibiao',
|
91
91
|
type: 'element',
|
92
92
|
help: '使用缎带型的徽标',
|
@@ -5,7 +5,7 @@ const common_1 = require("./common");
|
|
5
5
|
exports.Breadcrumb = {
|
6
6
|
name: 'Breadcrumb',
|
7
7
|
title: '面包屑',
|
8
|
-
package: '@
|
8
|
+
package: '@cuvp1225/antd',
|
9
9
|
icon: 'icon-mianbaoxie',
|
10
10
|
type: 'element',
|
11
11
|
help: '显示当前页面在系统层级结构中的位置,并能向上返回',
|
@@ -33,7 +33,7 @@ exports.Breadcrumb = {
|
|
33
33
|
exports.BreadcrumbItem = {
|
34
34
|
name: 'BreadcrumbItem',
|
35
35
|
title: '单个面包屑',
|
36
|
-
package: '@
|
36
|
+
package: '@cuvp1225/antd',
|
37
37
|
icon: '',
|
38
38
|
type: 'element',
|
39
39
|
hasChildren: false,
|
@@ -59,7 +59,7 @@ exports.BreadcrumbItem = {
|
|
59
59
|
exports.BreadcrumbSeparator = {
|
60
60
|
name: 'BreadcrumbSeparator',
|
61
61
|
title: '面包屑',
|
62
|
-
package: '@
|
62
|
+
package: '@cuvp1225/antd',
|
63
63
|
icon: '',
|
64
64
|
type: 'element',
|
65
65
|
props: [
|
@@ -7,7 +7,7 @@ const helpers_1 = require("../helpers");
|
|
7
7
|
exports.Card = {
|
8
8
|
name: 'Card',
|
9
9
|
title: '卡片',
|
10
|
-
package: '@
|
10
|
+
package: '@cuvp1225/antd',
|
11
11
|
icon: 'icon-card',
|
12
12
|
help: '最基础的卡片容器,可承载文字、列表、图片、段落,常用于后台概览页面',
|
13
13
|
type: 'element',
|
@@ -123,7 +123,7 @@ exports.Card = {
|
|
123
123
|
exports.CardGrid = {
|
124
124
|
name: 'CardGrid',
|
125
125
|
title: '卡片Grid',
|
126
|
-
package: '@
|
126
|
+
package: '@cuvp1225/antd',
|
127
127
|
icon: 'icon-kapiangrid',
|
128
128
|
type: 'element',
|
129
129
|
props: [
|
@@ -138,7 +138,7 @@ exports.CardGrid = {
|
|
138
138
|
exports.CardMeta = {
|
139
139
|
name: 'CardMeta',
|
140
140
|
title: '卡片',
|
141
|
-
package: '@
|
141
|
+
package: '@cuvp1225/antd',
|
142
142
|
icon: '',
|
143
143
|
type: 'element',
|
144
144
|
props: [
|
@@ -7,7 +7,7 @@ exports.Checkbox = {
|
|
7
7
|
title: '多选框',
|
8
8
|
icon: 'icon-duoxuankuang',
|
9
9
|
type: 'element',
|
10
|
-
package: '@
|
10
|
+
package: '@cuvp1225/antd',
|
11
11
|
help: '多选框,单独使用可以表示两种状态之间的切换,和 Switch 类似',
|
12
12
|
hasChildren: true,
|
13
13
|
initChildren: '选项1',
|
@@ -65,7 +65,7 @@ exports.CheckboxGroup = {
|
|
65
65
|
title: '多选框组',
|
66
66
|
icon: 'icon-duoxuankuang',
|
67
67
|
type: 'element',
|
68
|
-
package: '@
|
68
|
+
package: '@cuvp1225/antd',
|
69
69
|
help: '多选框,在一组可选项中进行多项选择时',
|
70
70
|
props: [
|
71
71
|
...common_1.StylePrototypes,
|
@@ -5,7 +5,7 @@ const common_1 = require("./common");
|
|
5
5
|
exports.Collapse = {
|
6
6
|
name: 'Collapse',
|
7
7
|
title: '折叠面板',
|
8
|
-
package: '@
|
8
|
+
package: '@cuvp1225/antd',
|
9
9
|
icon: 'icon-zhediemianban',
|
10
10
|
help: '可以折叠/展开的内容区域,对复杂区域进行分组和隐藏,保持页面的整洁',
|
11
11
|
type: 'element',
|
@@ -87,7 +87,7 @@ exports.Collapse = {
|
|
87
87
|
exports.CollapsePanel = {
|
88
88
|
name: 'CollapsePanel',
|
89
89
|
title: '折叠面板Panel',
|
90
|
-
package: '@
|
90
|
+
package: '@cuvp1225/antd',
|
91
91
|
icon: 'icon-zhediemianban',
|
92
92
|
type: 'element',
|
93
93
|
props: [
|
@@ -6,7 +6,7 @@ exports.Columns = {
|
|
6
6
|
name: 'Columns',
|
7
7
|
type: 'container',
|
8
8
|
icon: 'icon-column-4',
|
9
|
-
package: '@
|
9
|
+
package: '@cuvp1225/antd',
|
10
10
|
hasChildren: true,
|
11
11
|
childrenName: ['Column'],
|
12
12
|
props: [...common_1.StylePrototypes],
|
@@ -15,7 +15,7 @@ exports.Column = {
|
|
15
15
|
name: 'Column',
|
16
16
|
type: 'container',
|
17
17
|
icon: 'icon-column-4',
|
18
|
-
package: '@
|
18
|
+
package: '@cuvp1225/antd',
|
19
19
|
hasChildren: true,
|
20
20
|
props: [...common_1.StylePrototypes],
|
21
21
|
};
|
@@ -125,10 +125,10 @@ exports.PickerCommonProps = [
|
|
125
125
|
setter: 'expressionSetter',
|
126
126
|
group: 'advanced',
|
127
127
|
autoCompleteOptions: [
|
128
|
-
`current => {
|
129
|
-
// // 示例:不可选择今日(包含)之前的日期
|
130
|
-
return current && current < moment().endOf('day');
|
131
|
-
}
|
128
|
+
`current => {
|
129
|
+
// // 示例:不可选择今日(包含)之前的日期
|
130
|
+
return current && current < moment().endOf('day');
|
131
|
+
}
|
132
132
|
`,
|
133
133
|
],
|
134
134
|
},
|
@@ -138,10 +138,10 @@ exports.PickerCommonProps = [
|
|
138
138
|
tip: '需要showTime=true',
|
139
139
|
setter: 'expressionSetter',
|
140
140
|
autoCompleteOptions: [
|
141
|
-
`(date) => ({
|
142
|
-
disabledHours: () => range(0, 24).splice(4, 20),
|
143
|
-
disabledMinutes: () => range(30, 60),
|
144
|
-
disabledSeconds: () => [55, 56],
|
141
|
+
`(date) => ({
|
142
|
+
disabledHours: () => range(0, 24).splice(4, 20),
|
143
|
+
disabledMinutes: () => range(30, 60),
|
144
|
+
disabledSeconds: () => [55, 56],
|
145
145
|
})`,
|
146
146
|
],
|
147
147
|
group: 'advanced',
|
@@ -153,18 +153,18 @@ exports.PickerCommonProps = [
|
|
153
153
|
group: 'advanced',
|
154
154
|
tip: '自定义日期单元格的内容和样式',
|
155
155
|
autoCompleteOptions: [
|
156
|
-
`current => {
|
157
|
-
// 示例:给每个月的第一天增加样式
|
158
|
-
const style = {};
|
159
|
-
if (current.date() === 1) {
|
160
|
-
style.border = '1px solid #1890ff';
|
161
|
-
style.borderRadius = '50%';
|
162
|
-
}
|
163
|
-
return (
|
164
|
-
<div className="ant-picker-cell-inner" style={style}>
|
165
|
-
{current.date()}
|
166
|
-
</div>
|
167
|
-
);
|
156
|
+
`current => {
|
157
|
+
// 示例:给每个月的第一天增加样式
|
158
|
+
const style = {};
|
159
|
+
if (current.date() === 1) {
|
160
|
+
style.border = '1px solid #1890ff';
|
161
|
+
style.borderRadius = '50%';
|
162
|
+
}
|
163
|
+
return (
|
164
|
+
<div className="ant-picker-cell-inner" style={style}>
|
165
|
+
{current.date()}
|
166
|
+
</div>
|
167
|
+
);
|
168
168
|
}`,
|
169
169
|
],
|
170
170
|
},
|
@@ -252,7 +252,7 @@ exports.DatePicker = {
|
|
252
252
|
title: '日期选择框',
|
253
253
|
icon: 'icon-riqishijian',
|
254
254
|
type: 'element',
|
255
|
-
package: '@
|
255
|
+
package: '@cuvp1225/antd',
|
256
256
|
help: '当需要输入或选择具体日期的控件',
|
257
257
|
hasChildren: false,
|
258
258
|
props: [
|
@@ -274,9 +274,9 @@ exports.DatePicker = {
|
|
274
274
|
setter: 'expressionSetter',
|
275
275
|
group: 'advanced',
|
276
276
|
autoCompleteOptions: [
|
277
|
-
`{
|
278
|
-
Today: moment(),
|
279
|
-
'This Month': moment().endOf('month'),
|
277
|
+
`{
|
278
|
+
Today: moment(),
|
279
|
+
'This Month': moment().endOf('month'),
|
280
280
|
}`,
|
281
281
|
],
|
282
282
|
},
|
@@ -305,7 +305,7 @@ exports.MonthPicker = {
|
|
305
305
|
title: '月选择器',
|
306
306
|
icon: 'icon-month',
|
307
307
|
type: 'element',
|
308
|
-
package: '@
|
308
|
+
package: '@cuvp1225/antd',
|
309
309
|
help: '当需要输入或选择具体月份的控件',
|
310
310
|
hasChildren: false,
|
311
311
|
props: [
|
@@ -315,8 +315,8 @@ exports.MonthPicker = {
|
|
315
315
|
title: '自定义渲染月份内容',
|
316
316
|
setter: 'expressionSetter',
|
317
317
|
autoCompleteOptions: [
|
318
|
-
`(date) => {
|
319
|
-
return date.format("MM");
|
318
|
+
`(date) => {
|
319
|
+
return date.format("MM");
|
320
320
|
}`,
|
321
321
|
],
|
322
322
|
group: 'advanced',
|
@@ -328,7 +328,7 @@ exports.YearPicker = {
|
|
328
328
|
title: '年选择器',
|
329
329
|
icon: 'icon-year',
|
330
330
|
type: 'element',
|
331
|
-
package: '@
|
331
|
+
package: '@cuvp1225/antd',
|
332
332
|
help: '当需要输入或选择具体年份的控件',
|
333
333
|
hasChildren: false,
|
334
334
|
props: [...exports.PickerCommonProps],
|
@@ -338,7 +338,7 @@ exports.WeekPicker = {
|
|
338
338
|
title: '周选择框',
|
339
339
|
icon: 'icon-week',
|
340
340
|
type: 'element',
|
341
|
-
package: '@
|
341
|
+
package: '@cuvp1225/antd',
|
342
342
|
help: '当需要输入或选择具体周的控件',
|
343
343
|
hasChildren: false,
|
344
344
|
props: [...exports.PickerCommonProps],
|
@@ -348,7 +348,7 @@ exports.DateRangePicker = {
|
|
348
348
|
title: '日期选择框 Range',
|
349
349
|
icon: 'icon-date-range',
|
350
350
|
type: 'element',
|
351
|
-
package: '@
|
351
|
+
package: '@cuvp1225/antd',
|
352
352
|
help: '当需要输入或选择具体日期范围的控件',
|
353
353
|
hasChildren: false,
|
354
354
|
props: [
|
@@ -369,9 +369,9 @@ exports.DateRangePicker = {
|
|
369
369
|
setter: 'expressionSetter',
|
370
370
|
group: 'advanced',
|
371
371
|
autoCompleteOptions: [
|
372
|
-
`{
|
373
|
-
Today: [moment(), moment()],
|
374
|
-
'This Month': [moment().startOf('month'), moment().endOf('month')],
|
372
|
+
`{
|
373
|
+
Today: [moment(), moment()],
|
374
|
+
'This Month': [moment().startOf('month'), moment().endOf('month')],
|
375
375
|
}`,
|
376
376
|
],
|
377
377
|
},
|
@@ -5,7 +5,7 @@ const common_1 = require("./common");
|
|
5
5
|
exports.Descriptions = {
|
6
6
|
name: 'Descriptions',
|
7
7
|
title: '描述列表',
|
8
|
-
package: '@
|
8
|
+
package: '@cuvp1225/antd',
|
9
9
|
icon: 'icon-miaoshu',
|
10
10
|
help: '成组展示多个只读字段,常见于详情页的信息展示',
|
11
11
|
type: 'element',
|
@@ -100,7 +100,7 @@ exports.Descriptions = {
|
|
100
100
|
exports.DescriptionItem = {
|
101
101
|
name: 'DescriptionItem',
|
102
102
|
title: '描述列表子项',
|
103
|
-
package: '@
|
103
|
+
package: '@cuvp1225/antd',
|
104
104
|
icon: 'icon-miaoshuliebiaoitem',
|
105
105
|
type: 'element',
|
106
106
|
hasChildren: false,
|
@@ -4,7 +4,7 @@ exports.DropdownButton = exports.Dropdown = void 0;
|
|
4
4
|
exports.Dropdown = {
|
5
5
|
name: 'Dropdown',
|
6
6
|
title: '下拉菜单',
|
7
|
-
package: '@
|
7
|
+
package: '@cuvp1225/antd',
|
8
8
|
icon: 'icon-xialacaidan',
|
9
9
|
type: 'element',
|
10
10
|
initChildren: '<a>Hover me <Icon type="DownOutlined" /></a>',
|
@@ -79,7 +79,7 @@ exports.Dropdown = {
|
|
79
79
|
exports.DropdownButton = {
|
80
80
|
name: 'DropdownButton',
|
81
81
|
title: '下拉菜单',
|
82
|
-
package: '@
|
82
|
+
package: '@cuvp1225/antd',
|
83
83
|
icon: '',
|
84
84
|
type: 'element',
|
85
85
|
props: [
|
@@ -40,10 +40,24 @@ exports.Form = {
|
|
40
40
|
exportType: 'namedExport',
|
41
41
|
icon: 'icon-biaodan',
|
42
42
|
type: 'element',
|
43
|
-
package: '@
|
43
|
+
package: '@cuvp1225/antd',
|
44
44
|
help: '最基本的表单组件,可以创建一个轻量级表单。',
|
45
45
|
hasChildren: true,
|
46
|
-
initChildren:
|
46
|
+
initChildren: `<Form.Item label="Username" name="username" rules={[{ required: true, message: "Please input your username!" }]}>
|
47
|
+
<Input />
|
48
|
+
</Form.Item>
|
49
|
+
<Form.Item
|
50
|
+
label="Password"
|
51
|
+
name="password"
|
52
|
+
rules={[{ required: true, message: 'Please input your password!' }]}
|
53
|
+
>
|
54
|
+
<Input.Password />
|
55
|
+
</Form.Item>
|
56
|
+
<Form.Item wrapperCol={{ offset: 8, span: 16 }}>
|
57
|
+
<Button type="primary" htmlType="submit">
|
58
|
+
Submit
|
59
|
+
</Button>
|
60
|
+
</Form.Item>`,
|
47
61
|
relatedImports: ['FormItem', 'FormFooter', 'Button'],
|
48
62
|
childrenName: ['FormItem', 'Fieldset', 'FormFooter'],
|
49
63
|
props: [
|
@@ -143,7 +157,7 @@ exports.Fieldset = {
|
|
143
157
|
exportType: 'namedExport',
|
144
158
|
icon: 'icon-biaodan',
|
145
159
|
type: 'element',
|
146
|
-
package: '@
|
160
|
+
package: '@cuvp1225/antd',
|
147
161
|
hasChildren: true,
|
148
162
|
initChildren: '<FormItem component="Input" label="表单项" /><FormItem component="Input" label="表单项" />',
|
149
163
|
relatedImports: ['FormItem'],
|
@@ -167,7 +181,7 @@ exports.FormItem = {
|
|
167
181
|
exportType: 'namedExport',
|
168
182
|
icon: 'icon-biaodan',
|
169
183
|
type: 'element',
|
170
|
-
package: '@
|
184
|
+
package: '@cuvp1225/antd',
|
171
185
|
help: '一个基本的表单项',
|
172
186
|
hasChildren: true,
|
173
187
|
props: [
|
@@ -285,7 +299,7 @@ exports.FormFooter = {
|
|
285
299
|
exportType: 'namedExport',
|
286
300
|
icon: 'icon-biaodan',
|
287
301
|
type: 'element',
|
288
|
-
package: '@
|
302
|
+
package: '@cuvp1225/antd',
|
289
303
|
hasChildren: true,
|
290
304
|
initChildren: '<Button type="primary" htmlType="submit">提交</Button>',
|
291
305
|
relatedImports: ['Button'],
|
@@ -34,7 +34,7 @@ exports.FormilyForm = {
|
|
34
34
|
exportType: 'namedExport',
|
35
35
|
icon: 'icon-biaodan',
|
36
36
|
type: 'element',
|
37
|
-
package: '@
|
37
|
+
package: '@cuvp1225/antd',
|
38
38
|
help: 'Formily 表单',
|
39
39
|
hasChildren: true,
|
40
40
|
initChildren: '<FormilyFormItem name="input1" component="Input" label="表单项" /><FormilyFormItem name="select1" component="Select" label="表单项" />',
|
@@ -73,7 +73,7 @@ exports.FormilyFormItem = {
|
|
73
73
|
exportType: 'namedExport',
|
74
74
|
icon: 'icon-biaodan',
|
75
75
|
type: 'element',
|
76
|
-
package: '@
|
76
|
+
package: '@cuvp1225/antd',
|
77
77
|
help: 'Formily 表单项',
|
78
78
|
hasChildren: false,
|
79
79
|
props: [
|
@@ -154,7 +154,7 @@ exports.FormilyFormFooter = {
|
|
154
154
|
exportType: 'namedExport',
|
155
155
|
icon: 'icon-biaodan',
|
156
156
|
type: 'element',
|
157
|
-
package: '@
|
157
|
+
package: '@cuvp1225/antd',
|
158
158
|
hasChildren: true,
|
159
159
|
initChildren: `<FormilySubmit>提交</FormilySubmit><FormilyReset>重置</FormilyReset>`,
|
160
160
|
relatedImports: ['FormilySubmit', 'FormilyReset'],
|
@@ -165,7 +165,7 @@ exports.FormilySubmit = {
|
|
165
165
|
exportType: 'namedExport',
|
166
166
|
icon: 'icon-anniu',
|
167
167
|
type: 'element',
|
168
|
-
package: '@
|
168
|
+
package: '@cuvp1225/antd',
|
169
169
|
help: '提交表单',
|
170
170
|
hasChildren: false,
|
171
171
|
props: [
|
@@ -202,7 +202,7 @@ exports.FormilyReset = {
|
|
202
202
|
exportType: 'namedExport',
|
203
203
|
icon: 'icon-anniu',
|
204
204
|
type: 'element',
|
205
|
-
package: '@
|
205
|
+
package: '@cuvp1225/antd',
|
206
206
|
help: '重置表单。',
|
207
207
|
hasChildren: false,
|
208
208
|
props: [
|
@@ -0,0 +1,56 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.Row = exports.Col = void 0;
|
4
|
+
const common_1 = require("./common");
|
5
|
+
exports.Col = {
|
6
|
+
name: 'Col',
|
7
|
+
title: '栅格列',
|
8
|
+
package: '@cuvp1225/antd',
|
9
|
+
icon: 'icon-column',
|
10
|
+
//type: 'element',
|
11
|
+
type: 'container',
|
12
|
+
help: '栅格行',
|
13
|
+
hasChildren: true,
|
14
|
+
initChildren: '<Placeholder text="放置替换" />',
|
15
|
+
relatedImports: ['Placeholder'],
|
16
|
+
props: [
|
17
|
+
...common_1.StylePrototypes,
|
18
|
+
{
|
19
|
+
name: 'span',
|
20
|
+
title: '所占栅格',
|
21
|
+
setter: 'numberSetter',
|
22
|
+
//defaultValue: 24
|
23
|
+
},
|
24
|
+
],
|
25
|
+
rules: {
|
26
|
+
canMoveIn(incomingName) {
|
27
|
+
return !(incomingName === exports.Row.name);
|
28
|
+
},
|
29
|
+
},
|
30
|
+
};
|
31
|
+
exports.Row = {
|
32
|
+
name: 'Row',
|
33
|
+
title: '栅格行',
|
34
|
+
package: '@cuvp1225/antd',
|
35
|
+
icon: 'icon-column',
|
36
|
+
//type: 'element',
|
37
|
+
type: 'container',
|
38
|
+
help: '栅格行',
|
39
|
+
hasChildren: true,
|
40
|
+
initChildren: '<Placeholder text="放置替换" />',
|
41
|
+
relatedImports: ['Placeholder'],
|
42
|
+
props: [
|
43
|
+
...common_1.StylePrototypes,
|
44
|
+
{
|
45
|
+
name: 'gutter',
|
46
|
+
title: '栅格间隔',
|
47
|
+
setter: 'textSetter',
|
48
|
+
defaultValue: [20, 20]
|
49
|
+
},
|
50
|
+
],
|
51
|
+
rules: {
|
52
|
+
canMoveIn(incomingName) {
|
53
|
+
return !(incomingName === exports.Row.name);
|
54
|
+
},
|
55
|
+
},
|
56
|
+
};
|