shineout 3.8.0-beta.24 → 3.8.0-beta.26

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/index.js CHANGED
@@ -522,5 +522,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
522
522
  // 此文件由脚本自动生成,请勿直接修改。
523
523
  // This file was generated automatically by a script. Please do not modify it directly.
524
524
  var _default = exports.default = {
525
- version: '3.8.0-beta.24'
525
+ version: '3.8.0-beta.26'
526
526
  };
package/dist/shineout.js CHANGED
@@ -12386,7 +12386,7 @@ var handleStyle = function handleStyle(style) {
12386
12386
  };
12387
12387
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12388
12388
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12389
- /* harmony default export */ var version = ('3.8.0-beta.24');
12389
+ /* harmony default export */ var version = ('3.8.0-beta.26');
12390
12390
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12391
12391
 
12392
12392
 
@@ -22157,6 +22157,7 @@ var modalStyle = objectSpread2_default()(objectSpread2_default()({
22157
22157
  background: src.modalPanelBackground,
22158
22158
  borderRadius: src.modalPanelRadius,
22159
22159
  padding: "".concat(src.modalPanelPaddingY, " ").concat(src.modalPanelPaddingX),
22160
+ margin: '0 auto',
22160
22161
  fontSize: src.modalPanelFontSize,
22161
22162
  boxSizing: 'border-box',
22162
22163
  boxShadow: src.modalPanelShadow,
@@ -42249,7 +42250,7 @@ var result_Result = function Result(props) {
42249
42250
  setShouldResetMore(true);
42250
42251
  });
42251
42252
  } else {
42252
- setMore(-1);
42253
+ if (!renderCompressed) setMore(-1);
42253
42254
  setShouldResetMore(true);
42254
42255
  }
42255
42256
  };
@@ -52322,6 +52323,7 @@ var useFormFieldSet = function useFormFieldSet(props) {
52322
52323
 
52323
52324
 
52324
52325
 
52326
+
52325
52327
  var form_fieldset_produce = utils_immer_produce;
52326
52328
  var FormFieldSet = function FormFieldSet(props) {
52327
52329
  var children = props.children,
@@ -52380,6 +52382,48 @@ var FormFieldSet = function FormFieldSet(props) {
52380
52382
  // }
52381
52383
 
52382
52384
  return valueArr.map(function (v, i) {
52385
+ // 创建一个代理对象,让 {...value} 操作能获取最新值
52386
+ // 确保 target 是一个对象,避免 Proxy 报错
52387
+ var target = v && typeof_default()(v) === 'object' ? v : {};
52388
+ var valueProxy = new Proxy(target, {
52389
+ get: function get(target, prop) {
52390
+ var currentValue = formFunc === null || formFunc === void 0 ? void 0 : formFunc.getValue(name);
52391
+ var latestItem = Array.isArray(currentValue) ? currentValue[i] : v;
52392
+
52393
+ // 如果最新值是对象,返回对象的属性
52394
+ if (latestItem && typeof_default()(latestItem) === 'object') {
52395
+ return latestItem[prop];
52396
+ }
52397
+
52398
+ // 如果最新值是基本类型,但原始target是对象,从target获取
52399
+ if (target && typeof_default()(target) === 'object' && prop in target) {
52400
+ return target[prop];
52401
+ }
52402
+
52403
+ // 其他情况返回undefined
52404
+ return undefined;
52405
+ },
52406
+ ownKeys: function ownKeys(target) {
52407
+ var currentValue = formFunc === null || formFunc === void 0 ? void 0 : formFunc.getValue(name);
52408
+ var latestItem = Array.isArray(currentValue) ? currentValue[i] : v;
52409
+ if (latestItem && typeof_default()(latestItem) === 'object') {
52410
+ return Object.keys(latestItem);
52411
+ }
52412
+ return Object.keys(target || {});
52413
+ },
52414
+ getOwnPropertyDescriptor: function getOwnPropertyDescriptor(target, prop) {
52415
+ var currentValue = formFunc === null || formFunc === void 0 ? void 0 : formFunc.getValue(name);
52416
+ var latestItem = Array.isArray(currentValue) ? currentValue[i] : v;
52417
+ if (latestItem && typeof_default()(latestItem) === 'object' && prop in latestItem) {
52418
+ return {
52419
+ enumerable: true,
52420
+ configurable: true,
52421
+ value: latestItem[prop]
52422
+ };
52423
+ }
52424
+ return Object.getOwnPropertyDescriptor(target || {}, prop);
52425
+ }
52426
+ });
52383
52427
  return /*#__PURE__*/(0,jsx_runtime.jsx)(Provider, {
52384
52428
  value: {
52385
52429
  path: "".concat(ProviderValue.path, "[").concat(i, "]"),
@@ -52387,7 +52431,7 @@ var FormFieldSet = function FormFieldSet(props) {
52387
52431
  },
52388
52432
  children: children({
52389
52433
  list: valueArr,
52390
- value: v,
52434
+ value: valueProxy,
52391
52435
  index: i,
52392
52436
  error: errorList,
52393
52437
  onChange: function onChange(val, options) {
@@ -56868,6 +56912,7 @@ var ListColumnsOption = function ListColumnsOption(props) {
56868
56912
 
56869
56913
 
56870
56914
 
56915
+
56871
56916
  var ColumnsList = function ColumnsList(props) {
56872
56917
  var _jssStyle$select;
56873
56918
  var jssStyle = props.jssStyle,
@@ -56891,6 +56936,8 @@ var ColumnsList = function ColumnsList(props) {
56891
56936
  closePop = props.closePop;
56892
56937
  var groupKey = groupKeyProp;
56893
56938
  var styles = jssStyle === null || jssStyle === void 0 || (_jssStyle$select = jssStyle.select) === null || _jssStyle$select === void 0 ? void 0 : _jssStyle$select.call(jssStyle);
56939
+ var _useConfig = useConfig(),
56940
+ locale = _useConfig.locale;
56894
56941
 
56895
56942
  // columns 模式无上下边距,故而 lineHeight 需要调整
56896
56943
  var getLineHeight = function getLineHeight() {
@@ -57030,7 +57077,7 @@ var ColumnsList = function ColumnsList(props) {
57030
57077
  jssStyle: jssStyle,
57031
57078
  checked: checked,
57032
57079
  onChange: handleChange,
57033
- children: "\u5168\u9009"
57080
+ children: getLocale(locale, 'selectAll')
57034
57081
  }), columnsTitle && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
57035
57082
  className: styles.columnsTitle,
57036
57083
  children: columnsTitle
@@ -72691,7 +72738,7 @@ var upload_interface = __webpack_require__(8821);
72691
72738
 
72692
72739
 
72693
72740
  /* harmony default export */ var src_0 = ({
72694
- version: '3.8.0-beta.24'
72741
+ version: '3.8.0-beta.26'
72695
72742
  });
72696
72743
  }();
72697
72744
  /******/ return __webpack_exports__;