From 2b2789aaa505049ff24f97b6bcc92c665d4b3a14 Mon Sep 17 00:00:00 2001 From: ccccpj Date: Tue, 11 Apr 2023 12:19:19 +0800 Subject: [PATCH 1/2] feat: update cursor-pointer --- style/mobile/components/calendar/v2/_index.less | 2 ++ style/mobile/mixins/_cursor.less | 6 ++++++ 2 files changed, 8 insertions(+) create mode 100644 style/mobile/mixins/_cursor.less diff --git a/style/mobile/components/calendar/v2/_index.less b/style/mobile/components/calendar/v2/_index.less index 21f6da320f..6648975e0c 100644 --- a/style/mobile/components/calendar/v2/_index.less +++ b/style/mobile/components/calendar/v2/_index.less @@ -1,5 +1,7 @@ @import "../../../base.less"; +@import "../../../mixins/_cursor.less"; + @import "./_var.less"; .@{prefix}-calendar { diff --git a/style/mobile/mixins/_cursor.less b/style/mobile/mixins/_cursor.less new file mode 100644 index 0000000000..c1e5882df7 --- /dev/null +++ b/style/mobile/mixins/_cursor.less @@ -0,0 +1,6 @@ +.cursor-pointer() { + cursor: pointer; + -webkit-tap-highlight-color: transparent; + -webkit-user-select: none; + user-select: none; +} From 8ed6f26dd0826f9474ab07e5895e00dfe05fb45c Mon Sep 17 00:00:00 2001 From: anlyyao Date: Tue, 11 Apr 2023 14:43:03 +0800 Subject: [PATCH 2/2] fix: fix lint --- style/mobile/mixins/_cursor.less | 1 + 1 file changed, 1 insertion(+) diff --git a/style/mobile/mixins/_cursor.less b/style/mobile/mixins/_cursor.less index c1e5882df7..0b8c143268 100644 --- a/style/mobile/mixins/_cursor.less +++ b/style/mobile/mixins/_cursor.less @@ -1,6 +1,7 @@ .cursor-pointer() { cursor: pointer; -webkit-tap-highlight-color: transparent; + /* stylelint-disable-next-line */ -webkit-user-select: none; user-select: none; }