|
@ -9,22 +9,39 @@ |
|
|
{{ title }} |
|
|
{{ title }} |
|
|
</p> |
|
|
</p> |
|
|
</div> |
|
|
</div> |
|
|
<!-- <div |
|
|
<div |
|
|
class="flex flex-1 flex-row justify-start items-center mt-[15px] tokens-select" |
|
|
class="flex flex-1 flex-row justify-start items-center mt-[15px] text-white" |
|
|
v-if="title === 'Tokens'" |
|
|
v-if="title === 'Tokens'" |
|
|
> |
|
|
> |
|
|
<el-select v-model="active" placeholder="Select"> |
|
|
<el-popover placement="bottom" :width="250" trigger="click"> |
|
|
<el-option |
|
|
<template #reference> |
|
|
v-for="(item, index) in value" |
|
|
<!-- <el-button style="margin-right: 16px">{}</el-button> --> |
|
|
|
|
|
<p |
|
|
|
|
|
class="cursor-pointer text-white border border-white px-[8px] py-[2px]" |
|
|
|
|
|
> |
|
|
|
|
|
{{ list?.length || 0 }} token |
|
|
|
|
|
</p> |
|
|
|
|
|
</template> |
|
|
|
|
|
<template #default> |
|
|
|
|
|
<div class="h-[200px] overflow-y-scroll"> |
|
|
|
|
|
<div |
|
|
|
|
|
v-for="(item, index) in list" |
|
|
:key="index" |
|
|
:key="index" |
|
|
:label="item + 'token'" |
|
|
class="border-b py-[8px]" |
|
|
:value="item" |
|
|
> |
|
|
class="text-white" |
|
|
<p class="ml-[24px]">{{ item?.tokenType }}</p> |
|
|
/> |
|
|
<p class="mt-[12px]">{{ item?.name }} </p> |
|
|
</el-select> |
|
|
<p class="ml-[24px]"> |
|
|
</div> --> |
|
|
{{ `${item?.availableBalance}${item?.name}` }} |
|
|
|
|
|
</p> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</template> |
|
|
|
|
|
</el-popover> |
|
|
|
|
|
</div> |
|
|
<div |
|
|
<div |
|
|
class="flex flex-1 flex-row justify-start items-center mt-[15px] text-white" |
|
|
class="flex flex-1 flex-row justify-start items-center mt-[15px] text-white" |
|
|
|
|
|
v-else |
|
|
> |
|
|
> |
|
|
<p |
|
|
<p |
|
|
:class=" |
|
|
:class=" |
|
@ -45,9 +62,8 @@ |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script setup lang="ts"> |
|
|
<script setup lang="ts"> |
|
|
import { ElSelect, ElOption } from 'element-plus' |
|
|
|
|
|
import Icons from '@src/components/icons/index.vue' |
|
|
import Icons from '@src/components/icons/index.vue' |
|
|
import { onMounted, ref } from 'vue' |
|
|
import { onMounted, ref, watchEffect } from 'vue' |
|
|
const props = defineProps({ |
|
|
const props = defineProps({ |
|
|
title: [String, Number] as any, |
|
|
title: [String, Number] as any, |
|
|
value: [Number, String, Array] as any, |
|
|
value: [Number, String, Array] as any, |
|
@ -55,15 +71,12 @@ const props = defineProps({ |
|
|
isCopy: Boolean, |
|
|
isCopy: Boolean, |
|
|
isLast: Boolean, |
|
|
isLast: Boolean, |
|
|
}) |
|
|
}) |
|
|
|
|
|
const list = ref<any>([]) |
|
|
onMounted(() => { |
|
|
watchEffect(() => { |
|
|
console.log(props.title) |
|
|
|
|
|
if (props.title === 'Tokens') { |
|
|
if (props.title === 'Tokens') { |
|
|
list.value = props.value |
|
|
list.value = props.value |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
const list = ref<string | number[]>([]) |
|
|
|
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
<style lang="scss"> |
|
|
<style lang="scss"> |
|
|