@cuvp1225/antd 0.3.24 → 0.3.26

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.
@@ -10,10 +10,12 @@ export * from './placeholder';
10
10
  export * from './section';
11
11
  export { Select } from './select';
12
12
  export { Space } from './space';
13
- export { Typography, Title, Paragraph } from './typography';
13
+ export { Typography, Title, Paragraph, Text } from './typography';
14
14
  export { Columns, Column } from './columns';
15
15
  export { Row1 } from './row';
16
16
  export { Popconfirm } from './popconfirm';
17
17
  export { Drawer } from "./drawer";
18
18
  export { DatePicker } from "./date-picker";
19
- export { Radio } from "./radio";
19
+ export { Radio, RadioGroup } from "./radio";
20
+ export { Checkbox, CheckboxGroup } from "./checkbox";
21
+ export { Cascader } from "./cascader";
@@ -11,13 +11,15 @@ export * from './placeholder';
11
11
  export * from './section';
12
12
  export { Select } from './select';
13
13
  export { Space } from './space';
14
- export { Typography, Title, Paragraph } from './typography';
14
+ export { Typography, Title, Paragraph, Text } from './typography';
15
15
  export { Columns, Column } from './columns';
16
16
  export { Row1 } from './row';
17
17
  export { Popconfirm } from './popconfirm';
18
18
  export { Drawer } from "./drawer";
19
19
  export { DatePicker } from "./date-picker";
20
- export { Radio } from "./radio";
20
+ export { Radio, RadioGroup } from "./radio";
21
+ export { Checkbox, CheckboxGroup } from "./checkbox";
22
+ export { Cascader } from "./cascader";
21
23
  //export { MultiColumns } from './multiColumns'
22
24
  //export { Row,Col } from './grid'
23
25
  //export { RowCombination,ColCombination } from './gridCombination'
@@ -15,6 +15,7 @@ export const Popconfirm = defineComponent(AntPopconfirm, {
15
15
  name: 'Popconfirm',
16
16
  designerConfig: {
17
17
  render({ designerProps, originalProps }) {
18
+ console.log("Popconfirm: designerProps:", designerProps, "originalProps:", originalProps);
18
19
  return React.createElement(PopconfirmDesigner, Object.assign({ title: "Are you sure?" }, designerProps, originalProps));
19
20
  },
20
21
  },
@@ -1,13 +1,13 @@
1
1
  import { Typography as AntTypography } from 'antd';
2
2
  import React from 'react';
3
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 Text: React.ForwardRefExoticComponent<Omit<import("antd/lib/typography/Text").TextProps & React.RefAttributes<HTMLSpanElement> & import("@music163/tango-boot").TangoComponentProps, "ref"> & React.RefAttributes<unknown>>;
4
5
  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
6
  type TypographyComponent = React.ForwardRefExoticComponent<any & React.RefAttributes<React.ReactElement>> & {
6
7
  Title: typeof Title;
7
8
  Paragraph: typeof Paragraph;
8
9
  Link: typeof AntTypography.Link;
9
- Text: typeof AntTypography.Text;
10
+ Text: typeof Text;
10
11
  };
11
12
  export declare const Typography: TypographyComponent;
12
- export declare const Text: React.ForwardRefExoticComponent<Omit<import("antd/lib/typography/Text").TextProps & React.RefAttributes<HTMLSpanElement> & import("@music163/tango-boot").TangoComponentProps, "ref"> & React.RefAttributes<unknown>>;
13
13
  export {};
@@ -5,6 +5,9 @@ import { Placeholder } from './placeholder';
5
5
  export const Title = defineComponent(AntTypography.Title, {
6
6
  name: 'Title',
7
7
  });
8
+ export const Text = defineComponent(AntTypography.Text, {
9
+ name: 'Text',
10
+ });
8
11
  export const Paragraph = defineComponent(AntTypography.Paragraph, {
9
12
  name: 'Paragraph',
10
13
  });
@@ -16,10 +19,7 @@ export const Typography = defineComponent(AntTypography, {
16
19
  },
17
20
  },
18
21
  });
19
- export const Text = defineComponent(Typography.Text, {
20
- name: 'Text',
21
- });
22
22
  Typography.Title = Title;
23
23
  Typography.Paragraph = Paragraph;
24
24
  Typography.Link = AntTypography.Link;
25
- Typography.Text = AntTypography.Text;
25
+ Typography.Text = Text;
@@ -87,7 +87,7 @@ export const Cascader = {
87
87
  name: 'loadData',
88
88
  title: '动态加载选项',
89
89
  setter: 'expressionSetter',
90
- autoCompleteOptions: ['(selectedOptions) => {} '],
90
+ autoCompleteOptions: ['(selectedOptions) => {\nconsole.log("选择", selectedOptions);\nconst targetOption = selectedOptions[selectedOptions.length - 1];\nconsole.log("targetOption", targetOption);\nsetTimeout(() => {\ntargetOption.children = [\n{ label: `${targetOption.label} Dynamic 1`, value: "dynamic1" },\n{ label: `${targetOption.label} Dynamic 2`, value: "dynamic2" },\n];\nconsole.log("targetOption1", targetOption);\nthis.setState({ optionsList: [...this.state.optionsList] });\n }, 1000);\n} '],
91
91
  tip: '无法与 showSearch 一起使用',
92
92
  },
93
93
  ],
@@ -157,7 +157,7 @@ export const RadioGroup = {
157
157
  { label: '按钮', value: 'button' },
158
158
  ],
159
159
  },
160
- group: 'advanced',
160
+ group: 'basic',
161
161
  },
162
162
  {
163
163
  name: 'size',
@@ -9,7 +9,7 @@ export const Tree = {
9
9
  props: [
10
10
  ...StylePrototypes,
11
11
  {
12
- name: 'dataSource',
12
+ name: 'treeData',
13
13
  title: '数据源',
14
14
  tip: '支持异步数据载入',
15
15
  setter: 'expressionSetter',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cuvp1225/antd",
3
- "version": "0.3.24",
3
+ "version": "0.3.26",
4
4
  "description": "antd components for tango app",
5
5
  "author": "wwsun <ww.sww@outlook.com>",
6
6
  "homepage": "https://github.com/netease/tango-components#readme",
@@ -54,5 +54,5 @@
54
54
  "classnames": "^2.3.2",
55
55
  "coral-system": "^1.0.6"
56
56
  },
57
- "gitHead": "cd1802cc91dad8394a3e12afe5c56f99cbda0c5c"
57
+ "gitHead": "8199f7e371113c0875585f18460dbfd3584ea799"
58
58
  }