@oceanbase/design 0.4.10 → 0.4.11
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/dist/design.min.js +1 -1
- package/es/form/FormItem.js +1 -0
- package/es/table/style/index.js +3 -1
- package/lib/form/FormItem.js +1 -0
- package/lib/table/style/index.js +4 -0
- package/package.json +7 -7
package/es/form/FormItem.js
CHANGED
|
@@ -57,6 +57,7 @@ var FormItem = function FormItem(_ref) {
|
|
|
57
57
|
}, restTooltipProps);
|
|
58
58
|
}
|
|
59
59
|
return wrapSSR( /*#__PURE__*/_jsx(AntFormItem, _objectSpread(_objectSpread({
|
|
60
|
+
layout: layout,
|
|
60
61
|
label: action && (vertical || layout === 'vertical') ? /*#__PURE__*/_jsxs(_Fragment, {
|
|
61
62
|
children: [label, action && /*#__PURE__*/_jsx("span", {
|
|
62
63
|
className: "".concat(prefixCls, "-item-action"),
|
package/es/table/style/index.js
CHANGED
|
@@ -25,13 +25,15 @@ export var genTableStyle = function genTableStyle(token) {
|
|
|
25
25
|
}, "".concat(componentCls, "-footer"), {
|
|
26
26
|
borderBottom: "1px solid ".concat(colorBorderSecondary),
|
|
27
27
|
borderRadius: 0
|
|
28
|
-
}), "".concat(componentCls, "-thead > tr"), _defineProperty(_defineProperty(_defineProperty({}, 'th', {
|
|
28
|
+
}), "".concat(componentCls, "-thead > tr"), _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, 'th', {
|
|
29
29
|
// 弱化列标题
|
|
30
30
|
color: colorTextSecondary,
|
|
31
31
|
fontWeight: 'normal',
|
|
32
32
|
backgroundColor: colorBgBase
|
|
33
33
|
}), "th".concat(componentCls, "-column-has-sorters"), {
|
|
34
34
|
backgroundColor: colorBgBase
|
|
35
|
+
}), "th".concat(componentCls, "-column-sort:before"), {
|
|
36
|
+
backgroundColor: "".concat(colorBorderSecondary, " !important")
|
|
35
37
|
}), "".concat(componentCls, "-cell-scrollbar"), {
|
|
36
38
|
boxShadow: "0 1px 0 1px ".concat(colorBgBase)
|
|
37
39
|
})), "".concat(componentCls, "-tbody"), (_$concat2 = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_$concat2, "tr:nth-child(2n + 1):not(".concat(componentCls, "-placeholder):not(").concat(componentCls, "-row-selected):not(").concat(antCls, "-descriptions-row) > td"), {
|
package/lib/form/FormItem.js
CHANGED
|
@@ -74,6 +74,7 @@ var FormItem = ({
|
|
|
74
74
|
/* @__PURE__ */ import_react.default.createElement(
|
|
75
75
|
AntFormItem,
|
|
76
76
|
{
|
|
77
|
+
layout,
|
|
77
78
|
label: action && (vertical || layout === "vertical") ? /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, label, action && /* @__PURE__ */ import_react.default.createElement("span", { className: `${prefixCls}-item-action` }, action)) : label,
|
|
78
79
|
tooltip,
|
|
79
80
|
required: (0, import_lodash.isPlainObject)(children) && ((_a = children.type) == null ? void 0 : _a.__ANT_SWITCH) ? true : void 0,
|
package/lib/table/style/index.js
CHANGED
|
@@ -62,6 +62,10 @@ var genTableStyle = (token) => {
|
|
|
62
62
|
[`th${componentCls}-column-has-sorters`]: {
|
|
63
63
|
backgroundColor: colorBgBase
|
|
64
64
|
},
|
|
65
|
+
// 保留排序列表头分割线
|
|
66
|
+
[`th${componentCls}-column-sort:before`]: {
|
|
67
|
+
backgroundColor: `${colorBorderSecondary} !important`
|
|
68
|
+
},
|
|
65
69
|
[`${componentCls}-cell-scrollbar`]: {
|
|
66
70
|
boxShadow: `0 1px 0 1px ${colorBgBase}`
|
|
67
71
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oceanbase/design",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.11",
|
|
4
4
|
"description": "The Design System of OceanBase",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"oceanbase",
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
"@inline-svg-unique-id/react": "^1.2.3",
|
|
45
45
|
"@oceanbase/aliyun-theme": "^0.1.6",
|
|
46
46
|
"@oceanbase/icons": "^0.4.6",
|
|
47
|
-
"@oceanbase/util": "^0.4.
|
|
47
|
+
"@oceanbase/util": "^0.4.3",
|
|
48
48
|
"ahooks": "^2.10.14",
|
|
49
|
-
"antd": "^5.
|
|
49
|
+
"antd": "^5.25.0",
|
|
50
50
|
"classnames": "^2.5.1",
|
|
51
51
|
"lodash": "^4.17.21",
|
|
52
52
|
"lottie-web": "^5.12.2",
|
|
@@ -54,10 +54,10 @@
|
|
|
54
54
|
"rc-util": "^5.44.4"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@babel/cli": "^7.27.
|
|
58
|
-
"@babel/preset-env": "^7.
|
|
57
|
+
"@babel/cli": "^7.27.2",
|
|
58
|
+
"@babel/preset-env": "^7.27.2",
|
|
59
59
|
"antd-token-previewer": "^2.0.8",
|
|
60
|
-
"rc-select": "^14.16.
|
|
60
|
+
"rc-select": "^14.16.7",
|
|
61
61
|
"rc-slider": "^11.1.8",
|
|
62
62
|
"rc-table": "^7.50.4",
|
|
63
63
|
"rc-tree-select": "^5.27.0"
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"react": ">=16.9.0",
|
|
67
67
|
"react-dom": ">=16.9.0"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "c3f287cc3ed59f6483423ca1c1f09d65012b0d8f"
|
|
70
70
|
}
|