فهرست منبع

chore: resolve format function ts error in data-fns-extra

shijia.me 2 سال پیش
والد
کامیت
2d62c8d723
3فایلهای تغییر یافته به همراه1 افزوده شده و 87 حذف شده
  1. 1 8
      packages/semi-foundation/utils/date-fns-extra.ts
  2. 0 5
      packages/semi-ui/datePicker/_story/v2/index.js
  3. 0 74
      yarn.lock

+ 1 - 8
packages/semi-foundation/utils/date-fns-extra.ts

@@ -100,15 +100,8 @@ const parse = (date: string | number | Date, formatToken: string, options?: any)
     return toDate(date, options);
 };
 
-/**
- *
- * @param {string | number | Date} date
- * @param {string} formatToken
- * @param {object} [options]
- * @param {string} [options.timeZone]
- */
 /* istanbul ignore next */
-const format = (date: string | number | Date, formatToken: string, options?: any) => {
+const format = (date: number | Date, formatToken: string, options?: any) => {
     if (options && options.timeZone != null && options.timeZone !== '') {
         const timeZone = toIANA(options.timeZone);
         options = { ...options, timeZone };

+ 0 - 5
packages/semi-ui/datePicker/_story/v2/index.js

@@ -15,9 +15,4 @@ export { default as FixRangePanelShift } from './FixRangePanelShift';
 export { default as InsetInputControlled } from './InsetInputControlled';
 export { default as FeatInsetInputProps } from './FeatInsetInputProps';
 export { default as FixMultiplePanelShift } from './FixMultiplePanelShift';
-export { default as FeatRefOpen } from './FeatRefOpen';
-export { default as FeatRefFocus } from './FeatRefFocus';
-export { default as FeatOnClickOutside } from './FeatOnClickOutside';
-export { default as FeatRefClass } from './FeatRefClass';
-export { default as FixNeedConfirmInTabs } from './FixNeedConfirmInTabs';
 export { default as FixTimeZone } from './FixTimeZone';

+ 0 - 74
yarn.lock

@@ -1465,15 +1465,6 @@
     "@douyinfe/semi-animation-styled" "2.23.2"
     classnames "^2.2.6"
 
-"@douyinfe/[email protected]":
-  version "2.31.2"
-  resolved "https://registry.yarnpkg.com/@douyinfe/semi-animation-react/-/semi-animation-react-2.31.2.tgz#d3eb6782400dbdb97ba10878eb91cd1523c11a7d"
-  integrity sha512-TTsxPbDnT7DesjpaYpEWPtdIZJYH8qpLhrDbX9CxjShHoHuZ58XcW+cuukAIRIVVezLIwXrt5ZkIhO0R/094Ww==
-  dependencies:
-    "@douyinfe/semi-animation" "2.12.0"
-    "@douyinfe/semi-animation-styled" "2.23.2"
-    classnames "^2.2.6"
-
 "@douyinfe/[email protected]":
   version "2.23.2"
   resolved "https://registry.npmjs.org/@douyinfe/semi-animation-styled/-/semi-animation-styled-2.23.2.tgz"
@@ -1494,13 +1485,6 @@
   dependencies:
     bezier-easing "^2.1.0"
 
-"@douyinfe/[email protected]":
-  version "2.31.2"
-  resolved "https://registry.yarnpkg.com/@douyinfe/semi-animation/-/semi-animation-2.31.2.tgz#be95fe051f7ad764fb4c283a3c0b0f1a0bc034fc"
-  integrity sha512-AzI2yZUC1Ep4a0B0dcJbTnL3ufFYM/07nPEdO9l9Jf6Ej5b+LDlOR/mGFt95+rG9o2WClipe01QVPyfG6x3G1A==
-  dependencies:
-    bezier-easing "^2.1.0"
-
 "@douyinfe/[email protected]":
   version "2.30.2"
   resolved "https://registry.yarnpkg.com/@douyinfe/semi-foundation/-/semi-foundation-2.30.2.tgz#f7a3f983da02a2843c8e95604f10c08d5c8e922c"
@@ -1515,20 +1499,6 @@
     memoize-one "^5.2.1"
     scroll-into-view-if-needed "^2.2.24"
 
-"@douyinfe/[email protected]":
-  version "2.31.2"
-  resolved "https://registry.yarnpkg.com/@douyinfe/semi-foundation/-/semi-foundation-2.31.2.tgz#4ff893b106447ac815879bf23ca25b7b63ded021"
-  integrity sha512-64L0mLRnB6yJd/Gt1WeC6kKOER50tG5X2TfJ86Tf1P/Yi6006oqYAaccdRnx/cET0A0gAjFcCcyTHtzv7LKfYQ==
-  dependencies:
-    "@douyinfe/semi-animation" "2.12.0"
-    async-validator "^3.5.0"
-    classnames "^2.2.6"
-    date-fns "^2.9.0"
-    date-fns-tz "^1.0.10"
-    lodash "^4.17.21"
-    memoize-one "^5.2.1"
-    scroll-into-view-if-needed "^2.2.24"
-
 "@douyinfe/[email protected]":
   version "2.30.2"
   resolved "https://registry.yarnpkg.com/@douyinfe/semi-icons/-/semi-icons-2.30.2.tgz#03bf9a5ef99bf3b77557379d631908889767b8aa"
@@ -1536,13 +1506,6 @@
   dependencies:
     classnames "^2.2.6"
 
-"@douyinfe/[email protected]", "@douyinfe/semi-icons@^2.0.0":
-  version "2.31.2"
-  resolved "https://registry.yarnpkg.com/@douyinfe/semi-icons/-/semi-icons-2.31.2.tgz#ac78814efd9c161995fd7be60d9e6619c9f70c48"
-  integrity sha512-LAEtAt5CDKjolS9QqI73rQXYUNmLLZYJSbjsilaZRVsFfj7/fSjAG/jrx1NmY7sUkznZ40yQD8380QB1UkHzdQ==
-  dependencies:
-    classnames "^2.2.6"
-
 "@douyinfe/semi-icons@latest":
   version "2.9.1"
   resolved "https://registry.yarnpkg.com/@douyinfe/semi-icons/-/semi-icons-2.9.1.tgz#7a04e1a77070220b04f63e6f65aac30155ed8ddd"
@@ -1556,11 +1519,6 @@
   resolved "https://registry.yarnpkg.com/@douyinfe/semi-illustrations/-/semi-illustrations-2.30.2.tgz#e31007086d75c98c6b87789945bffcdb72cf195e"
   integrity sha512-cjJ02F4Fg6wfWgVCpGSEUU/MDg/fc6zy2eAxMJ2yMqbERYI99y3Qk4RlckPcUnXx5LzfFAeFtM6E/ri+xMtIKQ==
 
-"@douyinfe/[email protected]":
-  version "2.31.2"
-  resolved "https://registry.yarnpkg.com/@douyinfe/semi-illustrations/-/semi-illustrations-2.31.2.tgz#6acc0e3f70af454381ed446d53202feb9e2ae502"
-  integrity sha512-6iHBs30MRhPFG/sesk8a4Csh0R84vCXduAJSwoUmDLvRtFl/nLAVb0i1rDaGb2z+Q83ZepCOz24ulzVr+/lUbA==
-
 "@douyinfe/[email protected]":
   version "2.23.2"
   resolved "https://registry.yarnpkg.com/@douyinfe/semi-scss-compile/-/semi-scss-compile-2.23.2.tgz#30884bb194ee9ae1e81877985e5663c3297c1ced"
@@ -1634,38 +1592,6 @@
   dependencies:
     glob "^7.1.6"
 
-"@douyinfe/[email protected]":
-  version "2.31.2"
-  resolved "https://registry.yarnpkg.com/@douyinfe/semi-theme-default/-/semi-theme-default-2.31.2.tgz#8879f23e1b7cae763e398ac234cf1df624a0c95a"
-  integrity sha512-2VdyWTpRg61/LTUqiYsZ59UfaBYBYHMvlut0N3NFq21uv8csV7MOGJEPkAWinMgY5yFj2wxxcbeTRzwJi1m+2g==
-  dependencies:
-    glob "^7.1.6"
-
-"@douyinfe/semi-ui@^2.0.0":
-  version "2.31.2"
-  resolved "https://registry.yarnpkg.com/@douyinfe/semi-ui/-/semi-ui-2.31.2.tgz#36dda1676a613adc0a47596c18c96d0ce0ed8d19"
-  integrity sha512-GvnqTVzWoxoK28nUbspNnS2LIHmUxMSzr/vF+C74JTrZyjXQnfdIjqIFiFvRRpfMX3FWSvmcIe9hto//VQafmw==
-  dependencies:
-    "@douyinfe/semi-animation" "2.31.2"
-    "@douyinfe/semi-animation-react" "2.31.2"
-    "@douyinfe/semi-foundation" "2.31.2"
-    "@douyinfe/semi-icons" "2.31.2"
-    "@douyinfe/semi-illustrations" "2.31.2"
-    "@douyinfe/semi-theme-default" "2.31.2"
-    async-validator "^3.5.0"
-    classnames "^2.2.6"
-    copy-text-to-clipboard "^2.1.1"
-    date-fns "^2.9.0"
-    date-fns-tz "^1.0.10"
-    lodash "^4.17.21"
-    prop-types "^15.7.2"
-    react-resizable "^1.8.0"
-    react-sortable-hoc "^2.0.0"
-    react-window "^1.8.2"
-    resize-observer-polyfill "^1.5.1"
-    scroll-into-view-if-needed "^2.2.24"
-    utility-types "^3.10.0"
-
 "@douyinfe/semi-ui@latest":
   version "2.30.2"
   resolved "https://registry.yarnpkg.com/@douyinfe/semi-ui/-/semi-ui-2.30.2.tgz#75c2ad58ead2f96845381d8af94d32a58dec3d45"