|
|
@@ -17,7 +17,7 @@
|
|
|
<!-- 正常模式:宫格上传(完全对齐官方 upload-image 样式) -->
|
|
|
<view v-else class="uni-file-picker__container">
|
|
|
<view class="file-picker__box cursor-pointer" v-for="(item, index) in innerFileList" :key="index"
|
|
|
- :style="typeof boxStyle === 'object' ? boxStyle : { cssText: boxStyle }">
|
|
|
+ :style="typeof boxStyle === 'object' ? boxStyle : { cssText: boxStyle }" :data-tooltip="t('vu.tooltip.t3')" data-placement="top">
|
|
|
<view class="file-picker__box-content" :style="borderStyle">
|
|
|
<!-- 图片 -->
|
|
|
<image v-if="isImage(item)" class="file-image" :src="item.url || item.path" mode="aspectFill"
|
|
|
@@ -71,8 +71,11 @@
|
|
|
<script setup>
|
|
|
import { ref, watch, nextTick, computed } from 'vue'
|
|
|
import config from '@/config'
|
|
|
+import { useI18n } from 'vue-i18n';
|
|
|
import { userToken } from '@/composables/config'
|
|
|
import copChooseFile from '@/uni_modules/cop-chooseFile/components/cop-chooseFile/cop-chooseFile.vue'
|
|
|
+const { t, locale } = useI18n();
|
|
|
+
|
|
|
// === Vue3 v-model 标准写法 + 多类型兼容 ===
|
|
|
const props = defineProps({
|
|
|
modelValue: {
|