fix(components): [descriptions] allow wrapping description-item
fix #18452
Size Change: +673 B (+0.05%)
Total Size: 1.47 MB
| Filename | Size | Change |
|---|---|---|
./dist/element-plus/dist/index.full.js |
418 kB | +206 B (+0.05%) |
./dist/element-plus/dist/index.full.min.js |
303 kB | +123 B (+0.04%) |
./dist/element-plus/dist/index.full.min.mjs |
299 kB | +142 B (+0.05%) |
./dist/element-plus/dist/index.full.mjs |
409 kB | +202 B (+0.05%) |
โน๏ธ View Unchanged
| Filename | Size |
|---|---|
./dist/element-plus/dist/index.css |
45.7 kB |
๐งช Playground Preview: https://element-plus.run/?pr=20961 Please comment the example via this playground if needed.
But there is a problem when toggling a wrapper component, demo.
Replacing onBeforeMount with onMounted can fix this issue, but it takes an extra microtask tick to update the DOM, which means the render function will run again in the next event loop. I'd like to first refactor useOrderedChildren in a separate PR to make it work with onBeforeMount.
Update: While working on this, I found that using onMounted doesn't take an extra microtask tick, but it does retrigger the render.
Very clear, ok ๐๐
Replacing
onBeforeMountwithonMountedcan fix this issue, but it takes an extra microtask tick to update the DOM, which means the render function will run again in the next event loop. I'd like to first refactoruseOrderedChildrenin a separate PR to make it work withonBeforeMount.
While working on this, I found that using onMounted doesn't take an extra microtask tick, but it does retrigger the render.
