feat:还原更新框架

This commit is contained in:
2026-07-23 14:49:48 +08:00
parent d5a6a16ea5
commit 75c7434f79
529 changed files with 43714 additions and 68201 deletions
@@ -1,10 +1,9 @@
<template>
<view @click="handleClick">
<slot>{{ t("up.common.copy") }}</slot>
<slot>复制</slot>
</view>
</template>
<script>
import { t } from '../../libs/i18n'
export default {
name: "up-copy",
props: {
@@ -18,17 +17,16 @@ export default {
},
notice: {
type: String,
default: t("up.common.copy") + t("up.common.success")
default: '复制成功'
}
},
emits: ['success'],
methods: {
t,
handleClick() {
let content = this.content;
if (!content) {
uni.showToast({
title: t("up.common.none"),
title: '暂无',
icon: 'none',
duration: 2000,
});
@@ -36,7 +34,7 @@ export default {
}
content = typeof content === 'string' ? content : content.toString() // 复制内容,必须字符串,数字需要转换为字符串
/**
* 复制逻辑
* 小程序端 和 app端的复制逻辑
*/
let that = this;
uni.setClipboardData({
@@ -44,7 +42,7 @@ export default {
success: function() {
if (that.alertStyle == 'modal') {
uni.showModal({
title: "up.common.tip",
title: '提示',
content: that.notice
});
} else {
@@ -57,7 +55,7 @@ export default {
},
fail:function(){
uni.showToast({
title: t("up.common.copy") + t("up.common.fail"),
title: '复制失败',
icon: 'none',
duration:3000,
});