@sheinx/base 3.7.2 → 3.7.3-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.
- package/cjs/tree/tree-virtual.d.ts.map +1 -1
- package/cjs/tree/tree-virtual.js +7 -1
- package/cjs/tree-select/tree-select.d.ts.map +1 -1
- package/cjs/tree-select/tree-select.js +15 -3
- package/esm/tree/tree-virtual.d.ts.map +1 -1
- package/esm/tree/tree-virtual.js +7 -1
- package/esm/tree-select/tree-select.d.ts.map +1 -1
- package/esm/tree-select/tree-select.js +15 -3
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tree-virtual.d.ts","sourceRoot":"","sources":["tree-virtual.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAgB,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"tree-virtual.d.ts","sourceRoot":"","sources":["tree-virtual.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAgB,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAc/C,QAAA,MAAM,WAAW,+HA6FhB,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
package/cjs/tree/tree-virtual.js
CHANGED
|
@@ -14,6 +14,11 @@ var SIZE_MAP = {
|
|
|
14
14
|
'default': 36,
|
|
15
15
|
'large': 42
|
|
16
16
|
};
|
|
17
|
+
var PADDING_Y_MAP = {
|
|
18
|
+
'small': 3,
|
|
19
|
+
'default': 0,
|
|
20
|
+
'large': 0
|
|
21
|
+
};
|
|
17
22
|
var TreeVirtual = function TreeVirtual(props) {
|
|
18
23
|
var jssStyle = props.jssStyle,
|
|
19
24
|
height = props.height,
|
|
@@ -92,7 +97,8 @@ var TreeVirtual = function TreeVirtual(props) {
|
|
|
92
97
|
keepScrollHeight: true,
|
|
93
98
|
dynamicVirtual: true,
|
|
94
99
|
lineHeight: lineHeight,
|
|
95
|
-
renderItem: renderItem
|
|
100
|
+
renderItem: renderItem,
|
|
101
|
+
paddingY: PADDING_Y_MAP[datum.size || 'default']
|
|
96
102
|
});
|
|
97
103
|
};
|
|
98
104
|
var _default = exports.default = TreeVirtual;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tree-select.d.ts","sourceRoot":"","sources":["tree-select.tsx"],"names":[],"mappings":"AACA,OAAO,EAQL,YAAY,EAEb,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,eAAe,EAAc,MAAM,oBAAoB,CAAC;AAcjE,MAAM,MAAM,mBAAmB,GAAG,YAAY,GAAG,YAAY,EAAE,CAAC;AAMhE,QAAA,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"tree-select.d.ts","sourceRoot":"","sources":["tree-select.tsx"],"names":[],"mappings":"AACA,OAAO,EAQL,YAAY,EAEb,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,eAAe,EAAc,MAAM,oBAAoB,CAAC;AAcjE,MAAM,MAAM,mBAAmB,GAAG,YAAY,GAAG,YAAY,EAAE,CAAC;AAMhE,QAAA,MAAM,UAAU,oIAiuBf,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -597,13 +597,25 @@ var TreeSelect = function TreeSelect(props0) {
|
|
|
597
597
|
var style = {
|
|
598
598
|
maxHeight: height
|
|
599
599
|
};
|
|
600
|
+
var rootStyle = {
|
|
601
|
+
padding: '0 4px'
|
|
602
|
+
};
|
|
603
|
+
if (!virtual) {
|
|
604
|
+
if (size === 'small') {
|
|
605
|
+
rootStyle = {
|
|
606
|
+
padding: '3px 4px'
|
|
607
|
+
};
|
|
608
|
+
} else if (size === 'large') {
|
|
609
|
+
rootStyle = {
|
|
610
|
+
padding: '0 5px'
|
|
611
|
+
};
|
|
612
|
+
}
|
|
613
|
+
}
|
|
600
614
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
601
615
|
className: (0, _classnames.default)(styles.tree, styles.treeWrapper),
|
|
602
616
|
style: style,
|
|
603
617
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_tree.default, _objectSpread(_objectSpread({
|
|
604
|
-
rootStyle:
|
|
605
|
-
padding: '0 4px'
|
|
606
|
-
},
|
|
618
|
+
rootStyle: rootStyle,
|
|
607
619
|
jssStyle: jssStyle,
|
|
608
620
|
renderItem: renderItem
|
|
609
621
|
}, treeProps), {}, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tree-virtual.d.ts","sourceRoot":"","sources":["tree-virtual.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAgB,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"tree-virtual.d.ts","sourceRoot":"","sources":["tree-virtual.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAgB,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAc/C,QAAA,MAAM,WAAW,+HA6FhB,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
package/esm/tree/tree-virtual.js
CHANGED
|
@@ -7,6 +7,11 @@ var SIZE_MAP = {
|
|
|
7
7
|
'default': 36,
|
|
8
8
|
'large': 42
|
|
9
9
|
};
|
|
10
|
+
var PADDING_Y_MAP = {
|
|
11
|
+
'small': 3,
|
|
12
|
+
'default': 0,
|
|
13
|
+
'large': 0
|
|
14
|
+
};
|
|
10
15
|
var TreeVirtual = function TreeVirtual(props) {
|
|
11
16
|
var jssStyle = props.jssStyle,
|
|
12
17
|
height = props.height,
|
|
@@ -85,7 +90,8 @@ var TreeVirtual = function TreeVirtual(props) {
|
|
|
85
90
|
keepScrollHeight: true,
|
|
86
91
|
dynamicVirtual: true,
|
|
87
92
|
lineHeight: lineHeight,
|
|
88
|
-
renderItem: renderItem
|
|
93
|
+
renderItem: renderItem,
|
|
94
|
+
paddingY: PADDING_Y_MAP[datum.size || 'default']
|
|
89
95
|
});
|
|
90
96
|
};
|
|
91
97
|
export default TreeVirtual;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tree-select.d.ts","sourceRoot":"","sources":["tree-select.tsx"],"names":[],"mappings":"AACA,OAAO,EAQL,YAAY,EAEb,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,eAAe,EAAc,MAAM,oBAAoB,CAAC;AAcjE,MAAM,MAAM,mBAAmB,GAAG,YAAY,GAAG,YAAY,EAAE,CAAC;AAMhE,QAAA,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"tree-select.d.ts","sourceRoot":"","sources":["tree-select.tsx"],"names":[],"mappings":"AACA,OAAO,EAQL,YAAY,EAEb,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,eAAe,EAAc,MAAM,oBAAoB,CAAC;AAcjE,MAAM,MAAM,mBAAmB,GAAG,YAAY,GAAG,YAAY,EAAE,CAAC;AAMhE,QAAA,MAAM,UAAU,oIAiuBf,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -590,13 +590,25 @@ var TreeSelect = function TreeSelect(props0) {
|
|
|
590
590
|
var style = {
|
|
591
591
|
maxHeight: height
|
|
592
592
|
};
|
|
593
|
+
var rootStyle = {
|
|
594
|
+
padding: '0 4px'
|
|
595
|
+
};
|
|
596
|
+
if (!virtual) {
|
|
597
|
+
if (size === 'small') {
|
|
598
|
+
rootStyle = {
|
|
599
|
+
padding: '3px 4px'
|
|
600
|
+
};
|
|
601
|
+
} else if (size === 'large') {
|
|
602
|
+
rootStyle = {
|
|
603
|
+
padding: '0 5px'
|
|
604
|
+
};
|
|
605
|
+
}
|
|
606
|
+
}
|
|
593
607
|
return /*#__PURE__*/_jsx("div", {
|
|
594
608
|
className: classNames(styles.tree, styles.treeWrapper),
|
|
595
609
|
style: style,
|
|
596
610
|
children: /*#__PURE__*/_jsx(Tree, _objectSpread(_objectSpread({
|
|
597
|
-
rootStyle:
|
|
598
|
-
padding: '0 4px'
|
|
599
|
-
},
|
|
611
|
+
rootStyle: rootStyle,
|
|
600
612
|
jssStyle: jssStyle,
|
|
601
613
|
renderItem: renderItem
|
|
602
614
|
}, treeProps), {}, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sheinx/base",
|
|
3
|
-
"version": "3.7.
|
|
3
|
+
"version": "3.7.3-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.3-beta.1",
|
|
14
14
|
"immer": "^10.0.0",
|
|
15
15
|
"classnames": "^2.0.0",
|
|
16
16
|
"@shined/reactive": "^0.1.3-alpha.0"
|