@gm-mobile/c-react 3.9.3-beta.4 → 3.9.3-beta.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gm-mobile/c-react",
3
- "version": "3.9.3-beta.4",
3
+ "version": "3.9.3-beta.9",
4
4
  "description": "> TODO: description",
5
5
  "author": "liyatang <liyatang@qq.com>",
6
6
  "homepage": "https://github.com/gmfe/gm-mobile#readme",
@@ -21,9 +21,9 @@
21
21
  "url": "https://github.com/gmfe/gm-mobile/issues"
22
22
  },
23
23
  "dependencies": {
24
- "@gm-mobile/c-font": "^3.9.3-beta.4",
25
- "@gm-mobile/c-tool": "^3.9.3-beta.4",
26
- "@gm-mobile/locales": "^3.9.3-beta.4"
24
+ "@gm-mobile/c-font": "^3.9.3-beta.9",
25
+ "@gm-mobile/c-tool": "^3.9.3-beta.9",
26
+ "@gm-mobile/locales": "^3.9.3-beta.9"
27
27
  },
28
28
  "peerDependencies": {
29
29
  "@tarojs/components": "3.0.18",
@@ -33,5 +33,5 @@
33
33
  "prop-types": "^15.7.2",
34
34
  "react": "^16.13.1"
35
35
  },
36
- "gitHead": "932434b3252d7508adb9bb27a4fb3e1402bca34b"
36
+ "gitHead": "8a296c7fb7668d035feb60b3850cc5b724f556b6"
37
37
  }
@@ -73,7 +73,7 @@ export const Button: FC<ButtonProps> = ({
73
73
  onClick={handleClick}
74
74
  >
75
75
  {loadFlag && <Loading className='m-btn-loading' />}
76
- <Flex alignCenter justifyCenter>
76
+ <Flex alignCenter justifyCenter style={{ display: 'inline-flex' }}>
77
77
  {children}
78
78
  </Flex>
79
79
  </BaseButton>
@@ -5,5 +5,6 @@ export { default as MultipleCalendar } from './multiple_calendar'
5
5
  export type {
6
6
  BaseCalendarProps,
7
7
  RangeCalendarProps,
8
+ CalendarProps,
8
9
  MultipleCalendarProps,
9
10
  } from './types'
@@ -30,7 +30,6 @@
30
30
  background: var(--m-color-bg-white);
31
31
  }
32
32
  }
33
- .mCellBorderBottomAfter(15px, 0);
34
33
 
35
34
  &.m-cell-access {
36
35
  cursor: pointer;
@@ -41,10 +40,6 @@
41
40
  }
42
41
  }
43
42
 
44
- &.m-cell-with-icon {
45
- .mCellBorderBottomAfter(50px, 0);
46
- }
47
-
48
43
  .m-cell-icon {
49
44
  width: 35px;
50
45
  }
@@ -105,4 +100,12 @@
105
100
  .m-cell:not(.m-cell-form):last-child::after {
106
101
  display: none;
107
102
  }
103
+
104
+ .m-cell {
105
+ .mCellBorderBottomAfter(15px, 0);
106
+
107
+ &.m-cell-with-icon {
108
+ .mCellBorderBottomAfter(50px, 0);
109
+ }
110
+ }
108
111
  }
@@ -38,6 +38,7 @@ const PopupBase: FC<PopupProps> = ({
38
38
  /** 动画有卡顿现象,先禁用 */
39
39
  disabledAnimate = true,
40
40
  children,
41
+ disableBottomSafeArea,
41
42
  ...rest
42
43
  }) => {
43
44
  devWarnForHook(() => {
@@ -90,7 +91,7 @@ const PopupBase: FC<PopupProps> = ({
90
91
  </Flex>
91
92
  )}
92
93
  <View className='m-popup-content'>{children}</View>
93
- <CustomTabbar />
94
+ {!disableBottomSafeArea && <CustomTabbar />}
94
95
  </View>
95
96
  </View>
96
97
  )
@@ -51,6 +51,7 @@ const PopupBase: FC<PopupV1Props> = ({
51
51
  titleClassName,
52
52
  titleCenter,
53
53
  clickMaskClose = true,
54
+ disableBottomSafeArea,
54
55
  ...rest
55
56
  }) => {
56
57
  devWarnForHook(() => {
@@ -128,7 +129,7 @@ const PopupBase: FC<PopupV1Props> = ({
128
129
  </Flex>
129
130
  )}
130
131
  <View className='m-popup-content'>{children}</View>
131
- <CustomTabbar />
132
+ {!disableBottomSafeArea && <CustomTabbar />}
132
133
  </View>
133
134
  </View>
134
135
  )
@@ -19,6 +19,7 @@ interface PopupProps extends HTMLAttributes<HTMLDivElement> {
19
19
  disabledAnimate?: boolean
20
20
  /** 内部用 */
21
21
  isPickPopup?: boolean
22
+ disableBottomSafeArea?: boolean
22
23
  }
23
24
 
24
25
  interface PopupStaticsTypes {
@@ -170,6 +170,7 @@ export class TextField extends Component<TextFieldProps, TextFieldState> {
170
170
  onClick,
171
171
  onConfirm,
172
172
  fractionDigits,
173
+ alwaysEmbed = true,
173
174
  ...rest
174
175
  // 注意,不用传给input或area的props要在此列出来,不然rest会带过去
175
176
  } = this.props
@@ -207,6 +208,7 @@ export class TextField extends Component<TextFieldProps, TextFieldState> {
207
208
  focus,
208
209
  password,
209
210
  placeholderClass: 'text-field-placeholder',
211
+ alwaysEmbed: alwaysEmbed,
210
212
  onConfirm,
211
213
  })
212
214
  } else {
package/src/less/bg.less CHANGED
@@ -26,6 +26,10 @@
26
26
  background: var(--m-color-bg-accent-light) !important;
27
27
  }
28
28
 
29
+ .m-bg-transparent {
30
+ background: transparent !important;
31
+ }
32
+
29
33
  .m-bg-white-active-with {
30
34
  .mBgWhiteActiveWith();
31
35
  }
@@ -61,4 +65,7 @@ each(@colors,.(@color,@colorKey,@index){
61
65
  .generate-colors(@opacity+1);
62
66
  }
63
67
  .generate-colors(0);
68
+ .m-bg-@{colorKey}{
69
+ background-color: @color!important;
70
+ }
64
71
  });
@@ -23,6 +23,8 @@
23
23
  10: 10px;
24
24
  15: 15px;
25
25
  20: 20px;
26
+ 25: 25px;
27
+ 30: 30px;
26
28
  };
27
29
 
28
30
  each(@size, {
@@ -1,27 +1,3 @@
1
- .m-text-20 {
2
- font-size: var(--m-size-text-20) !important;
3
- }
4
-
5
- .m-text-18 {
6
- font-size: var(--m-size-text-18) !important;
7
- }
8
-
9
- .m-text-16 {
10
- font-size: var(--m-size-text-16) !important;
11
- }
12
-
13
- .m-text-14 {
14
- font-size: var(--m-size-text-14) !important;
15
- }
16
-
17
- .m-text-12 {
18
- font-size: var(--m-size-text-12) !important;
19
- }
20
-
21
- .m-text-10 {
22
- font-size: var(--m-size-text-10) !important;
23
- }
24
-
25
1
  .m-text-center {
26
2
  text-align: center !important;
27
3
  }
@@ -123,17 +99,20 @@ each(@colors,.(@color,@colorKey,@index){
123
99
  .generate-colors(@opacity+1);
124
100
  }
125
101
  .generate-colors(0);
102
+ .m-text-@{colorKey}{
103
+ color: @color!important;
104
+ }
126
105
  });
127
106
 
128
107
  // 生成size, .m-text-{8-32}, --m-size-text-{8-32}
129
108
  .generate-size(@size) when (@size<=32) {
130
109
  :root,
131
110
  page {
132
- --m-size-text-@{size}: @{size}px;
111
+ --m-size-text-@{size}: ~'@{size}px';
133
112
  }
134
113
  .m-text-@{size} {
135
- font-size: e(%("var(--m-size-text-%s ) !important", @size));
114
+ font-size: e(%('var(--m-size-text-%s)!important', @size));
136
115
  }
137
- .generate-size(@size+2);
116
+ .generate-size(@size + 2);
138
117
  }
139
118
  .generate-size(8);