th-design 1.0.5 → 1.0.7

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.
@@ -1,4 +1,4 @@
1
- var _excluded = ["dataSource", "columns", "pagination"];
1
+ var _excluded = ["dataSource", "columns", "pagination", "expandable"];
2
2
  function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
3
3
  function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
4
4
  function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
@@ -24,7 +24,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
24
24
  * @Author: luohq luohq@2345.com
25
25
  * @Date: 2025-10-14 14:02:00
26
26
  * @LastEditors: luohq luohq@2345.com
27
- * @LastEditTime: 2026-01-14 19:52:31
27
+ * @LastEditTime: 2026-01-15 15:48:13
28
28
  * @FilePath: /tellhowComponent/src/components/ThSelect/index.tsx
29
29
  * @Description: 选择器组件
30
30
  */
@@ -103,6 +103,7 @@ var ThSelect = function ThSelect(props) {
103
103
  _tableProps$columns = tableProps.columns,
104
104
  columns = _tableProps$columns === void 0 ? [] : _tableProps$columns,
105
105
  paginationProp = tableProps.pagination,
106
+ expandable = tableProps.expandable,
106
107
  restProps = _objectWithoutProperties(tableProps, _excluded);
107
108
  var pagination = paginationProp === false ? false : _objectSpread(_objectSpread({}, defaultPagination), paginationProp || {});
108
109
  var location = useLocation();
@@ -994,9 +995,9 @@ var ThSelect = function ThSelect(props) {
994
995
  };
995
996
  },
996
997
  pagination: false,
997
- expandable: {
998
+ expandable: _objectSpread({
998
999
  defaultExpandAllRows: true
999
- }
1000
+ }, expandable)
1000
1001
  }))
1001
1002
  }), /*#__PURE__*/_jsx("div", {
1002
1003
  className: "th-paginationContainer",
@@ -14,7 +14,7 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar
14
14
  * @Author: luohq luohq@2345.com
15
15
  * @Date: 2025-12-29 16:03:10
16
16
  * @LastEditors: luohq luohq@2345.com
17
- * @LastEditTime: 2026-01-14 19:53:25
17
+ * @LastEditTime: 2026-01-15 15:59:46
18
18
  * @FilePath: /tellhowComponent/src/components/ThSelect/service.ts
19
19
  * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
20
20
  */
@@ -130,9 +130,7 @@ function _getList() {
130
130
  params = {};
131
131
  if (query) {
132
132
  Object.keys(query).forEach(function (key) {
133
- if (key === 'keyword' && transformSearchKey) {
134
- params[transformSearchKey] = query[key];
135
- }
133
+ params[key === 'keyword' && transformSearchKey ? transformSearchKey : key] = query[key];
136
134
  });
137
135
  }
138
136
  _context2.next = 16;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "th-design",
4
- "version": "1.0.5",
4
+ "version": "1.0.7",
5
5
  "description": "tellhow component library",
6
6
  "author": "luohq",
7
7
  "keywords": [