|
|
@@ -16,6 +16,15 @@ const {
|
|
|
handleCopyLink,
|
|
|
handleSaveImage,
|
|
|
} = useQrCodePopup()
|
|
|
+const { open: openSelectListPopup, state: selectListState } = useSelectListPopup()
|
|
|
+
|
|
|
+const handleSkillSelect = () => {
|
|
|
+ openSelectListPopup({
|
|
|
+ options: [
|
|
|
+ { label: 'Skill 1', value: 'skill1', icon: 'https://lanu-public-test-1377959011.cos.ap-guangzhou.myqcloud.com/examples/user-avatar.png' },
|
|
|
+ ],
|
|
|
+ })
|
|
|
+}
|
|
|
|
|
|
const handleUpdateShow = (value: boolean) => {
|
|
|
if (!value) {
|
|
|
@@ -45,7 +54,10 @@ const handleAmountInput = (event: Event) => {
|
|
|
>
|
|
|
<div class="qr-popup__container">
|
|
|
<!-- Header: game info -->
|
|
|
- <div class="qr-popup__header">
|
|
|
+ <div
|
|
|
+ class="qr-popup__header"
|
|
|
+ @click="handleSkillSelect"
|
|
|
+ >
|
|
|
<div class="qr-popup__header-left">
|
|
|
<div class="qr-popup__avatar">
|
|
|
<img
|
|
|
@@ -58,6 +70,12 @@ const handleAmountInput = (event: Event) => {
|
|
|
<span class="qr-popup__title">
|
|
|
{{ state.title }}
|
|
|
</span>
|
|
|
+ <van-icon
|
|
|
+ name="arrow"
|
|
|
+ class="qr-popup__header-arrow"
|
|
|
+ :class="{ 'qr-popup__header-arrow--active': selectListState.visible }"
|
|
|
+ size="14"
|
|
|
+ />
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
@@ -263,29 +281,12 @@ const handleAmountInput = (event: Event) => {
|
|
|
color: #1d2129;
|
|
|
}
|
|
|
|
|
|
- &__header-link {
|
|
|
- display: inline-flex;
|
|
|
- align-items: center;
|
|
|
- gap: 2px;
|
|
|
- padding: 0;
|
|
|
- border: none;
|
|
|
- background: none;
|
|
|
- cursor: default;
|
|
|
- }
|
|
|
-
|
|
|
- &__header-link-text {
|
|
|
- font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
|
|
|
- font-size: 11px;
|
|
|
- color: #4e5969;
|
|
|
- }
|
|
|
+ &__header-arrow {
|
|
|
+ transition: transform 0.2s ease;
|
|
|
|
|
|
- &__header-link-arrow {
|
|
|
- @include size(14px);
|
|
|
- border-radius: 999px;
|
|
|
- border: 1px solid #4e5969;
|
|
|
- border-left: none;
|
|
|
- border-top: none;
|
|
|
- transform: rotate(-45deg);
|
|
|
+ &--active {
|
|
|
+ transform: rotate(90deg);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
&__tabs {
|