@sheinx/base 3.9.12-beta.10 → 3.9.12-beta.12
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":"modal-content.d.ts","sourceRoot":"","sources":["modal-content.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAmF9D,QAAA,MAAM,KAAK,UAAW,iBAAiB,
|
|
1
|
+
{"version":3,"file":"modal-content.d.ts","sourceRoot":"","sources":["modal-content.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAmF9D,QAAA,MAAM,KAAK,UAAW,iBAAiB,mDAgctC,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -411,10 +411,10 @@ var Modal = function Modal(props) {
|
|
|
411
411
|
if (curCascadeConfig && currentIndex < samePositionConfigs.length - 1) {
|
|
412
412
|
instance = curCascadeConfig.cascadeWidth;
|
|
413
413
|
}
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
};
|
|
414
|
+
var marginProp = props.position === 'left' ? 'marginLeft' : 'marginRight';
|
|
415
|
+
return _defineProperty(_defineProperty({
|
|
416
|
+
willChange: 'margin'
|
|
417
|
+
}, marginProp, "".concat(instance, "px")), "transition", instance ? 'margin 0.3s ease 0.05s' : 'margin 0.2s ease');
|
|
418
418
|
}, [config.cascadeConfigs, config.instanceIds]);
|
|
419
419
|
if (!context.renderEd && !visible) return null;
|
|
420
420
|
context.renderEd = true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modal-content.d.ts","sourceRoot":"","sources":["modal-content.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAmF9D,QAAA,MAAM,KAAK,UAAW,iBAAiB,
|
|
1
|
+
{"version":3,"file":"modal-content.d.ts","sourceRoot":"","sources":["modal-content.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAmF9D,QAAA,MAAM,KAAK,UAAW,iBAAiB,mDAgctC,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -406,10 +406,10 @@ var Modal = function Modal(props) {
|
|
|
406
406
|
if (curCascadeConfig && currentIndex < samePositionConfigs.length - 1) {
|
|
407
407
|
instance = curCascadeConfig.cascadeWidth;
|
|
408
408
|
}
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
};
|
|
409
|
+
var marginProp = props.position === 'left' ? 'marginLeft' : 'marginRight';
|
|
410
|
+
return _defineProperty(_defineProperty({
|
|
411
|
+
willChange: 'margin'
|
|
412
|
+
}, marginProp, "".concat(instance, "px")), "transition", instance ? 'margin 0.3s ease 0.05s' : 'margin 0.2s ease');
|
|
413
413
|
}, [config.cascadeConfigs, config.instanceIds]);
|
|
414
414
|
if (!context.renderEd && !visible) return null;
|
|
415
415
|
context.renderEd = true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sheinx/base",
|
|
3
|
-
"version": "3.9.12-beta.
|
|
3
|
+
"version": "3.9.12-beta.12",
|
|
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.12-beta.
|
|
13
|
+
"@sheinx/hooks": "3.9.12-beta.12",
|
|
14
14
|
"immer": "^10.0.0",
|
|
15
15
|
"classnames": "^2.0.0",
|
|
16
16
|
"@shined/reactive": "^0.3.3"
|