@sheinx/base 3.8.2-beta.1 → 3.8.2-beta.3
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.
|
@@ -121,7 +121,7 @@ var FormFieldSet = function FormFieldSet(props) {
|
|
|
121
121
|
},
|
|
122
122
|
children: children({
|
|
123
123
|
list: valueArr,
|
|
124
|
-
value: valueProxy,
|
|
124
|
+
value: v && _typeof(v) === 'object' ? valueProxy : v,
|
|
125
125
|
index: i,
|
|
126
126
|
error: errorList,
|
|
127
127
|
onChange: function onChange(val, options) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"result-more.d.ts","sourceRoot":"","sources":["result-more.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAKrD,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,OAAO,EACjB,SAAS,EAAE,WAAW,EACtB,IAAI,EAAE,UAAU,CAAC,WAAW,CAAC,UA6D9B;;
|
|
1
|
+
{"version":3,"file":"result-more.d.ts","sourceRoot":"","sources":["result-more.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAKrD,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,OAAO,EACjB,SAAS,EAAE,WAAW,EACtB,IAAI,EAAE,UAAU,CAAC,WAAW,CAAC,UA6D9B;;AA2GD,wBAAyC"}
|
|
@@ -98,7 +98,8 @@ var More = function More(props) {
|
|
|
98
98
|
before = new Array(showNum).fill(undefined).map(function (_item, index) {
|
|
99
99
|
return data[index];
|
|
100
100
|
});
|
|
101
|
-
|
|
101
|
+
var afterCount = Math.max(0, data.length - showNum);
|
|
102
|
+
after = new Array(afterCount).fill(undefined).map(function (_item, index) {
|
|
102
103
|
return data[showNum + index];
|
|
103
104
|
});
|
|
104
105
|
afterLength = after.length;
|
|
@@ -114,7 +114,7 @@ var FormFieldSet = function FormFieldSet(props) {
|
|
|
114
114
|
},
|
|
115
115
|
children: children({
|
|
116
116
|
list: valueArr,
|
|
117
|
-
value: valueProxy,
|
|
117
|
+
value: v && _typeof(v) === 'object' ? valueProxy : v,
|
|
118
118
|
index: i,
|
|
119
119
|
error: errorList,
|
|
120
120
|
onChange: function onChange(val, options) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"result-more.d.ts","sourceRoot":"","sources":["result-more.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAKrD,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,OAAO,EACjB,SAAS,EAAE,WAAW,EACtB,IAAI,EAAE,UAAU,CAAC,WAAW,CAAC,UA6D9B;;
|
|
1
|
+
{"version":3,"file":"result-more.d.ts","sourceRoot":"","sources":["result-more.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAKrD,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,OAAO,EACjB,SAAS,EAAE,WAAW,EACtB,IAAI,EAAE,UAAU,CAAC,WAAW,CAAC,UA6D9B;;AA2GD,wBAAyC"}
|
|
@@ -88,7 +88,8 @@ var More = function More(props) {
|
|
|
88
88
|
before = new Array(showNum).fill(undefined).map(function (_item, index) {
|
|
89
89
|
return data[index];
|
|
90
90
|
});
|
|
91
|
-
|
|
91
|
+
var afterCount = Math.max(0, data.length - showNum);
|
|
92
|
+
after = new Array(afterCount).fill(undefined).map(function (_item, index) {
|
|
92
93
|
return data[showNum + index];
|
|
93
94
|
});
|
|
94
95
|
afterLength = after.length;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sheinx/base",
|
|
3
|
-
"version": "3.8.2-beta.
|
|
3
|
+
"version": "3.8.2-beta.3",
|
|
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.8.2-beta.
|
|
13
|
+
"@sheinx/hooks": "3.8.2-beta.3",
|
|
14
14
|
"immer": "^10.0.0",
|
|
15
15
|
"classnames": "^2.0.0",
|
|
16
16
|
"@shined/reactive": "^0.1.3-alpha.0"
|