@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
@@ -8,7 +8,7 @@ exports.TimePicker = {
|
|
8
8
|
title: '时间选择框',
|
9
9
|
icon: 'icon-shijianxuanze',
|
10
10
|
type: 'element',
|
11
|
-
package: '@
|
11
|
+
package: '@cuvp1225/antd',
|
12
12
|
hasChildren: false,
|
13
13
|
props: [
|
14
14
|
...common_1.StylePrototypes,
|
@@ -189,7 +189,7 @@ exports.TimeRangePicker = {
|
|
189
189
|
title: '时间选择框 Range',
|
190
190
|
icon: 'icon-time-range',
|
191
191
|
type: 'element',
|
192
|
-
package: '@
|
192
|
+
package: '@cuvp1225/antd',
|
193
193
|
hasChildren: false,
|
194
194
|
props: [
|
195
195
|
...common_1.StylePrototypes,
|
@@ -5,7 +5,7 @@ const common_1 = require("./common");
|
|
5
5
|
exports.Timeline = {
|
6
6
|
name: 'Timeline',
|
7
7
|
title: '时间轴',
|
8
|
-
package: '@
|
8
|
+
package: '@cuvp1225/antd',
|
9
9
|
icon: 'icon-shijianzhou',
|
10
10
|
type: 'element',
|
11
11
|
help: '垂直展示的时间流信息,用于一系列信息需按时间排列时',
|
@@ -50,7 +50,7 @@ exports.Timeline = {
|
|
50
50
|
exports.TimelineItem = {
|
51
51
|
name: 'TimelineItem',
|
52
52
|
title: '时间轴',
|
53
|
-
package: '@
|
53
|
+
package: '@cuvp1225/antd',
|
54
54
|
icon: 'icon-shijianzhouitem',
|
55
55
|
type: 'element',
|
56
56
|
hasChildren: true,
|
@@ -13,7 +13,7 @@ for (let i = 0; i < 5; i++) {
|
|
13
13
|
exports.Transfer = {
|
14
14
|
name: 'Transfer',
|
15
15
|
title: '穿梭框',
|
16
|
-
package: '@
|
16
|
+
package: '@cuvp1225/antd',
|
17
17
|
icon: 'icon-chuansuokuang1',
|
18
18
|
type: 'element',
|
19
19
|
help: '双栏穿梭选择框,需要在多个可选项中进行多选时使用的控件',
|
@@ -142,7 +142,7 @@ exports.Transfer = {
|
|
142
142
|
// export const Render: ComponentPrototypeType = {
|
143
143
|
// name: 'Render',
|
144
144
|
// title: '穿梭框',
|
145
|
-
// package: '@
|
145
|
+
// package: '@cuvp1225/antd',
|
146
146
|
// icon: '',
|
147
147
|
// type: 'element',
|
148
148
|
// // props: [
|
@@ -5,7 +5,7 @@ const common_1 = require("./common");
|
|
5
5
|
exports.Tree = {
|
6
6
|
name: 'Tree',
|
7
7
|
title: '树形控件',
|
8
|
-
package: '@
|
8
|
+
package: '@cuvp1225/antd',
|
9
9
|
icon: 'icon-shuxingjiegou',
|
10
10
|
help: '多层次的结构列表,如需要展示文件夹、组织架构、生物分类、国家地区数据等等',
|
11
11
|
type: 'element',
|
@@ -264,7 +264,7 @@ exports.Tree = {
|
|
264
264
|
exports.TreeNode = {
|
265
265
|
name: 'TreeNode',
|
266
266
|
title: '树形控件节点',
|
267
|
-
package: '@
|
267
|
+
package: '@cuvp1225/antd',
|
268
268
|
icon: 'icon-shuxingjiegou',
|
269
269
|
type: 'element',
|
270
270
|
props: [
|
@@ -309,7 +309,7 @@ exports.TreeNode = {
|
|
309
309
|
exports.DirectoryTree = {
|
310
310
|
name: 'DirectoryTree',
|
311
311
|
title: '树形控件',
|
312
|
-
package: '@
|
312
|
+
package: '@cuvp1225/antd',
|
313
313
|
icon: '',
|
314
314
|
type: 'element',
|
315
315
|
props: [
|
@@ -5,7 +5,7 @@ const common_1 = require("./common");
|
|
5
5
|
exports.Typography = {
|
6
6
|
name: 'Typography',
|
7
7
|
title: '排版容器',
|
8
|
-
package: '@
|
8
|
+
package: '@cuvp1225/antd',
|
9
9
|
icon: 'icon-wenzi',
|
10
10
|
type: 'element',
|
11
11
|
hasChildren: true,
|
@@ -117,7 +117,7 @@ const commonTypographyProps = [
|
|
117
117
|
exports.Title = {
|
118
118
|
name: 'Title',
|
119
119
|
title: '标题',
|
120
|
-
package: '@
|
120
|
+
package: '@cuvp1225/antd',
|
121
121
|
icon: 'icon-header',
|
122
122
|
help: '创建一个标题文本,可以展示不同级别的标题。',
|
123
123
|
type: 'element',
|
@@ -147,7 +147,7 @@ exports.Title = {
|
|
147
147
|
exports.Paragraph = {
|
148
148
|
name: 'Paragraph',
|
149
149
|
title: '段落',
|
150
|
-
package: '@
|
150
|
+
package: '@cuvp1225/antd',
|
151
151
|
icon: 'icon-paragraph',
|
152
152
|
help: '创建一个文本段落,提供默认的布局和样式设置。',
|
153
153
|
type: 'element',
|
@@ -5,7 +5,7 @@ const common_1 = require("./common");
|
|
5
5
|
exports.Upload = {
|
6
6
|
name: 'Upload',
|
7
7
|
title: '上传',
|
8
|
-
package: '@
|
8
|
+
package: '@cuvp1225/antd',
|
9
9
|
icon: 'icon-shangchuan',
|
10
10
|
type: 'element',
|
11
11
|
help: '基础的文件选择上传和拖拽上传控件',
|
@@ -185,7 +185,7 @@ exports.Upload = {
|
|
185
185
|
exports.UploadDragger = {
|
186
186
|
name: 'UploadDragger',
|
187
187
|
title: '拖拽上传',
|
188
|
-
package: '@
|
188
|
+
package: '@cuvp1225/antd',
|
189
189
|
icon: '',
|
190
190
|
type: 'element',
|
191
191
|
props: [
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
export declare const Box: React.ForwardRefExoticComponent<Omit<import("coral-system/dist/esm/types").OmitCommonProps<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("@
|
2
|
+
export declare const Box: React.ForwardRefExoticComponent<Omit<import("coral-system/dist/esm/types").OmitCommonProps<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("@cuvp1225/foundation").BoxProps> & import("@cuvp1225/foundation").BoxProps & import("coral-system/dist/esm/types").OmitCommonProps<any, keyof import("@cuvp1225/foundation").BoxProps> & {
|
3
3
|
as?: import("coral-system/dist/esm/types").As<any>;
|
4
4
|
} & import("@music163/tango-boot").TangoComponentProps, "ref"> & React.RefAttributes<unknown>>;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { defineComponent } from '@music163/tango-boot';
|
3
|
-
import { Box as BaseBox } from '@
|
3
|
+
import { Box as BaseBox } from '@cuvp1225/foundation';
|
4
4
|
import { Placeholder } from './placeholder';
|
5
5
|
export const Box = defineComponent(BaseBox, {
|
6
6
|
name: 'Box',
|
@@ -1,9 +1,9 @@
|
|
1
1
|
export declare const Button: import("react").ForwardRefExoticComponent<Omit<Partial<{
|
2
2
|
href: string;
|
3
3
|
target?: string;
|
4
|
-
onClick?:
|
4
|
+
onClick?: React.MouseEventHandler<HTMLElement>;
|
5
5
|
} & import("antd/lib/button/button").BaseButtonProps & Omit<import("react").AnchorHTMLAttributes<any>, "type" | "onClick"> & {
|
6
6
|
htmlType?: import("antd/lib/button/button").ButtonHTMLType;
|
7
|
-
onClick?:
|
7
|
+
onClick?: React.MouseEventHandler<HTMLElement>;
|
8
8
|
} & Omit<import("react").ButtonHTMLAttributes<any>, "type" | "onClick">> & import("react").RefAttributes<HTMLElement> & import("@music163/tango-boot").TangoComponentProps, "ref"> & import("react").RefAttributes<unknown>>;
|
9
9
|
export declare const ButtonGroup: import("react").ForwardRefExoticComponent<import("antd/lib/button").ButtonGroupProps & import("@music163/tango-boot").TangoComponentProps & import("react").RefAttributes<unknown>>;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
export declare const Columns: React.ForwardRefExoticComponent<Omit<import("coral-system/dist/esm/types").OmitCommonProps<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("@
|
2
|
+
export declare const Columns: React.ForwardRefExoticComponent<Omit<import("coral-system/dist/esm/types").OmitCommonProps<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("@cuvp1225/foundation").ColumnsProps> & import("@cuvp1225/foundation").ColumnsProps & import("coral-system/dist/esm/types").OmitCommonProps<any, keyof import("@cuvp1225/foundation").ColumnsProps> & {
|
3
3
|
as?: import("coral-system/dist/esm/types").As<any>;
|
4
4
|
} & import("@music163/tango-boot").TangoComponentProps, "ref"> & React.RefAttributes<unknown>>;
|
5
|
-
export declare const Column: React.ForwardRefExoticComponent<Omit<import("coral-system/dist/esm/types").OmitCommonProps<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("@
|
5
|
+
export declare const Column: React.ForwardRefExoticComponent<Omit<import("coral-system/dist/esm/types").OmitCommonProps<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("@cuvp1225/foundation").ColumnProps> & import("@cuvp1225/foundation").ColumnProps & import("coral-system/dist/esm/types").OmitCommonProps<any, keyof import("@cuvp1225/foundation").ColumnProps> & {
|
6
6
|
as?: import("coral-system/dist/esm/types").As<any>;
|
7
7
|
} & import("@music163/tango-boot").TangoComponentProps, "ref"> & React.RefAttributes<unknown>>;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { defineComponent } from '@music163/tango-boot';
|
3
|
-
import { Columns as BaseColumns, Column as BaseColumn } from '@
|
3
|
+
import { Columns as BaseColumns, Column as BaseColumn } from '@cuvp1225/foundation';
|
4
4
|
import { Placeholder } from './placeholder';
|
5
5
|
export const Columns = defineComponent(BaseColumns, {
|
6
6
|
name: 'Columns',
|
@@ -0,0 +1,16 @@
|
|
1
|
+
export declare const Form: import("react").ForwardRefExoticComponent<Omit<import("antd").FormProps<unknown> & {
|
2
|
+
children?: React.ReactNode;
|
3
|
+
} & {
|
4
|
+
ref?: import("react").Ref<import("antd").FormInstance<unknown>>;
|
5
|
+
} & import("@music163/tango-boot").TangoComponentProps, "ref"> & import("react").RefAttributes<unknown>>;
|
6
|
+
export declare const Fieldset: import("react").ForwardRefExoticComponent<Omit<import("antd").FormProps<unknown> & {
|
7
|
+
children?: React.ReactNode;
|
8
|
+
} & {
|
9
|
+
ref?: import("react").Ref<import("antd").FormInstance<unknown>>;
|
10
|
+
} & import("@music163/tango-boot").TangoComponentProps, "ref"> & import("react").RefAttributes<unknown>>;
|
11
|
+
export declare const FormItem: import("react").ForwardRefExoticComponent<import("antd").FormItemProps<unknown> & import("@music163/tango-boot").TangoComponentProps & import("react").RefAttributes<unknown>>;
|
12
|
+
export declare const FormFooter: import("react").ForwardRefExoticComponent<Omit<import("antd").FormProps<unknown> & {
|
13
|
+
children?: React.ReactNode;
|
14
|
+
} & {
|
15
|
+
ref?: import("react").Ref<import("antd").FormInstance<unknown>>;
|
16
|
+
} & import("@music163/tango-boot").TangoComponentProps, "ref"> & import("react").RefAttributes<unknown>>;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { defineComponent } from '@music163/tango-boot';
|
2
|
+
import { Form as AntForm } from 'antd';
|
3
|
+
export const Form = defineComponent(AntForm, {
|
4
|
+
name: 'Form'
|
5
|
+
});
|
6
|
+
export const Fieldset = defineComponent(AntForm, {
|
7
|
+
name: 'Fieldset',
|
8
|
+
});
|
9
|
+
export const FormItem = defineComponent(AntForm.Item, {
|
10
|
+
name: 'FormItem'
|
11
|
+
});
|
12
|
+
export const FormFooter = defineComponent(AntForm, {
|
13
|
+
name: 'FormFooter'
|
14
|
+
});
|
@@ -1,15 +1,15 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
export declare const FormilyFormItem: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
|
3
|
-
export declare const FormilyForm: React.ForwardRefExoticComponent<import("@
|
3
|
+
export declare const FormilyForm: React.ForwardRefExoticComponent<import("@cuvp1225/formily/lib/esm/form").FormProps & import("@music163/tango-boot").TangoComponentProps & React.RefAttributes<unknown>>;
|
4
4
|
export declare const FormilyFormFooter: React.ForwardRefExoticComponent<Omit<{
|
5
5
|
children?: React.ReactNode | undefined;
|
6
|
-
}, keyof import("@
|
6
|
+
}, "gutter" | keyof import("@cuvp1225/formily").IFormItemProps> & import("@cuvp1225/formily").IFormItemProps & {
|
7
7
|
gutter?: number;
|
8
8
|
} & import("@music163/tango-boot").TangoComponentProps & React.RefAttributes<unknown>>;
|
9
|
-
export declare const FormilySubmit: React.ForwardRefExoticComponent<import("@
|
9
|
+
export declare const FormilySubmit: React.ForwardRefExoticComponent<import("@cuvp1225/formily").ISubmitProps & {
|
10
10
|
children?: React.ReactNode | undefined;
|
11
11
|
} & import("@music163/tango-boot").TangoComponentProps & React.RefAttributes<unknown>>;
|
12
|
-
export declare const FormilyReset: React.ForwardRefExoticComponent<import("@
|
12
|
+
export declare const FormilyReset: React.ForwardRefExoticComponent<import("@cuvp1225/formily").IResetProps & {
|
13
13
|
children?: React.ReactNode | undefined;
|
14
14
|
} & import("@music163/tango-boot").TangoComponentProps & React.RefAttributes<unknown>>;
|
15
|
-
export { createForm as createFormilyForm, FormConsumer as FormilyFormConsumer, } from '@
|
15
|
+
export { createForm as createFormilyForm, FormConsumer as FormilyFormConsumer, } from '@cuvp1225/formily';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { __rest } from "tslib";
|
2
2
|
import React from 'react';
|
3
|
-
import { Form, FormItem, FormFooter, Checkbox, DatePicker, Input, NumberPicker, Password, Radio, Select, Switch, TimePicker, TreeSelect, Submit, Reset, } from '@
|
3
|
+
import { Form, FormItem, FormFooter, Checkbox, DatePicker, Input, NumberPicker, Password, Radio, Select, Switch, TimePicker, TreeSelect, Submit, Reset, } from '@cuvp1225/formily';
|
4
4
|
import { defineComponent } from '@music163/tango-boot';
|
5
5
|
const componentMap = new Map();
|
6
6
|
const register = (name, component) => {
|
@@ -54,4 +54,4 @@ export const FormilySubmit = defineComponent(Submit, {
|
|
54
54
|
export const FormilyReset = defineComponent(Reset, {
|
55
55
|
name: 'FormilyReset',
|
56
56
|
});
|
57
|
-
export { createForm as createFormilyForm, FormConsumer as FormilyFormConsumer, } from '@
|
57
|
+
export { createForm as createFormilyForm, FormConsumer as FormilyFormConsumer, } from '@cuvp1225/formily';
|
@@ -0,0 +1,3 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
export declare const Col: React.ForwardRefExoticComponent<Omit<import("antd").ColProps & React.RefAttributes<HTMLDivElement> & import("@music163/tango-boot").TangoComponentProps, "ref"> & React.RefAttributes<unknown>>;
|
3
|
+
export declare const Row: React.ForwardRefExoticComponent<Omit<import("antd").RowProps & React.RefAttributes<HTMLDivElement> & import("@music163/tango-boot").TangoComponentProps, "ref"> & React.RefAttributes<unknown>>;
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { defineComponent } from '@music163/tango-boot';
|
2
|
+
//import { Columns as BaseCol, Column as BaseRow } from '@music163/foundation';
|
3
|
+
import React from 'react';
|
4
|
+
import { Placeholder } from './placeholder';
|
5
|
+
import { Col as AntCol, Row as AntRow } from 'antd';
|
6
|
+
export const Col = defineComponent(AntCol, {
|
7
|
+
name: 'Col',
|
8
|
+
designerConfig: {
|
9
|
+
// defaultProps: {
|
10
|
+
// children: <Placeholder />,
|
11
|
+
// span: 24
|
12
|
+
// }
|
13
|
+
defaultProps: React.createElement(Placeholder, null),
|
14
|
+
}
|
15
|
+
});
|
16
|
+
export const Row = defineComponent(AntRow, {
|
17
|
+
name: 'Row',
|
18
|
+
designerConfig: {
|
19
|
+
// defaultProps: {
|
20
|
+
// children: <Placeholder />
|
21
|
+
// }
|
22
|
+
defaultProps: React.createElement(Placeholder, null),
|
23
|
+
}
|
24
|
+
});
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
export declare const ColCombination: React.ForwardRefExoticComponent<Omit<import("coral-system/dist/esm/types").OmitCommonProps<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("@cuvp1225/foundation").ColProps> & import("@cuvp1225/foundation").ColProps & import("coral-system/dist/esm/types").OmitCommonProps<any, keyof import("@cuvp1225/foundation").ColProps> & {
|
3
|
+
as?: import("coral-system/dist/esm/types").As<any>;
|
4
|
+
} & import("@music163/tango-boot").TangoComponentProps, "ref"> & React.RefAttributes<unknown>>;
|
5
|
+
export declare const RowCombination: React.ForwardRefExoticComponent<Omit<import("coral-system/dist/esm/types").OmitCommonProps<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("@cuvp1225/foundation").RowProps> & import("@cuvp1225/foundation").RowProps & import("coral-system/dist/esm/types").OmitCommonProps<any, keyof import("@cuvp1225/foundation").RowProps> & {
|
6
|
+
as?: import("coral-system/dist/esm/types").As<any>;
|
7
|
+
} & import("@music163/tango-boot").TangoComponentProps, "ref"> & React.RefAttributes<unknown>>;
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import { defineComponent } from '@music163/tango-boot';
|
2
|
+
//import { Grid as AntGrid,Col as AntCol,Row as AntRow } from 'antd';
|
3
|
+
import { AntCol, AntRow } from '@cuvp1225/foundation';
|
4
|
+
import React from 'react';
|
5
|
+
import { Placeholder } from './placeholder';
|
6
|
+
export const ColCombination = defineComponent(AntCol, {
|
7
|
+
name: 'ColCombination',
|
8
|
+
designerConfig: {
|
9
|
+
defaultProps: {
|
10
|
+
children: React.createElement(Placeholder, null),
|
11
|
+
span: 24
|
12
|
+
}
|
13
|
+
}
|
14
|
+
});
|
15
|
+
export const RowCombination = defineComponent(AntRow, {
|
16
|
+
name: 'RowCombination',
|
17
|
+
designerConfig: {
|
18
|
+
defaultProps: {
|
19
|
+
children: React.createElement(Placeholder, null)
|
20
|
+
}
|
21
|
+
}
|
22
|
+
});
|
@@ -1,15 +1 @@
|
|
1
|
-
export
|
2
|
-
export { Each, Link, Text, When } from '@music163/foundation';
|
3
|
-
export { Box } from './box';
|
4
|
-
export { Button, ButtonGroup } from './button';
|
5
|
-
export * from './formily';
|
6
|
-
export { InputNumber } from './input-number';
|
7
|
-
export { Input, TextArea } from './input';
|
8
|
-
export { Modal } from './modal';
|
9
|
-
export * from './page';
|
10
|
-
export * from './placeholder';
|
11
|
-
export * from './section';
|
12
|
-
export { Select } from './select';
|
13
|
-
export { Space } from './space';
|
14
|
-
export { Typography, Title, Paragraph } from './typography';
|
15
|
-
export { Columns, Column } from './columns';
|
1
|
+
export { Button } from 'antd';
|
@@ -1,15 +1,19 @@
|
|
1
|
-
export
|
2
|
-
export { Each, Link, Text, When } from '@
|
3
|
-
export { Box } from './box';
|
4
|
-
export { Button, ButtonGroup } from './button';
|
5
|
-
export * from './formily';
|
6
|
-
export { InputNumber } from './input-number';
|
7
|
-
export { Input, TextArea } from './input';
|
8
|
-
export { Modal } from './modal';
|
9
|
-
export * from './page';
|
10
|
-
export * from './placeholder';
|
11
|
-
export * from './section';
|
12
|
-
export { Select } from './select';
|
13
|
-
export { Space } from './space';
|
14
|
-
export { Typography, Title, Paragraph } from './typography';
|
15
|
-
export { Columns, Column } from './columns'
|
1
|
+
export { Button } from 'antd';
|
2
|
+
// export { Each, Link, Text, When } from '@cuvp1225/foundation';
|
3
|
+
// export { Box } from './box';
|
4
|
+
// export { Button, ButtonGroup } from './button';
|
5
|
+
// export * from './formily';
|
6
|
+
// export { InputNumber } from './input-number';
|
7
|
+
// export { Input, TextArea } from './input';
|
8
|
+
// export { Modal } from './modal';
|
9
|
+
// export * from './page';
|
10
|
+
// export * from './placeholder';
|
11
|
+
// export * from './section';
|
12
|
+
// export { Select } from './select';
|
13
|
+
// export { Space } from './space';
|
14
|
+
// export { Typography, Title, Paragraph } from './typography';
|
15
|
+
// export { Columns, Column } from './columns'
|
16
|
+
//export { MultiColumns } from './multiColumns'
|
17
|
+
//export { Row,Col } from './grid'
|
18
|
+
//export { RowCombination,ColCombination } from './gridCombination'
|
19
|
+
//export { Form,Fieldset,FormItem,FormFooter } from './form'
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { InputNumberProps } from 'antd';
|
2
|
-
export declare const InputNumber: import("react").ForwardRefExoticComponent<Omit<InputNumberProps<
|
3
|
-
children?:
|
2
|
+
export declare const InputNumber: import("react").ForwardRefExoticComponent<Omit<InputNumberProps<import("rc-input-number/lib/utils/MiniDecimal").ValueType> & {
|
3
|
+
children?: React.ReactNode;
|
4
4
|
} & {
|
5
|
-
ref?:
|
5
|
+
ref?: React.Ref<HTMLInputElement> | undefined;
|
6
6
|
} & import("@music163/tango-boot").TangoComponentProps, "ref"> & import("react").RefAttributes<unknown>>;
|
@@ -7,41 +7,41 @@ import { CloseOutlined } from '@ant-design/icons';
|
|
7
7
|
import { defineComponent } from '@music163/tango-boot';
|
8
8
|
import { Placeholder } from './placeholder';
|
9
9
|
import { ShadowContainer } from './shadow-container';
|
10
|
-
const BaseModalWrapper = coral('div', css `
|
11
|
-
position: relative;
|
12
|
-
background-color: #fff;
|
13
|
-
border: 1px solid var(--music-colors-line-normal);
|
14
|
-
box-shadow: var(--music-shadows-lowDown);
|
15
|
-
|
16
|
-
min-width: 600px;
|
17
|
-
|
18
|
-
.ModalPanelHead {
|
19
|
-
padding: 12px;
|
20
|
-
border-bottom: 1px solid var(--music-colors-line-normal);
|
21
|
-
font-size: 16px;
|
22
|
-
font-weight: 500;
|
23
|
-
}
|
24
|
-
|
25
|
-
.ModalPanelClose {
|
26
|
-
position: absolute;
|
27
|
-
top: 12px;
|
28
|
-
right: 12px;
|
29
|
-
color: var(--music-colors-text-secondary);
|
30
|
-
}
|
31
|
-
|
32
|
-
.ModalPanelBody {
|
33
|
-
padding: 12px;
|
34
|
-
}
|
35
|
-
|
36
|
-
.ModalPanelFooter {
|
37
|
-
border-top: 1px solid var(--music-colors-line-normal);
|
38
|
-
padding: 12px;
|
39
|
-
text-align: right;
|
40
|
-
|
41
|
-
> button:not(:last-child) {
|
42
|
-
margin-right: 12px;
|
43
|
-
}
|
44
|
-
}
|
10
|
+
const BaseModalWrapper = coral('div', css `
|
11
|
+
position: relative;
|
12
|
+
background-color: #fff;
|
13
|
+
border: 1px solid var(--music-colors-line-normal);
|
14
|
+
box-shadow: var(--music-shadows-lowDown);
|
15
|
+
|
16
|
+
min-width: 600px;
|
17
|
+
|
18
|
+
.ModalPanelHead {
|
19
|
+
padding: 12px;
|
20
|
+
border-bottom: 1px solid var(--music-colors-line-normal);
|
21
|
+
font-size: 16px;
|
22
|
+
font-weight: 500;
|
23
|
+
}
|
24
|
+
|
25
|
+
.ModalPanelClose {
|
26
|
+
position: absolute;
|
27
|
+
top: 12px;
|
28
|
+
right: 12px;
|
29
|
+
color: var(--music-colors-text-secondary);
|
30
|
+
}
|
31
|
+
|
32
|
+
.ModalPanelBody {
|
33
|
+
padding: 12px;
|
34
|
+
}
|
35
|
+
|
36
|
+
.ModalPanelFooter {
|
37
|
+
border-top: 1px solid var(--music-colors-line-normal);
|
38
|
+
padding: 12px;
|
39
|
+
text-align: right;
|
40
|
+
|
41
|
+
> button:not(:last-child) {
|
42
|
+
margin-right: 12px;
|
43
|
+
}
|
44
|
+
}
|
45
45
|
`);
|
46
46
|
function ModalDesigner(_a) {
|
47
47
|
var { title = '弹窗标题', children, onOk, onCancel, footer, cancelText = '取消', okText = '确认', style } = _a, rest = __rest(_a, ["title", "children", "onOk", "onCancel", "footer", "cancelText", "okText", "style"]);
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
export declare const MultiColumns: React.ForwardRefExoticComponent<Omit<import("coral-system/dist/esm/types").OmitCommonProps<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("@cuvp1225/foundation").multiColumnProps> & import("@cuvp1225/foundation").multiColumnProps & import("coral-system/dist/esm/types").OmitCommonProps<any, keyof import("@cuvp1225/foundation").multiColumnProps> & {
|
3
|
+
as?: import("coral-system/dist/esm/types").As<any>;
|
4
|
+
} & import("@music163/tango-boot").TangoComponentProps, "ref"> & React.RefAttributes<unknown>>;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { defineComponent } from '@music163/tango-boot';
|
3
|
+
import { multicolumns as BaseColumns, } from '@cuvp1225/foundation';
|
4
|
+
import { Placeholder } from './placeholder';
|
5
|
+
export const MultiColumns = defineComponent(BaseColumns, {
|
6
|
+
name: 'MultiColumns',
|
7
|
+
designerConfig: {
|
8
|
+
defaultProps: {
|
9
|
+
children: React.createElement(Placeholder, null),
|
10
|
+
columns: 1
|
11
|
+
},
|
12
|
+
},
|
13
|
+
});
|
@@ -1,17 +1,17 @@
|
|
1
1
|
import { __rest } from "tslib";
|
2
2
|
import React, { useEffect } from 'react';
|
3
3
|
import { css } from 'coral-system';
|
4
|
-
import { Box } from '@
|
4
|
+
import { Box } from '@cuvp1225/foundation';
|
5
5
|
import { PageHeader } from 'antd';
|
6
6
|
import { defineComponent } from '@music163/tango-boot';
|
7
|
-
const pageStyle = css `
|
8
|
-
.td-pageHeader {
|
9
|
-
background: #fff;
|
10
|
-
}
|
11
|
-
|
12
|
-
.td-pageContent > .td-section {
|
13
|
-
margin-bottom: 24px;
|
14
|
-
}
|
7
|
+
const pageStyle = css `
|
8
|
+
.td-pageHeader {
|
9
|
+
background: #fff;
|
10
|
+
}
|
11
|
+
|
12
|
+
.td-pageContent > .td-section {
|
13
|
+
margin-bottom: 24px;
|
14
|
+
}
|
15
15
|
`;
|
16
16
|
function View(_a) {
|
17
17
|
var { title, subTitle, headerExtra, headerFooter, children, onMount, onUnmount } = _a, rest = __rest(_a, ["title", "subTitle", "headerExtra", "headerFooter", "children", "onMount", "onUnmount"]);
|
@@ -1,26 +1,25 @@
|
|
1
1
|
import { __rest } from "tslib";
|
2
2
|
import React from 'react';
|
3
3
|
import { css } from 'coral-system';
|
4
|
-
import { Box } from '@
|
4
|
+
import { Box } from '@cuvp1225/foundation';
|
5
5
|
import { defineComponent } from '@music163/tango-boot';
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
padding-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
}
|
6
|
+
const placeholderStyle = css `
|
7
|
+
display: flex;
|
8
|
+
flex-direction: column;
|
9
|
+
align-items: center;
|
10
|
+
justify-content: center;
|
11
|
+
background-color: #efefef;
|
12
|
+
color: #333;
|
13
|
+
border: 1px solid #666;
|
14
|
+
padding-left: 12px;
|
15
|
+
padding-right: 12px;
|
16
|
+
user-select: none;
|
17
|
+
overflow: hidden;
|
18
|
+
white-space: nowrap;
|
19
|
+
|
20
|
+
& ~ .tango-placeholder {
|
21
|
+
margin-top: 12px;
|
22
|
+
}
|
24
23
|
`;
|
25
24
|
const sizeMap = {
|
26
25
|
small: '32px',
|
@@ -28,11 +27,10 @@ const sizeMap = {
|
|
28
27
|
large: '80px',
|
29
28
|
};
|
30
29
|
function PlaceholderView(_a) {
|
31
|
-
var { size = 'medium',
|
30
|
+
var { size = 'medium',
|
31
|
+
//placeholder = '点击或拖拽组件/区块到这里',
|
32
|
+
placeholder = '点击或拖拽组件/区块到这里' } = _a, rest = __rest(_a, ["size", "placeholder"]);
|
32
33
|
const height = sizeMap[size];
|
33
|
-
return (React.createElement(Box, Object.assign({ className: "tango-placeholder", height: height, css: placeholderStyle }, rest),
|
34
|
-
React.createElement(TangoEventButton, { type: "text", payload: { type: 'addComponent' } },
|
35
|
-
placeholder,
|
36
|
-
" ")));
|
34
|
+
return (React.createElement(Box, Object.assign({ className: "tango-placeholder", height: height, css: placeholderStyle }, rest), placeholder));
|
37
35
|
}
|
38
36
|
export const Placeholder = defineComponent(PlaceholderView);
|