diff --git a/package.json b/package.json index edc234af..6768f415 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "wizard-ui", - "version": "0.4.3", + "version": "0.4.3-beta.1", "private": false, "main": "lib/index.js", "module": "esm/index.js", diff --git a/src/interface.tsx b/src/interface.tsx index fc82ca5d..1a8f500b 100644 --- a/src/interface.tsx +++ b/src/interface.tsx @@ -104,6 +104,7 @@ export interface TabsProps { eventKeyName?: string; direction?: 'right'; onSelect?: SelectCallback; + activeKey?: string; id?: string; } diff --git a/src/utils/bulk.ts b/src/utils/bulk.ts index a8c170ad..17c68883 100644 --- a/src/utils/bulk.ts +++ b/src/utils/bulk.ts @@ -27,7 +27,7 @@ type LocaleType = keyof typeof BULK_MAP; */ export default function bulk(value: number, options: OPTIONS, locale?: LocaleType) { const lang = isClient ? - (window.localStorage.getItem('LOCALE') === 'en' ? 'en' : 'zh') : + (window.localStorage.getItem('LOCALE') && /en/.test(window.localStorage.getItem('LOCALE') as string) ? 'en' : 'zh') : (locale || 'zh'); const BULK = BULK_MAP[lang as LocaleType]; let unit = BULK[0][1];