ztxkui 3.4.18 → 3.4.19
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.
|
@@ -8,6 +8,7 @@ export interface IProps extends ColProps {
|
|
|
8
8
|
titleHorizontal?: 'flex-start' | 'flex-end' | 'center' | 'normal';
|
|
9
9
|
titleVertical?: 'flex-start' | 'flex-end' | 'center' | 'normal';
|
|
10
10
|
required?: boolean;
|
|
11
|
+
titleBackColor?: string;
|
|
11
12
|
}
|
|
12
13
|
declare const Item: React.FC<IProps>;
|
|
13
14
|
export default Item;
|
|
@@ -24,7 +24,7 @@ import React from 'react';
|
|
|
24
24
|
import { Col } from 'antd';
|
|
25
25
|
import classNames from 'classnames';
|
|
26
26
|
var Item = function (_a) {
|
|
27
|
-
var children = _a.children, className = _a.className, title = _a.title, colon = _a.colon, span = _a.span, titleSpan = _a.titleSpan, _b = _a.titleHorizontal, titleHorizontal = _b === void 0 ? 'normal' : _b, _c = _a.titleVertical, titleVertical = _c === void 0 ? 'normal' : _c, required = _a.required, restProps = __rest(_a, ["children", "className", "title", "colon", "span", "titleSpan", "titleHorizontal", "titleVertical", "required"]);
|
|
27
|
+
var children = _a.children, className = _a.className, title = _a.title, colon = _a.colon, span = _a.span, titleSpan = _a.titleSpan, _b = _a.titleHorizontal, titleHorizontal = _b === void 0 ? 'normal' : _b, _c = _a.titleVertical, titleVertical = _c === void 0 ? 'normal' : _c, required = _a.required, titleBackColor = _a.titleBackColor, restProps = __rest(_a, ["children", "className", "title", "colon", "span", "titleSpan", "titleHorizontal", "titleVertical", "required", "titleBackColor"]);
|
|
28
28
|
var classes = classNames('zt-grid-item', className);
|
|
29
29
|
return (React.createElement(Col, __assign({ className: classes, span: span }, restProps),
|
|
30
30
|
React.createElement("span", { className: "zt-grid-item--title", style: {
|
|
@@ -32,6 +32,7 @@ var Item = function (_a) {
|
|
|
32
32
|
display: 'flex',
|
|
33
33
|
alignItems: titleVertical,
|
|
34
34
|
justifyContent: titleHorizontal,
|
|
35
|
+
background: titleBackColor,
|
|
35
36
|
} },
|
|
36
37
|
required && React.createElement("span", { className: "zt-grid-item--required" }, "*"),
|
|
37
38
|
title,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ztxkui",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.19",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "React components library",
|
|
6
6
|
"author": "zt-front-end",
|
|
@@ -22,7 +22,8 @@
|
|
|
22
22
|
"react-dnd-html5-backend": "^14.0.0",
|
|
23
23
|
"react-infinite-scroll-component": "^6.1.0",
|
|
24
24
|
"react-resizable": "^3.0.4",
|
|
25
|
-
"react-to-print": "^2.14.7"
|
|
25
|
+
"react-to-print": "^2.14.7",
|
|
26
|
+
"ztxkutils": "^2.8.19"
|
|
26
27
|
},
|
|
27
28
|
"scripts": {
|
|
28
29
|
"analyze": "source-map-explorer 'dist/static/js/*.js'",
|