@ccs-ui/rc-pro 1.1.24-beta-11 → 1.1.24-beta-13

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.
package/es/ccs.d.ts CHANGED
@@ -198,6 +198,10 @@ type GlobalConfig = {
198
198
  UploadUrl?: string;
199
199
  /** 图片下载地址 */
200
200
  DownloadUrl?: string;
201
+ /** 允许改变主题 */
202
+ AllowChangeTheme?: boolean;
203
+ /** 布局模式、single:单页,tabs:缓存页面 */
204
+ layoutMode?: 'tabs' | 'single';
201
205
  };
202
206
  type TableFormItems = TableFormItem[];
203
207
  type TableInstanceRef<T = any> = MutableRefObject<TableInstance<T> | undefined> | React.RefObject<TableInstance<T>>;
@@ -152,3 +152,20 @@
152
152
  margin: 0;
153
153
  }
154
154
  }
155
+
156
+ .colorful-theme {
157
+ .ccs-pl-toolbar,
158
+ .ccs-pl-form {
159
+ .ant-btn-sm {
160
+ border-radius: 12px;
161
+ }
162
+
163
+ .ant-btn {
164
+ border-radius: 16px;
165
+ }
166
+
167
+ .ant-btn-lg {
168
+ border-radius: 20px;
169
+ }
170
+ }
171
+ }
@@ -63,6 +63,14 @@ var onTableInTabItem = function onTableInTabItem(node) {
63
63
  }
64
64
  };
65
65
  }
66
+
67
+ // if (
68
+ // // 通过指定dom吸顶
69
+ // parent.classList?.contains('ccs-single-page')
70
+ // ) {
71
+ // return { getContainer: () => node };
72
+ // }
73
+
66
74
  return onTableInTabItem(parent);
67
75
  };
68
76
 
@@ -322,6 +330,7 @@ var InternalProTable = function InternalProTable(props) {
322
330
 
323
331
  // 判断在tab中
324
332
  var inTab = onTableInTabItem(tableRef.current);
333
+ console.log('inTab', inTab);
325
334
  if (inTab) {
326
335
  stickyRef.current = inTab;
327
336
  return;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ccs-ui/rc-pro",
3
- "version": "1.1.24-beta-11",
4
- "description": "修复table双滚动条问题;修复modal按钮无间距问题;修改antd组件过期参数使用问题;修复ccs date-picker插件bug",
3
+ "version": "1.1.24-beta-13",
4
+ "description": "修复table双滚动条问题;修复modal按钮无间距问题;修改antd组件过期参数使用问题;修复ccs date-picker插件bug;colorful 主题组件样式调整",
5
5
  "license": "MIT",
6
6
  "author": {
7
7
  "name": "Hong",