Skip to content

Commit

Permalink
replase v1.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
fengxinhhh committed Jul 31, 2022
1 parent e31364c commit 092019c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/concis-react/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "concis",
"license": "MIT",
"version": "1.3.0",
"version": "1.3.1",
"description": "Concis Component library for PC",
"authors": {
"name": "fengxin",
Expand Down
8 changes: 4 additions & 4 deletions packages/concis-react/src/InputPro/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const InputPro: FC<InputProProps<string>> = (props: InputProProps<string>) => {
}
}, [formCtx.submitStatus])

const handleIptChange = (val) => {
const handleIptChange = (val: string) => {
setValue(val);
handleChange && handleChange(val);
};
Expand All @@ -49,7 +49,7 @@ const InputPro: FC<InputProProps<string>> = (props: InputProProps<string>) => {
setIsFocus(false);
};
const chooseVal = <T extends string, U>(val: T, disabled: U): void => {
event.stopPropagation();
(event as any).stopPropagation();
if (disabled) return;
setValue(val);
handleClick && handleClick(val);
Expand Down Expand Up @@ -124,9 +124,9 @@ const InputPro: FC<InputProProps<string>> = (props: InputProProps<string>) => {
{option.map(({ label, disabled }, i) => {
return (
<span
className={traggerOptionClass<string, boolean>(label, disabled)}
className={traggerOptionClass<string, boolean | undefined>(label, disabled)}
key={i}
onClick={() => chooseVal<string, boolean>(label, disabled)}
onClick={() => chooseVal<string, boolean | undefined>(label, disabled)}
>
{label}
</span>
Expand Down
2 changes: 1 addition & 1 deletion packages/concis-react/src/Select/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const Select: FC<SelectProps> = (props: SelectProps) => {

const classNames = cs(prefixCls, className, `concis-${darkTheme ? 'dark-' : ''}select`);

const closeSelect = (e) => {
const closeSelect = (e: any) => {
if (!e.target?.getAttribute('class')?.includes('selected')) {
setVisible(false);
}
Expand Down

0 comments on commit 092019c

Please sign in to comment.