no message
This commit is contained in:
parent
cddcedcb79
commit
934c2f931b
File diff suppressed because one or more lines are too long
@ -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
|
||||
|
||||
@ -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) {
|
||||
|
||||
@ -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;'> ".$v."</span>".
|
||||
"<span class='text-muted' style='width:100px; display:inline-block; vertical-align: middle; word-break: break-all; max-height: 20px;'> ".$v."</span>
|
||||
<textarea hidden class='js-copy-text'>".$v."</textarea>".
|
||||
"</a>";
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user