@sheinx/base 3.9.8-beta.1 → 3.9.8-beta.2

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":"input-group.d.ts","sourceRoot":"","sources":["input-group.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;gCAe9B,eAAe;AAAtC,wBAsFE"}
1
+ {"version":3,"file":"input-group.d.ts","sourceRoot":"","sources":["input-group.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;gCAe9B,eAAe;AAAtC,wBA4FE"}
@@ -123,6 +123,12 @@ var _default = exports.default = function _default(props) {
123
123
  additionalProps.innerTitle = child.props.innerTitle || innerTitle;
124
124
  additionalProps.placeTitle = child.props.placeTitle || placeTitle;
125
125
  }
126
+
127
+ // 兼容旧版 Input.Group 透传 name 和 rules 的行为
128
+ if (displayName && displayName.includes('Shineout')) {
129
+ additionalProps.name = child.props.name || props.name;
130
+ additionalProps.rules = child.props.rules || props.rules;
131
+ }
126
132
  return /*#__PURE__*/(0, _react.cloneElement)(child, additionalProps);
127
133
  }
128
134
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
@@ -1 +1 @@
1
- {"version":3,"file":"input-group.d.ts","sourceRoot":"","sources":["input-group.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;gCAe9B,eAAe;AAAtC,wBAsFE"}
1
+ {"version":3,"file":"input-group.d.ts","sourceRoot":"","sources":["input-group.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;gCAe9B,eAAe;AAAtC,wBA4FE"}
@@ -116,6 +116,12 @@ export default (function (props) {
116
116
  additionalProps.innerTitle = child.props.innerTitle || innerTitle;
117
117
  additionalProps.placeTitle = child.props.placeTitle || placeTitle;
118
118
  }
119
+
120
+ // 兼容旧版 Input.Group 透传 name 和 rules 的行为
121
+ if (displayName && displayName.includes('Shineout')) {
122
+ additionalProps.name = child.props.name || props.name;
123
+ additionalProps.rules = child.props.rules || props.rules;
124
+ }
119
125
  return /*#__PURE__*/cloneElement(child, additionalProps);
120
126
  }
121
127
  return /*#__PURE__*/_jsx("span", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sheinx/base",
3
- "version": "3.9.8-beta.1",
3
+ "version": "3.9.8-beta.2",
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.9.8-beta.1",
13
+ "@sheinx/hooks": "3.9.8-beta.2",
14
14
  "immer": "^10.0.0",
15
15
  "classnames": "^2.0.0",
16
16
  "@shined/reactive": "^0.3.3"