@sheinx/base 3.7.4 → 3.7.5-beta.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Item.d.ts","sourceRoot":"","sources":["Item.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAE5D,OAAO,EAAgB,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAuB1D,cAAM,IAAK,SAAQ,KAAK,CAAC,aAAa,CAAC,SAAS,CAAC;IAC/C,MAAM,CAAC,YAAY;;;MAAgB;gBAEvB,KAAK,EAAE,SAAS;IAK5B,WAAW,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU;IAY/B,MAAM;
|
|
1
|
+
{"version":3,"file":"Item.d.ts","sourceRoot":"","sources":["Item.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAE5D,OAAO,EAAgB,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAuB1D,cAAM,IAAK,SAAQ,KAAK,CAAC,aAAa,CAAC,SAAS,CAAC;IAC/C,MAAM,CAAC,YAAY;;;MAAgB;gBAEvB,KAAK,EAAE,SAAS;IAK5B,WAAW,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU;IAY/B,MAAM;CA6CP;AAED,eAAe,IAAI,CAAC"}
|
package/cjs/dropdown/Item.js
CHANGED
|
@@ -91,7 +91,9 @@ var Item = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
91
91
|
contentPropsClassName = _ref2$className === void 0 ? '' : _ref2$className,
|
|
92
92
|
contentPropsOnClick = _ref2.onClick,
|
|
93
93
|
otherContentProps = _objectWithoutProperties(_ref2, _excluded2);
|
|
94
|
-
var className = (0, _classnames.default)(
|
|
94
|
+
var className = (0, _classnames.default)(
|
|
95
|
+
// 如果content是Tooltip,则不传递className(就是dropdown-item的className)
|
|
96
|
+
content.type.displayName !== 'ShineoutTooltip' ? propsClassName : '', contentPropsClassName);
|
|
95
97
|
return /*#__PURE__*/(0, _react.cloneElement)(content, Object.assign(otherProps, otherContentProps, {
|
|
96
98
|
className: className,
|
|
97
99
|
onClick: function onClick(e) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Item.d.ts","sourceRoot":"","sources":["Item.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAE5D,OAAO,EAAgB,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAuB1D,cAAM,IAAK,SAAQ,KAAK,CAAC,aAAa,CAAC,SAAS,CAAC;IAC/C,MAAM,CAAC,YAAY;;;MAAgB;gBAEvB,KAAK,EAAE,SAAS;IAK5B,WAAW,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU;IAY/B,MAAM;
|
|
1
|
+
{"version":3,"file":"Item.d.ts","sourceRoot":"","sources":["Item.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAE5D,OAAO,EAAgB,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAuB1D,cAAM,IAAK,SAAQ,KAAK,CAAC,aAAa,CAAC,SAAS,CAAC;IAC/C,MAAM,CAAC,YAAY;;;MAAgB;gBAEvB,KAAK,EAAE,SAAS;IAK5B,WAAW,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU;IAY/B,MAAM;CA6CP;AAED,eAAe,IAAI,CAAC"}
|
package/esm/dropdown/Item.js
CHANGED
|
@@ -83,7 +83,9 @@ var Item = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
83
83
|
contentPropsClassName = _ref2$className === void 0 ? '' : _ref2$className,
|
|
84
84
|
contentPropsOnClick = _ref2.onClick,
|
|
85
85
|
otherContentProps = _objectWithoutProperties(_ref2, _excluded2);
|
|
86
|
-
var className = classNames(
|
|
86
|
+
var className = classNames(
|
|
87
|
+
// 如果content是Tooltip,则不传递className(就是dropdown-item的className)
|
|
88
|
+
content.type.displayName !== 'ShineoutTooltip' ? propsClassName : '', contentPropsClassName);
|
|
87
89
|
return /*#__PURE__*/cloneElement(content, Object.assign(otherProps, otherContentProps, {
|
|
88
90
|
className: className,
|
|
89
91
|
onClick: function onClick(e) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sheinx/base",
|
|
3
|
-
"version": "3.7.
|
|
3
|
+
"version": "3.7.5-beta.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.7.
|
|
13
|
+
"@sheinx/hooks": "3.7.5-beta.1",
|
|
14
14
|
"immer": "^10.0.0",
|
|
15
15
|
"classnames": "^2.0.0",
|
|
16
16
|
"@shined/reactive": "^0.1.3-alpha.0"
|