Переглянути джерело

chore: [Tree] modify the treedata of draggable Tree demo

chenyuling 4 роки тому
батько
коміт
ee235dccab

+ 0 - 2
content/navigation/tree/index-en-US.md

@@ -1163,13 +1163,11 @@ import { Tree } from '@douyinfe/semi-ui';
                             label: 'Beijing',
                             value: 'Beijing',
                             key: '0-0-0',
-                            disabled: true,
                         },
                         {
                             label: 'Shanghai',
                             value: 'Shanghai',
                             key: '0-0-1',
-                            disabled: true,
                         },
                     ],
                 },

+ 0 - 2
content/navigation/tree/index.md

@@ -1191,13 +1191,11 @@ import { Tree } from '@douyinfe/semi-ui';
                             label: 'Beijing',
                             value: 'Beijing',
                             key: '0-0-0',
-                            disabled: true,
                         },
                         {
                             label: 'Shanghai',
                             value: 'Shanghai',
                             key: '0-0-1',
-                            disabled: true,
                         },
                     ],
                 },

+ 0 - 8
packages/semi-ui/tree/_story/tree.stories.js

@@ -1706,12 +1706,6 @@ stories.add('tree without value props', () => (
     />
 ));
 
-const x = 3;
-const y = 2;
-const z = 1;
-const gData = [];
-
-
 const DnDTree = () => {
     
     const initialData = [
@@ -1729,13 +1723,11 @@ const DnDTree = () => {
                             label: 'Beijing',
                             value: 'Beijing',
                             key: '0-0-0',
-                            disabled: true,
                         },
                         {
                             label: 'Shanghai',
                             value: 'Shanghai',
                             key: '0-0-1',
-                            disabled: true,
                         },
                     ],
                 },