@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
package/dist/index.less
CHANGED
@@ -1 +1 @@
|
|
1
|
-
@import '~antd/dist/antd.less';
|
1
|
+
@import '~antd/dist/antd.less';
|
@@ -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>>;
|
@@ -4,7 +4,7 @@ exports.Box = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
5
5
|
const react_1 = tslib_1.__importDefault(require("react"));
|
6
6
|
const tango_boot_1 = require("@music163/tango-boot");
|
7
|
-
const foundation_1 = require("@
|
7
|
+
const foundation_1 = require("@cuvp1225/foundation");
|
8
8
|
const placeholder_1 = require("./placeholder");
|
9
9
|
exports.Box = (0, tango_boot_1.defineComponent)(foundation_1.Box, {
|
10
10
|
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>>;
|
@@ -4,7 +4,7 @@ exports.Column = exports.Columns = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
5
5
|
const react_1 = tslib_1.__importDefault(require("react"));
|
6
6
|
const tango_boot_1 = require("@music163/tango-boot");
|
7
|
-
const foundation_1 = require("@
|
7
|
+
const foundation_1 = require("@cuvp1225/foundation");
|
8
8
|
const placeholder_1 = require("./placeholder");
|
9
9
|
exports.Columns = (0, tango_boot_1.defineComponent)(foundation_1.Columns, {
|
10
10
|
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,17 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.FormFooter = exports.FormItem = exports.Fieldset = exports.Form = void 0;
|
4
|
+
const tango_boot_1 = require("@music163/tango-boot");
|
5
|
+
const antd_1 = require("antd");
|
6
|
+
exports.Form = (0, tango_boot_1.defineComponent)(antd_1.Form, {
|
7
|
+
name: 'Form'
|
8
|
+
});
|
9
|
+
exports.Fieldset = (0, tango_boot_1.defineComponent)(antd_1.Form, {
|
10
|
+
name: 'Fieldset',
|
11
|
+
});
|
12
|
+
exports.FormItem = (0, tango_boot_1.defineComponent)(antd_1.Form.Item, {
|
13
|
+
name: 'FormItem'
|
14
|
+
});
|
15
|
+
exports.FormFooter = (0, tango_boot_1.defineComponent)(antd_1.Form, {
|
16
|
+
name: 'FormFooter'
|
17
|
+
});
|
@@ -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';
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.FormilyFormConsumer = exports.createFormilyForm = exports.FormilyReset = exports.FormilySubmit = exports.FormilyFormFooter = exports.FormilyForm = exports.FormilyFormItem = void 0;
|
4
4
|
const tslib_1 = require("tslib");
|
5
5
|
const react_1 = tslib_1.__importDefault(require("react"));
|
6
|
-
const formily_1 = require("@
|
6
|
+
const formily_1 = require("@cuvp1225/formily");
|
7
7
|
const tango_boot_1 = require("@music163/tango-boot");
|
8
8
|
const componentMap = new Map();
|
9
9
|
const register = (name, component) => {
|
@@ -57,6 +57,6 @@ exports.FormilySubmit = (0, tango_boot_1.defineComponent)(formily_1.Submit, {
|
|
57
57
|
exports.FormilyReset = (0, tango_boot_1.defineComponent)(formily_1.Reset, {
|
58
58
|
name: 'FormilyReset',
|
59
59
|
});
|
60
|
-
var formily_2 = require("@
|
60
|
+
var formily_2 = require("@cuvp1225/formily");
|
61
61
|
Object.defineProperty(exports, "createFormilyForm", { enumerable: true, get: function () { return formily_2.createForm; } });
|
62
62
|
Object.defineProperty(exports, "FormilyFormConsumer", { enumerable: true, get: function () { return formily_2.FormConsumer; } });
|
@@ -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,28 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.Row = exports.Col = void 0;
|
4
|
+
const tslib_1 = require("tslib");
|
5
|
+
const tango_boot_1 = require("@music163/tango-boot");
|
6
|
+
//import { Columns as BaseCol, Column as BaseRow } from '@music163/foundation';
|
7
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
8
|
+
const placeholder_1 = require("./placeholder");
|
9
|
+
const antd_1 = require("antd");
|
10
|
+
exports.Col = (0, tango_boot_1.defineComponent)(antd_1.Col, {
|
11
|
+
name: 'Col',
|
12
|
+
designerConfig: {
|
13
|
+
// defaultProps: {
|
14
|
+
// children: <Placeholder />,
|
15
|
+
// span: 24
|
16
|
+
// }
|
17
|
+
defaultProps: react_1.default.createElement(placeholder_1.Placeholder, null),
|
18
|
+
}
|
19
|
+
});
|
20
|
+
exports.Row = (0, tango_boot_1.defineComponent)(antd_1.Row, {
|
21
|
+
name: 'Row',
|
22
|
+
designerConfig: {
|
23
|
+
// defaultProps: {
|
24
|
+
// children: <Placeholder />
|
25
|
+
// }
|
26
|
+
defaultProps: react_1.default.createElement(placeholder_1.Placeholder, null),
|
27
|
+
}
|
28
|
+
});
|
@@ -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,26 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.RowCombination = exports.ColCombination = void 0;
|
4
|
+
const tslib_1 = require("tslib");
|
5
|
+
const tango_boot_1 = require("@music163/tango-boot");
|
6
|
+
//import { Grid as AntGrid,Col as AntCol,Row as AntRow } from 'antd';
|
7
|
+
const foundation_1 = require("@cuvp1225/foundation");
|
8
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
9
|
+
const placeholder_1 = require("./placeholder");
|
10
|
+
exports.ColCombination = (0, tango_boot_1.defineComponent)(foundation_1.AntCol, {
|
11
|
+
name: 'ColCombination',
|
12
|
+
designerConfig: {
|
13
|
+
defaultProps: {
|
14
|
+
children: react_1.default.createElement(placeholder_1.Placeholder, null),
|
15
|
+
span: 24
|
16
|
+
}
|
17
|
+
}
|
18
|
+
});
|
19
|
+
exports.RowCombination = (0, tango_boot_1.defineComponent)(foundation_1.AntRow, {
|
20
|
+
name: 'RowCombination',
|
21
|
+
designerConfig: {
|
22
|
+
defaultProps: {
|
23
|
+
children: react_1.default.createElement(placeholder_1.Placeholder, null)
|
24
|
+
}
|
25
|
+
}
|
26
|
+
});
|
@@ -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,37 +1,23 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
tslib_1.__exportStar(require("./page"), exports);
|
25
|
-
tslib_1.__exportStar(require("./placeholder"), exports);
|
26
|
-
tslib_1.__exportStar(require("./section"), exports);
|
27
|
-
var select_1 = require("./select");
|
28
|
-
Object.defineProperty(exports, "Select", { enumerable: true, get: function () { return select_1.Select; } });
|
29
|
-
var space_1 = require("./space");
|
30
|
-
Object.defineProperty(exports, "Space", { enumerable: true, get: function () { return space_1.Space; } });
|
31
|
-
var typography_1 = require("./typography");
|
32
|
-
Object.defineProperty(exports, "Typography", { enumerable: true, get: function () { return typography_1.Typography; } });
|
33
|
-
Object.defineProperty(exports, "Title", { enumerable: true, get: function () { return typography_1.Title; } });
|
34
|
-
Object.defineProperty(exports, "Paragraph", { enumerable: true, get: function () { return typography_1.Paragraph; } });
|
35
|
-
var columns_1 = require("./columns");
|
36
|
-
Object.defineProperty(exports, "Columns", { enumerable: true, get: function () { return columns_1.Columns; } });
|
37
|
-
Object.defineProperty(exports, "Column", { enumerable: true, get: function () { return columns_1.Column; } });
|
3
|
+
exports.Button = void 0;
|
4
|
+
var antd_1 = require("antd");
|
5
|
+
Object.defineProperty(exports, "Button", { enumerable: true, get: function () { return antd_1.Button; } });
|
6
|
+
// export { Each, Link, Text, When } from '@cuvp1225/foundation';
|
7
|
+
// export { Box } from './box';
|
8
|
+
// export { Button, ButtonGroup } from './button';
|
9
|
+
// export * from './formily';
|
10
|
+
// export { InputNumber } from './input-number';
|
11
|
+
// export { Input, TextArea } from './input';
|
12
|
+
// export { Modal } from './modal';
|
13
|
+
// export * from './page';
|
14
|
+
// export * from './placeholder';
|
15
|
+
// export * from './section';
|
16
|
+
// export { Select } from './select';
|
17
|
+
// export { Space } from './space';
|
18
|
+
// export { Typography, Title, Paragraph } from './typography';
|
19
|
+
// export { Columns, Column } from './columns'
|
20
|
+
//export { MultiColumns } from './multiColumns'
|
21
|
+
//export { Row,Col } from './grid'
|
22
|
+
//export { RowCombination,ColCombination } from './gridCombination'
|
23
|
+
//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>>;
|
@@ -10,41 +10,41 @@ const icons_1 = require("@ant-design/icons");
|
|
10
10
|
const tango_boot_1 = require("@music163/tango-boot");
|
11
11
|
const placeholder_1 = require("./placeholder");
|
12
12
|
const shadow_container_1 = require("./shadow-container");
|
13
|
-
const BaseModalWrapper = (0, coral_system_1.coral)('div', (0, styled_components_1.css) `
|
14
|
-
position: relative;
|
15
|
-
background-color: #fff;
|
16
|
-
border: 1px solid var(--music-colors-line-normal);
|
17
|
-
box-shadow: var(--music-shadows-lowDown);
|
18
|
-
|
19
|
-
min-width: 600px;
|
20
|
-
|
21
|
-
.ModalPanelHead {
|
22
|
-
padding: 12px;
|
23
|
-
border-bottom: 1px solid var(--music-colors-line-normal);
|
24
|
-
font-size: 16px;
|
25
|
-
font-weight: 500;
|
26
|
-
}
|
27
|
-
|
28
|
-
.ModalPanelClose {
|
29
|
-
position: absolute;
|
30
|
-
top: 12px;
|
31
|
-
right: 12px;
|
32
|
-
color: var(--music-colors-text-secondary);
|
33
|
-
}
|
34
|
-
|
35
|
-
.ModalPanelBody {
|
36
|
-
padding: 12px;
|
37
|
-
}
|
38
|
-
|
39
|
-
.ModalPanelFooter {
|
40
|
-
border-top: 1px solid var(--music-colors-line-normal);
|
41
|
-
padding: 12px;
|
42
|
-
text-align: right;
|
43
|
-
|
44
|
-
> button:not(:last-child) {
|
45
|
-
margin-right: 12px;
|
46
|
-
}
|
47
|
-
}
|
13
|
+
const BaseModalWrapper = (0, coral_system_1.coral)('div', (0, styled_components_1.css) `
|
14
|
+
position: relative;
|
15
|
+
background-color: #fff;
|
16
|
+
border: 1px solid var(--music-colors-line-normal);
|
17
|
+
box-shadow: var(--music-shadows-lowDown);
|
18
|
+
|
19
|
+
min-width: 600px;
|
20
|
+
|
21
|
+
.ModalPanelHead {
|
22
|
+
padding: 12px;
|
23
|
+
border-bottom: 1px solid var(--music-colors-line-normal);
|
24
|
+
font-size: 16px;
|
25
|
+
font-weight: 500;
|
26
|
+
}
|
27
|
+
|
28
|
+
.ModalPanelClose {
|
29
|
+
position: absolute;
|
30
|
+
top: 12px;
|
31
|
+
right: 12px;
|
32
|
+
color: var(--music-colors-text-secondary);
|
33
|
+
}
|
34
|
+
|
35
|
+
.ModalPanelBody {
|
36
|
+
padding: 12px;
|
37
|
+
}
|
38
|
+
|
39
|
+
.ModalPanelFooter {
|
40
|
+
border-top: 1px solid var(--music-colors-line-normal);
|
41
|
+
padding: 12px;
|
42
|
+
text-align: right;
|
43
|
+
|
44
|
+
> button:not(:last-child) {
|
45
|
+
margin-right: 12px;
|
46
|
+
}
|
47
|
+
}
|
48
48
|
`);
|
49
49
|
function ModalDesigner(_a) {
|
50
50
|
var { title = '弹窗标题', children, onOk, onCancel, footer, cancelText = '取消', okText = '确认', style } = _a, rest = tslib_1.__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,17 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.MultiColumns = void 0;
|
4
|
+
const tslib_1 = require("tslib");
|
5
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
6
|
+
const tango_boot_1 = require("@music163/tango-boot");
|
7
|
+
const foundation_1 = require("@cuvp1225/foundation");
|
8
|
+
const placeholder_1 = require("./placeholder");
|
9
|
+
exports.MultiColumns = (0, tango_boot_1.defineComponent)(foundation_1.multicolumns, {
|
10
|
+
name: 'MultiColumns',
|
11
|
+
designerConfig: {
|
12
|
+
defaultProps: {
|
13
|
+
children: react_1.default.createElement(placeholder_1.Placeholder, null),
|
14
|
+
columns: 1
|
15
|
+
},
|
16
|
+
},
|
17
|
+
});
|
@@ -4,17 +4,17 @@ exports.Page = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
5
5
|
const react_1 = tslib_1.__importStar(require("react"));
|
6
6
|
const coral_system_1 = require("coral-system");
|
7
|
-
const foundation_1 = require("@
|
7
|
+
const foundation_1 = require("@cuvp1225/foundation");
|
8
8
|
const antd_1 = require("antd");
|
9
9
|
const tango_boot_1 = require("@music163/tango-boot");
|
10
|
-
const pageStyle = (0, coral_system_1.css) `
|
11
|
-
.td-pageHeader {
|
12
|
-
background: #fff;
|
13
|
-
}
|
14
|
-
|
15
|
-
.td-pageContent > .td-section {
|
16
|
-
margin-bottom: 24px;
|
17
|
-
}
|
10
|
+
const pageStyle = (0, coral_system_1.css) `
|
11
|
+
.td-pageHeader {
|
12
|
+
background: #fff;
|
13
|
+
}
|
14
|
+
|
15
|
+
.td-pageContent > .td-section {
|
16
|
+
margin-bottom: 24px;
|
17
|
+
}
|
18
18
|
`;
|
19
19
|
function View(_a) {
|
20
20
|
var { title, subTitle, headerExtra, headerFooter, children, onMount, onUnmount } = _a, rest = tslib_1.__rest(_a, ["title", "subTitle", "headerExtra", "headerFooter", "children", "onMount", "onUnmount"]);
|
@@ -4,26 +4,25 @@ exports.Placeholder = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
5
5
|
const react_1 = tslib_1.__importDefault(require("react"));
|
6
6
|
const coral_system_1 = require("coral-system");
|
7
|
-
const foundation_1 = require("@
|
7
|
+
const foundation_1 = require("@cuvp1225/foundation");
|
8
8
|
const tango_boot_1 = require("@music163/tango-boot");
|
9
|
-
const
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
padding-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
}
|
9
|
+
const placeholderStyle = (0, coral_system_1.css) `
|
10
|
+
display: flex;
|
11
|
+
flex-direction: column;
|
12
|
+
align-items: center;
|
13
|
+
justify-content: center;
|
14
|
+
background-color: #efefef;
|
15
|
+
color: #333;
|
16
|
+
border: 1px solid #666;
|
17
|
+
padding-left: 12px;
|
18
|
+
padding-right: 12px;
|
19
|
+
user-select: none;
|
20
|
+
overflow: hidden;
|
21
|
+
white-space: nowrap;
|
22
|
+
|
23
|
+
& ~ .tango-placeholder {
|
24
|
+
margin-top: 12px;
|
25
|
+
}
|
27
26
|
`;
|
28
27
|
const sizeMap = {
|
29
28
|
small: '32px',
|
@@ -31,11 +30,10 @@ const sizeMap = {
|
|
31
30
|
large: '80px',
|
32
31
|
};
|
33
32
|
function PlaceholderView(_a) {
|
34
|
-
var { size = 'medium',
|
33
|
+
var { size = 'medium',
|
34
|
+
//placeholder = '点击或拖拽组件/区块到这里',
|
35
|
+
placeholder = '点击或拖拽组件/区块到这里' } = _a, rest = tslib_1.__rest(_a, ["size", "placeholder"]);
|
35
36
|
const height = sizeMap[size];
|
36
|
-
return (react_1.default.createElement(foundation_1.Box, Object.assign({ className: "tango-placeholder", height: height, css: placeholderStyle }, rest),
|
37
|
-
react_1.default.createElement(tango_event_button_1.TangoEventButton, { type: "text", payload: { type: 'addComponent' } },
|
38
|
-
placeholder,
|
39
|
-
" ")));
|
37
|
+
return (react_1.default.createElement(foundation_1.Box, Object.assign({ className: "tango-placeholder", height: height, css: placeholderStyle }, rest), placeholder));
|
40
38
|
}
|
41
39
|
exports.Placeholder = (0, tango_boot_1.defineComponent)(PlaceholderView);
|
@@ -4,7 +4,7 @@ exports.Section = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
5
5
|
const react_1 = tslib_1.__importDefault(require("react"));
|
6
6
|
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
7
|
-
const foundation_1 = require("@
|
7
|
+
const foundation_1 = require("@cuvp1225/foundation");
|
8
8
|
const tango_boot_1 = require("@music163/tango-boot");
|
9
9
|
const placeholder_1 = require("./placeholder");
|
10
10
|
function SectionView(_a) {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { SelectProps } from 'antd';
|
2
2
|
export declare const Select: import("react").ForwardRefExoticComponent<Omit<SelectProps<unknown, import("rc-select/lib/Select").BaseOptionType | import("rc-select/lib/Select").DefaultOptionType> & {
|
3
|
-
children?:
|
3
|
+
children?: React.ReactNode;
|
4
4
|
} & {
|
5
|
-
ref?:
|
5
|
+
ref?: React.Ref<import("antd").RefSelectProps> | undefined;
|
6
6
|
} & import("@music163/tango-boot").TangoComponentProps, "ref"> & import("react").RefAttributes<unknown>>;
|
@@ -4,15 +4,15 @@ exports.ShadowContainer = ShadowContainer;
|
|
4
4
|
const tslib_1 = require("tslib");
|
5
5
|
const react_1 = tslib_1.__importDefault(require("react"));
|
6
6
|
const coral_system_1 = require("coral-system");
|
7
|
-
const badgeStyle = (0, coral_system_1.css) `
|
8
|
-
position: absolute;
|
9
|
-
right: 0;
|
10
|
-
top: 0;
|
11
|
-
font-size: 12px;
|
12
|
-
line-height: 14px;
|
13
|
-
outline: none;
|
14
|
-
border: 0;
|
15
|
-
z-index: 1;
|
7
|
+
const badgeStyle = (0, coral_system_1.css) `
|
8
|
+
position: absolute;
|
9
|
+
right: 0;
|
10
|
+
top: 0;
|
11
|
+
font-size: 12px;
|
12
|
+
line-height: 14px;
|
13
|
+
outline: none;
|
14
|
+
border: 0;
|
15
|
+
z-index: 1;
|
16
16
|
`;
|
17
17
|
const colorPallet = {
|
18
18
|
effect: ['#531dab', '#d3adf7', '#f9f0ff'],
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { Typography as AntTypography } from 'antd';
|
2
2
|
import React from 'react';
|
3
|
-
export declare const Title: React.ForwardRefExoticComponent<Omit<import("antd/lib/typography/Title").TitleProps & React.RefAttributes<
|
4
|
-
export declare const Paragraph: React.ForwardRefExoticComponent<Omit<import("antd/lib/typography/Paragraph").ParagraphProps & React.RefAttributes<
|
3
|
+
export declare const Title: React.ForwardRefExoticComponent<Omit<import("antd/lib/typography/Title").TitleProps & React.RefAttributes<HTMLElement> & import("@music163/tango-boot").TangoComponentProps, "ref"> & React.RefAttributes<unknown>>;
|
4
|
+
export declare const Paragraph: React.ForwardRefExoticComponent<Omit<import("antd/lib/typography/Paragraph").ParagraphProps & React.RefAttributes<HTMLElement> & import("@music163/tango-boot").TangoComponentProps, "ref"> & React.RefAttributes<unknown>>;
|
5
5
|
type TypographyComponent = React.ForwardRefExoticComponent<any & React.RefAttributes<React.ReactElement>> & {
|
6
6
|
Title: typeof Title;
|
7
7
|
Paragraph: typeof Paragraph;
|
package/lib/cjs/designer.js
CHANGED
@@ -14,9 +14,9 @@ exports.menuData = {
|
|
14
14
|
title: '输入',
|
15
15
|
items: ['Input', 'InputNumber', 'Select'],
|
16
16
|
},
|
17
|
-
{
|
18
|
-
|
19
|
-
|
20
|
-
}
|
17
|
+
// {
|
18
|
+
// title: 'Formily表单',
|
19
|
+
// items: ['FormilyForm', 'FormilyFormItem', 'FormilySubmit', 'FormilyReset'],
|
20
|
+
// }
|
21
21
|
],
|
22
22
|
};
|
package/lib/cjs/index.less
CHANGED
@@ -1 +1 @@
|
|
1
|
-
@import '~antd/dist/antd.less';
|
1
|
+
@import '~antd/dist/antd.less';
|