@sheinx/base 3.7.0-beta.37 → 3.7.0-beta.39

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.
@@ -89,7 +89,7 @@ var Carousel = function Carousel(props) {
89
89
  });
90
90
  };
91
91
  var renderIndicator = function renderIndicator() {
92
- if (total <= 1 || showIndicator === false) return null;
92
+ if (total <= 1 && typeof indicatorType !== 'function' || showIndicator === false) return null;
93
93
  var content = null;
94
94
  if (typeof indicatorType === 'function') {
95
95
  content = indicatorType(current, func.moveTo);
package/cjs/grid/util.js CHANGED
@@ -28,12 +28,12 @@ function createStyle(text, id) {
28
28
  }
29
29
  function generateGrid(width, className, responsive) {
30
30
  var minWidth = RESPONSIVE[responsive];
31
- var text = "@media screen and (min-width: ".concat(minWidth, "px) { .").concat(className, "{width: ").concat(width, "%} }");
31
+ var text = "@media screen and (min-width: ".concat(minWidth, "px) { .").concat(GridClassName, ".").concat(className, "{width: ").concat(width, "%} }");
32
32
  createStyle(text, className);
33
33
  }
34
34
  function generateOffset(width, className, responsive) {
35
35
  var minWidth = RESPONSIVE[responsive];
36
- var text = "@media screen and (min-width: ".concat(minWidth, "px) { .").concat(className, "{margin-left: ").concat(width, "%} }");
36
+ var text = "@media screen and (min-width: ".concat(minWidth, "px) { .").concat(GridClassName, ".").concat(className, "{margin-left: ").concat(width, "%} }");
37
37
  createStyle(text, className);
38
38
  }
39
39
  function generate(w, type, res) {
@@ -208,7 +208,7 @@ var expand = [/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
208
208
  clipRule: "evenodd",
209
209
  d: "M19.5 2C20.8807 2 22 3.11929 22 4.5V19.5C22 20.8807 20.8807 22 19.5 22H4.5C3.11929 22 2 20.8807 2 19.5V4.5C2 3.11929 3.11929 2 4.5 2H19.5ZM19.5 4H4.5C4.22386 4 4 4.22386 4 4.5V19.5C4 19.7761 4.22386 20 4.5 20H19.5C19.7761 20 20 19.7761 20 19.5V4.5C20 4.22386 19.7761 4 19.5 4ZM16 11C16.5523 11 17 11.4477 17 12C17 12.5128 16.614 12.9355 16.1166 12.9933L16 13C10.701 13 12.6557 13 8 13C7.44772 13 7 12.5523 7 12C7 11.4872 7.38604 11.0645 7.88338 11.0067L8 11C12.5606 11 10.8111 11 16 11Z"
210
210
  }, 0)];
211
- var pcHelpCircleFill = ['M11 0C13.9562 0 16.7292 1.17289 18.7782 3.22183C20.8271 5.27079 22 8.04381 22 11C22 13.9562 20.8271 16.7292 18.7782 18.7782C16.7292 20.8271 13.9562 22 11 22C8.04381 22 5.27079 20.8271 3.22182 18.7782C1.17289 16.7292 0 13.9562 0 11C0 8.04381 1.17289 5.27079 3.22183 3.22182C5.27079 1.17289 8.04381 0 11 0ZM11 15.3125C10.3097 15.3125 9.75 15.8721 9.75 16.5625C9.75 17.2528 10.3097 17.8125 11 17.8125C11.6903 17.8125 12.25 17.2528 12.25 16.5625C12.25 15.8721 11.6903 15.3125 11 15.3125ZM11 4.31245C8.79086 4.31245 7 6.10332 7 8.31245C7 8.86474 7.44772 9.31245 8 9.31245C8.55229 9.31245 9 8.86474 9 8.31245C9 7.20789 9.89543 6.31245 11 6.31245C12.1046 6.31245 13 7.20789 13 8.31245C13 9.41702 12.1046 10.3125 11 10.3125L10.8834 10.3192C10.386 10.3769 10 10.7996 10 11.3125V13.3125L10.0067 13.4291C10.0645 13.9264 10.4872 14.3125 11 14.3125L11.1166 14.3057C11.614 14.248 12 13.8253 12 13.3125V12.185L12.1553 12.1431C13.8012 11.6474 15 10.1199 15 8.31245C15 6.10332 13.2091 4.31245 11 4.31245Z'];
211
+ var pcHelpCircleFill = ['M12 1C14.9562 1 17.7292 2.17289 19.7782 4.22183C21.8271 6.27079 23 9.04381 23 12C23 14.9562 21.8271 17.7292 19.7782 19.7782C17.7292 21.8271 14.9562 23 12 23C9.04381 23 6.27079 21.8271 4.22182 19.7782C2.17289 17.7292 1 14.9562 1 12C1 9.04381 2.17289 6.27079 4.22183 4.22182C6.27079 2.17289 9.04381 1 12 1ZM12 16.3125C11.3097 16.3125 10.75 16.8721 10.75 17.5625C10.75 18.2528 11.3097 18.8125 12 18.8125C12.6903 18.8125 13.25 18.2528 13.25 17.5625C13.25 16.8721 12.6903 16.3125 12 16.3125ZM12 5.31245C9.79086 5.31245 8 7.10332 8 9.31245C8 9.86474 8.44772 10.3125 9 10.3125C9.55229 10.3125 10 9.86474 10 9.31245C10 8.20789 10.8954 7.31245 12 7.31245C13.1046 7.31245 14 8.20789 14 9.31245C14 10.417 13.1046 11.3125 12 11.3125L11.8834 11.3192C11.386 11.3769 11 11.7996 11 12.3125V14.3125L11.0067 14.4291C11.0645 14.9264 11.4872 15.3125 12 15.3125L12.1166 15.3057C12.614 15.248 13 14.8253 13 14.3125V13.185L13.1553 13.1431C14.8012 12.6474 16 11.1199 16 9.31245C16 7.10332 14.2091 5.31245 12 5.31245Z'];
212
212
  var pcHelpCircleOutline = /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
213
213
  fillRule: "evenodd",
214
214
  clipRule: "evenodd",
@@ -1 +1 @@
1
- {"version":3,"file":"thead-filter.d.ts","sourceRoot":"","sources":["thead-filter.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAoC,MAAM,eAAe,CAAC;AAOlG,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AA8B5C,UAAU,gBAAiB,SAAQ,IAAI,CAAC,UAAU,EAAE,UAAU,GAAG,YAAY,GAAG,gBAAgB,CAAC;IAC/F,YAAY,EAAE,YAAY,CAAC;IAC3B,MAAM,EAAE,iBAAiB,CAAC,GAAG,CAAC,CAAC;IAC/B,SAAS,EAAE,YAAY,CAAC;CACzB;AAED,eAAO,MAAM,YAAY,UAAW,gBAAgB,4CA8HnD,CAAC;AAEF,eAAO,MAAM,YAAY,UAAW,gBAAgB,4CAuFnD,CAAC"}
1
+ {"version":3,"file":"thead-filter.d.ts","sourceRoot":"","sources":["thead-filter.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAoC,MAAM,eAAe,CAAC;AAOlG,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AA8B5C,UAAU,gBAAiB,SAAQ,IAAI,CAAC,UAAU,EAAE,UAAU,GAAG,YAAY,GAAG,gBAAgB,CAAC;IAC/F,YAAY,EAAE,YAAY,CAAC;IAC3B,MAAM,EAAE,iBAAiB,CAAC,GAAG,CAAC,CAAC;IAC/B,SAAS,EAAE,YAAY,CAAC;CACzB;AAED,eAAO,MAAM,YAAY,UAAW,gBAAgB,4CA+HnD,CAAC;AAEF,eAAO,MAAM,YAAY,UAAW,gBAAgB,4CAuFnD,CAAC"}
@@ -65,33 +65,17 @@ var FilterSelect = exports.FilterSelect = function FilterSelect(props) {
65
65
  var config = filter.config;
66
66
  var currentFilter = (_props$filterInfo = props.filterInfo) === null || _props$filterInfo === void 0 ? void 0 : _props$filterInfo.get(props.columnKey);
67
67
  var treeOptions = (config === null || config === void 0 ? void 0 : config.data) || [];
68
- var onReset = function onReset() {
69
- setTempValue(undefined);
70
- props.onFilterChange(props.columnKey, undefined);
71
- setPopoverVisible(false);
72
- };
73
- var onConfirm = function onConfirm() {
74
- props.onFilterChange(props.columnKey, tempValue);
75
- setPopoverVisible(false);
76
- };
77
- var onVisibleChange = function onVisibleChange(visible) {
78
- // 关闭popover时就提交筛选条件,包括click away触发的
79
- if (!visible) {
80
- props.onFilterChange(props.columnKey, tempValue);
81
- }
82
- setPopoverVisible(visible);
83
- };
84
68
  var treeKeygen = function treeKeygen(d) {
85
69
  return d.value;
86
70
  };
87
71
  var treeProps = config !== null && config !== void 0 && config.multiple ? {
88
- value: currentFilter === null || currentFilter === void 0 ? void 0 : currentFilter.value,
72
+ value: tempValue,
89
73
  onChange: function onChange(v) {
90
74
  setTempValue(v);
91
75
  },
92
76
  renderItem: (config === null || config === void 0 ? void 0 : config.renderItem) || 'label'
93
77
  } : {
94
- active: currentFilter === null || currentFilter === void 0 ? void 0 : currentFilter.value,
78
+ active: tempValue,
95
79
  setActive: function setActive(v) {
96
80
  setTempValue(v);
97
81
  },
@@ -124,7 +108,24 @@ var FilterSelect = exports.FilterSelect = function FilterSelect(props) {
124
108
  onFilter = _useFilter.onFilter,
125
109
  inputText = _useFilter.inputText,
126
110
  setInputText = _useFilter.setInputText;
127
- var displayData = filterData || rawData;
111
+ var onReset = function onReset() {
112
+ setTempValue(undefined);
113
+ setInputText('');
114
+ props.onFilterChange(props.columnKey, undefined);
115
+ setPopoverVisible(false);
116
+ };
117
+ var onConfirm = function onConfirm() {
118
+ props.onFilterChange(props.columnKey, tempValue);
119
+ setPopoverVisible(false);
120
+ };
121
+ var onVisibleChange = function onVisibleChange(visible) {
122
+ // 关闭popover时就提交筛选条件,包括click away触发的
123
+ if (!visible) {
124
+ props.onFilterChange(props.columnKey, tempValue);
125
+ }
126
+ setPopoverVisible(visible);
127
+ };
128
+ var displayData = inputText ? filterData || rawData : rawData;
128
129
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_button.default, {
129
130
  jssStyle: props.jssStyle,
130
131
  shape: "circle",
@@ -21,6 +21,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
21
21
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
22
22
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
23
23
  var NodeContent = function NodeContent(props) {
24
+ var _jssStyle$common;
24
25
  var jssStyle = props.jssStyle,
25
26
  id = props.id,
26
27
  virtual = props.virtual,
@@ -58,7 +59,7 @@ var NodeContent = function NodeContent(props) {
58
59
  var disabled = isDisabled(id);
59
60
  bindUpdate(id, forceUpdate);
60
61
  var contentStyle = (jssStyle === null || jssStyle === void 0 ? void 0 : jssStyle.tree()) || {};
61
- var commonStyles = (jssStyle === null || jssStyle === void 0 ? void 0 : jssStyle.common()) || {};
62
+ var commonStyles = (jssStyle === null || jssStyle === void 0 || (_jssStyle$common = jssStyle.common) === null || _jssStyle$common === void 0 ? void 0 : _jssStyle$common.call(jssStyle)) || {};
62
63
  var rootClass = (0, _classnames.default)(contentStyle.contentWrapper, _defineProperty(_defineProperty(_defineProperty({}, contentStyle.childnode, data[childrenKey] && data[childrenKey].length > 0), contentStyle.inlineContent, inlineNode), contentStyle.contentDisabled, disabled));
63
64
  var contentClass = (0, _classnames.default)(contentStyle.content, _hooks.util.isString(contentClassProp) && contentClassProp, _hooks.util.isFunc(contentClassProp) && contentClassProp(data));
64
65
  var hasExpandIcons = expandIcons !== undefined;
@@ -84,7 +84,7 @@ var Carousel = function Carousel(props) {
84
84
  });
85
85
  };
86
86
  var renderIndicator = function renderIndicator() {
87
- if (total <= 1 || showIndicator === false) return null;
87
+ if (total <= 1 && typeof indicatorType !== 'function' || showIndicator === false) return null;
88
88
  var content = null;
89
89
  if (typeof indicatorType === 'function') {
90
90
  content = indicatorType(current, func.moveTo);
package/esm/grid/util.js CHANGED
@@ -22,12 +22,12 @@ function createStyle(text, id) {
22
22
  }
23
23
  function generateGrid(width, className, responsive) {
24
24
  var minWidth = RESPONSIVE[responsive];
25
- var text = "@media screen and (min-width: ".concat(minWidth, "px) { .").concat(className, "{width: ").concat(width, "%} }");
25
+ var text = "@media screen and (min-width: ".concat(minWidth, "px) { .").concat(GridClassName, ".").concat(className, "{width: ").concat(width, "%} }");
26
26
  createStyle(text, className);
27
27
  }
28
28
  function generateOffset(width, className, responsive) {
29
29
  var minWidth = RESPONSIVE[responsive];
30
- var text = "@media screen and (min-width: ".concat(minWidth, "px) { .").concat(className, "{margin-left: ").concat(width, "%} }");
30
+ var text = "@media screen and (min-width: ".concat(minWidth, "px) { .").concat(GridClassName, ".").concat(className, "{margin-left: ").concat(width, "%} }");
31
31
  createStyle(text, className);
32
32
  }
33
33
  function generate(w, type, res) {
@@ -202,7 +202,7 @@ var expand = [/*#__PURE__*/_jsx("path", {
202
202
  clipRule: "evenodd",
203
203
  d: "M19.5 2C20.8807 2 22 3.11929 22 4.5V19.5C22 20.8807 20.8807 22 19.5 22H4.5C3.11929 22 2 20.8807 2 19.5V4.5C2 3.11929 3.11929 2 4.5 2H19.5ZM19.5 4H4.5C4.22386 4 4 4.22386 4 4.5V19.5C4 19.7761 4.22386 20 4.5 20H19.5C19.7761 20 20 19.7761 20 19.5V4.5C20 4.22386 19.7761 4 19.5 4ZM16 11C16.5523 11 17 11.4477 17 12C17 12.5128 16.614 12.9355 16.1166 12.9933L16 13C10.701 13 12.6557 13 8 13C7.44772 13 7 12.5523 7 12C7 11.4872 7.38604 11.0645 7.88338 11.0067L8 11C12.5606 11 10.8111 11 16 11Z"
204
204
  }, 0)];
205
- var pcHelpCircleFill = ['M11 0C13.9562 0 16.7292 1.17289 18.7782 3.22183C20.8271 5.27079 22 8.04381 22 11C22 13.9562 20.8271 16.7292 18.7782 18.7782C16.7292 20.8271 13.9562 22 11 22C8.04381 22 5.27079 20.8271 3.22182 18.7782C1.17289 16.7292 0 13.9562 0 11C0 8.04381 1.17289 5.27079 3.22183 3.22182C5.27079 1.17289 8.04381 0 11 0ZM11 15.3125C10.3097 15.3125 9.75 15.8721 9.75 16.5625C9.75 17.2528 10.3097 17.8125 11 17.8125C11.6903 17.8125 12.25 17.2528 12.25 16.5625C12.25 15.8721 11.6903 15.3125 11 15.3125ZM11 4.31245C8.79086 4.31245 7 6.10332 7 8.31245C7 8.86474 7.44772 9.31245 8 9.31245C8.55229 9.31245 9 8.86474 9 8.31245C9 7.20789 9.89543 6.31245 11 6.31245C12.1046 6.31245 13 7.20789 13 8.31245C13 9.41702 12.1046 10.3125 11 10.3125L10.8834 10.3192C10.386 10.3769 10 10.7996 10 11.3125V13.3125L10.0067 13.4291C10.0645 13.9264 10.4872 14.3125 11 14.3125L11.1166 14.3057C11.614 14.248 12 13.8253 12 13.3125V12.185L12.1553 12.1431C13.8012 11.6474 15 10.1199 15 8.31245C15 6.10332 13.2091 4.31245 11 4.31245Z'];
205
+ var pcHelpCircleFill = ['M12 1C14.9562 1 17.7292 2.17289 19.7782 4.22183C21.8271 6.27079 23 9.04381 23 12C23 14.9562 21.8271 17.7292 19.7782 19.7782C17.7292 21.8271 14.9562 23 12 23C9.04381 23 6.27079 21.8271 4.22182 19.7782C2.17289 17.7292 1 14.9562 1 12C1 9.04381 2.17289 6.27079 4.22183 4.22182C6.27079 2.17289 9.04381 1 12 1ZM12 16.3125C11.3097 16.3125 10.75 16.8721 10.75 17.5625C10.75 18.2528 11.3097 18.8125 12 18.8125C12.6903 18.8125 13.25 18.2528 13.25 17.5625C13.25 16.8721 12.6903 16.3125 12 16.3125ZM12 5.31245C9.79086 5.31245 8 7.10332 8 9.31245C8 9.86474 8.44772 10.3125 9 10.3125C9.55229 10.3125 10 9.86474 10 9.31245C10 8.20789 10.8954 7.31245 12 7.31245C13.1046 7.31245 14 8.20789 14 9.31245C14 10.417 13.1046 11.3125 12 11.3125L11.8834 11.3192C11.386 11.3769 11 11.7996 11 12.3125V14.3125L11.0067 14.4291C11.0645 14.9264 11.4872 15.3125 12 15.3125L12.1166 15.3057C12.614 15.248 13 14.8253 13 14.3125V13.185L13.1553 13.1431C14.8012 12.6474 16 11.1199 16 9.31245C16 7.10332 14.2091 5.31245 12 5.31245Z'];
206
206
  var pcHelpCircleOutline = /*#__PURE__*/_jsx("path", {
207
207
  fillRule: "evenodd",
208
208
  clipRule: "evenodd",
@@ -1 +1 @@
1
- {"version":3,"file":"thead-filter.d.ts","sourceRoot":"","sources":["thead-filter.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAoC,MAAM,eAAe,CAAC;AAOlG,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AA8B5C,UAAU,gBAAiB,SAAQ,IAAI,CAAC,UAAU,EAAE,UAAU,GAAG,YAAY,GAAG,gBAAgB,CAAC;IAC/F,YAAY,EAAE,YAAY,CAAC;IAC3B,MAAM,EAAE,iBAAiB,CAAC,GAAG,CAAC,CAAC;IAC/B,SAAS,EAAE,YAAY,CAAC;CACzB;AAED,eAAO,MAAM,YAAY,UAAW,gBAAgB,4CA8HnD,CAAC;AAEF,eAAO,MAAM,YAAY,UAAW,gBAAgB,4CAuFnD,CAAC"}
1
+ {"version":3,"file":"thead-filter.d.ts","sourceRoot":"","sources":["thead-filter.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAoC,MAAM,eAAe,CAAC;AAOlG,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AA8B5C,UAAU,gBAAiB,SAAQ,IAAI,CAAC,UAAU,EAAE,UAAU,GAAG,YAAY,GAAG,gBAAgB,CAAC;IAC/F,YAAY,EAAE,YAAY,CAAC;IAC3B,MAAM,EAAE,iBAAiB,CAAC,GAAG,CAAC,CAAC;IAC/B,SAAS,EAAE,YAAY,CAAC;CACzB;AAED,eAAO,MAAM,YAAY,UAAW,gBAAgB,4CA+HnD,CAAC;AAEF,eAAO,MAAM,YAAY,UAAW,gBAAgB,4CAuFnD,CAAC"}
@@ -57,33 +57,17 @@ export var FilterSelect = function FilterSelect(props) {
57
57
  var config = filter.config;
58
58
  var currentFilter = (_props$filterInfo = props.filterInfo) === null || _props$filterInfo === void 0 ? void 0 : _props$filterInfo.get(props.columnKey);
59
59
  var treeOptions = (config === null || config === void 0 ? void 0 : config.data) || [];
60
- var onReset = function onReset() {
61
- setTempValue(undefined);
62
- props.onFilterChange(props.columnKey, undefined);
63
- setPopoverVisible(false);
64
- };
65
- var onConfirm = function onConfirm() {
66
- props.onFilterChange(props.columnKey, tempValue);
67
- setPopoverVisible(false);
68
- };
69
- var onVisibleChange = function onVisibleChange(visible) {
70
- // 关闭popover时就提交筛选条件,包括click away触发的
71
- if (!visible) {
72
- props.onFilterChange(props.columnKey, tempValue);
73
- }
74
- setPopoverVisible(visible);
75
- };
76
60
  var treeKeygen = function treeKeygen(d) {
77
61
  return d.value;
78
62
  };
79
63
  var treeProps = config !== null && config !== void 0 && config.multiple ? {
80
- value: currentFilter === null || currentFilter === void 0 ? void 0 : currentFilter.value,
64
+ value: tempValue,
81
65
  onChange: function onChange(v) {
82
66
  setTempValue(v);
83
67
  },
84
68
  renderItem: (config === null || config === void 0 ? void 0 : config.renderItem) || 'label'
85
69
  } : {
86
- active: currentFilter === null || currentFilter === void 0 ? void 0 : currentFilter.value,
70
+ active: tempValue,
87
71
  setActive: function setActive(v) {
88
72
  setTempValue(v);
89
73
  },
@@ -116,7 +100,24 @@ export var FilterSelect = function FilterSelect(props) {
116
100
  onFilter = _useFilter.onFilter,
117
101
  inputText = _useFilter.inputText,
118
102
  setInputText = _useFilter.setInputText;
119
- var displayData = filterData || rawData;
103
+ var onReset = function onReset() {
104
+ setTempValue(undefined);
105
+ setInputText('');
106
+ props.onFilterChange(props.columnKey, undefined);
107
+ setPopoverVisible(false);
108
+ };
109
+ var onConfirm = function onConfirm() {
110
+ props.onFilterChange(props.columnKey, tempValue);
111
+ setPopoverVisible(false);
112
+ };
113
+ var onVisibleChange = function onVisibleChange(visible) {
114
+ // 关闭popover时就提交筛选条件,包括click away触发的
115
+ if (!visible) {
116
+ props.onFilterChange(props.columnKey, tempValue);
117
+ }
118
+ setPopoverVisible(visible);
119
+ };
120
+ var displayData = inputText ? filterData || rawData : rawData;
120
121
  return /*#__PURE__*/_jsxs(Button, {
121
122
  jssStyle: props.jssStyle,
122
123
  shape: "circle",
@@ -16,6 +16,7 @@ import { useContext } from 'react';
16
16
  import { jsx as _jsx } from "react/jsx-runtime";
17
17
  import { jsxs as _jsxs } from "react/jsx-runtime";
18
18
  var NodeContent = function NodeContent(props) {
19
+ var _jssStyle$common;
19
20
  var jssStyle = props.jssStyle,
20
21
  id = props.id,
21
22
  virtual = props.virtual,
@@ -53,7 +54,7 @@ var NodeContent = function NodeContent(props) {
53
54
  var disabled = isDisabled(id);
54
55
  bindUpdate(id, forceUpdate);
55
56
  var contentStyle = (jssStyle === null || jssStyle === void 0 ? void 0 : jssStyle.tree()) || {};
56
- var commonStyles = (jssStyle === null || jssStyle === void 0 ? void 0 : jssStyle.common()) || {};
57
+ var commonStyles = (jssStyle === null || jssStyle === void 0 || (_jssStyle$common = jssStyle.common) === null || _jssStyle$common === void 0 ? void 0 : _jssStyle$common.call(jssStyle)) || {};
57
58
  var rootClass = classNames(contentStyle.contentWrapper, _defineProperty(_defineProperty(_defineProperty({}, contentStyle.childnode, data[childrenKey] && data[childrenKey].length > 0), contentStyle.inlineContent, inlineNode), contentStyle.contentDisabled, disabled));
58
59
  var contentClass = classNames(contentStyle.content, util.isString(contentClassProp) && contentClassProp, util.isFunc(contentClassProp) && contentClassProp(data));
59
60
  var hasExpandIcons = expandIcons !== undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sheinx/base",
3
- "version": "3.7.0-beta.37",
3
+ "version": "3.7.0-beta.39",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -10,7 +10,7 @@
10
10
  "module": "./esm/index.js",
11
11
  "typings": "./cjs/index.d.ts",
12
12
  "dependencies": {
13
- "@sheinx/hooks": "3.7.0-beta.37",
13
+ "@sheinx/hooks": "3.7.0-beta.39",
14
14
  "immer": "^10.0.0",
15
15
  "classnames": "^2.0.0",
16
16
  "@shined/reactive": "^0.1.3-alpha.0"