Skip to content

Commit

Permalink
perf: 优化ReSegmented组件 (#1137)
Browse files Browse the repository at this point in the history
  • Loading branch information
QFifteen committed May 8, 2024
1 parent 3ca9a7b commit 5238ee7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/ReSegmented/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,9 @@ export default defineComponent({
}
);

watch(() => props.size, handleResizeInit);
watch(() => props.size, handleResizeInit, {
immediate: true
});

const rendLabel = () => {
return props.options.map((option, index) => {
Expand Down

0 comments on commit 5238ee7

Please sign in to comment.