shineout 3.0.0-alpha.30 → 3.0.0-alpha.31

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
@@ -478,6 +478,6 @@ exports.TYPE = _TYPE;
478
478
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
479
479
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
480
480
  var _default = {
481
- version: '3.0.0-alpha.30'
481
+ version: '3.0.0-alpha.31'
482
482
  };
483
483
  exports.default = _default;
package/dist/shineout.js CHANGED
@@ -11842,7 +11842,7 @@ var handleStyle = function handleStyle(style) {
11842
11842
  };
11843
11843
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
11844
11844
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
11845
- /* harmony default export */ var version = ('3.0.0-alpha.30');
11845
+ /* harmony default export */ var version = ('3.0.0-alpha.31');
11846
11846
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
11847
11847
 
11848
11848
 
@@ -15634,6 +15634,29 @@ var cascaderStyle = objectSpread2_default()(objectSpread2_default()({
15634
15634
  outline: 'none',
15635
15635
  cursor: 'pointer'
15636
15636
  }, wrapper), {}, {
15637
+ '&$wrapperInnerTitle': {
15638
+ '& $placeholder,$ellipsis,$space,input': {
15639
+ marginTop: 0,
15640
+ marginBottom: 0
15641
+ },
15642
+ '& $tag': {
15643
+ marginTop: 0,
15644
+ paddingTop: 0,
15645
+ paddingBottom: 0,
15646
+ height: src.lineHeightDynamic,
15647
+ border: 'none',
15648
+ '& *': {
15649
+ lineHeight: src.lineHeightDynamic
15650
+ }
15651
+ },
15652
+ '&$wrapperSmall $tag': {
15653
+ height: 18,
15654
+ marginBottom: 2,
15655
+ '&$tag *': {
15656
+ lineHeight: '18px'
15657
+ }
15658
+ }
15659
+ },
15637
15660
  '&$wrapperSmall': {
15638
15661
  '& $tag': {
15639
15662
  height: 18,
@@ -15765,6 +15788,9 @@ var cascaderStyle = objectSpread2_default()(objectSpread2_default()({
15765
15788
  }
15766
15789
  }
15767
15790
  },
15791
+ multipleResultWrapper: {
15792
+ flexWrap: 'wrap'
15793
+ },
15768
15794
  resultAlignLeft: {
15769
15795
  '& $resultTextWrapper': {
15770
15796
  textAlign: 'left'
@@ -15900,6 +15926,9 @@ var cascaderStyle = objectSpread2_default()(objectSpread2_default()({
15900
15926
  },
15901
15927
  '& $placeholder': {}
15902
15928
  },
15929
+ multipleCompressedWrapper: {
15930
+ flexWrap: 'nowrap'
15931
+ },
15903
15932
  loading: {
15904
15933
  padding: 10,
15905
15934
  color: src.cascaderPlaceholderColor,
@@ -15925,6 +15954,7 @@ var cascaderStyle = objectSpread2_default()(objectSpread2_default()({
15925
15954
  borderRight: "1px solid ".concat(src.cascaderListBorderColor)
15926
15955
  }
15927
15956
  },
15957
+ hideTag: {},
15928
15958
  list: {
15929
15959
  paddingTop: 3,
15930
15960
  paddingBottom: 3,
@@ -15938,7 +15968,10 @@ var cascaderStyle = objectSpread2_default()(objectSpread2_default()({
15938
15968
  marginRight: 4,
15939
15969
  marginTop: src.cascaderPlaceholderMarginY,
15940
15970
  marginBottom: src.cascaderPlaceholderMarginY,
15941
- textWrap: 'nowrap'
15971
+ textWrap: 'nowrap',
15972
+ '&$hideTag': {
15973
+ marginRight: 0
15974
+ }
15942
15975
  },
15943
15976
  space: {
15944
15977
  marginTop: src.cascaderPlaceholderMarginY,
@@ -20604,6 +20637,23 @@ var selectStyle = objectSpread2_default()(objectSpread2_default()({
20604
20637
  '& $placeholder,$ellipsis,$space,input': {
20605
20638
  marginTop: 0,
20606
20639
  marginBottom: 0
20640
+ },
20641
+ '& $tag': {
20642
+ marginTop: 0,
20643
+ paddingTop: 0,
20644
+ paddingBottom: 0,
20645
+ height: src.lineHeightDynamic,
20646
+ border: 'none',
20647
+ '& *': {
20648
+ lineHeight: src.lineHeightDynamic
20649
+ }
20650
+ },
20651
+ '&$wrapperSmall $tag': {
20652
+ height: 18,
20653
+ marginBottom: 2,
20654
+ '&$tag *': {
20655
+ lineHeight: '18px'
20656
+ }
20607
20657
  }
20608
20658
  },
20609
20659
  '&$wrapperSmall': {
@@ -24939,6 +24989,29 @@ var treeSelectStyle = objectSpread2_default()(objectSpread2_default()({
24939
24989
  outline: 'none',
24940
24990
  cursor: 'pointer'
24941
24991
  }, tree_select_wrapper), {}, {
24992
+ '&$wrapperInnerTitle': {
24993
+ '& $placeholder,$ellipsis,$space,input': {
24994
+ marginTop: 0,
24995
+ marginBottom: 0
24996
+ },
24997
+ '& $tag': {
24998
+ marginTop: 0,
24999
+ paddingTop: 0,
25000
+ paddingBottom: 0,
25001
+ height: src.lineHeightDynamic,
25002
+ border: 'none',
25003
+ '& *': {
25004
+ lineHeight: src.lineHeightDynamic
25005
+ }
25006
+ },
25007
+ '&$wrapperSmall $tag': {
25008
+ height: 18,
25009
+ marginBottom: 2,
25010
+ '&$tag *': {
25011
+ lineHeight: '18px'
25012
+ }
25013
+ }
25014
+ },
24942
25015
  '&$wrapperSmall': {
24943
25016
  '& $tag': {
24944
25017
  height: 18,
@@ -25014,6 +25087,7 @@ var treeSelectStyle = objectSpread2_default()(objectSpread2_default()({
25014
25087
  alignItems: 'center',
25015
25088
  lineHeight: src.lineHeightDynamic
25016
25089
  },
25090
+ hideTag: {},
25017
25091
  resultTextWrapper: {
25018
25092
  display: 'flex',
25019
25093
  flex: '1',
@@ -25225,7 +25299,10 @@ var treeSelectStyle = objectSpread2_default()(objectSpread2_default()({
25225
25299
  marginRight: 4,
25226
25300
  marginTop: src.treeSelectPlaceholderMarginY,
25227
25301
  marginBottom: src.treeSelectPlaceholderMarginY,
25228
- textWrap: 'nowrap'
25302
+ textWrap: 'nowrap',
25303
+ '&$hideTag': {
25304
+ marginRight: 0
25305
+ }
25229
25306
  },
25230
25307
  space: {
25231
25308
  marginTop: src.treeSelectPlaceholderMarginY,
@@ -34299,9 +34376,7 @@ var Result = function Result(props) {
34299
34376
 
34300
34377
 
34301
34378
  var ResultInput = function ResultInput(props) {
34302
- var _jssStyle$select;
34303
- var jssStyle = props.jssStyle,
34304
- value = props.value,
34379
+ var value = props.value,
34305
34380
  inputText = props.inputText,
34306
34381
  focus = props.focus,
34307
34382
  trim = props.trim,
@@ -34314,7 +34389,7 @@ var ResultInput = function ResultInput(props) {
34314
34389
  onBindInput = props.onBindInput,
34315
34390
  onInputBlur = props.onInputBlur,
34316
34391
  isEmpty = props.isEmpty;
34317
- var styles = jssStyle === null || jssStyle === void 0 ? void 0 : (_jssStyle$select = jssStyle.select) === null || _jssStyle$select === void 0 ? void 0 : _jssStyle$select.call(jssStyle);
34392
+ var styles = props.classes;
34318
34393
  var mirrorRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
34319
34394
  var inputRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)();
34320
34395
  var bindInputRef = function bindInputRef(ref) {
@@ -34732,18 +34807,18 @@ function getResetMore(onFilter, container, doms) {
34732
34807
  return num;
34733
34808
  }
34734
34809
  var More = function More(props) {
34735
- var _jssStyle$select;
34736
34810
  var jssStyle = props.jssStyle,
34737
34811
  data = props.data,
34738
34812
  showNum = props.showNum,
34739
34813
  size = props.size,
34740
34814
  compressed = props.compressed,
34741
- compressedClassName = props.compressedClassName;
34815
+ compressedClassName = props.compressedClassName,
34816
+ classes = props.classes;
34742
34817
  var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(false),
34743
34818
  _useState2 = slicedToArray_default()(_useState, 2),
34744
34819
  visible = _useState2[0],
34745
34820
  setVisible = _useState2[1];
34746
- var styles = jssStyle === null || jssStyle === void 0 ? void 0 : (_jssStyle$select = jssStyle.select) === null || _jssStyle$select === void 0 ? void 0 : _jssStyle$select.call(jssStyle);
34821
+ var styles = classes;
34747
34822
  var shouldShowMore = showNum < 0 || showNum >= data.length;
34748
34823
  var before = [];
34749
34824
  var after = [];
@@ -34824,7 +34899,6 @@ var result_isObject = is_isObject,
34824
34899
  result_isFunc = isFunc,
34825
34900
  result_isArray = isArray;
34826
34901
  var result_Result = function Result(props) {
34827
- var _jssStyle$select;
34828
34902
  var jssStyle = props.jssStyle,
34829
34903
  multiple = props.multiple,
34830
34904
  size = props.size,
@@ -34866,7 +34940,7 @@ var result_Result = function Result(props) {
34866
34940
  var prevMore = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(more);
34867
34941
  var showInput = allowOnFilter;
34868
34942
  var mounted = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(false);
34869
- var styles = jssStyle === null || jssStyle === void 0 ? void 0 : (_jssStyle$select = jssStyle.select) === null || _jssStyle$select === void 0 ? void 0 : _jssStyle$select.call(jssStyle);
34943
+ var styles = props.classes;
34870
34944
  var rootClass = classnames_default()(styles.resultTextWrapper, compressed && styles.compressedWrapper, multiple && styles.multipleResultWrapper, multiple && compressed && styles.multipleCompressedWrapper);
34871
34945
  var renderResultContent = function renderResultContent(data, index, nodes) {
34872
34946
  if (checkUnMatched(data)) {
@@ -34910,7 +34984,7 @@ var result_Result = function Result(props) {
34910
34984
  return /*#__PURE__*/(0,jsx_runtime.jsx)((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, {
34911
34985
  children: /*#__PURE__*/(0,jsx_runtime.jsx)(result_input, {
34912
34986
  isEmpty: empty,
34913
- jssStyle: jssStyle,
34987
+ classes: props.classes,
34914
34988
  value: filterText,
34915
34989
  trim: trim,
34916
34990
  focus: focus,
@@ -35040,7 +35114,7 @@ var result_Result = function Result(props) {
35040
35114
  var moreNumber = getCompressedBound();
35041
35115
  var renderMultipleResultMore = /*#__PURE__*/(0,jsx_runtime.jsx)(result_more, {
35042
35116
  keygen: keygen,
35043
- jssStyle: jssStyle,
35117
+ classes: props.classes,
35044
35118
  data: result,
35045
35119
  size: size,
35046
35120
  more: moreNumber,
@@ -35521,6 +35595,7 @@ var Cascader = function Cascader(props0) {
35521
35595
  size: size,
35522
35596
  value: value,
35523
35597
  closeable: singleRemove && multiple,
35598
+ classes: styles,
35524
35599
  data: data,
35525
35600
  focus: open,
35526
35601
  keygen: keygen,
@@ -36713,24 +36788,21 @@ var useListSelectMultiple = function useListSelectMultiple(props) {
36713
36788
  var getCheckedStatus = use_persist_fn(function (childrenKey) {
36714
36789
  if (valueArr.length === 0) return false;
36715
36790
  var dataMap = getDataMap(childrenKey);
36716
- var valueMap = getValueMap();
36717
36791
  var formatValues = Array.from(dataMap, function (_ref) {
36718
36792
  var _ref2 = slicedToArray_default()(_ref, 2),
36719
- value = _ref2[0],
36793
+ _value = _ref2[0],
36720
36794
  data = _ref2[1];
36721
- return [value, data];
36795
+ return data;
36722
36796
  });
36723
36797
  var checkedNum = 0;
36724
36798
  var validateNum = 0;
36725
- formatValues.forEach(function (_ref3) {
36726
- var _ref4 = slicedToArray_default()(_ref3, 2),
36727
- value = _ref4[0],
36728
- data = _ref4[1];
36799
+ for (var i = 0; i < formatValues.length; i++) {
36800
+ var data = formatValues[i];
36729
36801
  if (!disabledCheck(data)) {
36730
36802
  validateNum++;
36731
- if (valueMap.get(value)) checkedNum++;
36803
+ if (check(data)) checkedNum++;
36732
36804
  }
36733
- });
36805
+ }
36734
36806
  if (checkedNum === 0) return false;
36735
36807
  if (checkedNum === validateNum) return true;
36736
36808
  return 'indeterminate';
@@ -48002,7 +48074,8 @@ function Select(props0) {
48002
48074
  onClearCreatedData: onClearCreatedData,
48003
48075
  getDataByValues: getDataByValues,
48004
48076
  checkUnMatched: checkUnMatched,
48005
- onRemove: handleRemove
48077
+ onRemove: handleRemove,
48078
+ classes: styles
48006
48079
  })
48007
48080
  });
48008
48081
  return /*#__PURE__*/(0,jsx_runtime.jsx)(PopupProvider, {
@@ -52727,6 +52800,8 @@ var useTableLayout = function useTableLayout(props) {
52727
52800
  } else {
52728
52801
  checkFloat();
52729
52802
  checkScroll();
52803
+ // 拖拽列会导致 scrollWidth 变化
52804
+ syncScrollWidth();
52730
52805
  }
52731
52806
  }, [colgroup]);
52732
52807
  return {
@@ -57051,7 +57126,8 @@ var TreeSelect = function TreeSelect(props0) {
57051
57126
  checkUnMatched: checkUnMatched,
57052
57127
  onClearCreatedData: onClearCreatedData,
57053
57128
  getDataByValues: getDataByValues,
57054
- onRemove: handleRemove
57129
+ onRemove: handleRemove,
57130
+ classes: styles
57055
57131
  })
57056
57132
  });
57057
57133
  return /*#__PURE__*/(0,jsx_runtime.jsx)(PopupProvider, {
@@ -60731,7 +60807,7 @@ var upload_interface = __webpack_require__(7818);
60731
60807
 
60732
60808
 
60733
60809
  /* harmony default export */ var src_0 = ({
60734
- version: '3.0.0-alpha.30'
60810
+ version: '3.0.0-alpha.31'
60735
60811
  });
60736
60812
  }();
60737
60813
  /******/ return __webpack_exports__;