@kdcloudjs/kdesign 1.8.49 → 1.8.50

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.
@@ -13,6 +13,7 @@ export interface IConfigProps {
13
13
  localeConfig?: LocaleConfigType;
14
14
  locale?: IntlUniversal;
15
15
  direction?: DirectionType;
16
+ isMobile?: boolean;
16
17
  }
17
18
  export interface IContextConfigProps {
18
19
  getPrefixCls?: (configPrefixCls?: string, suffixCls?: string, customizePrefixCls?: string) => string;
@@ -21,6 +22,7 @@ export interface IContextConfigProps {
21
22
  localeConfig?: LocaleConfigType;
22
23
  locale: IntlUniversal;
23
24
  direction?: DirectionType;
25
+ isMobile?: boolean;
24
26
  }
25
27
  declare const ConfigContext: import("react").Context<IContextConfigProps>;
26
28
  export default ConfigContext;
package/es/table/table.js CHANGED
@@ -73,7 +73,8 @@ var Table = forwardRef(function (props, ref) {
73
73
  getPrefixCls = _useContext.getPrefixCls,
74
74
  prefixCls = _useContext.prefixCls,
75
75
  locale = _useContext.locale,
76
- direction = _useContext.direction;
76
+ direction = _useContext.direction,
77
+ isMobile = _useContext.isMobile;
77
78
  var tablePrefixCls = getPrefixCls(prefixCls, customPrefixcls);
78
79
  var tableCls = classNames(tablePrefixCls, className);
79
80
  var localeText = locale.getCompLangMsg({
@@ -85,7 +86,8 @@ var Table = forwardRef(function (props, ref) {
85
86
  Radio: (components === null || components === void 0 ? void 0 : components.Radio) || Radio
86
87
  },
87
88
  localeText: localeText,
88
- direction: direction
89
+ direction: direction,
90
+ isMobile: isMobile
89
91
  }).primaryKey(primaryKey === undefined ? '' : primaryKey).input({
90
92
  columns: columns,
91
93
  dataSource: dataSource
@@ -146,7 +148,9 @@ var Table = forwardRef(function (props, ref) {
146
148
  stickyScrollHeight: stickyScrollHeight,
147
149
  scrollbarWidth: scrollbarWidth,
148
150
  scrollLoad: scrollLoad,
149
- direction: direction
151
+ direction: direction,
152
+ isMobile: isMobile,
153
+ prefixCls: prefixCls
150
154
  }, others));
151
155
  });
152
156
  Table.displayName = 'Table';
@@ -13,6 +13,7 @@ export interface IConfigProps {
13
13
  localeConfig?: LocaleConfigType;
14
14
  locale?: IntlUniversal;
15
15
  direction?: DirectionType;
16
+ isMobile?: boolean;
16
17
  }
17
18
  export interface IContextConfigProps {
18
19
  getPrefixCls?: (configPrefixCls?: string, suffixCls?: string, customizePrefixCls?: string) => string;
@@ -21,6 +22,7 @@ export interface IContextConfigProps {
21
22
  localeConfig?: LocaleConfigType;
22
23
  locale: IntlUniversal;
23
24
  direction?: DirectionType;
25
+ isMobile?: boolean;
24
26
  }
25
27
  declare const ConfigContext: import("react").Context<IContextConfigProps>;
26
28
  export default ConfigContext;
@@ -85,7 +85,8 @@ var Table = (0, _react.forwardRef)(function (props, ref) {
85
85
  getPrefixCls = _useContext.getPrefixCls,
86
86
  prefixCls = _useContext.prefixCls,
87
87
  locale = _useContext.locale,
88
- direction = _useContext.direction;
88
+ direction = _useContext.direction,
89
+ isMobile = _useContext.isMobile;
89
90
  var tablePrefixCls = getPrefixCls(prefixCls, customPrefixcls);
90
91
  var tableCls = (0, _classnames.default)(tablePrefixCls, className);
91
92
  var localeText = locale.getCompLangMsg({
@@ -97,7 +98,8 @@ var Table = (0, _react.forwardRef)(function (props, ref) {
97
98
  Radio: (components === null || components === void 0 ? void 0 : components.Radio) || _index2.default
98
99
  },
99
100
  localeText: localeText,
100
- direction: direction
101
+ direction: direction,
102
+ isMobile: isMobile
101
103
  }).primaryKey(primaryKey === undefined ? '' : primaryKey).input({
102
104
  columns: columns,
103
105
  dataSource: dataSource
@@ -158,7 +160,9 @@ var Table = (0, _react.forwardRef)(function (props, ref) {
158
160
  stickyScrollHeight: stickyScrollHeight,
159
161
  scrollbarWidth: scrollbarWidth,
160
162
  scrollLoad: scrollLoad,
161
- direction: direction
163
+ direction: direction,
164
+ isMobile: isMobile,
165
+ prefixCls: prefixCls
162
166
  }, others));
163
167
  });
164
168
  Table.displayName = 'Table';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kdcloudjs/kdesign",
3
- "version": "1.8.49",
3
+ "version": "1.8.50",
4
4
  "description": "KDesign 金蝶前端react 组件库",
5
5
  "title": "kdesign",
6
6
  "keywords": [
@@ -78,7 +78,7 @@
78
78
  "@babel/runtime-corejs3": "^7.11.2",
79
79
  "@babel/standalone": "^7.14.3",
80
80
  "@kdcloudjs/kdesign-icons": "^1.0.5",
81
- "@kdcloudjs/table": "1.2.2-canary.12",
81
+ "@kdcloudjs/table": "1.2.2-canary.15",
82
82
  "@popperjs/core": "^2.11.8",
83
83
  "@types/js-cookie": "^3.0.3",
84
84
  "async-validator": "^3.5.1",