no message

This commit is contained in:
hellcat 2026-07-06 16:55:53 +08:00
parent cddcedcb79
commit 934c2f931b
5 changed files with 11 additions and 6 deletions

File diff suppressed because one or more lines are too long

View File

@ -25,7 +25,7 @@
"isEntry": true
},
"resources/js/app.js": {
"file": "assets/app-Db_h2PL5.js",
"file": "assets/app-psC-g_pG.js",
"name": "app",
"src": "resources/js/app.js",
"isEntry": true

View File

@ -6,7 +6,8 @@ $(document).on('click', '.js-copy', function() {
var oCurrentBtn = $(this);
// sTargetText: 精准获取当前按钮上绑定的文本 (String)
var sTargetText = oCurrentBtn.data('text');
// var sTargetText = oCurrentBtn.data('text');
var sTargetText = oCurrentBtn.find(".js-copy-text").html();
// 如果没数据,直接拦截,防止复制空字符串
if (!sTargetText) {

View File

@ -37,11 +37,15 @@
} else if ($sValueType == 'text-full') {
$sShowValue = "<a class='text-info js-tom-modal-open-text' tom-modal-field='".$k."' tom-modal-save-id='".$id."'>".$v."</a>";
} else if ($sValueType == 'copy') {
$sShowValue = "<a class='text-info js-copy' data-text='".$v."' tom-modal-field='".$k."' tom-modal-save-id='".$id."'>".$v."</a>";
$sShowValue = "
<a class='text-info js-copy' tom-modal-field='".$k."' tom-modal-save-id='".$id."'>".$v."
<textarea hidden class='js-copy-text'>".$v."</textarea>
</a>";
} else if ($sValueType == 'copy-nick') {
$sShowValue = "<a class='text-info js-copy' data-text='".$v."' tom-modal-field='".$k."' tom-modal-save-id='".$id."'>".
$sShowValue = "<a class='text-info js-copy' tom-modal-field='".$k."' tom-modal-save-id='".$id."'>".
$sFieldNick." <span class='text-muted'>(".strlen($v).")</span>".
"<span class='text-muted' style='width:100px; display:inline-block; vertical-align: middle; word-break: break-all; max-height: 20px;'>&nbsp;".$v."</span>".
"<span class='text-muted' style='width:100px; display:inline-block; vertical-align: middle; word-break: break-all; max-height: 20px;'>&nbsp;".$v."</span>
<textarea hidden class='js-copy-text'>".$v."</textarea>".
"</a>";
}