perf: 优化ReSegmented组件 (#1137)

This commit is contained in:
Fifteen
2024-05-08 17:41:04 +08:00
committed by GitHub
parent 3ca9a7b5bc
commit 5238ee7ad9

View File

@@ -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) => {