@cuvp1225/antd 0.3.25 → 0.3.27

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.
@@ -4,7 +4,7 @@ export { Box } from './box';
4
4
  export { Button, ButtonGroup } from './button';
5
5
  export * from './formily';
6
6
  export { InputNumber } from './input-number';
7
- export { Input, TextArea } from './input';
7
+ // export { Input, TextArea } from './input';
8
8
  export { Modalnew } from './modal';
9
9
  export * from './page';
10
10
  export * from './placeholder';
@@ -18,6 +18,8 @@ export { Popconfirm } from './popconfirm';
18
18
  export { Drawer } from "./drawer";
19
19
  export { DatePicker } from "./date-picker";
20
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'
@@ -2,19 +2,19 @@ import { __rest } from "tslib";
2
2
  import { Popconfirm as AntPopconfirm } from 'antd';
3
3
  import { defineComponent } from '@music163/tango-boot';
4
4
  import React, { useEffect } from 'react';
5
- import { SLOT } from '@music163/tango-helpers';
6
5
  function PopconfirmDesigner(_a) {
7
- var { children, title } = _a, _b = SLOT.dnd, dataDnd = _a[_b], _c = SLOT.id, dataId = _a[_c], { style } = _a, rest = __rest(_a, ["children", "title", typeof _b === "symbol" ? _b : _b + "", typeof _c === "symbol" ? _c : _c + "", "style"]);
6
+ var { children, title, dataDnd, dataId, style } = _a, rest = __rest(_a, ["children", "title", "dataDnd", "dataId", "style"]);
8
7
  useEffect(() => {
9
8
  console.log('PopconfirmDesigner', dataDnd, dataId, rest);
10
9
  }, []);
11
10
  return (React.createElement("div", { id: "popconfirSwrapper", "data-dnd": dataDnd, "data-id": dataId },
12
- React.createElement(AntPopconfirm, Object.assign({ title: title }, rest, { style: style }), children)));
11
+ React.createElement(AntPopconfirm, Object.assign({ title: title, "data-dnd": dataDnd, "data-id": dataId }, rest, { style: style }), children)));
13
12
  }
14
13
  export const Popconfirm = defineComponent(AntPopconfirm, {
15
14
  name: 'Popconfirm',
16
15
  designerConfig: {
17
16
  render({ designerProps, originalProps }) {
17
+ console.log("Popconfirm: designerProps:", designerProps, "originalProps:", originalProps);
18
18
  return React.createElement(PopconfirmDesigner, Object.assign({ title: "Are you sure?" }, designerProps, originalProps));
19
19
  },
20
20
  },
@@ -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.25",
3
+ "version": "0.3.27",
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": "618ecae27551f4d409bde79dd9f4819aac3971dd"
57
+ "gitHead": "5ab1ac833daed1f20a1d028b3fd541d73269ad57"
58
58
  }