@kdcloudjs/kdesign 1.7.68-stable.6 → 1.7.68-stable.8

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.
@@ -19,6 +19,7 @@ declare const locale: {
19
19
  'Pagination.order': string;
20
20
  'Pagination.forward': string;
21
21
  'Pagination.backward': string;
22
+ 'Pagination.confirm': string;
22
23
  'Transfer.selectAll': string;
23
24
  'Transfer.searchPlaceholder': string[];
24
25
  'Transfer.leftTitle': string;
@@ -30,6 +30,7 @@ var locale = (0, _extends2.default)((0, _extends2.default)({
30
30
  'Pagination.order': '第 {order} 页',
31
31
  'Pagination.forward': '向前 5 页',
32
32
  'Pagination.backward': '向后 5 页',
33
+ 'Pagination.confirm': '确定',
33
34
  'Transfer.selectAll': '全选',
34
35
  'Transfer.searchPlaceholder': ['请输入需要搜索的内容', '请输入需要搜索的内容'],
35
36
  'Transfer.leftTitle': '可选列表',
@@ -392,7 +392,7 @@ var Pagination = function Pagination(props) {
392
392
  className: "".concat(prefixCls, "-jumper-button"),
393
393
  disabled: disabled,
394
394
  onClick: handleConfirmCurrentPage
395
- }, "GO")), showSizeSelector && /*#__PURE__*/React.createElement("div", {
395
+ }, paginationLangMsg.confirm)), showSizeSelector && /*#__PURE__*/React.createElement("div", {
396
396
  className: "".concat(prefixCls, "-options")
397
397
  }, locale.getLangMsg('Pagination', 'perPage', {
398
398
  size: /*#__PURE__*/React.createElement(_dropdown.default, (0, _extends2.default)({
@@ -696,7 +696,7 @@
696
696
  list-style: none;
697
697
  -webkit-font-feature-settings: 'tnum';
698
698
  font-feature-settings: 'tnum';
699
- width: var(--kd-c-pagination-sizing-square, 24px);
699
+ padding: 0 var(--kd-c-pagination-jumper-spacing-padding-horizontal, 4px);
700
700
  height: var(--kd-c-pagination-sizing-square, 24px);
701
701
  margin-left: var(--kd-c-pagination-button-spacing, 4px);
702
702
  display: -webkit-inline-box;
@@ -506,7 +506,7 @@
506
506
 
507
507
  .@{pagination-jumper-prefix-cls}-button {
508
508
  .reset-component;
509
- width: @pagination-size;
509
+ padding: 0 @pagination-jumper-spacing;
510
510
  height: @pagination-size;
511
511
  margin-left: @pagination-button-spacing;
512
512
  display: inline-flex;
@@ -24,6 +24,7 @@
24
24
  // spacing
25
25
  @pagination-button-spacing: var(~'@{pagination-custom-prefix}-button-spacing', 4px);
26
26
  @pagination-dropdown-item-spacing-horizontal: var(~'@{pagination-custom-prefix}-dropdown-item-spacing-padding-horizontal', 24px);
27
+ @pagination-jumper-spacing: var(~'@{pagination-custom-prefix}-jumper-spacing-padding-horizontal', 4px);
27
28
 
28
29
 
29
30
 
package/lib/table/api.js CHANGED
@@ -139,6 +139,10 @@ function getApi(pipelineRef) {
139
139
  var pipeline = pipelineRef.current;
140
140
  return (_a = pipeline.ref) === null || _a === void 0 ? void 0 : _a.current.rowHeightManager.cache;
141
141
  }
142
+ function getFeatureApi(featureName) {
143
+ var pipeline = pipelineRef.current;
144
+ return pipeline.getFeatureApi(featureName);
145
+ }
142
146
  return {
143
147
  getColumns: getColumns,
144
148
  getDataSource: getDataSource,
@@ -146,6 +150,7 @@ function getApi(pipelineRef) {
146
150
  clearRangeSelection: clearRangeSelection,
147
151
  ensureRowIndexVisible: ensureRowIndexVisible,
148
152
  ensureColumnVisible: ensureColumnVisible,
149
- getHeightCache: getHeightCache
153
+ getHeightCache: getHeightCache,
154
+ getFeatureApi: getFeatureApi
150
155
  };
151
156
  }
@@ -1,3 +1,3 @@
1
1
  import { TableRowDrag, TablePipeline } from '../interface';
2
- declare function useRowDrag(pipeline: TablePipeline, rowDrag?: TableRowDrag, estimatedRowHeight?: number): void;
2
+ declare function useRowDrag(pipeline: TablePipeline, rowDrag?: TableRowDrag): void;
3
3
  export default useRowDrag;
@@ -7,11 +7,9 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.default = void 0;
8
8
  var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/extends"));
9
9
  var _table = require("@kdcloudjs/table");
10
- function useRowDrag(pipeline, rowDrag, estimatedRowHeight) {
10
+ function useRowDrag(pipeline, rowDrag) {
11
11
  if (rowDrag) {
12
- pipeline.use(_table.features.rowDrag((0, _extends2.default)({
13
- rowHeight: estimatedRowHeight
14
- }, rowDrag)));
12
+ pipeline.use(_table.features.rowDrag((0, _extends2.default)({}, rowDrag)));
15
13
  }
16
14
  }
17
15
  var _default = useRowDrag;
@@ -18,6 +18,7 @@ export declare type TableApi = {
18
18
  getHeightCache: () => number[];
19
19
  ensureRowIndexVisible: (rowIndex: number, position?: string | undefined) => void;
20
20
  ensureColumnVisible: (code: string) => void;
21
+ getFeatureApi: (featureName: string) => any;
21
22
  };
22
23
  export declare type TableInstance = {
23
24
  api: TableApi;
@@ -118,7 +118,7 @@ var Table = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
118
118
  (0, _useRangeSelection.default)(pipeline, rangeSelection);
119
119
  (0, _mergeCellHover.default)(pipeline);
120
120
  (0, _useFooterDataSource.default)(pipeline, footerDataSource);
121
- (0, _useRowDrag.default)(pipeline, rowDrag, estimatedRowHeight);
121
+ (0, _useRowDrag.default)(pipeline, rowDrag);
122
122
  /* -------------------------------------------------------------------------- */
123
123
  /* after useTablePipeline, merge pipeline.getProps result */
124
124
  /* -------------------------------------------------------------------------- */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kdcloudjs/kdesign",
3
- "version": "1.7.68-stable.6",
3
+ "version": "1.7.68-stable.8",
4
4
  "description": "KDesign 金蝶前端react 组件库",
5
5
  "title": "kdesign",
6
6
  "keywords": [
@@ -79,11 +79,10 @@
79
79
  "@babel/runtime-corejs3": "^7.11.2",
80
80
  "@babel/standalone": "^7.14.3",
81
81
  "@kdcloudjs/kdesign-icons": "^1.0.5",
82
- "@kdcloudjs/table": "1.2.1-canary.7",
82
+ "@kdcloudjs/table": "1.2.2-canary.8",
83
83
  "@popperjs/core": "^2.5.4",
84
84
  "@types/js-cookie": "^3.0.3",
85
85
  "async-validator": "^3.5.1",
86
- "axios": "^0.21.1",
87
86
  "big.js": "^6.0.2",
88
87
  "classnames": "^2.2.6",
89
88
  "color": "^4.2.3",