@tarojs/components-rn 3.4.0 → 3.4.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.
@@ -8,7 +8,7 @@ function formatTimeStr(time = '') {
8
8
  year = ~~year || 2000;
9
9
  month = ~~month || 1;
10
10
  day = ~~day || 1;
11
- return new Date(`${year}/${month}/${day}`);
11
+ return new Date(`${year}-${month}-${day}`);
12
12
  }
13
13
  export default class DateSelector extends React.Component {
14
14
  constructor() {
@@ -37,7 +37,7 @@ export default class DateSelector extends React.Component {
37
37
  });
38
38
  };
39
39
  this.onValueChange = (vals) => {
40
- this.setState({ value: new Date(`${vals[0]}/${~~vals[1] + 1}/${vals[2] || 1}`) });
40
+ this.setState({ value: new Date(`${vals[0]}-${~~vals[1] + 1}-${vals[2] || 1}`) });
41
41
  };
42
42
  this.onOk = () => {
43
43
  this.dismissByOk = true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tarojs/components-rn",
3
- "version": "3.4.0",
3
+ "version": "3.4.1",
4
4
  "description": "多端解决方案基础组件(RN)",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {
@@ -43,7 +43,7 @@
43
43
  "unimodules-permissions-interface": "~5.3.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@tarojs/components": "3.4.0",
46
+ "@tarojs/components": "3.4.1",
47
47
  "@types/react-native": "0.66.5",
48
48
  "@types/sinon": "^9.0.8",
49
49
  "cpy-cli": "^3.1.1",
@@ -70,5 +70,5 @@
70
70
  "@types/react": "17.0.11",
71
71
  "@types/node": "^14.14.41"
72
72
  },
73
- "gitHead": "a0e97bc937f878cc059f54748c9a3829fa3f4664"
73
+ "gitHead": "a2437215b1966fd0b6dd09311bcb4fd894a871d0"
74
74
  }