Browse Source

fix: js2css fix

代强 3 years ago
parent
commit
46e2d4027e
2 changed files with 1 additions and 1 deletions
  1. 1 0
      packages/semi-foundation/utils/uuid.ts
  2. 0 1
      packages/semi-ui/treeSelect/index.tsx

+ 1 - 0
packages/semi-foundation/utils/uuid.ts

@@ -5,6 +5,7 @@ export default function getUuid(prefix: string) {
 // https://stackoverflow.com/questions/105034/create-guid-uuid-in-javascript
 function getUuidv4() {
     try {
+        // @ts-ignore
         return crypto?.randomUUID?.() ?? (String(1e7 + -1e3 + -4e3 + -8e3 + -1e11).replace(/[018]/g, c =>
             (Number(c) ^ (crypto.getRandomValues(new Uint8Array(1))[0] & (15 >> (Number(c) / 4)))).toString(16)
         ));

+ 0 - 1
packages/semi-ui/treeSelect/index.tsx

@@ -50,7 +50,6 @@ import { isSemiIcon } from '../_utils';
 import { OptionProps, TreeProps, TreeState, FlattenNode, TreeNodeData, TreeNodeProps } from '../tree/interface';
 import { IconChevronDown, IconClear, IconSearch } from '@douyinfe/semi-icons';
 import CheckboxGroup from '../checkbox/checkboxGroup';
-import { boolean } from "@storybook/addon-knobs";
 
 export type ExpandAction = false | 'click' | 'doubleClick';