@sheinx/base 3.6.1-beta.7 → 3.6.1-fix.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/cjs/card/card.js CHANGED
@@ -82,7 +82,7 @@ var Card = function Card(props) {
82
82
  collapsed: realCollapsed,
83
83
  collapsible: collapsible,
84
84
  onCollapse: handleCollapsed,
85
- handleDragMouseDown: moveInfo.handleMouseDown
85
+ handleDragMouseDown: props.moveable ? moveInfo.handleMouseDown : undefined
86
86
  };
87
87
  }, [realCollapsed, collapsible]);
88
88
  var alwaysShowShadow = props.shadow && props.shadow !== 'hover';
package/esm/card/card.js CHANGED
@@ -77,7 +77,7 @@ var Card = function Card(props) {
77
77
  collapsed: realCollapsed,
78
78
  collapsible: collapsible,
79
79
  onCollapse: handleCollapsed,
80
- handleDragMouseDown: moveInfo.handleMouseDown
80
+ handleDragMouseDown: props.moveable ? moveInfo.handleMouseDown : undefined
81
81
  };
82
82
  }, [realCollapsed, collapsible]);
83
83
  var alwaysShowShadow = props.shadow && props.shadow !== 'hover';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sheinx/base",
3
- "version": "3.6.1-beta.7",
3
+ "version": "3.6.1-fix.1",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -10,7 +10,7 @@
10
10
  "module": "./esm/index.js",
11
11
  "typings": "./cjs/index.d.ts",
12
12
  "dependencies": {
13
- "@sheinx/hooks": "3.6.1-beta.7",
13
+ "@sheinx/hooks": "3.6.1-fix.1",
14
14
  "immer": "^10.0.0",
15
15
  "classnames": "^2.0.0",
16
16
  "@shined/reactive": "^0.1.3-alpha.0"