@nutui/nutui-react-taro 3.1.0-beta.1 → 4.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -0
- package/dist/cjs/locales/base.d.ts +6 -0
- package/dist/cjs/locales/en-US.js +17 -1
- package/dist/cjs/locales/id-ID.js +17 -1
- package/dist/cjs/locales/ja-JP.js +16 -2
- package/dist/cjs/locales/tr-TR.js +17 -1
- package/dist/cjs/locales/vi-VN.js +17 -1
- package/dist/cjs/locales/zh-CN.js +15 -1
- package/dist/cjs/locales/zh-TW.js +15 -1
- package/dist/cjs/locales/zh-UG.js +17 -1
- package/dist/cjs/packages/address/existRender.js +1 -1
- package/dist/cjs/packages/address/style/style.css +2 -2
- package/dist/cjs/packages/address/style/style.harmony.css +6 -6
- package/dist/cjs/packages/audio/audio.js +2 -2
- package/dist/cjs/packages/audio/style/style.harmony.css +295 -50
- package/dist/cjs/packages/button/button.js +38 -9
- package/dist/cjs/packages/button/style/button.scss +327 -227
- package/dist/cjs/packages/button/style/style.css +292 -47
- package/dist/cjs/packages/button/style/style.harmony.css +292 -47
- package/dist/cjs/packages/button/style-jmapp/button.scss +327 -227
- package/dist/cjs/packages/button/style-jmapp/style.css +268 -23
- package/dist/cjs/packages/button/style-jrkf/button.scss +327 -227
- package/dist/cjs/packages/button/style-jrkf/style.css +268 -23
- package/dist/cjs/packages/calendar/style/style.css +2 -2
- package/dist/cjs/packages/calendar/style/style.harmony.css +2 -2
- package/dist/cjs/packages/calendarcard/style/style.css +1 -1
- package/dist/cjs/packages/calendarcard/style/style.harmony.css +1 -1
- package/dist/cjs/packages/card/style/style.harmony.css +2 -2
- package/dist/cjs/packages/cascader/cascader.js +1 -1
- package/dist/cjs/packages/cascader/style/style.harmony.css +2 -2
- package/dist/cjs/packages/checkbox/checkbox.js +4 -3
- package/dist/cjs/packages/checkbox/style/checkbox.scss +19 -3
- package/dist/cjs/packages/checkbox/style/style.css +21 -6
- package/dist/cjs/packages/checkbox/style/style.harmony.css +23 -8
- package/dist/cjs/packages/checkbox/style-jmapp/checkbox.scss +19 -3
- package/dist/cjs/packages/checkbox/style-jmapp/style.css +18 -3
- package/dist/cjs/packages/checkbox/style-jrkf/checkbox.scss +19 -3
- package/dist/cjs/packages/checkbox/style-jrkf/style.css +18 -3
- package/dist/cjs/packages/checkboxgroup/style/style.css +2 -2
- package/dist/cjs/packages/checkboxgroup/style/style.harmony.css +2 -2
- package/dist/cjs/packages/circleprogress/circleprogress.js +1 -1
- package/dist/cjs/packages/configprovider/types.d.ts +1 -1
- package/dist/cjs/packages/countdown/style/style.css +1 -1
- package/dist/cjs/packages/countdown/style/style.harmony.css +1 -1
- package/dist/cjs/packages/datepicker/datepicker.js +3 -5
- package/dist/cjs/packages/datepicker/utils.js +7 -0
- package/dist/cjs/packages/dialog/style/style.harmony.css +292 -47
- package/dist/cjs/packages/elevator/style/elevator.scss +6 -2
- package/dist/cjs/packages/elevator/style/style.css +2 -2
- package/dist/cjs/packages/elevator/style/style.harmony.css +2 -2
- package/dist/cjs/packages/elevator/style-jmapp/elevator.scss +6 -2
- package/dist/cjs/packages/elevator/style-jmapp/style.css +2 -2
- package/dist/cjs/packages/elevator/style-jrkf/elevator.scss +6 -2
- package/dist/cjs/packages/elevator/style-jrkf/style.css +2 -2
- package/dist/cjs/packages/ellipsis/style/style.css +1 -1
- package/dist/cjs/packages/ellipsis/style/style.harmony.css +1 -1
- package/dist/cjs/packages/empty/style/style.harmony.css +292 -47
- package/dist/cjs/packages/hoverbuttonitem/hoverbuttonitem.js +1 -1
- package/dist/cjs/packages/inputnumber/inputnumber.js +5 -1
- package/dist/cjs/packages/inputnumber/style/inputnumber.scss +11 -5
- package/dist/cjs/packages/inputnumber/style/style.css +16 -11
- package/dist/cjs/packages/inputnumber/style/style.harmony.css +16 -11
- package/dist/cjs/packages/inputnumber/style-jmapp/inputnumber.scss +11 -5
- package/dist/cjs/packages/inputnumber/style-jmapp/style.css +10 -5
- package/dist/cjs/packages/inputnumber/style-jrkf/inputnumber.scss +11 -5
- package/dist/cjs/packages/inputnumber/style-jrkf/style.css +10 -5
- package/dist/cjs/packages/pagination/pagination.js +2 -2
- package/dist/cjs/packages/price/price.js +15 -4
- package/dist/cjs/packages/progress/progress.js +2 -2
- package/dist/cjs/packages/radio/radio.js +3 -2
- package/dist/cjs/packages/radio/style/radio.scss +9 -3
- package/dist/cjs/packages/radio/style/style.css +10 -5
- package/dist/cjs/packages/radio/style/style.harmony.css +12 -7
- package/dist/cjs/packages/radio/style-jmapp/radio.scss +9 -3
- package/dist/cjs/packages/radio/style-jmapp/style.css +8 -3
- package/dist/cjs/packages/radio/style-jrkf/radio.scss +9 -3
- package/dist/cjs/packages/radio/style-jrkf/style.css +8 -3
- package/dist/cjs/packages/radiogroup/style/style.css +2 -2
- package/dist/cjs/packages/radiogroup/style/style.harmony.css +2 -2
- package/dist/cjs/packages/range/style/style.css +3 -3
- package/dist/cjs/packages/range/style/style.harmony.css +3 -3
- package/dist/cjs/packages/resultpage/resultpage.js +5 -5
- package/dist/cjs/packages/resultpage/style/style.harmony.css +292 -47
- package/dist/cjs/packages/searchbar/style/searchbar.scss +5 -5
- package/dist/cjs/packages/searchbar/style/style.css +5 -5
- package/dist/cjs/packages/searchbar/style/style.harmony.css +5 -5
- package/dist/cjs/packages/searchbar/style-jmapp/searchbar.scss +5 -5
- package/dist/cjs/packages/searchbar/style-jmapp/style.css +5 -5
- package/dist/cjs/packages/searchbar/style-jrkf/searchbar.scss +5 -5
- package/dist/cjs/packages/searchbar/style-jrkf/style.css +5 -5
- package/dist/cjs/packages/signature/signature.js +1 -1
- package/dist/cjs/packages/steps/style/style.css +2 -2
- package/dist/cjs/packages/steps/style/style.harmony.css +2 -2
- package/dist/cjs/packages/swipe/swipe.js +2 -2
- package/dist/cjs/packages/switch/style/style.css +2 -2
- package/dist/cjs/packages/switch/style/style.harmony.css +2 -2
- package/dist/cjs/packages/tabs/style/style.css +2 -2
- package/dist/cjs/packages/tabs/style/style.harmony.css +2 -2
- package/dist/cjs/packages/tag/style/style.css +2 -2
- package/dist/cjs/packages/tag/style/style.harmony.css +2 -2
- package/dist/cjs/packages/timedetail/style/style.css +1 -1
- package/dist/cjs/packages/timedetail/style/style.harmony.css +1 -1
- package/dist/cjs/packages/timeselect/style/style.harmony.css +1 -1
- package/dist/cjs/packages/toast/style/style.css +18 -15
- package/dist/cjs/packages/toast/style/style.harmony.css +18 -15
- package/dist/cjs/packages/toast/style/toast.scss +23 -16
- package/dist/cjs/packages/toast/style-jmapp/style.css +17 -14
- package/dist/cjs/packages/toast/style-jmapp/toast.scss +23 -16
- package/dist/cjs/packages/toast/style-jrkf/style.css +17 -14
- package/dist/cjs/packages/toast/style-jrkf/toast.scss +23 -16
- package/dist/cjs/packages/toast/toast.js +2 -3
- package/dist/cjs/types/base/atoms.d.ts +3 -3
- package/dist/cjs/types/spec/button/base.d.ts +1 -0
- package/dist/cjs/utils/taro/get-system-info.d.ts +0 -5
- package/dist/cjs/utils/taro/get-system-info.js +2 -7
- package/dist/es/hooks/taro/use-custom-event.js +1 -0
- package/dist/es/locales/base.d.ts +6 -0
- package/dist/es/locales/en-US.js +17 -1
- package/dist/es/locales/id-ID.js +17 -1
- package/dist/es/locales/ja-JP.js +16 -2
- package/dist/es/locales/tr-TR.js +17 -1
- package/dist/es/locales/vi-VN.js +17 -1
- package/dist/es/locales/zh-CN.js +15 -1
- package/dist/es/locales/zh-TW.js +15 -1
- package/dist/es/locales/zh-UG.js +17 -1
- package/dist/es/packages/address/existRender.js +1 -1
- package/dist/es/packages/address/style/style.css +2 -2
- package/dist/es/packages/address/style/style.harmony.css +6 -6
- package/dist/es/packages/audio/audio.js +2 -2
- package/dist/es/packages/audio/style/style.harmony.css +295 -50
- package/dist/es/packages/button/button.js +37 -8
- package/dist/es/packages/button/style/button.scss +327 -227
- package/dist/es/packages/button/style/style.css +292 -47
- package/dist/es/packages/button/style/style.harmony.css +292 -47
- package/dist/es/packages/button/style-jmapp/button.scss +327 -227
- package/dist/es/packages/button/style-jmapp/style.css +268 -23
- package/dist/es/packages/button/style-jrkf/button.scss +327 -227
- package/dist/es/packages/button/style-jrkf/style.css +268 -23
- package/dist/es/packages/calendar/style/style.css +2 -2
- package/dist/es/packages/calendar/style/style.harmony.css +2 -2
- package/dist/es/packages/calendarcard/style/style.css +1 -1
- package/dist/es/packages/calendarcard/style/style.harmony.css +1 -1
- package/dist/es/packages/card/style/style.harmony.css +2 -2
- package/dist/es/packages/cascader/cascader.js +1 -1
- package/dist/es/packages/cascader/style/style.harmony.css +2 -2
- package/dist/es/packages/checkbox/checkbox.js +4 -3
- package/dist/es/packages/checkbox/style/checkbox.scss +19 -3
- package/dist/es/packages/checkbox/style/style.css +21 -6
- package/dist/es/packages/checkbox/style/style.harmony.css +23 -8
- package/dist/es/packages/checkbox/style-jmapp/checkbox.scss +19 -3
- package/dist/es/packages/checkbox/style-jmapp/style.css +18 -3
- package/dist/es/packages/checkbox/style-jrkf/checkbox.scss +19 -3
- package/dist/es/packages/checkbox/style-jrkf/style.css +18 -3
- package/dist/es/packages/checkboxgroup/style/style.css +2 -2
- package/dist/es/packages/checkboxgroup/style/style.harmony.css +2 -2
- package/dist/es/packages/circleprogress/circleprogress.js +1 -1
- package/dist/es/packages/configprovider/types.d.ts +1 -1
- package/dist/es/packages/countdown/style/style.css +1 -1
- package/dist/es/packages/countdown/style/style.harmony.css +1 -1
- package/dist/es/packages/datepicker/datepicker.js +3 -5
- package/dist/es/packages/datepicker/utils.js +7 -0
- package/dist/es/packages/dialog/style/style.harmony.css +292 -47
- package/dist/es/packages/elevator/style/elevator.scss +6 -2
- package/dist/es/packages/elevator/style/style.css +2 -2
- package/dist/es/packages/elevator/style/style.harmony.css +2 -2
- package/dist/es/packages/elevator/style-jmapp/elevator.scss +6 -2
- package/dist/es/packages/elevator/style-jmapp/style.css +2 -2
- package/dist/es/packages/elevator/style-jrkf/elevator.scss +6 -2
- package/dist/es/packages/elevator/style-jrkf/style.css +2 -2
- package/dist/es/packages/ellipsis/style/style.css +1 -1
- package/dist/es/packages/ellipsis/style/style.harmony.css +1 -1
- package/dist/es/packages/empty/style/style.harmony.css +292 -47
- package/dist/es/packages/hoverbuttonitem/hoverbuttonitem.js +1 -1
- package/dist/es/packages/inputnumber/inputnumber.js +5 -1
- package/dist/es/packages/inputnumber/style/inputnumber.scss +11 -5
- package/dist/es/packages/inputnumber/style/style.css +16 -11
- package/dist/es/packages/inputnumber/style/style.harmony.css +16 -11
- package/dist/es/packages/inputnumber/style-jmapp/inputnumber.scss +11 -5
- package/dist/es/packages/inputnumber/style-jmapp/style.css +10 -5
- package/dist/es/packages/inputnumber/style-jrkf/inputnumber.scss +11 -5
- package/dist/es/packages/inputnumber/style-jrkf/style.css +10 -5
- package/dist/es/packages/pagination/pagination.js +2 -2
- package/dist/es/packages/price/price.js +16 -5
- package/dist/es/packages/progress/progress.js +2 -2
- package/dist/es/packages/radio/radio.js +3 -2
- package/dist/es/packages/radio/style/radio.scss +9 -3
- package/dist/es/packages/radio/style/style.css +10 -5
- package/dist/es/packages/radio/style/style.harmony.css +12 -7
- package/dist/es/packages/radio/style-jmapp/radio.scss +9 -3
- package/dist/es/packages/radio/style-jmapp/style.css +8 -3
- package/dist/es/packages/radio/style-jrkf/radio.scss +9 -3
- package/dist/es/packages/radio/style-jrkf/style.css +8 -3
- package/dist/es/packages/radiogroup/style/style.css +2 -2
- package/dist/es/packages/radiogroup/style/style.harmony.css +2 -2
- package/dist/es/packages/range/style/style.css +3 -3
- package/dist/es/packages/range/style/style.harmony.css +3 -3
- package/dist/es/packages/resultpage/resultpage.js +5 -5
- package/dist/es/packages/resultpage/style/style.harmony.css +292 -47
- package/dist/es/packages/searchbar/style/searchbar.scss +5 -5
- package/dist/es/packages/searchbar/style/style.css +5 -5
- package/dist/es/packages/searchbar/style/style.harmony.css +5 -5
- package/dist/es/packages/searchbar/style-jmapp/searchbar.scss +5 -5
- package/dist/es/packages/searchbar/style-jmapp/style.css +5 -5
- package/dist/es/packages/searchbar/style-jrkf/searchbar.scss +5 -5
- package/dist/es/packages/searchbar/style-jrkf/style.css +5 -5
- package/dist/es/packages/signature/signature.js +1 -1
- package/dist/es/packages/steps/style/style.css +2 -2
- package/dist/es/packages/steps/style/style.harmony.css +2 -2
- package/dist/es/packages/swipe/swipe.js +2 -2
- package/dist/es/packages/switch/style/style.css +2 -2
- package/dist/es/packages/switch/style/style.harmony.css +2 -2
- package/dist/es/packages/tabs/style/style.css +2 -2
- package/dist/es/packages/tabs/style/style.harmony.css +2 -2
- package/dist/es/packages/tag/style/style.css +2 -2
- package/dist/es/packages/tag/style/style.harmony.css +2 -2
- package/dist/es/packages/timedetail/style/style.css +1 -1
- package/dist/es/packages/timedetail/style/style.harmony.css +1 -1
- package/dist/es/packages/timeselect/style/style.harmony.css +1 -1
- package/dist/es/packages/toast/style/style.css +18 -15
- package/dist/es/packages/toast/style/style.harmony.css +18 -15
- package/dist/es/packages/toast/style/toast.scss +23 -16
- package/dist/es/packages/toast/style-jmapp/style.css +17 -14
- package/dist/es/packages/toast/style-jmapp/toast.scss +23 -16
- package/dist/es/packages/toast/style-jrkf/style.css +17 -14
- package/dist/es/packages/toast/style-jrkf/toast.scss +23 -16
- package/dist/es/packages/toast/toast.js +2 -3
- package/dist/es/types/base/atoms.d.ts +3 -3
- package/dist/es/types/spec/button/base.d.ts +1 -0
- package/dist/es/utils/taro/get-system-info.d.ts +0 -5
- package/dist/es/utils/taro/get-system-info.js +8 -7
- package/dist/nutui.react.umd.js +135 -51
- package/dist/style-jmapp.css +1 -1
- package/dist/style-jmapp.scss +33 -33
- package/dist/style-jrkf.css +1 -1
- package/dist/style-jrkf.scss +34 -34
- package/dist/style.css +1 -1
- package/dist/style.scss +35 -35
- package/dist/styles/theme-daojia.scss +55 -48
- package/dist/styles/theme-dark-daojia.scss +55 -47
- package/dist/styles/theme-dark.scss +108 -109
- package/dist/styles/theme-default.scss +110 -111
- package/dist/styles/theme-jmapp.scss +1 -1
- package/dist/styles/theme-jrkf.scss +1 -1
- package/dist/styles/themes/daojia.css +1 -1
- package/dist/styles/themes/dark-daojia.css +1 -1
- package/dist/styles/themes/dark.css +1 -1
- package/dist/styles/themes/default.css +1 -1
- package/dist/styles/themes/jmapp.css +1 -1
- package/dist/styles/themes/jrkf.css +1 -1
- package/dist/styles/variables-daojia.scss +1055 -1976
- package/dist/styles/variables-jmapp.scss +96 -5
- package/dist/styles/variables-jrkf.scss +96 -5
- package/dist/styles/variables.scss +141 -37
- package/package.json +1 -1
|
@@ -19,20 +19,20 @@ page {
|
|
|
19
19
|
/* #ifndef dynamic*/
|
|
20
20
|
display: inline-flex;
|
|
21
21
|
/* #endif */
|
|
22
|
-
width: calc(2 * var(--nutui-inputnumber-
|
|
22
|
+
width: calc(2 * var(--nutui-inputnumber-divider-width, 1px) + 2 * var(--nutui-inputnumber-button-width, calc(28px * var(--nut-scale-f, 1))) + var(--nutui-inputnumber-input-width, calc(32px * var(--nut-scale-f, 1))));
|
|
23
23
|
flex-direction: row;
|
|
24
24
|
align-items: center;
|
|
25
|
-
background-color: var(--nutui-
|
|
26
|
-
border-radius: var(--nutui-inputnumber-input-border-radius, calc(
|
|
25
|
+
background-color: var(--nutui-inputnumber-input-background-color, var(--nutui-color-background-component));
|
|
26
|
+
border-radius: var(--nutui-inputnumber-input-border-radius, var(--nutui-radius-base, calc(8px * var(--nut-scale-f, 1))));
|
|
27
27
|
overflow: hidden;
|
|
28
28
|
}
|
|
29
29
|
.nut-inputnumber-minus, .nut-inputnumber-add {
|
|
30
30
|
display: flex;
|
|
31
31
|
justify-content: center;
|
|
32
32
|
align-items: center;
|
|
33
|
-
width: var(--nutui-inputnumber-button-width, calc(
|
|
34
|
-
height: var(--nutui-inputnumber-button-height, calc(
|
|
35
|
-
background-color: var(--nutui-inputnumber-button-background-color,
|
|
33
|
+
width: var(--nutui-inputnumber-button-width, calc(28px * var(--nut-scale-f, 1)));
|
|
34
|
+
height: var(--nutui-inputnumber-button-height, calc(28px * var(--nut-scale-f, 1)));
|
|
35
|
+
background-color: var(--nutui-inputnumber-button-background-color, var(--nutui-color-background-component));
|
|
36
36
|
}
|
|
37
37
|
.nut-inputnumber-minus .nut-icon, .nut-inputnumber-add .nut-icon {
|
|
38
38
|
width: calc(10px * var(--nut-scale-f, 1));
|
|
@@ -46,20 +46,25 @@ page {
|
|
|
46
46
|
color: var(--nutui-color-text-disabled, #c2c4cc);
|
|
47
47
|
cursor: not-allowed;
|
|
48
48
|
}
|
|
49
|
+
.nut-inputnumber-divider {
|
|
50
|
+
width: var(--nutui-inputnumber-divider-width, 1px);
|
|
51
|
+
align-self: stretch;
|
|
52
|
+
background-color: var(--nutui-color-background-overlay, #ffffff);
|
|
53
|
+
}
|
|
49
54
|
.nut-inputnumber-input {
|
|
50
55
|
display: flex;
|
|
51
56
|
justify-content: center;
|
|
52
57
|
align-items: center;
|
|
53
|
-
width: var(--nutui-inputnumber-input-width, calc(
|
|
58
|
+
width: var(--nutui-inputnumber-input-width, calc(32px * var(--nut-scale-f, 1)));
|
|
59
|
+
height: var(--nutui-inputnumber-input-height, calc(28px * var(--nut-scale-f, 1)));
|
|
54
60
|
font-size: var(--nutui-inputnumber-input-font-size, var(--nutui-font-size-s, calc(12px * var(--nut-scale-font, var(--nut-scale-f, 1)))));
|
|
55
|
-
|
|
61
|
+
font-family: var(--nutui-inputnumber-input-font-family, JDZH);
|
|
56
62
|
text-align: center;
|
|
57
63
|
outline: none;
|
|
58
64
|
border: var(--nutui-inputnumber-input-border, 0);
|
|
59
|
-
margin-left: var(--nutui-inputnumber-input-margin, 0px);
|
|
60
|
-
margin-right: var(--nutui-inputnumber-input-margin, 0px);
|
|
61
65
|
color: var(--nutui-color-text, #505259);
|
|
62
|
-
background-color: var(--nutui-inputnumber-input-background-color, var(--nutui-color-background
|
|
66
|
+
background-color: var(--nutui-inputnumber-input-background-color, var(--nutui-color-background-component));
|
|
67
|
+
padding: 0;
|
|
63
68
|
}
|
|
64
69
|
.nut-inputnumber-input-disabled {
|
|
65
70
|
color: var(--nutui-color-text-disabled, #c2c4cc);
|
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
display: inline-flex;
|
|
7
7
|
/* #endif */
|
|
8
8
|
width: calc(
|
|
9
|
-
2 * #{$inputnumber-
|
|
9
|
+
2 * #{$inputnumber-divider-width} + 2 * #{$inputnumber-button-width} +
|
|
10
10
|
#{$inputnumber-input-width}
|
|
11
11
|
);
|
|
12
12
|
flex-direction: row;
|
|
13
13
|
align-items: center;
|
|
14
|
-
background-color: $
|
|
14
|
+
background-color: $inputnumber-input-background-color;
|
|
15
15
|
border-radius: $inputnumber-input-border-radius;
|
|
16
16
|
overflow: hidden;
|
|
17
17
|
&-minus,
|
|
@@ -38,20 +38,26 @@
|
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
+
&-divider {
|
|
42
|
+
width: $inputnumber-divider-width;
|
|
43
|
+
align-self: stretch;
|
|
44
|
+
background-color: $color-background-overlay;
|
|
45
|
+
}
|
|
46
|
+
|
|
41
47
|
&-input {
|
|
42
48
|
display: flex;
|
|
43
49
|
justify-content: center;
|
|
44
50
|
align-items: center;
|
|
45
51
|
width: $inputnumber-input-width;
|
|
46
|
-
font-size: $inputnumber-input-font-size;
|
|
47
52
|
height: $inputnumber-input-height;
|
|
53
|
+
font-size: $inputnumber-input-font-size;
|
|
54
|
+
font-family: $inputnumber-input-font-family;
|
|
48
55
|
text-align: center;
|
|
49
56
|
outline: none;
|
|
50
57
|
border: $inputnumber-input-border;
|
|
51
|
-
margin-left: $inputnumber-input-margin;
|
|
52
|
-
margin-right: $inputnumber-input-margin;
|
|
53
58
|
color: $color-text;
|
|
54
59
|
background-color: $inputnumber-input-background-color;
|
|
60
|
+
padding: 0;
|
|
55
61
|
&-disabled {
|
|
56
62
|
color: $color-text-disabled;
|
|
57
63
|
}
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
/* #ifndef dynamic*/
|
|
10
10
|
display: inline-flex;
|
|
11
11
|
/* #endif */
|
|
12
|
-
width: calc(2 * var(--nutui-inputnumber-
|
|
12
|
+
width: calc(2 * var(--nutui-inputnumber-divider-width, 1px) + 2 * var(--nutui-inputnumber-button-width, 16px) + var(--nutui-inputnumber-input-width, 40px));
|
|
13
13
|
flex-direction: row;
|
|
14
14
|
align-items: center;
|
|
15
|
-
background-color: var(--nutui-color-surface-
|
|
15
|
+
background-color: var(--nutui-inputnumber-input-background-color, var(--nutui-color-surface-2));
|
|
16
16
|
border-radius: var(--nutui-inputnumber-input-border-radius, 6px);
|
|
17
17
|
overflow: hidden;
|
|
18
18
|
}
|
|
@@ -36,20 +36,25 @@
|
|
|
36
36
|
color: var(--nutui-color-text-disabled);
|
|
37
37
|
cursor: not-allowed;
|
|
38
38
|
}
|
|
39
|
+
.nut-inputnumber-divider {
|
|
40
|
+
width: var(--nutui-inputnumber-divider-width, 1px);
|
|
41
|
+
align-self: stretch;
|
|
42
|
+
background-color: var(--nutui-color-surface-2);
|
|
43
|
+
}
|
|
39
44
|
.nut-inputnumber-input {
|
|
40
45
|
display: flex;
|
|
41
46
|
justify-content: center;
|
|
42
47
|
align-items: center;
|
|
43
48
|
width: var(--nutui-inputnumber-input-width, 40px);
|
|
44
|
-
font-size: var(--nutui-inputnumber-input-font-size, 14px);
|
|
45
49
|
height: var(--nutui-inputnumber-input-height, 24px);
|
|
50
|
+
font-size: var(--nutui-inputnumber-input-font-size, 14px);
|
|
51
|
+
font-family: var(--nutui-inputnumber-input-font-family, JDZH);
|
|
46
52
|
text-align: center;
|
|
47
53
|
outline: none;
|
|
48
54
|
border: var(--nutui-inputnumber-input-border, 0);
|
|
49
|
-
margin-left: var(--nutui-inputnumber-input-margin, 0 6px);
|
|
50
|
-
margin-right: var(--nutui-inputnumber-input-margin, 0 6px);
|
|
51
55
|
color: var(--nutui-color-text);
|
|
52
56
|
background-color: var(--nutui-inputnumber-input-background-color, var(--nutui-color-surface-2));
|
|
57
|
+
padding: 0;
|
|
53
58
|
}
|
|
54
59
|
.nut-inputnumber-input-disabled {
|
|
55
60
|
color: var(--nutui-color-text-disabled);
|
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
display: inline-flex;
|
|
7
7
|
/* #endif */
|
|
8
8
|
width: calc(
|
|
9
|
-
2 * #{$inputnumber-
|
|
9
|
+
2 * #{$inputnumber-divider-width} + 2 * #{$inputnumber-button-width} +
|
|
10
10
|
#{$inputnumber-input-width}
|
|
11
11
|
);
|
|
12
12
|
flex-direction: row;
|
|
13
13
|
align-items: center;
|
|
14
|
-
background-color: $
|
|
14
|
+
background-color: $inputnumber-input-background-color;
|
|
15
15
|
border-radius: $inputnumber-input-border-radius;
|
|
16
16
|
overflow: hidden;
|
|
17
17
|
&-minus,
|
|
@@ -38,20 +38,26 @@
|
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
+
&-divider {
|
|
42
|
+
width: $inputnumber-divider-width;
|
|
43
|
+
align-self: stretch;
|
|
44
|
+
background-color: $color-background-overlay;
|
|
45
|
+
}
|
|
46
|
+
|
|
41
47
|
&-input {
|
|
42
48
|
display: flex;
|
|
43
49
|
justify-content: center;
|
|
44
50
|
align-items: center;
|
|
45
51
|
width: $inputnumber-input-width;
|
|
46
|
-
font-size: $inputnumber-input-font-size;
|
|
47
52
|
height: $inputnumber-input-height;
|
|
53
|
+
font-size: $inputnumber-input-font-size;
|
|
54
|
+
font-family: $inputnumber-input-font-family;
|
|
48
55
|
text-align: center;
|
|
49
56
|
outline: none;
|
|
50
57
|
border: $inputnumber-input-border;
|
|
51
|
-
margin-left: $inputnumber-input-margin;
|
|
52
|
-
margin-right: $inputnumber-input-margin;
|
|
53
58
|
color: $color-text;
|
|
54
59
|
background-color: $inputnumber-input-background-color;
|
|
60
|
+
padding: 0;
|
|
55
61
|
&-disabled {
|
|
56
62
|
color: $color-text-disabled;
|
|
57
63
|
}
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
/* #ifndef dynamic*/
|
|
10
10
|
display: inline-flex;
|
|
11
11
|
/* #endif */
|
|
12
|
-
width: calc(2 * var(--nutui-inputnumber-
|
|
12
|
+
width: calc(2 * var(--nutui-inputnumber-divider-width, 1px) + 2 * var(--nutui-inputnumber-button-width, 16px) + var(--nutui-inputnumber-input-width, 40px));
|
|
13
13
|
flex-direction: row;
|
|
14
14
|
align-items: center;
|
|
15
|
-
background-color: var(--nutui-color-surface-
|
|
15
|
+
background-color: var(--nutui-inputnumber-input-background-color, var(--nutui-color-surface-2));
|
|
16
16
|
border-radius: var(--nutui-inputnumber-input-border-radius, 6px);
|
|
17
17
|
overflow: hidden;
|
|
18
18
|
}
|
|
@@ -36,20 +36,25 @@
|
|
|
36
36
|
color: var(--nutui-color-text-disabled);
|
|
37
37
|
cursor: not-allowed;
|
|
38
38
|
}
|
|
39
|
+
.nut-inputnumber-divider {
|
|
40
|
+
width: var(--nutui-inputnumber-divider-width, 1px);
|
|
41
|
+
align-self: stretch;
|
|
42
|
+
background-color: var(--nutui-color-surface-2);
|
|
43
|
+
}
|
|
39
44
|
.nut-inputnumber-input {
|
|
40
45
|
display: flex;
|
|
41
46
|
justify-content: center;
|
|
42
47
|
align-items: center;
|
|
43
48
|
width: var(--nutui-inputnumber-input-width, 40px);
|
|
44
|
-
font-size: var(--nutui-inputnumber-input-font-size, 14px);
|
|
45
49
|
height: var(--nutui-inputnumber-input-height, 24px);
|
|
50
|
+
font-size: var(--nutui-inputnumber-input-font-size, 14px);
|
|
51
|
+
font-family: var(--nutui-inputnumber-input-font-family, JDZH);
|
|
46
52
|
text-align: center;
|
|
47
53
|
outline: none;
|
|
48
54
|
border: var(--nutui-inputnumber-input-border, 0);
|
|
49
|
-
margin-left: var(--nutui-inputnumber-input-margin, 0 6px);
|
|
50
|
-
margin-right: var(--nutui-inputnumber-input-margin, 0 6px);
|
|
51
55
|
color: var(--nutui-color-text);
|
|
52
56
|
background-color: var(--nutui-inputnumber-input-background-color, var(--nutui-color-surface-2));
|
|
57
|
+
padding: 0;
|
|
53
58
|
}
|
|
54
59
|
.nut-inputnumber-input-disabled {
|
|
55
60
|
color: var(--nutui-color-text-disabled);
|
|
@@ -85,7 +85,7 @@ var Pagination = function Pagination(props) {
|
|
|
85
85
|
onClick: function onClick() {
|
|
86
86
|
return prevPage();
|
|
87
87
|
}
|
|
88
|
-
}, (0, _addcolorforharmony.addColorForHarmony)(prev || locale.pagination.prev, current === 1 ? '#c2c4cc' : '#ff0f23')), mode === 'multi' && /*#__PURE__*/ _react.default.createElement(_components.View, {
|
|
88
|
+
}, (0, _addcolorforharmony.addColorForHarmony)(prev || locale.pagination.prev, current === 1 ? 'var(--nutui-color-text-disabled, #c2c4cc)' : 'var(--nutui-color-primary, #ff0f23)')), mode === 'multi' && /*#__PURE__*/ _react.default.createElement(_components.View, {
|
|
89
89
|
className: "".concat(classPrefix, "-contain")
|
|
90
90
|
}, pages.map(function(item, index) {
|
|
91
91
|
var _obj;
|
|
@@ -105,7 +105,7 @@ var Pagination = function Pagination(props) {
|
|
|
105
105
|
onClick: function onClick() {
|
|
106
106
|
return nextPage();
|
|
107
107
|
}
|
|
108
|
-
}, (0, _addcolorforharmony.addColorForHarmony)(next || locale.pagination.next, current >= pageCount ? '#c2c4cc' : '#ff0f23'))), mode === 'lite' && /*#__PURE__*/ _react.default.createElement(_components.View, {
|
|
108
|
+
}, (0, _addcolorforharmony.addColorForHarmony)(next || locale.pagination.next, current >= pageCount ? 'var(--nutui-color-text-disabled, #c2c4cc)' : 'var(--nutui-color-primary, #ff0f23)'))), mode === 'lite' && /*#__PURE__*/ _react.default.createElement(_components.View, {
|
|
109
109
|
className: "".concat(classPrefix, "-lite")
|
|
110
110
|
}, /*#__PURE__*/ _react.default.createElement(_components.Text, {
|
|
111
111
|
className: "".concat(classPrefix, "-lite-active")
|
|
@@ -20,6 +20,7 @@ var _typings = require("../../utils/typings");
|
|
|
20
20
|
var _index = require("../configprovider/index");
|
|
21
21
|
var _types = require("../../types");
|
|
22
22
|
var _platform = require("../../utils/taro/platform");
|
|
23
|
+
var _shouldrenderpriceraw = require("../../utils/should-render-price-raw");
|
|
23
24
|
var defaultProps = (0, _object_spread_props._)((0, _object_spread._)({}, _typings.ComponentDefaults), {
|
|
24
25
|
color: 'primary',
|
|
25
26
|
price: 0,
|
|
@@ -34,10 +35,17 @@ var Price = function Price(props) {
|
|
|
34
35
|
var _$_object_spread = (0, _object_spread._)({}, defaultProps, props), color = _$_object_spread.color, originalPrice = _$_object_spread.price, symbol = _$_object_spread.symbol, digits = _$_object_spread.digits, thousands = _$_object_spread.thousands, position = _$_object_spread.position, size = _$_object_spread.size, line = _$_object_spread.line, className = _$_object_spread.className, style = _$_object_spread.style;
|
|
35
36
|
var classPrefix = 'nut-price';
|
|
36
37
|
var rtl = (0, _index.useRtl)();
|
|
38
|
+
var isRenderPriceRaw = (0, _react.useMemo)(function() {
|
|
39
|
+
return typeof originalPrice === 'string' && (0, _shouldrenderpriceraw.shouldRenderPriceAsRaw)(originalPrice);
|
|
40
|
+
}, [
|
|
41
|
+
originalPrice
|
|
42
|
+
]);
|
|
37
43
|
var price = (0, _react.useMemo)(function() {
|
|
44
|
+
if (isRenderPriceRaw) return '';
|
|
38
45
|
return originalPrice.toString().replace(/[^\d.]/g, '');
|
|
39
46
|
}, [
|
|
40
|
-
originalPrice
|
|
47
|
+
originalPrice,
|
|
48
|
+
isRenderPriceRaw
|
|
41
49
|
]);
|
|
42
50
|
var isCustomPriceColor = (0, _react.useMemo)(function() {
|
|
43
51
|
var specificPriceColor = Object.values(_types.PriceColorEnum);
|
|
@@ -118,12 +126,15 @@ var Price = function Price(props) {
|
|
|
118
126
|
style: priceColorStyle
|
|
119
127
|
}, formatDecimal(price))) : null, symbol && position === 'after' ? renderSymbol() : null);
|
|
120
128
|
};
|
|
121
|
-
|
|
129
|
+
var renderRawContent = function renderRawContent() {
|
|
130
|
+
return /*#__PURE__*/ _react.default.createElement(_react.default.Fragment, null, originalPrice);
|
|
131
|
+
};
|
|
132
|
+
return /*#__PURE__*/ _react.default.createElement(_react.default.Fragment, null, (0, _platform.harmony)() || process.env.TARO_ENV === 'dynamic' ? /*#__PURE__*/ _react.default.createElement(_components.Text, {
|
|
122
133
|
className: "".concat(classPrefix, " ").concat(classPrefix, "-").concat(color, " ").concat(className),
|
|
123
134
|
style: style
|
|
124
|
-
}, renderInner()) : /*#__PURE__*/ _react.default.createElement(_components.View, {
|
|
135
|
+
}, isRenderPriceRaw ? renderRawContent() : renderInner()) : /*#__PURE__*/ _react.default.createElement(_components.View, {
|
|
125
136
|
className: "".concat(classPrefix, " ").concat(classPrefix, "-").concat(color, " ").concat(className),
|
|
126
137
|
style: style
|
|
127
|
-
}, renderInner()));
|
|
138
|
+
}, isRenderPriceRaw ? renderRawContent() : renderInner()));
|
|
128
139
|
};
|
|
129
140
|
Price.displayName = 'NutPrice';
|
|
@@ -83,7 +83,7 @@ var Progress = function Progress(props) {
|
|
|
83
83
|
}, baseStyles),
|
|
84
84
|
inner: (0, _object_spread._)({
|
|
85
85
|
width: "".concat(displayPercent, "%"),
|
|
86
|
-
background: effectiveColor || '#
|
|
86
|
+
background: effectiveColor || 'var(--nutui-color-primary, #ff0f23)'
|
|
87
87
|
}, baseStyles, transitionStyle)
|
|
88
88
|
};
|
|
89
89
|
};
|
|
@@ -207,7 +207,7 @@ var Progress = function Progress(props) {
|
|
|
207
207
|
};
|
|
208
208
|
var computeInnerStyle = function computeInnerStyle() {
|
|
209
209
|
var style = {
|
|
210
|
-
backgroundColor: effectiveColor || '#ff0f23',
|
|
210
|
+
backgroundColor: effectiveColor || 'var(--nutui-color-primary, #ff0f23)',
|
|
211
211
|
fontSize: fontSize && (0, _pxtransform.pxTransform)(parseInt(fontSize.toString()))
|
|
212
212
|
};
|
|
213
213
|
if ((0, _platform.harmony)()) {
|
|
@@ -102,7 +102,7 @@ var Radio = function Radio(props) {
|
|
|
102
102
|
};
|
|
103
103
|
var renderLabel = function renderLabel() {
|
|
104
104
|
var labelcls = (0, _classnames.default)("".concat(classPrefix, "-label"), (0, _define_property._)({}, "".concat(classPrefix, "-label-disabled"), disabled));
|
|
105
|
-
return /*#__PURE__*/ _react.default.createElement(_react.default.Fragment, null, renderIcon(), /*#__PURE__*/ _react.default.createElement(_components.View, {
|
|
105
|
+
return /*#__PURE__*/ _react.default.createElement(_react.default.Fragment, null, renderIcon(), children && /*#__PURE__*/ _react.default.createElement(_components.View, {
|
|
106
106
|
className: labelcls
|
|
107
107
|
}, children));
|
|
108
108
|
};
|
|
@@ -123,7 +123,8 @@ var Radio = function Radio(props) {
|
|
|
123
123
|
if (disabled || checkedStatement) return;
|
|
124
124
|
setCheckedStatement(!checkedStatement);
|
|
125
125
|
};
|
|
126
|
-
var
|
|
126
|
+
var _obj;
|
|
127
|
+
var cls = (0, _classnames.default)(classPrefix, (_obj = {}, (0, _define_property._)(_obj, "".concat(classPrefix, "-reverse"), labelPosition === 'left'), (0, _define_property._)(_obj, "".concat(classPrefix, "-nolabel"), !children), _obj), className);
|
|
127
128
|
return /*#__PURE__*/ _react.default.createElement(_components.View, {
|
|
128
129
|
className: cls,
|
|
129
130
|
style: style,
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
flex-shrink: 0;
|
|
5
|
+
min-height: scale-px(32px);
|
|
5
6
|
|
|
6
7
|
&.nut-radio-reverse {
|
|
7
8
|
flex-direction: row-reverse;
|
|
@@ -12,6 +13,11 @@
|
|
|
12
13
|
}
|
|
13
14
|
}
|
|
14
15
|
|
|
16
|
+
&.nut-radio-nolabel {
|
|
17
|
+
min-width: scale-px(32px);
|
|
18
|
+
justify-content: center;
|
|
19
|
+
}
|
|
20
|
+
|
|
15
21
|
&-label {
|
|
16
22
|
margin-left: $radio-label-margin-left;
|
|
17
23
|
font-size: $radio-label-font-size;
|
|
@@ -24,7 +30,7 @@
|
|
|
24
30
|
|
|
25
31
|
&-icon {
|
|
26
32
|
color: $color-text-disabled;
|
|
27
|
-
background-color: $
|
|
33
|
+
background-color: $color-background-overlay;
|
|
28
34
|
transition-duration: 0.3s;
|
|
29
35
|
transition-property: color, border-color, background-color;
|
|
30
36
|
font-size: $radio-icon-font-size;
|
|
@@ -35,12 +41,12 @@
|
|
|
35
41
|
&-checked {
|
|
36
42
|
color: $color-primary;
|
|
37
43
|
background-color: $white;
|
|
38
|
-
box-shadow:
|
|
44
|
+
box-shadow: none;
|
|
39
45
|
border-radius: 50%;
|
|
40
46
|
|
|
41
47
|
&.nut-radio-icon-disabled {
|
|
42
48
|
color: $color-primary-disabled-special;
|
|
43
|
-
background-color: $
|
|
49
|
+
background-color: $color-background-overlay;
|
|
44
50
|
box-shadow: none;
|
|
45
51
|
border-radius: 50%;
|
|
46
52
|
}
|
|
@@ -16,6 +16,7 @@ page {
|
|
|
16
16
|
display: flex;
|
|
17
17
|
align-items: center;
|
|
18
18
|
flex-shrink: 0;
|
|
19
|
+
min-height: calc(32px * var(--nut-scale-f, 1));
|
|
19
20
|
}
|
|
20
21
|
.nut-radio.nut-radio-reverse {
|
|
21
22
|
flex-direction: row-reverse;
|
|
@@ -24,6 +25,10 @@ page {
|
|
|
24
25
|
margin-right: var(--nutui-radio-label-margin-left, calc(4px * var(--nut-scale-f, 1)));
|
|
25
26
|
margin-left: 0;
|
|
26
27
|
}
|
|
28
|
+
.nut-radio.nut-radio-nolabel {
|
|
29
|
+
min-width: calc(32px * var(--nut-scale-f, 1));
|
|
30
|
+
justify-content: center;
|
|
31
|
+
}
|
|
27
32
|
.nut-radio-label {
|
|
28
33
|
margin-left: var(--nutui-radio-label-margin-left, calc(4px * var(--nut-scale-f, 1)));
|
|
29
34
|
font-size: var(--nutui-radio-label-font-size, var(--nutui-font-size-s, calc(12px * var(--nut-scale-font, var(--nut-scale-f, 1)))));
|
|
@@ -34,7 +39,7 @@ page {
|
|
|
34
39
|
}
|
|
35
40
|
.nut-radio-icon {
|
|
36
41
|
color: var(--nutui-color-text-disabled, #c2c4cc);
|
|
37
|
-
background-color: #ffffff;
|
|
42
|
+
background-color: var(--nutui-color-background-overlay, #ffffff);
|
|
38
43
|
transition-duration: 0.3s;
|
|
39
44
|
transition-property: color, border-color, background-color;
|
|
40
45
|
font-size: var(--nutui-radio-icon-font-size, var(--nutui-font-size-icon, calc(16px * var(--nut-scale-icon, var(--nut-scale-f, 1)))));
|
|
@@ -43,12 +48,12 @@ page {
|
|
|
43
48
|
.nut-radio-icon-checked {
|
|
44
49
|
color: var(--nutui-color-primary, #ff0f23);
|
|
45
50
|
background-color: #ffffff;
|
|
46
|
-
box-shadow:
|
|
51
|
+
box-shadow: none;
|
|
47
52
|
border-radius: 50%;
|
|
48
53
|
}
|
|
49
54
|
.nut-radio-icon-checked.nut-radio-icon-disabled {
|
|
50
|
-
color: var(--nutui-color-primary-disabled-special, #
|
|
51
|
-
background-color: #ffffff;
|
|
55
|
+
color: var(--nutui-color-primary-disabled-special, #ff91a5);
|
|
56
|
+
background-color: var(--nutui-color-background-overlay, #ffffff);
|
|
52
57
|
box-shadow: none;
|
|
53
58
|
border-radius: 50%;
|
|
54
59
|
}
|
|
@@ -73,7 +78,7 @@ page {
|
|
|
73
78
|
border: calc(1px * var(--nut-scale-f, 1)) solid var(--nutui-radio-button-background, rgba(250, 44, 25, 0.05));
|
|
74
79
|
}
|
|
75
80
|
.nut-radio-button-active {
|
|
76
|
-
background: var(--nutui-color-primary-light-pressed, #
|
|
81
|
+
background: var(--nutui-color-primary-light-pressed, #ffe8ee);
|
|
77
82
|
color: var(--nutui-color-primary, #ff0f23);
|
|
78
83
|
border: var(--nutui-radio-button-active-border, calc(1px * var(--nut-scale-f, 1)) solid var(--nutui-color-primary, #ff0f23));
|
|
79
84
|
}
|
|
@@ -33,7 +33,7 @@ page {
|
|
|
33
33
|
}
|
|
34
34
|
.nut-radiogroup-vertical .nut-radio-button-active {
|
|
35
35
|
border: var(--nutui-radio-button-active-border, calc(1px * var(--nut-scale-f, 1)) solid var(--nutui-color-primary, #ff0f23));
|
|
36
|
-
background-color: var(--nutui-color-primary-light-pressed, #
|
|
36
|
+
background-color: var(--nutui-color-primary-light-pressed, #ffe8ee);
|
|
37
37
|
}
|
|
38
38
|
.nut-radiogroup-horizontal {
|
|
39
39
|
display: flex;
|
|
@@ -43,7 +43,7 @@ page {
|
|
|
43
43
|
}
|
|
44
44
|
.nut-radiogroup-horizontal .nut-radio-button-active {
|
|
45
45
|
border: var(--nutui-radio-button-active-border, calc(1px * var(--nut-scale-f, 1)) solid var(--nutui-color-primary, #ff0f23));
|
|
46
|
-
background-color: var(--nutui-color-primary-light-pressed, #
|
|
46
|
+
background-color: var(--nutui-color-primary-light-pressed, #ffe8ee);
|
|
47
47
|
}
|
|
48
48
|
.nut-radiogroup-horizontal .nut-radio:last-child {
|
|
49
49
|
margin: 0 var(--nutui-radiogroup-radio-margin, calc(20px * var(--nut-scale-f, 1))) var(--nutui-radiogroup-radio-margin-bottom, calc(5px * var(--nut-scale-f, 1))) 0;
|
|
@@ -64,6 +64,7 @@ page {
|
|
|
64
64
|
display: flex;
|
|
65
65
|
align-items: center;
|
|
66
66
|
flex-shrink: 0;
|
|
67
|
+
min-height: calc(32px * var(--nut-scale-f, 1));
|
|
67
68
|
}
|
|
68
69
|
.nut-radio.nut-radio-reverse {
|
|
69
70
|
flex-direction: row-reverse;
|
|
@@ -72,6 +73,10 @@ page {
|
|
|
72
73
|
margin-right: var(--nutui-radio-label-margin-left, calc(4px * var(--nut-scale-f, 1)));
|
|
73
74
|
margin-left: 0;
|
|
74
75
|
}
|
|
76
|
+
.nut-radio.nut-radio-nolabel {
|
|
77
|
+
min-width: calc(32px * var(--nut-scale-f, 1));
|
|
78
|
+
justify-content: center;
|
|
79
|
+
}
|
|
75
80
|
.nut-radio-label {
|
|
76
81
|
margin-left: var(--nutui-radio-label-margin-left, calc(4px * var(--nut-scale-f, 1)));
|
|
77
82
|
font-size: var(--nutui-radio-label-font-size, var(--nutui-font-size-s, calc(12px * var(--nut-scale-font, var(--nut-scale-f, 1)))));
|
|
@@ -82,7 +87,7 @@ page {
|
|
|
82
87
|
}
|
|
83
88
|
.nut-radio-icon {
|
|
84
89
|
color: var(--nutui-color-text-disabled, #c2c4cc);
|
|
85
|
-
background-color: #ffffff;
|
|
90
|
+
background-color: var(--nutui-color-background-overlay, #ffffff);
|
|
86
91
|
transition-duration: 0.3s;
|
|
87
92
|
transition-property: color, border-color, background-color;
|
|
88
93
|
font-size: var(--nutui-radio-icon-font-size, var(--nutui-font-size-icon, calc(16px * var(--nut-scale-icon, var(--nut-scale-f, 1)))));
|
|
@@ -91,12 +96,12 @@ page {
|
|
|
91
96
|
.nut-radio-icon-checked {
|
|
92
97
|
color: var(--nutui-color-primary, #ff0f23);
|
|
93
98
|
background-color: #ffffff;
|
|
94
|
-
box-shadow:
|
|
99
|
+
box-shadow: none;
|
|
95
100
|
border-radius: 50%;
|
|
96
101
|
}
|
|
97
102
|
.nut-radio-icon-checked.nut-radio-icon-disabled {
|
|
98
|
-
color: var(--nutui-color-primary-disabled-special, #
|
|
99
|
-
background-color: #ffffff;
|
|
103
|
+
color: var(--nutui-color-primary-disabled-special, #ff91a5);
|
|
104
|
+
background-color: var(--nutui-color-background-overlay, #ffffff);
|
|
100
105
|
box-shadow: none;
|
|
101
106
|
border-radius: 50%;
|
|
102
107
|
}
|
|
@@ -121,7 +126,7 @@ page {
|
|
|
121
126
|
border: calc(1px * var(--nut-scale-f, 1)) solid var(--nutui-radio-button-background, rgba(250, 44, 25, 0.05));
|
|
122
127
|
}
|
|
123
128
|
.nut-radio-button-active {
|
|
124
|
-
background: var(--nutui-color-primary-light-pressed, #
|
|
129
|
+
background: var(--nutui-color-primary-light-pressed, #ffe8ee);
|
|
125
130
|
color: var(--nutui-color-primary, #ff0f23);
|
|
126
131
|
border: var(--nutui-radio-button-active-border, calc(1px * var(--nut-scale-f, 1)) solid var(--nutui-color-primary, #ff0f23));
|
|
127
132
|
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
flex-shrink: 0;
|
|
5
|
+
min-height: scale-px(32px);
|
|
5
6
|
|
|
6
7
|
&.nut-radio-reverse {
|
|
7
8
|
flex-direction: row-reverse;
|
|
@@ -12,6 +13,11 @@
|
|
|
12
13
|
}
|
|
13
14
|
}
|
|
14
15
|
|
|
16
|
+
&.nut-radio-nolabel {
|
|
17
|
+
min-width: scale-px(32px);
|
|
18
|
+
justify-content: center;
|
|
19
|
+
}
|
|
20
|
+
|
|
15
21
|
&-label {
|
|
16
22
|
margin-left: $radio-label-margin-left;
|
|
17
23
|
font-size: $radio-label-font-size;
|
|
@@ -24,7 +30,7 @@
|
|
|
24
30
|
|
|
25
31
|
&-icon {
|
|
26
32
|
color: $color-text-disabled;
|
|
27
|
-
background-color: $
|
|
33
|
+
background-color: $color-background-overlay;
|
|
28
34
|
transition-duration: 0.3s;
|
|
29
35
|
transition-property: color, border-color, background-color;
|
|
30
36
|
font-size: $radio-icon-font-size;
|
|
@@ -35,12 +41,12 @@
|
|
|
35
41
|
&-checked {
|
|
36
42
|
color: $color-primary;
|
|
37
43
|
background-color: $white;
|
|
38
|
-
box-shadow:
|
|
44
|
+
box-shadow: none;
|
|
39
45
|
border-radius: 50%;
|
|
40
46
|
|
|
41
47
|
&.nut-radio-icon-disabled {
|
|
42
48
|
color: $color-primary-disabled-special;
|
|
43
|
-
background-color: $
|
|
49
|
+
background-color: $color-background-overlay;
|
|
44
50
|
box-shadow: none;
|
|
45
51
|
border-radius: 50%;
|
|
46
52
|
}
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
display: flex;
|
|
7
7
|
align-items: center;
|
|
8
8
|
flex-shrink: 0;
|
|
9
|
+
min-height: scale-px(32px);
|
|
9
10
|
}
|
|
10
11
|
.nut-radio.nut-radio-reverse {
|
|
11
12
|
flex-direction: row-reverse;
|
|
@@ -14,6 +15,10 @@
|
|
|
14
15
|
margin-right: var(--nutui-radio-label-margin-left, 4px);
|
|
15
16
|
margin-left: 0;
|
|
16
17
|
}
|
|
18
|
+
.nut-radio.nut-radio-nolabel {
|
|
19
|
+
min-width: scale-px(32px);
|
|
20
|
+
justify-content: center;
|
|
21
|
+
}
|
|
17
22
|
.nut-radio-label {
|
|
18
23
|
margin-left: var(--nutui-radio-label-margin-left, 4px);
|
|
19
24
|
font-size: var(--nutui-radio-label-font-size, var(--nutui-font-text));
|
|
@@ -24,7 +29,7 @@
|
|
|
24
29
|
}
|
|
25
30
|
.nut-radio-icon {
|
|
26
31
|
color: var(--nutui-color-text-disabled);
|
|
27
|
-
background-color:
|
|
32
|
+
background-color: var(--nutui-color-surface-2);
|
|
28
33
|
transition-duration: 0.3s;
|
|
29
34
|
transition-property: color, border-color, background-color;
|
|
30
35
|
font-size: var(--nutui-radio-icon-font-size, var(--nutui-font-text-large));
|
|
@@ -33,12 +38,12 @@
|
|
|
33
38
|
.nut-radio-icon-checked {
|
|
34
39
|
color: var(--nutui-color-primary);
|
|
35
40
|
background-color: #ffffff;
|
|
36
|
-
box-shadow:
|
|
41
|
+
box-shadow: none;
|
|
37
42
|
border-radius: 50%;
|
|
38
43
|
}
|
|
39
44
|
.nut-radio-icon-checked.nut-radio-icon-disabled {
|
|
40
45
|
color: var(--nutui-color-primary-disabled);
|
|
41
|
-
background-color:
|
|
46
|
+
background-color: var(--nutui-color-surface-2);
|
|
42
47
|
box-shadow: none;
|
|
43
48
|
border-radius: 50%;
|
|
44
49
|
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
flex-shrink: 0;
|
|
5
|
+
min-height: scale-px(32px);
|
|
5
6
|
|
|
6
7
|
&.nut-radio-reverse {
|
|
7
8
|
flex-direction: row-reverse;
|
|
@@ -12,6 +13,11 @@
|
|
|
12
13
|
}
|
|
13
14
|
}
|
|
14
15
|
|
|
16
|
+
&.nut-radio-nolabel {
|
|
17
|
+
min-width: scale-px(32px);
|
|
18
|
+
justify-content: center;
|
|
19
|
+
}
|
|
20
|
+
|
|
15
21
|
&-label {
|
|
16
22
|
margin-left: $radio-label-margin-left;
|
|
17
23
|
font-size: $radio-label-font-size;
|
|
@@ -24,7 +30,7 @@
|
|
|
24
30
|
|
|
25
31
|
&-icon {
|
|
26
32
|
color: $color-text-disabled;
|
|
27
|
-
background-color: $
|
|
33
|
+
background-color: $color-background-overlay;
|
|
28
34
|
transition-duration: 0.3s;
|
|
29
35
|
transition-property: color, border-color, background-color;
|
|
30
36
|
font-size: $radio-icon-font-size;
|
|
@@ -35,12 +41,12 @@
|
|
|
35
41
|
&-checked {
|
|
36
42
|
color: $color-primary;
|
|
37
43
|
background-color: $white;
|
|
38
|
-
box-shadow:
|
|
44
|
+
box-shadow: none;
|
|
39
45
|
border-radius: 50%;
|
|
40
46
|
|
|
41
47
|
&.nut-radio-icon-disabled {
|
|
42
48
|
color: $color-primary-disabled-special;
|
|
43
|
-
background-color: $
|
|
49
|
+
background-color: $color-background-overlay;
|
|
44
50
|
box-shadow: none;
|
|
45
51
|
border-radius: 50%;
|
|
46
52
|
}
|