Skip to content

Commit

Permalink
fix: select & font bug
Browse files Browse the repository at this point in the history
  • Loading branch information
BQXBQX committed Sep 29, 2024
1 parent b6fa7b1 commit 0fa2302
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
1 change: 1 addition & 0 deletions packages/ui-react/lib/Select/Select.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export const DefaultSelect: Story = {
key: 5,
},
],
defaultSelectKey: 3,
className: 'test',
},
};
Expand Down
4 changes: 1 addition & 3 deletions packages/ui-react/lib/Select/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,7 @@ export const Select = React.forwardRef<HTMLDivElement, SelectProps>(
};

const selectItemStore = useRef(createSelectItemStore(defaultSelectItem ?? selectKey)).current;
const keySelectItemStore = useRef(
createKeySelectItemStore(defaultSelectItem ?? selectItem),
).current;
const keySelectItemStore = useRef(createKeySelectItemStore()).current;
const [visible, setVisible] = useState<boolean>(false);
const selectClass = classNames(styles['base'], styles[size], className);
const closeOptions = () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-react/lib/global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
--border-white: #f1f1f1;
--pale-white: #fcfcfc;
// TODO: 开发时为了好看,先设置字体为当前,生产时删除,或者使用组件库时,可以用 !important 给覆盖掉
font-family: 'open sans regular';
// font-family: 'open sans regular';
}

::-webkit-scrollbar {
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ui-aurora/react",
"version": "0.0.18",
"version": "0.0.19",
"description": "A React UI library built for SASTOJ",
"author": "sast",
"license": "MIT",
Expand Down

1 comment on commit 0fa2302

@vercel
Copy link

@vercel vercel bot commented on 0fa2302 Sep 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

sast-ui – ./

sast-ui-sast.vercel.app
sast-ui-git-main-sast.vercel.app

Please sign in to comment.