enwawa-ui 1.7.1 → 1.8.0
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/lib/index.d.ts +20 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.es.js +29 -7
- package/lib/index.es.js.map +1 -1
- package/lib/index.js +27 -5
- package/lib/index.js.map +1 -1
- package/package.json +2 -2
package/lib/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import * as Icons from "@ant-design/icons";
|
|
|
7
7
|
import { ValueType } from "@rc-component/mini-decimal";
|
|
8
8
|
import { RadioChangeEvent } from "antd/es/radio";
|
|
9
9
|
import { DefaultOptionType, LabeledValue } from "antd/es/select";
|
|
10
|
+
import { SwitchProps } from "antd/lib";
|
|
10
11
|
import { BlockProps, EllipsisConfig, BaseType } from "antd/es/typography/Base";
|
|
11
12
|
import { DotPosition } from "antd/es/carousel";
|
|
12
13
|
import { CheckboxGroupProps } from "antd/es/checkbox/Group";
|
|
@@ -901,6 +902,25 @@ export interface AtSelectProps {
|
|
|
901
902
|
$textColor?: 'white' | 'violet';
|
|
902
903
|
}
|
|
903
904
|
export const AtSelect: React.FC<AtSelectProps>;
|
|
905
|
+
export interface AtSwitchProps extends SwitchProps {
|
|
906
|
+
/**
|
|
907
|
+
* Whether get focus when component mounted
|
|
908
|
+
*/
|
|
909
|
+
autoFocus?: boolean;
|
|
910
|
+
/**
|
|
911
|
+
* Determine whether the Switch is checked
|
|
912
|
+
*/
|
|
913
|
+
checked?: boolean;
|
|
914
|
+
/**
|
|
915
|
+
* Determine whether the Switch is checked
|
|
916
|
+
*/
|
|
917
|
+
disabled?: boolean;
|
|
918
|
+
/**
|
|
919
|
+
* Trigger when the checked state is changing
|
|
920
|
+
*/
|
|
921
|
+
onChange?: SwitchProps['onChange'];
|
|
922
|
+
}
|
|
923
|
+
export const AtSwitch: React.FC<AtSwitchProps>;
|
|
904
924
|
export interface AtTagProps {
|
|
905
925
|
/**
|
|
906
926
|
* Custom close icon. 5.7.0: close button will be hidden when setting to null or false
|