@ccs-ui/rc-pro 1.2.0-beta-7 → 1.2.0-beta-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.
@@ -6,7 +6,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
6
6
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
7
  import { DownOutlined, UpOutlined } from '@ant-design/icons';
8
8
  import { useUpdateEffect } from 'ahooks';
9
- import { Button, Card, Form } from 'antd';
9
+ import { Button, Card, Form, theme } from 'antd';
10
10
  import _debounce from 'lodash.debounce';
11
11
  import React, { useEffect, useMemo, useRef, useState } from 'react';
12
12
  import { CcsResizeObserver } from '..';
@@ -161,6 +161,8 @@ function HeadComponent(_ref) {
161
161
  var formStyles = {
162
162
  flexWrap: isExpand ? 'wrap' : 'nowrap'
163
163
  };
164
+ var _theme$useToken = theme.useToken(),
165
+ token = _theme$useToken.token;
164
166
  return /*#__PURE__*/_jsxs(_Fragment, {
165
167
  children: [hasItem && /*#__PURE__*/_jsxs(_Fragment, {
166
168
  children: [/*#__PURE__*/_jsx(CcsResizeObserver.Target, {
@@ -188,7 +190,7 @@ function HeadComponent(_ref) {
188
190
  children: [/*#__PURE__*/_jsxs("div", {
189
191
  style: {
190
192
  justifyContent: isExpand && hasMore ? 'flex-start' : 'flex-end',
191
- height: isExpand ? 'auto' : 32
193
+ height: isExpand ? 'auto' : token.controlHeight
192
194
  },
193
195
  className: "ccs-pl-adaptation-form",
194
196
  ref: formItemsRef,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ccs-ui/rc-pro",
3
- "version": "1.2.0-beta-7",
3
+ "version": "1.2.0-beta-8",
4
4
  "description": "验证码组件兼容暗黑模式;proTable封装rowselection代码;proTable添加自适应布局模式;CcsDialog不适应contextHolder也能打开;移除utils,独立存在@ccs-ui/utils;添加属性isEnableToolbar,table可以隐藏toolbar; ",
5
5
  "license": "MIT",
6
6
  "author": {