shineout 3.0.3 → 3.0.5

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
@@ -476,5 +476,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
476
476
  // 此文件由脚本自动生成,请勿直接修改。
477
477
  // This file was generated automatically by a script. Please do not modify it directly.
478
478
  var _default = exports.default = {
479
- version: '3.0.3'
479
+ version: '3.0.5'
480
480
  };
package/dist/shineout.js CHANGED
@@ -12019,7 +12019,7 @@ var handleStyle = function handleStyle(style) {
12019
12019
  };
12020
12020
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12021
12021
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12022
- /* harmony default export */ var version = ('3.0.3');
12022
+ /* harmony default export */ var version = ('3.0.5');
12023
12023
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12024
12024
 
12025
12025
 
@@ -16502,7 +16502,8 @@ var cascaderStyle = objectSpread2_default()(objectSpread2_default()({
16502
16502
  list: {
16503
16503
  paddingTop: 3,
16504
16504
  paddingBottom: 3,
16505
- display: 'inline-block'
16505
+ display: 'inline-block',
16506
+ overflow: 'auto'
16506
16507
  },
16507
16508
  tag: {
16508
16509
  '&$tag + &$tag': {
@@ -19860,7 +19861,8 @@ var modalStyle = objectSpread2_default()(objectSpread2_default()({}, animationSt
19860
19861
  marginBottom: 0
19861
19862
  },
19862
19863
  '& $body': {
19863
- padding: "".concat(src.modalDrawerBodyPaddingY, " ").concat(src.modalDrawerBodyPaddingX)
19864
+ padding: "".concat(src.modalDrawerBodyPaddingY, " ").concat(src.modalDrawerBodyPaddingX),
19865
+ overflow: 'auto'
19864
19866
  },
19865
19867
  '& $bodyWithIcon': {
19866
19868
  paddingLeft: src.modalDrawerBodyPaddingX
@@ -33589,6 +33591,7 @@ var useFilter = function useFilter(props) {
33589
33591
  setInputText(text);
33590
33592
  setFilterText(text);
33591
33593
  firstMatchNode.current = null;
33594
+ if (context.filterTimer) clearTimeout(context.filterTimer);
33592
33595
  if (!text) {
33593
33596
  if (data) {
33594
33597
  setFilterData(data);
@@ -33607,7 +33610,6 @@ var useFilter = function useFilter(props) {
33607
33610
  setCreatedData(innerData);
33608
33611
  }
33609
33612
  if (!onFilter || !isFunc(onFilter)) return;
33610
- if (context.filterTimer) clearTimeout(context.filterTimer);
33611
33613
  context.filterTimer = setTimeout(function () {
33612
33614
  var next = onFilter(text, from);
33613
33615
  if (!isFunc(next)) return;
@@ -33640,6 +33642,7 @@ var useFilter = function useFilter(props) {
33640
33642
  } else if (data) {
33641
33643
  nextData = getData();
33642
33644
  }
33645
+ console.log(filterData);
33643
33646
  return {
33644
33647
  inputText: inputText,
33645
33648
  filterText: filterText,
@@ -34064,7 +34067,8 @@ var useCascader = function useCascader(props) {
34064
34067
  beforeChange = props.beforeChange,
34065
34068
  valueProp = props.value,
34066
34069
  onChangeProp = props.onChange,
34067
- filterSameChange = props.filterSameChange;
34070
+ filterSameChange = props.filterSameChange,
34071
+ childrenKey = props.childrenKey;
34068
34072
  var _useInputAble = useInputAble({
34069
34073
  value: valueProp,
34070
34074
  control: control,
@@ -34082,7 +34086,8 @@ var useCascader = function useCascader(props) {
34082
34086
  keygen: keygen,
34083
34087
  mode: mode,
34084
34088
  disabled: disabled,
34085
- isControlled: control
34089
+ isControlled: control,
34090
+ childrenKey: childrenKey
34086
34091
  }),
34087
34092
  datum = _useTree.datum;
34088
34093
  return {
@@ -34120,7 +34125,8 @@ var CascaderNode = function CascaderNode(props) {
34120
34125
  childrenKey = props.childrenKey,
34121
34126
  shouldFinal = props.shouldFinal,
34122
34127
  onChange = props.onChange,
34123
- onPathChange = props.onPathChange;
34128
+ onPathChange = props.onPathChange,
34129
+ mode = props.mode;
34124
34130
  var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(false),
34125
34131
  _useState2 = slicedToArray_default()(_useState, 2),
34126
34132
  loading = _useState2[0],
@@ -34131,7 +34137,7 @@ var CascaderNode = function CascaderNode(props) {
34131
34137
  var hasChildren = children && children.length > 0;
34132
34138
  var uncertainChildren = loader && !loading && children === undefined;
34133
34139
  var styles = jssStyle === null || jssStyle === void 0 || (_jssStyle$cascader = jssStyle.cascader) === null || _jssStyle$cascader === void 0 ? void 0 : _jssStyle$cascader.call(jssStyle);
34134
- var rootClass = classnames_default()(styles.option, active && styles.activeOption, isDisabled && styles.optionDisabled);
34140
+ var rootClass = classnames_default()(styles.option, active && styles.activeOption, isDisabled && mode !== 4 && styles.optionDisabled);
34135
34141
  var handlePathChange = function handlePathChange() {
34136
34142
  onPathChange === null || onPathChange === void 0 || onPathChange(id, data, path);
34137
34143
  };
@@ -34158,8 +34164,8 @@ var CascaderNode = function CascaderNode(props) {
34158
34164
  };
34159
34165
  var getEvents = function getEvents() {
34160
34166
  var events = {};
34161
- if (!isDisabled && (expandTrigger !== 'hover-only' || !hasChildren)) {
34162
- events.onClick = handleClick;
34167
+ if (expandTrigger !== 'hover-only' || !hasChildren) {
34168
+ if (!isDisabled || props.mode === 4) events.onClick = handleClick;
34163
34169
  }
34164
34170
  if (expandTrigger === 'hover' || expandTrigger === 'hover-only') {
34165
34171
  events.onMouseEnter = handlePathChange;
@@ -34232,7 +34238,8 @@ var CascaderList = function CascaderList(props) {
34232
34238
  expandTrigger = props.expandTrigger,
34233
34239
  childrenKey = props.childrenKey,
34234
34240
  shouldFinal = props.shouldFinal,
34235
- path = props.path;
34241
+ path = props.path,
34242
+ mode = props.mode;
34236
34243
  var styles = jssStyle === null || jssStyle === void 0 || (_jssStyle$cascader = jssStyle.cascader) === null || _jssStyle$cascader === void 0 ? void 0 : _jssStyle$cascader.call(jssStyle);
34237
34244
 
34238
34245
  // 和 datum 中的 geyKey 不一样,根据 parentId 生成唯一的 key
@@ -34269,6 +34276,7 @@ var CascaderList = function CascaderList(props) {
34269
34276
  onPathChange: onPathChange,
34270
34277
  onChange: onChange,
34271
34278
  multiple: multiple,
34279
+ mode: mode,
34272
34280
  expandTrigger: expandTrigger,
34273
34281
  childrenKey: childrenKey,
34274
34282
  shouldFinal: shouldFinal,
@@ -35869,7 +35877,8 @@ var Cascader = function Cascader(props0) {
35869
35877
  data: tempData,
35870
35878
  id: path[0],
35871
35879
  parentId: "",
35872
- path: []
35880
+ path: [],
35881
+ mode: mode
35873
35882
  }, 'root')];
35874
35883
  var childs = path.map(function (p, i) {
35875
35884
  tempData = tempData && tempData instanceof Array && tempData.find(function (d) {
@@ -35907,7 +35916,7 @@ var Cascader = function Cascader(props0) {
35907
35916
  width: '100%'
35908
35917
  } : {
35909
35918
  height: height,
35910
- minHeight: 232
35919
+ minHeight: height || 232
35911
35920
  };
35912
35921
  return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
35913
35922
  className: classnames_default()(styles.listContent),
@@ -39831,7 +39840,7 @@ var Month = function Month(props) {
39831
39840
  children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
39832
39841
  className: styles === null || styles === void 0 ? void 0 : styles.pickerHeaderIcon,
39833
39842
  onClick: func.handlePrev,
39834
- children: icons_config.datepicker.ArrowDoubleRight
39843
+ children: icons_config.datepicker.ArrowDoubleLeft
39835
39844
  })
39836
39845
  }), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
39837
39846
  className: styles === null || styles === void 0 ? void 0 : styles.pickerHeaderMid,
@@ -40057,7 +40066,7 @@ var Year = function Year(props) {
40057
40066
  children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
40058
40067
  className: styles === null || styles === void 0 ? void 0 : styles.pickerHeaderIcon,
40059
40068
  onClick: func.handlePrev,
40060
- children: icons_config.datepicker.ArrowDoubleRight
40069
+ children: icons_config.datepicker.ArrowDoubleLeft
40061
40070
  })
40062
40071
  }), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
40063
40072
  className: styles === null || styles === void 0 ? void 0 : styles.pickerHeaderMid,
@@ -40276,7 +40285,7 @@ var Quarter = function Quarter(props) {
40276
40285
  children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
40277
40286
  className: styles === null || styles === void 0 ? void 0 : styles.pickerHeaderIcon,
40278
40287
  onClick: func.handlePrev,
40279
- children: icons_config.datepicker.ArrowDoubleRight
40288
+ children: icons_config.datepicker.ArrowDoubleLeft
40280
40289
  })
40281
40290
  }), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
40282
40291
  className: styles === null || styles === void 0 ? void 0 : styles.pickerHeaderMid,
@@ -61221,7 +61230,7 @@ var upload_interface = __webpack_require__(4412);
61221
61230
 
61222
61231
 
61223
61232
  /* harmony default export */ var src_0 = ({
61224
- version: '3.0.3'
61233
+ version: '3.0.5'
61225
61234
  });
61226
61235
  }();
61227
61236
  /******/ return __webpack_exports__;