💄 修复渲染异常,调整share可用性

This commit is contained in:
目棃
2025-01-08 20:31:17 +08:00
parent 8b5aa106ce
commit 73f7247b59
2 changed files with 20 additions and 1 deletions

View File

@@ -28,6 +28,7 @@
<div class="tua-prop-sub">
<span>
<img v-if="propSub !== false && propSub.icon !== ''" :src="propSub.icon" alt="propSub" />
<v-icon class="icon" v-else size="14">mdi-adjust</v-icon>
<span>{{ propSub !== false ? propSub.name : "未知属性" }}</span>
</span>
<span>{{ props.modelValue.sub_property?.final }}</span>
@@ -131,6 +132,18 @@ const propSub = computed<TGApp.Game.Avatar.PropMapItem | false>(() => {
flex-direction: row;
align-items: center;
justify-content: space-between;
span:first-child {
display: flex;
align-items: center;
justify-content: center;
column-gap: 5px;
}
img {
width: 14px;
height: 14px;
}
}
.tua-prop-sub {
@@ -151,6 +164,10 @@ const propSub = computed<TGApp.Game.Avatar.PropMapItem | false>(() => {
align-items: center;
justify-content: center;
column-gap: 5px;
.icon {
opacity: 0.4;
}
}
}

View File

@@ -140,7 +140,9 @@ const uidList = shallowRef<Array<string>>([]);
const roleList = shallowRef<Array<TGApp.Sqlite.Character.UserRole>>([]);
const selectedList = shallowRef<Array<TGApp.Sqlite.Character.UserRole>>([]);
const dataVal = shallowRef<TGApp.Sqlite.Character.UserRole>();
const enableShare = computed<boolean>(() => (showOverlay.value ? true : showSelect.value));
const enableShare = computed<boolean>(
() => showOverlay.value || showSelect.value || loadData.value,
);
onMounted(async () => {
await showLoading.start("正在获取角色数据");