From 8a31c4714f34fc53a1ae816e6771b305b31d5ecf Mon Sep 17 00:00:00 2001 From: dailer Date: Tue, 15 Jan 2019 12:34:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0jira=E4=BB=BB=E5=8A=A1,=E5=8A=A0?= =?UTF-8?q?=E4=B8=AA=E5=AE=9A=E4=B9=89=E8=83=8C=E6=99=AF=E5=9B=BE=E7=9A=84?= =?UTF-8?q?=E6=96=B9=E6=B3=95.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/less/image.less | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/less/image.less b/src/less/image.less index 23d3593e9..add5b1d0f 100644 --- a/src/less/image.less +++ b/src/less/image.less @@ -18,6 +18,16 @@ _background: none; } +.background(@class,@backgroundPath, @top:center, @left:center, @repeat: no-repeat) { + .@{class} { + .image2xPath(@backgroundPath, @top, @left, @repeat); + + &.hack { + .imagePath(@backgroundPath, @top, @left, @repeat); + } + } +} + // 默认icon .icon(@class, @iconPath) { .@{class} {