Explorar o código

fix resize props to 0px bug.

方正 %!s(int64=7) %!d(string=hai) anos
pai
achega
ce05bccea4
Modificáronse 3 ficheiros con 5 adicións e 5 borrados
  1. 0 0
      build/react-dragger-layout.js
  2. 4 4
      src/index.tsx
  3. 1 1
      src/lib/dragact.tsx

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
build/react-dragger-layout.js


+ 4 - 4
src/index.tsx

@@ -6,7 +6,7 @@ import { SortedTableWithStatic } from "./StaticHeader/index";
 import { LayoutRestore } from "./LayoutRestore/index";
 import { HandleLayout } from "./HandleLayout/index";
 import { AddRemove } from "./AddRemove/index";
-import { SortableList } from "./SortableList/index";
+// import { SortableList } from "./SortableList/index";
 import './index.css'
 
 
@@ -18,13 +18,13 @@ const DemoMap: any = {
     LayoutRestore: <LayoutRestore />,
     HandleLayout: <HandleLayout />,
     AddRemove: <AddRemove />,
-    SortableList: <SortableList />
+    // SortableList: <SortableList />
 }
 
 class DemoDispatcher extends React.Component<{}, {}> {
 
     state = {
-        demo: <SortableList />
+        demo: <LayoutDemo />
     }
 
     handleLayoutChange = (demoName: string) => {
@@ -44,7 +44,7 @@ class DemoDispatcher extends React.Component<{}, {}> {
                     <button onClick={() => this.handleLayoutChange('LayoutRestore')}>LayoutRestore</button>
                     <button onClick={() => this.handleLayoutChange('HandleLayout')}>HandleLayout</button>
                     <button onClick={() => this.handleLayoutChange('AddRemove')}>AddRemove</button>
-                    <button onClick={() => this.handleLayoutChange('SortableList')}>SortableList</button>
+                    {/* <button onClick={() => this.handleLayoutChange('SortableList')}>SortableList</button> */}
                 </div>
                 {this.state.demo}
             </div>

+ 1 - 1
src/lib/dragact.tsx

@@ -24,7 +24,7 @@ export interface DragactLayoutItem {
 }
 
 export interface DragactProps {
-    layout: DragactLayoutItem[] //暂时不推荐使用
+    layout?: DragactLayoutItem[] //暂时不推荐使用
     /** 
      * 宽度切分比 
      * 这个参数会把容器的宽度平均分为col等份

Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio