@jswork/antd-components 1.0.89 → 1.0.91
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/main.cjs.js +1 -20
- package/dist/main.cjs.js.map +1 -1
- package/dist/main.d.mts +58 -4
- package/dist/main.d.ts +58 -4
- package/dist/main.esm.js +1 -20
- package/dist/main.esm.js.map +1 -1
- package/package.json +6 -7
- package/src/lib/breadcrumb.tsx +2 -2
- package/src/lib/checkbox-group.tsx +1 -1
- package/src/lib/radio-group.tsx +1 -1
- package/src/lib/select.tsx +5 -6
- package/src/lib/transfer.tsx +1 -1
- package/src/lib/tree-select.tsx +2 -2
- package/src/lib/tree.tsx +4 -4
- package/src/main.ts +27 -0
- package/src/tpls/breadcrumb/index.tsx +8 -0
- package/src/tpls/kv/index.tsx +74 -0
- package/src/tpls/raw/index.tsx +47 -0
- package/src/tpls/transfer/index.tsx +10 -0
package/dist/main.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import React, { HTMLAttributes, Component, ReactNode } from 'react';
|
|
1
2
|
import * as antd from 'antd';
|
|
2
3
|
import { InputProps, BreadcrumbProps, MenuProps, CheckboxProps, PopconfirmProps, ButtonProps, DatePickerProps, InputNumberProps, RateProps, SelectProps, SliderSingleProps, SwitchProps, TimePickerProps, TransferProps, TreeProps, TreeSelectProps, UploadFile, UploadProps } from 'antd';
|
|
3
|
-
import React, { HTMLAttributes, Component, ReactNode } from 'react';
|
|
4
4
|
import { TemplateArgs } from '@jswork/react-list';
|
|
5
5
|
import { SizeType } from 'antd/es/config-provider/SizeContext';
|
|
6
6
|
import { CheckableTagProps } from 'antd/es/tag';
|
|
@@ -13,6 +13,60 @@ import dayjs from 'dayjs';
|
|
|
13
13
|
import { DraggerProps } from 'antd/es/upload';
|
|
14
14
|
import { UploadChangeParam } from 'antd/es/upload/interface';
|
|
15
15
|
|
|
16
|
+
declare const breadcrumbDefault: ({ item, index, items }: {
|
|
17
|
+
item: any;
|
|
18
|
+
index: any;
|
|
19
|
+
items: any;
|
|
20
|
+
}) => React.JSX.Element;
|
|
21
|
+
|
|
22
|
+
interface Options$1 {
|
|
23
|
+
component: React.ComponentType<any>;
|
|
24
|
+
value?: string;
|
|
25
|
+
label?: string;
|
|
26
|
+
[key: string]: any;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* KV component template, for key-value pair.
|
|
30
|
+
* @param item
|
|
31
|
+
* @param index
|
|
32
|
+
* @param options
|
|
33
|
+
*/
|
|
34
|
+
declare const kv: ({ item, index }: {
|
|
35
|
+
item: any;
|
|
36
|
+
index: any;
|
|
37
|
+
}, options: Options$1) => React.JSX.Element;
|
|
38
|
+
declare const checkboxKv: (args: any) => React.JSX.Element;
|
|
39
|
+
declare const selectKv: (args: any) => React.JSX.Element;
|
|
40
|
+
declare const radioKv: (args: any, opts: any) => React.JSX.Element;
|
|
41
|
+
declare const treeKv: ({ item }: {
|
|
42
|
+
item: any;
|
|
43
|
+
}, cb: any) => React.JSX.Element;
|
|
44
|
+
declare const treeSelectKv: ({ item }: {
|
|
45
|
+
item: any;
|
|
46
|
+
}, cb: any) => React.JSX.Element;
|
|
47
|
+
|
|
48
|
+
interface Options {
|
|
49
|
+
component: React.ComponentType<any>;
|
|
50
|
+
[key: string]: any;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Raw component template, for array of items.
|
|
54
|
+
* @param item
|
|
55
|
+
* @param index
|
|
56
|
+
* @param options
|
|
57
|
+
*/
|
|
58
|
+
declare const raw: ({ item, index }: {
|
|
59
|
+
item: any;
|
|
60
|
+
index: any;
|
|
61
|
+
}, options: Options) => React.JSX.Element;
|
|
62
|
+
declare const checkboxRaw: (args: any) => React.JSX.Element;
|
|
63
|
+
declare const selectRaw: (args: any) => React.JSX.Element;
|
|
64
|
+
declare const radioRaw: (args: any, opts: any) => React.JSX.Element;
|
|
65
|
+
|
|
66
|
+
declare const transferLabel: ({ item }: {
|
|
67
|
+
item: any;
|
|
68
|
+
}, options?: any) => React.ReactNode;
|
|
69
|
+
|
|
16
70
|
declare global {
|
|
17
71
|
interface NxStatic {
|
|
18
72
|
alert: typeof alert;
|
|
@@ -279,7 +333,7 @@ declare class AcConfirmButton extends Component<AcConfirmButtonProps> {
|
|
|
279
333
|
type: string;
|
|
280
334
|
childProps: {};
|
|
281
335
|
};
|
|
282
|
-
get computedChildren(): string | number | boolean |
|
|
336
|
+
get computedChildren(): string | number | boolean | React.JSX.Element | Iterable<React.ReactNode> | null | undefined;
|
|
283
337
|
handleCancel: () => void;
|
|
284
338
|
t: (inKey: any) => any;
|
|
285
339
|
render(): React.JSX.Element;
|
|
@@ -736,7 +790,7 @@ declare class AcSelect extends React.Component<Props$b> {
|
|
|
736
790
|
};
|
|
737
791
|
shouldComponentUpdate(nextProps: Readonly<Props$b>): boolean;
|
|
738
792
|
handleChange: (inValue: any) => void;
|
|
739
|
-
template: (args: any) => string | number | boolean |
|
|
793
|
+
template: (args: any) => string | number | boolean | React.JSX.Element | Iterable<React.ReactNode> | null | undefined;
|
|
740
794
|
render(): React.JSX.Element;
|
|
741
795
|
}
|
|
742
796
|
|
|
@@ -1056,4 +1110,4 @@ declare class AcUpload extends React.Component<Props> {
|
|
|
1056
1110
|
render(): React.JSX.Element;
|
|
1057
1111
|
}
|
|
1058
1112
|
|
|
1059
|
-
export { AcBreadcrumb, AcCheckableDropdown, AcCheckableTag, AcCheckableTagList, AcCheckbox, AcCheckboxGroup, type AcCheckboxGroupProps, AcCodeFlask, AcConfirmButton, type AcConfirmButtonProps, AcDatePicker, AcEditableTagGroup, AcInput, AcInputHidden, AcInputNumber, AcInputTags, AcInputToken, AcPreSelect, type AcPreSelectProps, AcRadioGroup, AcRangePicker, AcRate, AcSearch, AcSelect, AcSlider, AcSliderRange, AcSwitch, AcTextarea, AcTimePicker, AcTransfer, AcTree, AcTreeSelect, AcUpload, AcUploadDragger, AcUploadPicture, AcUploadPictureCard, type Value, alert, confirm, prompt };
|
|
1113
|
+
export { AcBreadcrumb, AcCheckableDropdown, AcCheckableTag, AcCheckableTagList, AcCheckbox, AcCheckboxGroup, type AcCheckboxGroupProps, AcCodeFlask, AcConfirmButton, type AcConfirmButtonProps, AcDatePicker, AcEditableTagGroup, AcInput, AcInputHidden, AcInputNumber, AcInputTags, AcInputToken, AcPreSelect, type AcPreSelectProps, AcRadioGroup, AcRangePicker, AcRate, AcSearch, AcSelect, AcSlider, AcSliderRange, AcSwitch, AcTextarea, AcTimePicker, AcTransfer, AcTree, AcTreeSelect, AcUpload, AcUploadDragger, AcUploadPicture, AcUploadPictureCard, type Value, alert, breadcrumbDefault, checkboxKv, checkboxRaw, confirm, kv, prompt, radioKv, radioRaw, raw, selectKv, selectRaw, transferLabel, treeKv, treeSelectKv };
|
package/dist/main.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import React, { HTMLAttributes, Component, ReactNode } from 'react';
|
|
1
2
|
import * as antd from 'antd';
|
|
2
3
|
import { InputProps, BreadcrumbProps, MenuProps, CheckboxProps, PopconfirmProps, ButtonProps, DatePickerProps, InputNumberProps, RateProps, SelectProps, SliderSingleProps, SwitchProps, TimePickerProps, TransferProps, TreeProps, TreeSelectProps, UploadFile, UploadProps } from 'antd';
|
|
3
|
-
import React, { HTMLAttributes, Component, ReactNode } from 'react';
|
|
4
4
|
import { TemplateArgs } from '@jswork/react-list';
|
|
5
5
|
import { SizeType } from 'antd/es/config-provider/SizeContext';
|
|
6
6
|
import { CheckableTagProps } from 'antd/es/tag';
|
|
@@ -13,6 +13,60 @@ import dayjs from 'dayjs';
|
|
|
13
13
|
import { DraggerProps } from 'antd/es/upload';
|
|
14
14
|
import { UploadChangeParam } from 'antd/es/upload/interface';
|
|
15
15
|
|
|
16
|
+
declare const breadcrumbDefault: ({ item, index, items }: {
|
|
17
|
+
item: any;
|
|
18
|
+
index: any;
|
|
19
|
+
items: any;
|
|
20
|
+
}) => React.JSX.Element;
|
|
21
|
+
|
|
22
|
+
interface Options$1 {
|
|
23
|
+
component: React.ComponentType<any>;
|
|
24
|
+
value?: string;
|
|
25
|
+
label?: string;
|
|
26
|
+
[key: string]: any;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* KV component template, for key-value pair.
|
|
30
|
+
* @param item
|
|
31
|
+
* @param index
|
|
32
|
+
* @param options
|
|
33
|
+
*/
|
|
34
|
+
declare const kv: ({ item, index }: {
|
|
35
|
+
item: any;
|
|
36
|
+
index: any;
|
|
37
|
+
}, options: Options$1) => React.JSX.Element;
|
|
38
|
+
declare const checkboxKv: (args: any) => React.JSX.Element;
|
|
39
|
+
declare const selectKv: (args: any) => React.JSX.Element;
|
|
40
|
+
declare const radioKv: (args: any, opts: any) => React.JSX.Element;
|
|
41
|
+
declare const treeKv: ({ item }: {
|
|
42
|
+
item: any;
|
|
43
|
+
}, cb: any) => React.JSX.Element;
|
|
44
|
+
declare const treeSelectKv: ({ item }: {
|
|
45
|
+
item: any;
|
|
46
|
+
}, cb: any) => React.JSX.Element;
|
|
47
|
+
|
|
48
|
+
interface Options {
|
|
49
|
+
component: React.ComponentType<any>;
|
|
50
|
+
[key: string]: any;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Raw component template, for array of items.
|
|
54
|
+
* @param item
|
|
55
|
+
* @param index
|
|
56
|
+
* @param options
|
|
57
|
+
*/
|
|
58
|
+
declare const raw: ({ item, index }: {
|
|
59
|
+
item: any;
|
|
60
|
+
index: any;
|
|
61
|
+
}, options: Options) => React.JSX.Element;
|
|
62
|
+
declare const checkboxRaw: (args: any) => React.JSX.Element;
|
|
63
|
+
declare const selectRaw: (args: any) => React.JSX.Element;
|
|
64
|
+
declare const radioRaw: (args: any, opts: any) => React.JSX.Element;
|
|
65
|
+
|
|
66
|
+
declare const transferLabel: ({ item }: {
|
|
67
|
+
item: any;
|
|
68
|
+
}, options?: any) => React.ReactNode;
|
|
69
|
+
|
|
16
70
|
declare global {
|
|
17
71
|
interface NxStatic {
|
|
18
72
|
alert: typeof alert;
|
|
@@ -279,7 +333,7 @@ declare class AcConfirmButton extends Component<AcConfirmButtonProps> {
|
|
|
279
333
|
type: string;
|
|
280
334
|
childProps: {};
|
|
281
335
|
};
|
|
282
|
-
get computedChildren(): string | number | boolean |
|
|
336
|
+
get computedChildren(): string | number | boolean | React.JSX.Element | Iterable<React.ReactNode> | null | undefined;
|
|
283
337
|
handleCancel: () => void;
|
|
284
338
|
t: (inKey: any) => any;
|
|
285
339
|
render(): React.JSX.Element;
|
|
@@ -736,7 +790,7 @@ declare class AcSelect extends React.Component<Props$b> {
|
|
|
736
790
|
};
|
|
737
791
|
shouldComponentUpdate(nextProps: Readonly<Props$b>): boolean;
|
|
738
792
|
handleChange: (inValue: any) => void;
|
|
739
|
-
template: (args: any) => string | number | boolean |
|
|
793
|
+
template: (args: any) => string | number | boolean | React.JSX.Element | Iterable<React.ReactNode> | null | undefined;
|
|
740
794
|
render(): React.JSX.Element;
|
|
741
795
|
}
|
|
742
796
|
|
|
@@ -1056,4 +1110,4 @@ declare class AcUpload extends React.Component<Props> {
|
|
|
1056
1110
|
render(): React.JSX.Element;
|
|
1057
1111
|
}
|
|
1058
1112
|
|
|
1059
|
-
export { AcBreadcrumb, AcCheckableDropdown, AcCheckableTag, AcCheckableTagList, AcCheckbox, AcCheckboxGroup, type AcCheckboxGroupProps, AcCodeFlask, AcConfirmButton, type AcConfirmButtonProps, AcDatePicker, AcEditableTagGroup, AcInput, AcInputHidden, AcInputNumber, AcInputTags, AcInputToken, AcPreSelect, type AcPreSelectProps, AcRadioGroup, AcRangePicker, AcRate, AcSearch, AcSelect, AcSlider, AcSliderRange, AcSwitch, AcTextarea, AcTimePicker, AcTransfer, AcTree, AcTreeSelect, AcUpload, AcUploadDragger, AcUploadPicture, AcUploadPictureCard, type Value, alert, confirm, prompt };
|
|
1113
|
+
export { AcBreadcrumb, AcCheckableDropdown, AcCheckableTag, AcCheckableTagList, AcCheckbox, AcCheckboxGroup, type AcCheckboxGroupProps, AcCodeFlask, AcConfirmButton, type AcConfirmButtonProps, AcDatePicker, AcEditableTagGroup, AcInput, AcInputHidden, AcInputNumber, AcInputTags, AcInputToken, AcPreSelect, type AcPreSelectProps, AcRadioGroup, AcRangePicker, AcRate, AcSearch, AcSelect, AcSlider, AcSliderRange, AcSwitch, AcTextarea, AcTimePicker, AcTransfer, AcTree, AcTreeSelect, AcUpload, AcUploadDragger, AcUploadPicture, AcUploadPictureCard, type Value, alert, breadcrumbDefault, checkboxKv, checkboxRaw, confirm, kv, prompt, radioKv, radioRaw, raw, selectKv, selectRaw, transferLabel, treeKv, treeSelectKv };
|