shineout 3.5.6-beta.8 → 3.5.6

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
@@ -507,5 +507,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
507
507
  // 此文件由脚本自动生成,请勿直接修改。
508
508
  // This file was generated automatically by a script. Please do not modify it directly.
509
509
  var _default = exports.default = {
510
- version: '3.5.6-beta.8'
510
+ version: '3.5.6'
511
511
  };
package/dist/shineout.js CHANGED
@@ -12040,7 +12040,7 @@ var handleStyle = function handleStyle(style) {
12040
12040
  };
12041
12041
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12042
12042
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12043
- /* harmony default export */ var version = ('3.5.6-beta.8');
12043
+ /* harmony default export */ var version = ('3.5.6');
12044
12044
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12045
12045
 
12046
12046
 
@@ -21777,7 +21777,7 @@ var popoverStyle = {
21777
21777
  },
21778
21778
  '&::after': {
21779
21779
  // left: arrowGap * -1,
21780
- left: "calc(".concat(hideArrowGap, " * -1)"),
21780
+ right: "calc(".concat(hideArrowGap, " * -1)"),
21781
21781
  top: '0',
21782
21782
  bottom: '0',
21783
21783
  content: '" "',
@@ -34972,6 +34972,9 @@ var checkbox_Checkbox = function Checkbox(props) {
34972
34972
  if ('value' in props && props.checked === undefined) {
34973
34973
  onInputableCheckboxChange(checked);
34974
34974
  }
34975
+ if (props.onRawChange) {
34976
+ props.onRawChange(checked ? htmlValue : undefined, checked, htmlValue);
34977
+ }
34975
34978
  onChange === null || onChange === void 0 || onChange(checked ? htmlValue : undefined, checked, htmlValue);
34976
34979
  });
34977
34980
  var getChecked = function getChecked() {
@@ -35012,7 +35015,10 @@ var checkbox_Checkbox = function Checkbox(props) {
35012
35015
  var CheckboxWithContext = function CheckboxWithContext(props) {
35013
35016
  return /*#__PURE__*/(0,jsx_runtime.jsx)(group_context.Consumer, {
35014
35017
  children: function children(value) {
35015
- return /*#__PURE__*/(0,jsx_runtime.jsx)(checkbox_Checkbox, objectSpread2_default()(objectSpread2_default()({}, props), value));
35018
+ return /*#__PURE__*/(0,jsx_runtime.jsx)(checkbox_Checkbox, objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({}, props), value), {}, {
35019
+ onRawChange: props.onChange,
35020
+ checked: 'checked' in props ? props.checked : value.checked
35021
+ }));
35016
35022
  }
35017
35023
  });
35018
35024
  };
@@ -38016,7 +38022,7 @@ var FilterNode = function FilterNode(props) {
38016
38022
  onChange = props.onChange,
38017
38023
  onPathChange = props.onPathChange;
38018
38024
  var styles = jssStyle === null || jssStyle === void 0 || (_jssStyle$cascader = jssStyle.cascader) === null || _jssStyle$cascader === void 0 ? void 0 : _jssStyle$cascader.call(jssStyle);
38019
- var handleSelectItem = function handleSelectItem(index, e) {
38025
+ var handleSelectItem = function handleSelectItem(index, d, e) {
38020
38026
  var isFinal = data && index === data.length - 1;
38021
38027
  if (shouldFinal && !isFinal) return;
38022
38028
  if (e) e.stopPropagation();
@@ -38026,13 +38032,13 @@ var FilterNode = function FilterNode(props) {
38026
38032
  var keys = data.slice(0, index + 1).map(function (i) {
38027
38033
  return datum.getKey(i);
38028
38034
  });
38029
- if (onChange) onChange(keys);
38035
+ if (onChange) onChange(keys, d);
38030
38036
  onPathChange(datum.getKey(item), item, keys.slice(0, keys.length - 1), true);
38031
38037
  setInputText('');
38032
38038
  setFilterText('');
38033
38039
  };
38034
38040
  var handleSelect = function handleSelect() {
38035
- handleSelectItem(data.length - 1);
38041
+ handleSelectItem(data.length - 1, data === null || data === void 0 ? void 0 : data[data.length - 1]);
38036
38042
  };
38037
38043
  return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
38038
38044
  className: classnames_default()(styles.option, styles.filterOption),
@@ -38041,7 +38047,7 @@ var FilterNode = function FilterNode(props) {
38041
38047
  className: classnames_default()(styles.optionInner),
38042
38048
  children: data.map(function (item, index) {
38043
38049
  var handleClick = function handleClick(e) {
38044
- handleSelectItem(index, e);
38050
+ handleSelectItem(index, item, e);
38045
38051
  };
38046
38052
  var isDisabled = datum.isDisabled(datum.getKey(item));
38047
38053
  var content = /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
@@ -39670,12 +39676,13 @@ var Cascader = function Cascader(props0) {
39670
39676
  onClick: handleResultClick,
39671
39677
  children: defaultIcon
39672
39678
  });
39679
+ var close = /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
39680
+ className: styles.clearIcon,
39681
+ onClick: handleClear,
39682
+ children: icons_config.cascader.Close
39683
+ });
39673
39684
  return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
39674
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
39675
- className: styles.clearIcon,
39676
- onClick: handleClear,
39677
- children: icons_config.cascader.Close
39678
- }), !open && !isEmpty && arrow]
39685
+ children: [close, !open && !isEmpty && !focused && arrow]
39679
39686
  });
39680
39687
  };
39681
39688
  var renderIcon = function renderIcon() {
@@ -67324,7 +67331,7 @@ var upload_interface = __webpack_require__(8821);
67324
67331
 
67325
67332
 
67326
67333
  /* harmony default export */ var src_0 = ({
67327
- version: '3.5.6-beta.8'
67334
+ version: '3.5.6'
67328
67335
  });
67329
67336
  }();
67330
67337
  /******/ return __webpack_exports__;