From 36a3b230478356b7e25f09fb6e1c6f9d6a5f4c7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=A4=E5=BF=83?= <3277200+sentsim@users.noreply.github.com> Date: Mon, 20 Feb 2023 23:27:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20code=20=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E7=9A=84=20`className`=20=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/code.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/code.js b/src/modules/code.js index d97ee370..a223d8fd 100644 --- a/src/modules/code.js +++ b/src/modules/code.js @@ -106,6 +106,7 @@ layui.define(['lay', 'util', 'element', 'form'], function(exports){ var elemPreviewViewHas = othis.next('.' + CONST.ELEM_ITEM +'-preview'); if(options.id) elemView.attr('id', options.id); + elemView.addClass(options.className); elemTabView.attr('lay-filter', FILTER_VALUE); // 标签头