@chaoswise/ui 2.7.2 → 2.7.3

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.
@@ -2,14 +2,6 @@ import "antd/es/input/style";
2
2
  import _Input from "antd/es/input";
3
3
  function _objectDestructuringEmpty(t) { if (null == t) throw new TypeError("Cannot destructure " + t); }
4
4
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
5
- /*
6
- * @Author: andrew.qiao andrew.qiao@cloudwise.com
7
- * @Date: 2023-01-31 17:31:58
8
- * @LastEditors: andrew.qiao andrew.qiao@cloudwise.com
9
- * @LastEditTime: 2023-03-01 18:28:20
10
- * @FilePath: /change_01/aops_web_commons/packages/ui/components/Input/index.js
11
- * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
12
- */
13
5
  import React, { forwardRef } from "react";
14
6
  import { ConfigConsumer } from "antd/es/config-provider";
15
7
  import PropTypes from "prop-types";
@@ -188,11 +188,6 @@ textarea.@{ant-prefix}-input {
188
188
 
189
189
  }
190
190
 
191
- // 解决浏览器自动填充颜色问题
192
- input:-internal-autofill-previewed,
193
- input:-internal-autofill-selected {
194
- transition: color 9999999s ease-out, background-color 999999s ease-out;
195
- }
196
191
  .cw-input-custom-slot-wrapper{
197
192
  padding-right: 10px;
198
193
  }
package/lib/Tabs/index.js CHANGED
@@ -8,14 +8,6 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
8
8
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
9
9
  function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
10
10
  function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
11
- /*
12
- * @Author: andrew.qiao andrew.qiao@cloudwise.com
13
- * @Date: 2022-12-27 17:34:03
14
- * @LastEditors: andrew.qiao andrew.qiao@cloudwise.com
15
- * @LastEditTime: 2023-04-14 10:14:43
16
- * @FilePath: /change_01/aops_web_commons/packages/ui/components/Tabs/index.js
17
- * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
18
- */
19
11
  import React, { forwardRef } from "react";
20
12
  import Tabs from "../Antd4/tabs";
21
13
  import "antd/es/tabs/style/index.less";
@@ -36,8 +28,8 @@ var CWTabs = /*#__PURE__*/forwardRef(function (props, ref) {
36
28
  };
37
29
  return /*#__PURE__*/React.createElement(Tabs, _extends({
38
30
  ref: ref,
39
- className: classnames(className, {
40
- "cw-tabs-wrapper": true
31
+ className: classnames(className, "cw-tabs-wrapper", {
32
+ "cw-tabs-custom-card-wrapper": rest.type === "custom-card"
41
33
  }),
42
34
  renderTabBar: renderTabBar
43
35
  }, rest));
@@ -97,3 +97,33 @@
97
97
  display: none !important;
98
98
  }
99
99
  }
100
+
101
+ .cw-tabs-wrapper.@{tab-prefix-cls}.cw-tabs-custom-card-wrapper{
102
+ .@{tab-prefix-cls}-nav{
103
+ background-color: #F7F8FA;
104
+ &::before{
105
+ display: none;
106
+ }
107
+ .@{tab-prefix-cls}-tab-btn{
108
+ .@{iconfont-css-prefix}:first-child{
109
+ margin-right: 6px;
110
+ }
111
+ }
112
+ .@{tab-prefix-cls}-nav-wrap{
113
+ .@{tab-prefix-cls}-nav-list{
114
+ .@{tab-prefix-cls}-ink-bar{
115
+ display: none;
116
+ }
117
+ .@{tab-prefix-cls}-tab{
118
+ line-height: 20px;
119
+ margin: 0 !important;
120
+ padding: 8px 16px;
121
+ &.@{tab-prefix-cls}-tab-active{
122
+ background-color: #fff;
123
+ border-radius: 8px 8px 0 0;
124
+ }
125
+ }
126
+ }
127
+ }
128
+ }
129
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chaoswise/ui",
3
- "version": "2.7.2",
3
+ "version": "2.7.3",
4
4
  "description": "公共UI库",
5
5
  "keywords": [
6
6
  "ui",
@@ -148,6 +148,5 @@
148
148
  "publishConfig": {
149
149
  "access": "public"
150
150
  },
151
- "license": "MIT",
152
- "gitHead": "30fa7fc51ccae6f81e0886871176378d933d0e9c"
151
+ "license": "MIT"
153
152
  }