vue更新3.5,以及mime打更新

This commit is contained in:
2024-09-06 10:48:22 +08:00
parent 9984041eec
commit 3914762c85
117 changed files with 4348 additions and 8000 deletions

View File

@@ -1,41 +1,37 @@
<!--
- MineAdmin is committed to providing solutions for quickly building web applications
- Please view the LICENSE file that was distributed with this source code,
- For the full copyright and license information.
- Thank you very much for using MineAdmin.
-
- @Author X.Mo<root@imoi.cn>
- @Link https://gitee.com/xmo/mineadmin-vue
- @Author XXX
- @Link XXX
-->
<template>
<a-input v-model="val" :label="props.title" disabled class="w-full" />
<a-input v-model="val" :label="props.title" disabled class="w-full" />
</template>
<script setup>
import { ref, watch } from "vue"
import { useUserStore } from "@/store"
import { ref, watch } from 'vue'
import { useUserStore } from '@/store'
const user = useUserStore().user
const val = ref()
const emit = defineEmits(["update:modelValue"])
const emit = defineEmits(['update:modelValue'])
const props = defineProps({
modelValue: [String, Number],
title: { type: String, default: "用户信息" },
field: { type: String, default: "id" }
modelValue: [ String, Number ],
title: { type: String, default: '用户信息'},
field: { type: String, default: 'id'},
})
val.value = user[props.field] ? user[props.field].toString() : user.id.toString()
watch(
() => val.value,
(vl) => emit("update:modelValue", vl),
{ immediate: true }
() => val.value,
vl => emit('update:modelValue', vl),
{ immediate: true }
)
</script>
<style scoped>
:deep(.arco-select-option-content) {
width: 100%;
width: 100%;
}
</style>