Skip to content

Commit

Permalink
fix(menu): expandType=popup时箭头方向 (#806)
Browse files Browse the repository at this point in the history
  • Loading branch information
fengxianqi committed May 20, 2022
1 parent 7d0699f commit 8b8a4f5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/menu/submenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export default defineComponent({
paddingLeft += 16;
}

const needRotate = this.mode === 'popup' && this.isNested;
const needRotate = this.mode === 'popup';
const rippleVal = (this.keepAnimation as Record<AnimationType, boolean>).ripple ? this.rippleColor : false;

const normalSubmenu = [
Expand Down
2 changes: 1 addition & 1 deletion test/ssr/__snapshots__/ssr.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -7559,7 +7559,7 @@ exports[`ssr snapshot test renders ./examples/menu/demos/closable-side.vue corre
<li mode="popup" class="t-submenu">
<div class="t-menu__item"><svg class="t-icon t-icon-mail">
<use href="#t-icon-mail"></use>
</svg><span class="t-menu__content"><span>信息区</span></span><svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" class="t-fake-arrow" style="transform:rotate(0deg);">
</svg><span class="t-menu__content"><span>信息区</span></span><svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" class="t-fake-arrow" style="transform:rotate(-90deg);">
<path d="M3.75 5.7998L7.99274 10.0425L12.2361 5.79921" stroke="black" stroke-opacity="0.9" stroke-width="1.3"></path>
</svg></div>
<div class="t-menu__popup t-is-vertical">
Expand Down
2 changes: 1 addition & 1 deletion test/unit/menu/__snapshots__/demo.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ exports[`Menu Menu closableSideVue demo works fine 1`] = `
class="t-fake-arrow"
fill="none"
height="16"
style="transform: rotate(0deg);"
style="transform: rotate(-90deg);"
viewBox="0 0 16 16"
width="16"
xmlns="http://www.w3.org/2000/svg"
Expand Down

0 comments on commit 8b8a4f5

Please sign in to comment.