shineout 3.9.4-beta.2 → 3.9.4-beta.4

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.9.4-beta.2'
525
+ version: '3.9.4-beta.4'
526
526
  };
package/dist/shineout.js CHANGED
@@ -12401,7 +12401,7 @@ var handleStyle = function handleStyle(style) {
12401
12401
  };
12402
12402
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12403
12403
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12404
- /* harmony default export */ var version = ('3.9.4-beta.2');
12404
+ /* harmony default export */ var version = ('3.9.4-beta.4');
12405
12405
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12406
12406
 
12407
12407
 
@@ -44171,8 +44171,7 @@ FormItemContext.displayName = 'FormItemContext';
44171
44171
 
44172
44172
 
44173
44173
  var FieldsetContext = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.createContext)({
44174
- path: '',
44175
- validateFieldSet: function validateFieldSet() {}
44174
+ path: ''
44176
44175
  });
44177
44176
  FieldsetContext.displayName = 'FieldsetContext';
44178
44177
  function extendName() {
@@ -44189,8 +44188,7 @@ function extendName() {
44189
44188
  }
44190
44189
  var useFieldSetConsumer = function useFieldSetConsumer(props) {
44191
44190
  var _React$useContext = external_root_React_commonjs2_react_commonjs_react_amd_react_default().useContext(FieldsetContext),
44192
- path = _React$useContext.path,
44193
- validateFieldSet = _React$useContext.validateFieldSet;
44191
+ path = _React$useContext.path;
44194
44192
  var bind = external_root_React_commonjs2_react_commonjs_react_amd_react_default().useMemo(function () {
44195
44193
  var _bind = path ? (props.bind || []).concat(path) : props.bind;
44196
44194
  // 只有当路径中包含超过1个索引时才需要去掉最后一个索引
@@ -44204,8 +44202,7 @@ var useFieldSetConsumer = function useFieldSetConsumer(props) {
44204
44202
  }, [path, props.name]);
44205
44203
  return objectSpread2_default()(objectSpread2_default()({}, props), {}, {
44206
44204
  name: name,
44207
- bind: bind,
44208
- validateFieldSet: validateFieldSet
44205
+ bind: bind
44209
44206
  });
44210
44207
  };
44211
44208
  /* harmony default export */ var fieldset_context = (FieldsetContext);
@@ -44615,8 +44612,7 @@ function useFormControl(props) {
44615
44612
  bind: props.bind
44616
44613
  }),
44617
44614
  name = _useFieldSetConsumer.name,
44618
- bind = _useFieldSetConsumer.bind,
44619
- validateFieldSet = _useFieldSetConsumer.validateFieldSet;
44615
+ bind = _useFieldSetConsumer.bind;
44620
44616
  var _React$useState = external_root_React_commonjs2_react_commonjs_react_amd_react_default().useState(undefined),
44621
44617
  _React$useState2 = slicedToArray_default()(_React$useState, 2),
44622
44618
  errorState = _React$useState2[0],
@@ -44783,7 +44779,6 @@ function useFormControl(props) {
44783
44779
  other[_key - 1] = arguments[_key];
44784
44780
  }
44785
44781
  if (onChangePo) onChangePo.apply(void 0, [v].concat(other));
44786
- if (validateFieldSet) validateFieldSet();
44787
44782
  });
44788
44783
  var initError = use_persist_fn(function () {
44789
44784
  var errors = formFunc === null || formFunc === void 0 ? void 0 : formFunc.getErrors();
@@ -51096,7 +51091,8 @@ var Dropdown = function Dropdown(props) {
51096
51091
  size = props.size,
51097
51092
  animation = props.animation,
51098
51093
  hideArrow = props.hideArrow,
51099
- zIndex = props.zIndex;
51094
+ zIndex = props.zIndex,
51095
+ popupClassName = props.popupClassName;
51100
51096
  var dropdownClasses = jssStyle === null || jssStyle === void 0 || (_jssStyle$dropdown = jssStyle.dropdown) === null || _jssStyle$dropdown === void 0 ? void 0 : _jssStyle$dropdown.call(jssStyle);
51101
51097
  var config = useConfig();
51102
51098
  var isRtl = config.direction === 'rtl';
@@ -51254,7 +51250,7 @@ var Dropdown = function Dropdown(props) {
51254
51250
  adjust: adjust,
51255
51251
  children: /*#__PURE__*/(0,jsx_runtime.jsx)(animation_list, {
51256
51252
  display: columns ? 'grid' : 'block',
51257
- className: classnames_default()(dropdownClasses === null || dropdownClasses === void 0 ? void 0 : dropdownClasses.list, hasChildren && (dropdownClasses === null || dropdownClasses === void 0 ? void 0 : dropdownClasses.listHasChildren), columns !== undefined && columns > 1 && (dropdownClasses === null || dropdownClasses === void 0 ? void 0 : dropdownClasses.boxList), size === 'small' && (dropdownClasses === null || dropdownClasses === void 0 ? void 0 : dropdownClasses.listSmall), size === 'large' && (dropdownClasses === null || dropdownClasses === void 0 ? void 0 : dropdownClasses.listLarge)),
51253
+ className: classnames_default()(popupClassName, dropdownClasses === null || dropdownClasses === void 0 ? void 0 : dropdownClasses.list, hasChildren && (dropdownClasses === null || dropdownClasses === void 0 ? void 0 : dropdownClasses.listHasChildren), columns !== undefined && columns > 1 && (dropdownClasses === null || dropdownClasses === void 0 ? void 0 : dropdownClasses.boxList), size === 'small' && (dropdownClasses === null || dropdownClasses === void 0 ? void 0 : dropdownClasses.listSmall), size === 'large' && (dropdownClasses === null || dropdownClasses === void 0 ? void 0 : dropdownClasses.listLarge)),
51258
51254
  style: {
51259
51255
  width: width,
51260
51256
  minWidth: 90,
@@ -52067,8 +52063,7 @@ EmptyComp.displayName = 'ShineoutEmpty';
52067
52063
 
52068
52064
 
52069
52065
  var topPath = {
52070
- path: '',
52071
- validateFieldSet: function validateFieldSet() {}
52066
+ path: ''
52072
52067
  };
52073
52068
  var Provider = function Provider(props) {
52074
52069
  var children = props.children,
@@ -53696,8 +53691,7 @@ var useFormFieldSet = function useFormFieldSet(props) {
53696
53691
  devUseWarning.error('[FieldSet] should render in Form');
53697
53692
  }
53698
53693
  var ProviderValue = {
53699
- path: name,
53700
- validateFieldSet: function validateFieldSet() {}
53694
+ path: name
53701
53695
  };
53702
53696
  return {
53703
53697
  Provider: fieldset_context.Provider,
@@ -53714,21 +53708,11 @@ var useFormFieldSet = function useFormFieldSet(props) {
53714
53708
 
53715
53709
 
53716
53710
 
53717
-
53718
53711
  var form_fieldset_produce = utils_immer_produce;
53719
53712
  var FormFieldSet = function FormFieldSet(props) {
53720
53713
  var children = props.children,
53721
53714
  empty = props.empty;
53722
- // const { current: context } = React.useRef<{ ids: string[] }>({ ids: [] });
53723
-
53724
53715
  var formFunc = useFormFunc();
53725
- var validateFieldSet = function validateFieldSet() {
53726
- formFunc === null || formFunc === void 0 || formFunc.validateFields(props.name, {
53727
- ignoreChildren: true
53728
- }).catch(function (e) {
53729
- return e;
53730
- });
53731
- };
53732
53716
  var getValidateProps = usePersistFn(function () {
53733
53717
  return props;
53734
53718
  });
@@ -53747,9 +53731,7 @@ var FormFieldSet = function FormFieldSet(props) {
53747
53731
  name = _useFormFieldSet.name;
53748
53732
  if (typeof children !== 'function') {
53749
53733
  return /*#__PURE__*/(0,jsx_runtime.jsx)(Provider, {
53750
- value: objectSpread2_default()(objectSpread2_default()({}, ProviderValue), {}, {
53751
- validateFieldSet: validateFieldSet
53752
- }),
53734
+ value: ProviderValue,
53753
53735
  children: children
53754
53736
  });
53755
53737
  }
@@ -53817,8 +53799,7 @@ var FormFieldSet = function FormFieldSet(props) {
53817
53799
  });
53818
53800
  return /*#__PURE__*/(0,jsx_runtime.jsx)(Provider, {
53819
53801
  value: {
53820
- path: "".concat(ProviderValue.path, "[").concat(i, "]"),
53821
- validateFieldSet: validateFieldSet
53802
+ path: "".concat(ProviderValue.path, "[").concat(i, "]")
53822
53803
  },
53823
53804
  children: children({
53824
53805
  list: valueArr,
@@ -74752,7 +74733,7 @@ var upload_interface = __webpack_require__(8821);
74752
74733
 
74753
74734
 
74754
74735
  /* harmony default export */ var src_0 = ({
74755
- version: '3.9.4-beta.2'
74736
+ version: '3.9.4-beta.4'
74756
74737
  });
74757
74738
  }();
74758
74739
  /******/ return __webpack_exports__;