shineout 3.1.18 → 3.1.20

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.1.18'
479
+ version: '3.1.20'
480
480
  };
package/dist/shineout.js CHANGED
@@ -11949,7 +11949,7 @@ var handleStyle = function handleStyle(style) {
11949
11949
  };
11950
11950
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
11951
11951
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
11952
- /* harmony default export */ var version = ('3.1.18');
11952
+ /* harmony default export */ var version = ('3.1.20');
11953
11953
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
11954
11954
 
11955
11955
 
@@ -23821,7 +23821,7 @@ var tableStyle = objectSpread2_default()(objectSpread2_default()({}, globalStyle
23821
23821
  iconWrapper: {
23822
23822
  display: 'inline-block',
23823
23823
  verticalAlign: 'top',
23824
- lineHeight: '1.85',
23824
+ lineHeight: '1.9',
23825
23825
  height: '14px'
23826
23826
  },
23827
23827
  rowStriped: {
@@ -24343,6 +24343,12 @@ var tabsStyle = {
24343
24343
  width: '100%',
24344
24344
  alignItems: 'center'
24345
24345
  },
24346
+ '& $next': {
24347
+ marginLeft: src.tabsNearlyMargin
24348
+ },
24349
+ '& $prev': {
24350
+ marginRight: src.tabsNearlyMargin
24351
+ },
24346
24352
  '& $next,& $prev': {
24347
24353
  lineHeight: 0,
24348
24354
  padding: "".concat(src.tabsActionHorizontalPaddingY, " ").concat(src.tabsActionHorizontalPaddingX)
@@ -28098,7 +28104,7 @@ var processEnv = typeof process !== 'undefined' ? (_process = process) === null
28098
28104
  var src_config_config = {
28099
28105
  prefix: 'soui',
28100
28106
  locale: processEnv.LOCALE || 'en-US',
28101
- delay: 0,
28107
+ delay: 400,
28102
28108
  trim: undefined,
28103
28109
  spin: 'ring',
28104
28110
  direction: 'ltr',
@@ -34290,6 +34296,11 @@ var useFilter = function useFilter(props) {
34290
34296
 
34291
34297
 
34292
34298
 
34299
+ function use_tree_toArray(value) {
34300
+ if (!value) return [];
34301
+ if (!Array.isArray(value)) return [value];
34302
+ return value;
34303
+ }
34293
34304
  var MODE = {
34294
34305
  /**
34295
34306
  * 返回全选数据,包含父节点和子节点
@@ -34577,8 +34588,8 @@ var useTree = function useTree(props) {
34577
34588
  return checked;
34578
34589
  };
34579
34590
  var setValue = function setValue(value) {
34580
- context.value = value;
34581
- if (value && value !== context.cachedValue) {
34591
+ context.value = use_tree_toArray(value);
34592
+ if (value !== context.cachedValue) {
34582
34593
  initValue();
34583
34594
  }
34584
34595
  setUnmatedValue();
@@ -34607,9 +34618,9 @@ var useTree = function useTree(props) {
34607
34618
  context.valueMap = new Map();
34608
34619
  context.unmatchedValueMap = new Map();
34609
34620
  context.disabled = getDisabled();
34610
- context.data = data;
34621
+ context.data = use_tree_toArray(data);
34611
34622
  if (!data) return;
34612
- initData(data, []);
34623
+ initData(context.data, []);
34613
34624
  initValue();
34614
34625
  setValue(prevValue);
34615
34626
  };
@@ -35492,6 +35503,7 @@ var tag_excluded = ["jssStyle", "className", "type", "color", "size", "disabled"
35492
35503
 
35493
35504
 
35494
35505
 
35506
+
35495
35507
  var tag_Done = 2;
35496
35508
  var tag_Pendding = 1;
35497
35509
  var Tag = function Tag(props) {
@@ -35553,15 +35565,15 @@ var Tag = function Tag(props) {
35553
35565
  if (onClose) {
35554
35566
  return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
35555
35567
  className: classnames_default()(tagStyle.wrapper, inlineStyle && tagStyle.inline),
35556
- children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
35568
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
35557
35569
  className: tagStyle.container,
35558
- children: children
35570
+ children: wrapSpan(children)
35559
35571
  })
35560
35572
  });
35561
35573
  }
35562
- return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
35574
+ return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
35563
35575
  className: classnames_default()(tagStyle.wrapper, inlineStyle && tagStyle.inline),
35564
- children: children
35576
+ children: wrapSpan(children)
35565
35577
  });
35566
35578
  };
35567
35579
  var renderInput = function renderInput() {
@@ -36967,6 +36979,7 @@ function wrapFormError(error) {
36967
36979
 
36968
36980
 
36969
36981
 
36982
+
36970
36983
  function getRule(rule, props) {
36971
36984
  var po = props;
36972
36985
  var rulePo = rule;
@@ -36988,7 +37001,7 @@ function getRule(rule, props) {
36988
37001
  max: max,
36989
37002
  args: args
36990
37003
  });
36991
- po.message = typeof message === 'function' ? message(po) : message;
37004
+ po.message = typeof message === 'function' ? message(po) : substitute(message, po);
36992
37005
  var cb = function cb() {};
36993
37006
  if (func) {
36994
37007
  cb = function cb(value, formData, callback) {
@@ -55152,10 +55165,7 @@ var useTableGroup = function useTableGroup(props) {
55152
55165
  style: fixedStyle,
55153
55166
  dir: config.direction,
55154
55167
  children: [showSelectAll && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
55155
- style: {
55156
- lineHeight: 1,
55157
- verticalAlign: 'middle'
55158
- },
55168
+ className: tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.iconWrapper,
55159
55169
  children: props.radio ? null : /*#__PURE__*/(0,jsx_runtime.jsx)(base_src_checkbox_checkbox, {
55160
55170
  disabled: props.disabled === true,
55161
55171
  checked: props.datum.getCheckedStatus(props.treeCheckAll ? props.treeColumnsName : undefined),
@@ -57807,7 +57817,13 @@ var TransferList = function TransferList(props) {
57807
57817
  value: value,
57808
57818
  onSelected: onSelectChange
57809
57819
  });
57810
- if (custom) return custom;
57820
+ if (custom) return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
57821
+ className: listClass,
57822
+ style: objectSpread2_default()(objectSpread2_default()({}, listStyle), {}, {
57823
+ height: listHeight
57824
+ }),
57825
+ children: custom
57826
+ });
57811
57827
  }
57812
57828
  if (data && data.length === 0) {
57813
57829
  return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
@@ -58052,7 +58068,7 @@ var Transfer = function Transfer(props) {
58052
58068
  simple: simple,
58053
58069
  disabled: disabled,
58054
58070
  value: listValue,
58055
- selectedKeys: selectedKeys,
58071
+ selectedKeys: listValue,
58056
58072
  itemClass: itemClass,
58057
58073
  customRender: children,
58058
58074
  searchPlaceholder: placeholder,
@@ -62352,7 +62368,7 @@ var upload_interface = __webpack_require__(4412);
62352
62368
 
62353
62369
 
62354
62370
  /* harmony default export */ var src_0 = ({
62355
- version: '3.1.18'
62371
+ version: '3.1.20'
62356
62372
  });
62357
62373
  }();
62358
62374
  /******/ return __webpack_exports__;