Skip to content

Commit 22e8322

Browse files
committed
chore: 1.4.15-rn.1
1 parent 6d27f1c commit 22e8322

5 files changed

Lines changed: 17 additions & 7 deletions

File tree

packages/mpx-cube-ui/lib/common/stylus/theme/components/checkbox.rn.styl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ $checkbox-label-padding-bottom := 10px
55
$checkbox-label-padding-left := 0px
66
$checkbox-label-padding-right := 0px
77

8+
$checkbox-ui-round-bgimg := url('https://dpubstatic.udache.com/static/dpubimg/WJ4o6TwcmHnPBgq8xGecr_right.png')
9+
$checkbox-ui-square-bgimg := url('https://dpubstatic.udache.com/static/dpubimg/uS2n9DlRRxLZdND56hyPZ_right-square.png') // 方形复选框选中图形(对勾)
810
$checkbox-ui-position-margin-top := 0px
911
$checkbox-ui-position-margin-bottom := 0px
1012
$checkbox-ui-position-margin-left := 10px
1113
$checkbox-ui-position-margin-right := 0px
14+
$checkbox-ui-round-border-color_checked := $var(color-primary)

packages/mpx-cube-ui/lib/components/checkbox-single/css.rn.styl

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,16 @@
4545
border-width 0
4646
.cube-checkbox-inner-ui-square_checked
4747
border-radius $var(checkbox-ui-square-radius)
48-
background-image: url(https://dpubstatic.udache.com/static/dpubimg/uS2n9DlRRxLZdND56hyPZ_right-square.png)
48+
background-color $var(checkbox-ui-square-bgc_checked)
49+
background-image $var(checkbox-ui-square-bgimg)
4950
background-size: 100% 100%
5051
background-repeat: no-repeat
5152
.cube-checkbox-inner-ui-round_checked
5253
border-width 2px
53-
border-color $var(color-primary)
54+
border-color $var(checkbox-ui-round-border-color_checked)
5455
border-radius $var(checkbox-ui-round-radius)
55-
background-image: url(https://dpubstatic.udache.com/static/dpubimg/WJ4o6TwcmHnPBgq8xGecr_right.png)
56+
background-color $var(checkbox-ui-round-bgc_checked)
57+
background-image $var(checkbox-ui-round-bgimg)
5658
background-size: 100% 100%
5759
background-repeat: no-repeat
5860
.cube-checkbox-ui_disabled

packages/mpx-cube-ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mpxjs/mpx-cube-ui",
3-
"version": "1.4.14",
3+
"version": "1.4.15-rn.1",
44
"description": "mpx components library",
55
"author": "xiaolei <xiaolei@didichuxing.com>",
66
"publishConfig": {

packages/mpx-cube-ui/src/common/stylus/theme/components/checkbox.rn.styl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ $checkbox-label-padding-bottom := 10px
55
$checkbox-label-padding-left := 0px
66
$checkbox-label-padding-right := 0px
77

8+
$checkbox-ui-round-bgimg := url('https://dpubstatic.udache.com/static/dpubimg/WJ4o6TwcmHnPBgq8xGecr_right.png')
9+
$checkbox-ui-square-bgimg := url('https://dpubstatic.udache.com/static/dpubimg/uS2n9DlRRxLZdND56hyPZ_right-square.png') // 方形复选框选中图形(对勾)
810
$checkbox-ui-position-margin-top := 0px
911
$checkbox-ui-position-margin-bottom := 0px
1012
$checkbox-ui-position-margin-left := 10px
1113
$checkbox-ui-position-margin-right := 0px
14+
$checkbox-ui-round-border-color_checked := $var(color-primary)

packages/mpx-cube-ui/src/components/checkbox-single/css.rn.styl

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,16 @@
4545
border-width 0
4646
.cube-checkbox-inner-ui-square_checked
4747
border-radius $var(checkbox-ui-square-radius)
48-
background-image: url(https://dpubstatic.udache.com/static/dpubimg/uS2n9DlRRxLZdND56hyPZ_right-square.png)
48+
background-color $var(checkbox-ui-square-bgc_checked)
49+
background-image $var(checkbox-ui-square-bgimg)
4950
background-size: 100% 100%
5051
background-repeat: no-repeat
5152
.cube-checkbox-inner-ui-round_checked
5253
border-width 2px
53-
border-color $var(color-primary)
54+
border-color $var(checkbox-ui-round-border-color_checked)
5455
border-radius $var(checkbox-ui-round-radius)
55-
background-image: url(https://dpubstatic.udache.com/static/dpubimg/WJ4o6TwcmHnPBgq8xGecr_right.png)
56+
background-color $var(checkbox-ui-round-bgc_checked)
57+
background-image $var(checkbox-ui-round-bgimg)
5658
background-size: 100% 100%
5759
background-repeat: no-repeat
5860
.cube-checkbox-ui_disabled

0 commit comments

Comments
 (0)