shineout 3.0.0-alpha.6 → 3.0.0-alpha.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.
Files changed (53) hide show
  1. package/cjs/deprecated.d.ts +8 -0
  2. package/cjs/deprecated.js +22 -0
  3. package/cjs/index.d.ts +2 -1
  4. package/cjs/index.js +78 -0
  5. package/cjs/popover/__example__/09-confirm.js +0 -4
  6. package/cjs/popover/__example__/11-event.js +1 -1
  7. package/cjs/table/__example__/01-base.js +2 -2
  8. package/cjs/table/__example__/02-border.js +2 -2
  9. package/cjs/table/__example__/03-size.js +1 -1
  10. package/cjs/table/__example__/04-group.d.ts +1 -1
  11. package/cjs/table/__example__/04-group.js +1 -1
  12. package/cjs/table/__example__/05-fixed-head.d.ts +1 -1
  13. package/cjs/table/__example__/05-fixed-head.js +1 -1
  14. package/cjs/table/__example__/06-fixed-column.d.ts +1 -1
  15. package/cjs/table/__example__/06-fixed-column.js +1 -1
  16. package/cjs/table/__example__/07-01-virtual-list.d.ts +2 -2
  17. package/cjs/table/__example__/07-01-virtual-list.js +2 -2
  18. package/cjs/table/__example__/07-02-virtual-scroll.d.ts +2 -2
  19. package/cjs/table/__example__/07-02-virtual-scroll.js +2 -2
  20. package/cjs/table/__example__/08-loading.d.ts +1 -1
  21. package/cjs/table/__example__/08-loading.js +1 -1
  22. package/cjs/table/__example__/09-01-sorter.d.ts +3 -3
  23. package/cjs/table/__example__/09-01-sorter.js +3 -3
  24. package/cjs/table/__example__/09-02-sorter-render.d.ts +1 -1
  25. package/dist/shineout.js +53 -23
  26. package/dist/shineout.js.map +1 -1
  27. package/dist/shineout.min.js +1 -1
  28. package/dist/shineout.min.js.map +1 -1
  29. package/esm/deprecated.d.ts +8 -0
  30. package/esm/deprecated.js +22 -0
  31. package/esm/index.d.ts +2 -1
  32. package/esm/index.js +78 -0
  33. package/esm/popover/__example__/09-confirm.js +0 -4
  34. package/esm/popover/__example__/11-event.js +1 -1
  35. package/esm/table/__example__/01-base.js +2 -2
  36. package/esm/table/__example__/02-border.js +2 -2
  37. package/esm/table/__example__/03-size.js +1 -1
  38. package/esm/table/__example__/04-group.d.ts +1 -1
  39. package/esm/table/__example__/04-group.js +1 -1
  40. package/esm/table/__example__/05-fixed-head.d.ts +1 -1
  41. package/esm/table/__example__/05-fixed-head.js +1 -1
  42. package/esm/table/__example__/06-fixed-column.d.ts +1 -1
  43. package/esm/table/__example__/06-fixed-column.js +1 -1
  44. package/esm/table/__example__/07-01-virtual-list.d.ts +2 -2
  45. package/esm/table/__example__/07-01-virtual-list.js +2 -2
  46. package/esm/table/__example__/07-02-virtual-scroll.d.ts +2 -2
  47. package/esm/table/__example__/07-02-virtual-scroll.js +2 -2
  48. package/esm/table/__example__/08-loading.d.ts +1 -1
  49. package/esm/table/__example__/08-loading.js +1 -1
  50. package/esm/table/__example__/09-01-sorter.d.ts +3 -3
  51. package/esm/table/__example__/09-01-sorter.js +3 -3
  52. package/esm/table/__example__/09-02-sorter-render.d.ts +1 -1
  53. package/package.json +4 -4
@@ -0,0 +1,8 @@
1
+ export declare const color: {};
2
+ export declare const style: {
3
+ getClassName: () => string;
4
+ setStyle: () => () => void;
5
+ cleanCache: () => void;
6
+ setInjectType: () => void;
7
+ getInjectType: () => string;
8
+ };
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.style = exports.color = void 0;
7
+ var color = {};
8
+ exports.color = color;
9
+ var style = {
10
+ getClassName: function getClassName() {
11
+ return '';
12
+ },
13
+ setStyle: function setStyle() {
14
+ return function () {};
15
+ },
16
+ cleanCache: function cleanCache() {},
17
+ setInjectType: function setInjectType() {},
18
+ getInjectType: function getInjectType() {
19
+ return '';
20
+ }
21
+ };
22
+ exports.style = style;
package/cjs/index.d.ts CHANGED
@@ -45,5 +45,6 @@ export { default as Tree } from './tree';
45
45
  export { default as TreeSelect } from './tree-select';
46
46
  export { default as Upload } from './upload';
47
47
  export { default as Collapse } from './collapse';
48
- export { setConfig } from '@sheinx/base';
48
+ export { setConfig, config, setLocale } from '@sheinx/base';
49
+ export * from './deprecated';
49
50
  export * as TYPE from './type';
package/cjs/index.js CHANGED
@@ -3,11 +3,65 @@
3
3
  require("core-js/modules/es.array.iterator.js");
4
4
  require("core-js/modules/es.weak-map.js");
5
5
  require("core-js/modules/web.dom-collections.iterator.js");
6
+ require("core-js/modules/web.dom-collections.for-each.js");
6
7
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
7
8
  var _typeof = require("@babel/runtime/helpers/typeof");
8
9
  Object.defineProperty(exports, "__esModule", {
9
10
  value: true
10
11
  });
12
+ var _exportNames = {
13
+ Alert: true,
14
+ Breadcrumb: true,
15
+ Button: true,
16
+ Card: true,
17
+ CardGroup: true,
18
+ Cascader: true,
19
+ Carousel: true,
20
+ Checkbox: true,
21
+ DatePicker: true,
22
+ Descriptions: true,
23
+ Divider: true,
24
+ Drawer: true,
25
+ Dropdown: true,
26
+ EditableArea: true,
27
+ Empty: true,
28
+ Form: true,
29
+ Gap: true,
30
+ Grid: true,
31
+ Icon: true,
32
+ Image: true,
33
+ Input: true,
34
+ List: true,
35
+ Menu: true,
36
+ Message: true,
37
+ Modal: true,
38
+ Pagination: true,
39
+ Popover: true,
40
+ Progress: true,
41
+ Radio: true,
42
+ Rate: true,
43
+ Rule: true,
44
+ Select: true,
45
+ Slider: true,
46
+ Spin: true,
47
+ Steps: true,
48
+ Sticky: true,
49
+ Switch: true,
50
+ Table: true,
51
+ Tabs: true,
52
+ Tag: true,
53
+ Textarea: true,
54
+ Tooltip: true,
55
+ Transfer: true,
56
+ Tree: true,
57
+ TreeSelect: true,
58
+ Upload: true,
59
+ Collapse: true,
60
+ setConfig: true,
61
+ config: true,
62
+ setLocale: true,
63
+ TYPE: true
64
+ };
11
65
  Object.defineProperty(exports, "Alert", {
12
66
  enumerable: true,
13
67
  get: function get() {
@@ -291,12 +345,24 @@ Object.defineProperty(exports, "Upload", {
291
345
  return _upload.default;
292
346
  }
293
347
  });
348
+ Object.defineProperty(exports, "config", {
349
+ enumerable: true,
350
+ get: function get() {
351
+ return _base.config;
352
+ }
353
+ });
294
354
  Object.defineProperty(exports, "setConfig", {
295
355
  enumerable: true,
296
356
  get: function get() {
297
357
  return _base.setConfig;
298
358
  }
299
359
  });
360
+ Object.defineProperty(exports, "setLocale", {
361
+ enumerable: true,
362
+ get: function get() {
363
+ return _base.setLocale;
364
+ }
365
+ });
300
366
  var _alert = _interopRequireDefault(require("./alert"));
301
367
  var _breadcrumb = _interopRequireDefault(require("./breadcrumb"));
302
368
  var _button = _interopRequireDefault(require("./button"));
@@ -345,6 +411,18 @@ var _treeSelect = _interopRequireDefault(require("./tree-select"));
345
411
  var _upload = _interopRequireDefault(require("./upload"));
346
412
  var _collapse = _interopRequireDefault(require("./collapse"));
347
413
  var _base = require("@sheinx/base");
414
+ var _deprecated = require("./deprecated");
415
+ Object.keys(_deprecated).forEach(function (key) {
416
+ if (key === "default" || key === "__esModule") return;
417
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
418
+ if (key in exports && exports[key] === _deprecated[key]) return;
419
+ Object.defineProperty(exports, key, {
420
+ enumerable: true,
421
+ get: function get() {
422
+ return _deprecated[key];
423
+ }
424
+ });
425
+ });
348
426
  var _TYPE = _interopRequireWildcard(require("./type"));
349
427
  exports.TYPE = _TYPE;
350
428
  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); }
@@ -33,10 +33,6 @@ var App = function App() {
33
33
  return console.log('cancel');
34
34
  },
35
35
  onOk: onOk,
36
- text: {
37
- ok: 'Cancel',
38
- cancel: 'Ok'
39
- },
40
36
  children: "Are you sure you want to delete this content ?"
41
37
  }), "Delete"]
42
38
  });
@@ -28,7 +28,7 @@ var App = function App() {
28
28
  onClose: close,
29
29
  trigger: "click",
30
30
  children: "Some text"
31
- }), "Click me."]
31
+ }), "Click me"]
32
32
  });
33
33
  };
34
34
  var _default = App;
@@ -11,9 +11,9 @@ var _ = require("../..");
11
11
  var _jsxRuntime = require("react/jsx-runtime");
12
12
  /**
13
13
  * cn - 基本用法
14
- * -- 基础的表格用法。推荐 columns 写为常量,以提升性能。
14
+ * -- 基础的表格用法。推荐 columns 写为常量,以提升性能
15
15
  * en - Base
16
- * -- Basic table usage.
16
+ * -- Basic table usage
17
17
  */
18
18
 
19
19
  var data = [{
@@ -11,9 +11,9 @@ var _ = require("../..");
11
11
  var _jsxRuntime = require("react/jsx-runtime");
12
12
  /**
13
13
  * cn - 边框和底纹
14
- * -- 通过 striped 显示交错底纹;通过 bordered 显示边框。
14
+ * -- 通过 striped 显示交错底纹;通过 bordered 显示边框
15
15
  * en - Style
16
- * -- Set striped to add zebra-striping; Set bordered to add borders.
16
+ * -- Set striped to add zebra-striping; Set bordered to add borders
17
17
  */
18
18
 
19
19
  var data = [{
@@ -14,7 +14,7 @@ var _jsxRuntime = require("react/jsx-runtime");
14
14
  * cn - 尺寸类型
15
15
  * -- 设置 size 为 small 显示紧凑表格,large 为显示松散表格
16
16
  * en - Size
17
- * -- Set size to small to display compact table, large to display loose table.
17
+ * -- Set size to small to display compact table, large to display loose table
18
18
  */
19
19
 
20
20
  var data = [{
@@ -2,7 +2,7 @@
2
2
  * cn - 表头分组
3
3
  * -- Table 会自动合并相邻相同 group 的表头
4
4
  * en - Column group
5
- * -- Table automatically merges headers with adjacent and identical groups.
5
+ * -- Table automatically merges headers with adjacent and identical groups
6
6
  */
7
7
  import React from 'react';
8
8
  declare const App: React.FC;
@@ -12,7 +12,7 @@ var _jsxRuntime = require("react/jsx-runtime");
12
12
  * cn - 表头分组
13
13
  * -- Table 会自动合并相邻相同 group 的表头
14
14
  * en - Column group
15
- * -- Table automatically merges headers with adjacent and identical groups.
15
+ * -- Table automatically merges headers with adjacent and identical groups
16
16
  */
17
17
 
18
18
  var data = [{
@@ -2,7 +2,7 @@
2
2
  * cn - 固定表头
3
3
  * -- 当 table 设置高度后,表头会固定在顶部
4
4
  * en - Fixed head
5
- * -- When the table sets the height, the header will be fixed at the top.
5
+ * -- When the table sets the height, the header will be fixed at the top
6
6
  */
7
7
  import React from 'react';
8
8
  declare const App: React.FC;
@@ -17,7 +17,7 @@ var _jsxRuntime = require("react/jsx-runtime");
17
17
  * cn - 固定表头
18
18
  * -- 当 table 设置高度后,表头会固定在顶部
19
19
  * en - Fixed head
20
- * -- When the table sets the height, the header will be fixed at the top.
20
+ * -- When the table sets the height, the header will be fixed at the top
21
21
  */
22
22
 
23
23
  var data = _mock.user.fetchSync(20);
@@ -2,7 +2,7 @@
2
2
  * cn - 固定列
3
3
  * -- 设置 column 的 fixed 属性,可以固定列。只在设置了表格的 width 属性,并且 width 大于外部容器情况下才会生效
4
4
  * en - Fixed column
5
- * -- Set the fixed property of the column can fix the column; Only take effect if the table's width property is set and width is greater than the external container.
5
+ * -- Set the fixed property of the column can fix the column; Only take effect if the table's width property is set and width is greater than the external container
6
6
  */
7
7
  import React from 'react';
8
8
  declare const App: React.FC;
@@ -16,7 +16,7 @@ var _jsxRuntime = require("react/jsx-runtime");
16
16
  * cn - 固定列
17
17
  * -- 设置 column 的 fixed 属性,可以固定列。只在设置了表格的 width 属性,并且 width 大于外部容器情况下才会生效
18
18
  * en - Fixed column
19
- * -- Set the fixed property of the column can fix the column; Only take effect if the table's width property is set and width is greater than the external container.
19
+ * -- Set the fixed property of the column can fix the column; Only take effect if the table's width property is set and width is greater than the external container
20
20
  */
21
21
 
22
22
  var data = _mock.user.fetchSync(20);
@@ -2,8 +2,8 @@
2
2
  * cn - 大数据量表格
3
3
  * -- Table内部对大量数据的渲染做了lazy render的优化。这个例子加载了10000条,55列数据。可以通过设置rowsInView调整单次最多render的行数,默认为20
4
4
  * en - Large data
5
- * -- The rendering of large amounts of data in the Table has been optimized by lazy render. This example loads 10000 pieces and 55 columns of data.
6
- * -- You can set rowsInView property to change the number of rows in rendering. The default value is 20.
5
+ * -- The rendering of large amounts of data in the Table has been optimized by lazy render. This example loads 10000 pieces and 55 columns of data
6
+ * -- You can set rowsInView property to change the number of rows in rendering. The default value is 20
7
7
  */
8
8
  import React from 'react';
9
9
  declare const App: React.FC;
@@ -17,8 +17,8 @@ var _jsxRuntime = require("react/jsx-runtime");
17
17
  * cn - 大数据量表格
18
18
  * -- Table内部对大量数据的渲染做了lazy render的优化。这个例子加载了10000条,55列数据。可以通过设置rowsInView调整单次最多render的行数,默认为20
19
19
  * en - Large data
20
- * -- The rendering of large amounts of data in the Table has been optimized by lazy render. This example loads 10000 pieces and 55 columns of data.
21
- * -- You can set rowsInView property to change the number of rows in rendering. The default value is 20.
20
+ * -- The rendering of large amounts of data in the Table has been optimized by lazy render. This example loads 10000 pieces and 55 columns of data
21
+ * -- You can set rowsInView property to change the number of rows in rendering. The default value is 20
22
22
  */
23
23
 
24
24
  var data = _mock.user.fetchSync(10000);
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * cn - 虚拟滚动
3
- * -- 虚拟列表提供了一个 scrollToIndex 方法滚动到指定行。
3
+ * -- 虚拟列表提供了一个 scrollToIndex 方法滚动到指定行
4
4
  * en - scrollToIndex
5
- * -- The virtual list table provides a scrollToIndex method to scroll to the specified row.
5
+ * -- The virtual list table provides a scrollToIndex method to scroll to the specified row
6
6
  */
7
7
  import React from 'react';
8
8
  declare const App: React.FC;
@@ -19,9 +19,9 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
19
19
  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; }
20
20
  /**
21
21
  * cn - 虚拟滚动
22
- * -- 虚拟列表提供了一个 scrollToIndex 方法滚动到指定行。
22
+ * -- 虚拟列表提供了一个 scrollToIndex 方法滚动到指定行
23
23
  * en - scrollToIndex
24
- * -- The virtual list table provides a scrollToIndex method to scroll to the specified row.
24
+ * -- The virtual list table provides a scrollToIndex method to scroll to the specified row
25
25
  */
26
26
 
27
27
  var data = _mock.user.fetchSync(10000);
@@ -2,7 +2,7 @@
2
2
  * cn - 加载中
3
3
  * -- 设置 loading 属性可以将表格状态设置为加载中
4
4
  * en - Loading
5
- * -- Set the loading property can set the table state to loading.
5
+ * -- Set the loading property can set the table state to loading
6
6
  */
7
7
  import React from 'react';
8
8
  declare const App: React.FC;
@@ -14,7 +14,7 @@ var _jsxRuntime = require("react/jsx-runtime");
14
14
  * cn - 加载中
15
15
  * -- 设置 loading 属性可以将表格状态设置为加载中
16
16
  * en - Loading
17
- * -- Set the loading property can set the table state to loading.
17
+ * -- Set the loading property can set the table state to loading
18
18
  */
19
19
 
20
20
  var data = _mock.user.fetchSync(8);
@@ -6,11 +6,11 @@
6
6
  * -- sorter 返回一个 sort 函数时,使用这个函数对数据进行内部排序
7
7
  * -- 后端或自行排序用户自行处理,sorter 函数不要返回结果
8
8
  * en - Sorter
9
- * -- Set the sorter property of Table to indicate the method of table sort.
9
+ * -- Set the sorter property of Table to indicate the method of table sort
10
10
  * -- Set the sorter property of Column to indicate the sort key string, will pass to table sorter method
11
11
  * -- Set defaultOrder mark defualt order
12
- * -- When the sorter returns a function, use this function to sort data internally.
13
- * -- Server-side or self-sorting is is handled by the user, do not return results.
12
+ * -- When the sorter returns a function, use this function to sort data internally
13
+ * -- Server-side or self-sorting is is handled by the user, do not return results
14
14
  */
15
15
  import React from 'react';
16
16
  declare const App: React.FC;
@@ -21,11 +21,11 @@ var _jsxRuntime = require("react/jsx-runtime");
21
21
  * -- sorter 返回一个 sort 函数时,使用这个函数对数据进行内部排序
22
22
  * -- 后端或自行排序用户自行处理,sorter 函数不要返回结果
23
23
  * en - Sorter
24
- * -- Set the sorter property of Table to indicate the method of table sort.
24
+ * -- Set the sorter property of Table to indicate the method of table sort
25
25
  * -- Set the sorter property of Column to indicate the sort key string, will pass to table sorter method
26
26
  * -- Set defaultOrder mark defualt order
27
- * -- When the sorter returns a function, use this function to sort data internally.
28
- * -- Server-side or self-sorting is is handled by the user, do not return results.
27
+ * -- When the sorter returns a function, use this function to sort data internally
28
+ * -- Server-side or self-sorting is is handled by the user, do not return results
29
29
  */
30
30
 
31
31
  var data = _mock.user.fetchSync(10);
@@ -2,7 +2,7 @@
2
2
  * cn - 自定义排序图标
3
3
  * -- 设置 Table 的 renderSorter 属性来自定义图标
4
4
  * en - Sorter
5
- * -- Set the renderSorter property of the Table to customize the icon.
5
+ * -- Set the renderSorter property of the Table to customize the icon
6
6
  */
7
7
  import React from 'react';
8
8
  declare const App: React.FC;
package/dist/shineout.js CHANGED
@@ -12627,7 +12627,11 @@ __webpack_require__.d(__webpack_exports__, {
12627
12627
  "Tree": function() { return /* reexport */ src_tree_0; },
12628
12628
  "TreeSelect": function() { return /* reexport */ src_tree_select_0; },
12629
12629
  "Upload": function() { return /* reexport */ src_upload_0; },
12630
- "setConfig": function() { return /* reexport */ config_setConfig; }
12630
+ "color": function() { return /* reexport */ color; },
12631
+ "config": function() { return /* reexport */ config; },
12632
+ "setConfig": function() { return /* reexport */ setConfig; },
12633
+ "setLocale": function() { return /* reexport */ setLocale; },
12634
+ "style": function() { return /* reexport */ deprecated_style; }
12631
12635
  });
12632
12636
 
12633
12637
  // NAMESPACE OBJECT: ./src/type.ts
@@ -19470,7 +19474,7 @@ try {
19470
19474
  } catch (error) {
19471
19475
  processEnv = {};
19472
19476
  }
19473
- var config_config = {
19477
+ var config = {
19474
19478
  prefix: 'so',
19475
19479
  locale: processEnv.LOCALE || 'zh-CN',
19476
19480
  delay: 0,
@@ -19480,24 +19484,24 @@ var config_config = {
19480
19484
  direction: 'ltr',
19481
19485
  popupContainer: null
19482
19486
  };
19483
- var state = proxy(config_config);
19487
+ var state = proxy(config);
19484
19488
  subscribe(state, function () {
19485
- config_config = state;
19489
+ config = state;
19486
19490
  });
19487
19491
  function getDefaultContainer() {
19488
- if (isFunc(config_config.popupContainer)) {
19489
- var container = config_config.popupContainer();
19492
+ if (isFunc(config.popupContainer)) {
19493
+ var container = config.popupContainer();
19490
19494
  if (container instanceof HTMLElement) {
19491
19495
  return container;
19492
19496
  }
19493
19497
  }
19494
- if (config_config.popupContainer instanceof HTMLElement) return config_config.popupContainer;
19498
+ if (config.popupContainer instanceof HTMLElement) return config.popupContainer;
19495
19499
  return document.body;
19496
19500
  }
19497
19501
  var useConfig = function useConfig() {
19498
19502
  return useSnapshot(state);
19499
19503
  };
19500
- var config_setConfig = function setConfig(option) {
19504
+ var setConfig = function setConfig(option) {
19501
19505
  for (var _i = 0, _Object$entries = Object.entries(option); _i < _Object$entries.length; _i++) {
19502
19506
  var _Object$entries$_i = slicedToArray_default()(_Object$entries[_i], 2),
19503
19507
  key = _Object$entries$_i[0],
@@ -24971,9 +24975,9 @@ var getLocaleObj = function getLocaleObj(locale) {
24971
24975
  function setLocale(arg) {
24972
24976
  var locale = getLocaleObj(config.locale);
24973
24977
  if (typeof arg === 'string') {
24974
- locale = arg === 'zh-CN' ? cn : en;
24975
- } else if (_typeof(arg) === 'object') {
24976
- locale = locale_deepMerge(cn, arg, {
24978
+ locale = arg === 'zh-CN' ? zh_CN : en_US;
24979
+ } else if (typeof_default()(arg) === 'object') {
24980
+ locale = locale_deepMerge(zh_CN, arg, {
24977
24981
  clone: true
24978
24982
  });
24979
24983
  }
@@ -33199,8 +33203,8 @@ var customParseFormat_default = /*#__PURE__*/__webpack_require__.n(customParseFo
33199
33203
  var relativeTime = __webpack_require__(6376);
33200
33204
  var relativeTime_default = /*#__PURE__*/__webpack_require__.n(relativeTime);
33201
33205
  // EXTERNAL MODULE: ../../node_modules/.pnpm/dayjs@1.11.9/node_modules/dayjs/locale/en.js
33202
- var locale_en = __webpack_require__(2000);
33203
- var en_default = /*#__PURE__*/__webpack_require__.n(locale_en);
33206
+ var en = __webpack_require__(2000);
33207
+ var en_default = /*#__PURE__*/__webpack_require__.n(en);
33204
33208
  ;// CONCATENATED MODULE: ../hooks/src/components/use-datepicker/util.ts
33205
33209
 
33206
33210
 
@@ -40884,8 +40888,8 @@ var RESPONSIVE = {
40884
40888
  lg: '992',
40885
40889
  xl: '1200'
40886
40890
  };
40887
- var GridClassName = "".concat(config_config.prefix, "-grid");
40888
- var GridFullClassName = "".concat(config_config.prefix, "-grid-full");
40891
+ var GridClassName = "".concat(config.prefix, "-grid");
40892
+ var GridFullClassName = "".concat(config.prefix, "-grid-full");
40889
40893
  var defaultResponsive = 'md';
40890
40894
  function util_createStyle(text, id) {
40891
40895
  var style = document.head.querySelector("#".concat(id));
@@ -40919,7 +40923,7 @@ function generate(w, type, res) {
40919
40923
  }
40920
40924
  width = (width * 100).toFixed(4);
40921
40925
  width = width.substr(0, width.length - 1);
40922
- var className = "".concat(config_config.prefix, "-").concat(type, "-").concat(responsive, "-").concat(width.replace('.', '-'));
40926
+ var className = "".concat(config.prefix, "-").concat(type, "-").concat(responsive, "-").concat(width.replace('.', '-'));
40923
40927
  if (!CACHES[className]) {
40924
40928
  if (type === 'grid') {
40925
40929
  generateGrid(width, className, responsive);
@@ -52579,6 +52583,7 @@ var useTableVirtual = function useTableVirtual(props) {
52579
52583
  var updateRateScroll = usePersistFn(function (rate) {
52580
52584
  var scrollRef = props.scrollRef;
52581
52585
  var sumHeight = getContentHeight(props.data.length - 1);
52586
+ if (sumHeight === scrollHeight) return;
52582
52587
  context.shouldUpdateHeight = true;
52583
52588
  context.heightCallback = function () {
52584
52589
  if (scrollRef && scrollRef.current) {
@@ -52610,6 +52615,8 @@ var useTableVirtual = function useTableVirtual(props) {
52610
52615
  if (scrollTop > max) {
52611
52616
  scrollTop = max;
52612
52617
  }
52618
+ // 拖动滚动条后保持滚动位置
52619
+ console.log(context.controlScrollRate, 'controlScrollRate');
52613
52620
  if (context.controlScrollRate !== null) {
52614
52621
  var top = context.controlScrollRate * max;
52615
52622
  updateIndexAndTopFromTop(top);
@@ -52617,7 +52624,9 @@ var useTableVirtual = function useTableVirtual(props) {
52617
52624
  context.controlScrollRate = null;
52618
52625
  return;
52619
52626
  }
52627
+ // 拖动滚动条
52620
52628
  if (fromDrag) {
52629
+ console.log('fromDrag');
52621
52630
  var _top = y * max;
52622
52631
  updateIndexAndTopFromTop(_top);
52623
52632
  if (context.rateTimer) clearTimeout(context.rateTimer);
@@ -53445,7 +53454,7 @@ var Tr = function Tr(props) {
53445
53454
  var expandHeight = expandRef.current ? expandRef.current.offsetHeight : 0;
53446
53455
  props.setRowHeight(props.rowIndex, trRef.current.offsetHeight + expandHeight);
53447
53456
  }
53448
- }, [props.expanded, props.rowIndex]);
53457
+ }, [props.expanded, props.rowIndex, props.bodyScrollWidth]);
53449
53458
  var renderTreeExpand = function renderTreeExpand(content) {
53450
53459
  var treeIndent = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 22;
53451
53460
  var level = props.treeExpandLevel.get(props.originKey) || 0;
@@ -53706,7 +53715,8 @@ var Tr = function Tr(props) {
53706
53715
  rowClickAttr: props.rowClickAttr,
53707
53716
  onRowClick: props.onRowClick,
53708
53717
  rowEvents: props.rowEvents,
53709
- disabled: props.datum.disabledCheck(item)
53718
+ disabled: props.datum.disabledCheck(item),
53719
+ bodyScrollWidth: props.bodyScrollWidth
53710
53720
  }, originKey);
53711
53721
  };
53712
53722
  return /*#__PURE__*/(0,jsx_runtime.jsx)("tbody", {
@@ -53924,7 +53934,8 @@ var scrollWrapperStyle = {
53924
53934
  width = _useTableLayout.width,
53925
53935
  shouldLastColAuto = _useTableLayout.shouldLastColAuto,
53926
53936
  maxScrollLeft = _useTableLayout.maxScrollLeft,
53927
- scrollBarWidth = _useTableLayout.scrollBarWidth;
53937
+ scrollBarWidth = _useTableLayout.scrollBarWidth,
53938
+ scrollWidth = _useTableLayout.scrollWidth;
53928
53939
  var _useTableSort = use_table_sort({
53929
53940
  data: props.data,
53930
53941
  sorter: props.sorter,
@@ -54054,7 +54065,8 @@ var scrollWrapperStyle = {
54054
54065
  striped: props.striped,
54055
54066
  radio: props.radio,
54056
54067
  onRowClick: props.onRowClick,
54057
- rowEvents: props.rowEvents
54068
+ rowEvents: props.rowEvents,
54069
+ bodyScrollWidth: scrollWidth
54058
54070
  };
54059
54071
  var headCommonProps = {
54060
54072
  disabled: props.disabled,
@@ -54210,7 +54222,7 @@ var scrollWrapperStyle = {
54210
54222
  className: tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.pagination,
54211
54223
  jssStyle: props.jssStyle,
54212
54224
  align: "right"
54213
- }, paginationInfo), pagination));
54225
+ }, pagination), paginationInfo));
54214
54226
  };
54215
54227
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
54216
54228
  // 绑定 wheel 事件
@@ -54245,7 +54257,7 @@ var scrollWrapperStyle = {
54245
54257
  if (!props.columns || columns.length === 0) return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
54246
54258
  className: classnames_default()(tableWrapperClass, tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.simple, props.striped && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.striped)),
54247
54259
  style: objectSpread2_default()({
54248
- height: props.height
54260
+ height: props.height || '100%'
54249
54261
  }, props.style),
54250
54262
  children: /*#__PURE__*/(0,jsx_runtime.jsx)("table", {
54251
54263
  style: {
@@ -54359,6 +54371,8 @@ var tableStyle = objectSpread2_default()(objectSpread2_default()({}, globalStyle
54359
54371
  right: 0,
54360
54372
  bottom: 0,
54361
54373
  display: 'flex',
54374
+ justifyContent: 'center',
54375
+ alignItems: 'center',
54362
54376
  overflow: 'hidden',
54363
54377
  zIndex: loadingIndex,
54364
54378
  backgroundColor: 'hsla(0,0%,100%,.4)'
@@ -54484,7 +54498,7 @@ var tableStyle = objectSpread2_default()(objectSpread2_default()({}, globalStyle
54484
54498
  }
54485
54499
  },
54486
54500
  hasSorter: {
54487
- display: 'flex',
54501
+ display: 'inline-flex',
54488
54502
  alignItems: 'center'
54489
54503
  },
54490
54504
  sorterContainer: {
@@ -60614,6 +60628,21 @@ var CollapseComp = src_collapse_collapse;
60614
60628
  CollapseComp.Item = collapse_Item;
60615
60629
  CollapseComp.displayName = 'ShineoutCollapse';
60616
60630
  /* harmony default export */ var src_collapse_0 = (CollapseComp);
60631
+ ;// CONCATENATED MODULE: ./src/deprecated.ts
60632
+ var color = {};
60633
+ var deprecated_style = {
60634
+ getClassName: function getClassName() {
60635
+ return '';
60636
+ },
60637
+ setStyle: function setStyle() {
60638
+ return function () {};
60639
+ },
60640
+ cleanCache: function cleanCache() {},
60641
+ setInjectType: function setInjectType() {},
60642
+ getInjectType: function getInjectType() {
60643
+ return '';
60644
+ }
60645
+ };
60617
60646
  // EXTERNAL MODULE: ./src/form/interface.ts
60618
60647
  var form_interface = __webpack_require__(9001);
60619
60648
  // EXTERNAL MODULE: ./src/input/interface.ts
@@ -60784,6 +60813,7 @@ var card_group_interface = __webpack_require__(9921);
60784
60813
 
60785
60814
 
60786
60815
 
60816
+
60787
60817
 
60788
60818
 
60789
60819
  }();