@titaui/pc 1.9.9 → 1.9.10

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.
@@ -100,7 +100,7 @@ var getBimonthlyMonthKeyValue = function getBimonthlyMonthKeyValue(startMonth) {
100
100
  var datas = [];
101
101
  var monthLang = getMonth();
102
102
 
103
- if (!i18nInfo || i18nInfo.I18NOpen && i18nInfo.I18NUserLang === "zh_CN") {
103
+ if (!_getLocale.isEn) {
104
104
  datas.push({
105
105
  title: "".concat(start, " - ").concat(getNextMonth(start), "\u6708"),
106
106
  value: ["4,".concat(start)]
@@ -69,7 +69,7 @@ function CreateCycle(_ref) {
69
69
  }, []);
70
70
 
71
71
  var onSelectClickHandler = function onSelectClickHandler() {
72
- setSelfCycle(cycle);
72
+ setSelfCycle(cycle || {});
73
73
  popRef.current && popRef.current.show(btnRef.current);
74
74
  };
75
75
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titaui/pc",
3
- "version": "1.9.9",
3
+ "version": "1.9.10",
4
4
  "nameCN": "",
5
5
  "description": "",
6
6
  "main": "src/index.js",
@@ -1,3 +1,4 @@
1
+ import { getBSGlobal } from "&/utils/bs-global";
1
2
  import { getLocale, isEn } from "../../utils/getLocale";
2
3
 
3
4
  export const getYear = () => {
@@ -87,7 +88,7 @@ export const getBimonthlyMonthKeyValue = (startMonth) => {
87
88
  value: string[];
88
89
  }[] = [];
89
90
  const monthLang = getMonth();
90
- if (!i18nInfo || (i18nInfo.I18NOpen && i18nInfo.I18NUserLang === "zh_CN")) {
91
+ if (!isEn) {
91
92
  datas.push({
92
93
  title: `${start} - ${getNextMonth(start)}月`,
93
94
  value: [`4,${start}`],
@@ -44,7 +44,7 @@ function CreateCycle({ cycle, container, onChange }: Props): ReactElement {
44
44
  },[])
45
45
 
46
46
  const onSelectClickHandler = () => {
47
- setSelfCycle(cycle);
47
+ setSelfCycle(cycle || {});
48
48
  popRef.current && popRef.current.show(btnRef.current);
49
49
  }
50
50