ztxkui 4.2.18-100 → 4.2.18-101
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/dist/TreeSelectDemo.js +2 -1
- package/dist/components/DatePicker/data-picker.d.ts +3 -1
- package/dist/components/Input/input.d.ts +2 -3
- package/dist/components/Layout/layout.d.ts +4 -4
- package/dist/components/Menu/menu.d.ts +1 -1
- package/dist/components/TreeSelect/index.d.ts +1 -1
- package/package.json +2 -2
package/dist/TreeSelectDemo.js
CHANGED
|
@@ -23,6 +23,7 @@ function TreeSelectDemo() {
|
|
|
23
23
|
{
|
|
24
24
|
id: '1295909488001540097',
|
|
25
25
|
parentId: '0',
|
|
26
|
+
selectable: false,
|
|
26
27
|
children: [
|
|
27
28
|
{
|
|
28
29
|
id: '1399639936446418946',
|
|
@@ -65,7 +66,7 @@ function TreeSelectDemo() {
|
|
|
65
66
|
React.createElement(Link, { to: "/test" }, "test"),
|
|
66
67
|
React.createElement("h1", null, i18next.t('作为演示使用')),
|
|
67
68
|
React.createElement("h2", null, i18next.t('如果数据是通过外部获取的,可以通过传递list属性')),
|
|
68
|
-
React.createElement(EnhanceTreeSelect, { style: selectStyle, treeData: treeData, treeNodeLabelProp: "key" }),
|
|
69
|
+
React.createElement(EnhanceTreeSelect, { style: selectStyle, treeData: treeData, treeNodeLabelProp: "key", onSelect: function (value) { return console.log(value); }, treeExpandAction: "click" }),
|
|
69
70
|
React.createElement("h2", null, i18next.t('异步获取数据,一次性获取数据')),
|
|
70
71
|
React.createElement(EnhanceTreeSelect, { style: selectStyle, url: "http://192.168.0.83:8000/api/zmdms-system/dept/lazy-tree", params: JSON.stringify({
|
|
71
72
|
status: 50,
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { Dayjs } from 'dayjs';
|
|
2
2
|
import 'antd/es/date-picker/style/index';
|
|
3
|
-
declare const DatePicker: import("antd/es/date-picker/generatePicker/interface").PickerComponentClass<import("antd/es/date-picker/generatePicker").PickerProps<Dayjs
|
|
3
|
+
declare const DatePicker: import("antd/es/date-picker/generatePicker/interface").PickerComponentClass<import("antd/es/date-picker/generatePicker").PickerProps<Dayjs> & {
|
|
4
|
+
status?: "" | "error" | "warning";
|
|
5
|
+
}, unknown> & {
|
|
4
6
|
WeekPicker: import("antd/es/date-picker/generatePicker/interface").PickerComponentClass<Omit<import("antd/es/date-picker/generatePicker").PickerDateProps<Dayjs>, "picker">, unknown>;
|
|
5
7
|
MonthPicker: import("antd/es/date-picker/generatePicker/interface").PickerComponentClass<Omit<import("antd/es/date-picker/generatePicker").PickerDateProps<Dayjs>, "picker">, unknown>;
|
|
6
8
|
YearPicker: import("antd/es/date-picker/generatePicker/interface").PickerComponentClass<Omit<import("antd/es/date-picker/generatePicker").PickerDateProps<Dayjs>, "picker">, unknown>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Input as AntInput } from 'antd';
|
|
3
2
|
import { InputProps, TextAreaProps } from 'antd/lib/input';
|
|
4
3
|
export interface IProps extends InputProps {
|
|
5
4
|
}
|
|
@@ -12,8 +11,8 @@ export interface ITextAreaProps extends TextAreaProps {
|
|
|
12
11
|
declare function Input(props: IProps): JSX.Element;
|
|
13
12
|
declare namespace Input {
|
|
14
13
|
var Group: React.FC<import("antd/lib/input").GroupProps>;
|
|
15
|
-
var Search: React.ForwardRefExoticComponent<import("antd/lib/input").SearchProps & React.RefAttributes<
|
|
14
|
+
var Search: React.ForwardRefExoticComponent<import("antd/lib/input").SearchProps & React.RefAttributes<import("antd").InputRef>>;
|
|
16
15
|
var TextArea: React.ForwardRefExoticComponent<ITextAreaProps & React.RefAttributes<unknown>>;
|
|
17
|
-
var Password: React.ForwardRefExoticComponent<import("antd/lib/input").PasswordProps & React.RefAttributes<
|
|
16
|
+
var Password: React.ForwardRefExoticComponent<import("antd/lib/input").PasswordProps & React.RefAttributes<import("antd").InputRef>>;
|
|
18
17
|
}
|
|
19
18
|
export default Input;
|
|
@@ -4,9 +4,9 @@ interface IProps extends LayoutProps {
|
|
|
4
4
|
}
|
|
5
5
|
declare function Layout(props: IProps): JSX.Element;
|
|
6
6
|
declare namespace Layout {
|
|
7
|
-
var Header: React.
|
|
8
|
-
var Footer: React.
|
|
9
|
-
var Content: React.
|
|
10
|
-
var Sider: React.ForwardRefExoticComponent<import("antd
|
|
7
|
+
var Header: React.ForwardRefExoticComponent<LayoutProps & React.RefAttributes<HTMLElement>>;
|
|
8
|
+
var Footer: React.ForwardRefExoticComponent<LayoutProps & React.RefAttributes<HTMLElement>>;
|
|
9
|
+
var Content: React.ForwardRefExoticComponent<LayoutProps & React.RefAttributes<HTMLElement>>;
|
|
10
|
+
var Sider: React.ForwardRefExoticComponent<import("antd").SiderProps & React.RefAttributes<HTMLDivElement>>;
|
|
11
11
|
}
|
|
12
12
|
export default Layout;
|
|
@@ -6,7 +6,7 @@ declare function Menu(props: IProps): JSX.Element;
|
|
|
6
6
|
declare namespace Menu {
|
|
7
7
|
var Item: typeof import("antd/lib/menu/MenuItem").default;
|
|
8
8
|
var SubMenu: typeof import("antd/lib/menu/SubMenu").default;
|
|
9
|
-
var ItemGroup;
|
|
9
|
+
var ItemGroup: typeof import("rc-menu").MenuItemGroup;
|
|
10
10
|
var Divider: React.FC<import("antd/lib/menu").MenuDividerProps>;
|
|
11
11
|
}
|
|
12
12
|
export default Menu;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ztxkui",
|
|
3
|
-
"version": "4.2.18-
|
|
3
|
+
"version": "4.2.18-101",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "React components library",
|
|
6
6
|
"author": "zt-front-end",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
],
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"ahooks": "^3.8.1",
|
|
16
|
-
"antd": "4.
|
|
16
|
+
"antd": "4.21.0",
|
|
17
17
|
"antd-img-crop": "4.12.2",
|
|
18
18
|
"axios": "^0.21.1",
|
|
19
19
|
"classnames": "^2.2.6",
|