mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-14 13:26:45 +08:00
-- bug
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
<template>
|
||||
<template v-if="tag">
|
||||
<div>{{ options?.find(e => e.value == id)?.label || '' }}</div>
|
||||
</template>
|
||||
<template v-else>
|
||||
<a-select
|
||||
:getPopupContainer="
|
||||
(triggerNode) => {
|
||||
@@ -13,6 +17,7 @@
|
||||
:disabled="disabled"
|
||||
/>
|
||||
</template>
|
||||
</template>
|
||||
<script setup>
|
||||
import {computed, defineEmits, defineProps, onMounted, ref} from "vue";
|
||||
import {useStore} from "vuex";
|
||||
@@ -21,7 +26,11 @@ import {useStore} from "vuex";
|
||||
const store = useStore();
|
||||
const props = defineProps({
|
||||
value: String,
|
||||
disabled: String
|
||||
disabled: String,
|
||||
tag: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
})
|
||||
|
||||
const id = computed(() => {
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
<template>
|
||||
<template v-if="tag">
|
||||
<div>{{ options.find(e => e.value == id)?.label || '' }}</div>
|
||||
</template>
|
||||
<template v-else>
|
||||
<a-select
|
||||
:getPopupContainer="
|
||||
(triggerNode) => {
|
||||
@@ -13,6 +17,8 @@
|
||||
:disabled="disabled"
|
||||
/>
|
||||
</template>
|
||||
|
||||
</template>
|
||||
<script setup>
|
||||
import {computed, defineEmits, defineProps, onMounted, ref} from "vue";
|
||||
import {useStore} from "vuex";
|
||||
@@ -21,7 +27,11 @@ const store = useStore();
|
||||
|
||||
const props = defineProps({
|
||||
value: String,
|
||||
disabled: String
|
||||
disabled: String,
|
||||
tag: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
})
|
||||
|
||||
const id = computed(() => {
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user