@gm-mobile/c-react 3.9.3-beta.10 → 3.9.3-beta.14

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.10",
3
+ "version": "3.9.3-beta.14",
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.10",
25
- "@gm-mobile/c-tool": "^3.9.3-beta.10",
26
- "@gm-mobile/locales": "^3.9.3-beta.10"
24
+ "@gm-mobile/c-font": "^3.9.3-beta.14",
25
+ "@gm-mobile/c-tool": "^3.9.3-beta.14",
26
+ "@gm-mobile/locales": "^3.9.3-beta.14"
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": "319aa341cee95047c299feaa5206711113b4c092"
36
+ "gitHead": "b0fbd70d9632ca882d1954d95153705a3f7663c0"
37
37
  }
@@ -159,7 +159,7 @@ export class TextField extends Component<TextFieldProps, TextFieldState> {
159
159
  disabled,
160
160
  highlight,
161
161
  cursorSpacing = 30,
162
- maxLength,
162
+ maxLength = -1,
163
163
  confirmType,
164
164
  adjustPosition,
165
165
  block,
@@ -180,7 +180,7 @@ export class TextField extends Component<TextFieldProps, TextFieldState> {
180
180
 
181
181
  const common = {
182
182
  disabled: disabled,
183
- onInput: this.onInput.bind(this),
183
+ // onInput: this.onInput.bind(this),
184
184
  onChange: this.onInput.bind(this),
185
185
  onClick: this.onClick.bind(this),
186
186
  onBlur: () => {
@@ -226,6 +226,7 @@ export class TextField extends Component<TextFieldProps, TextFieldState> {
226
226
  active: highlight || active,
227
227
  highlight,
228
228
  disabled,
229
+ block,
229
230
  })}
230
231
  width={width}
231
232
  style={style}
@@ -41,6 +41,9 @@
41
41
  background-color: var(--m-color-bg-secondary);
42
42
  }
43
43
  }
44
+ &.block {
45
+ width: 100%;
46
+ }
44
47
  .text-field-placeholder {
45
48
  color: var(--m-color-placeholder);
46
49
  }
@@ -98,13 +98,13 @@
98
98
  }
99
99
 
100
100
  .m-border-radius-circle {
101
- border-radius: 50%;
101
+ border-radius: 50%!important;
102
102
  }
103
103
 
104
104
  .m-border-radius-chip {
105
- border-radius: 100px;
105
+ border-radius: 100px!important;
106
106
  }
107
107
 
108
108
  .m-border-radius-5 {
109
- border-radius: 5px;
109
+ border-radius: 5px!important;
110
110
  }
@@ -66,6 +66,10 @@
66
66
  text-decoration: line-through;
67
67
  }
68
68
 
69
+ .m-text-normal {
70
+ font-weight: normal;
71
+ }
72
+
69
73
  .m-text-bold {
70
74
  font-weight: bold;
71
75
  }