zmdms-webui 0.0.71 → 0.0.72
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.
|
@@ -10,6 +10,10 @@ interface ITitleProps {
|
|
|
10
10
|
showBg?: boolean;
|
|
11
11
|
/** 是否左右布局 */
|
|
12
12
|
justifyContent?: "space-between" | "flex-start";
|
|
13
|
+
/** 是否需要上边距 */
|
|
14
|
+
isTopMargin?: boolean;
|
|
15
|
+
/** 是否需要下边距 */
|
|
16
|
+
isBottomMargin?: boolean;
|
|
13
17
|
}
|
|
14
18
|
interface TitleComponent extends React__default.FC<ITitleProps> {
|
|
15
19
|
displayName: string;
|
package/dist/es/title/title.js
CHANGED
|
@@ -3,11 +3,13 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import classNames from '../node_modules/classnames/index.js';
|
|
4
4
|
|
|
5
5
|
var Title = function (props) {
|
|
6
|
-
var title = props.title, className = props.className, bordered = props.bordered, showBg = props.showBg, _a = props.justifyContent, justifyContent = _a === void 0 ? "space-between" : _a, children = props.children;
|
|
6
|
+
var title = props.title, className = props.className, bordered = props.bordered, showBg = props.showBg, _a = props.justifyContent, justifyContent = _a === void 0 ? "space-between" : _a, children = props.children, isTopMargin = props.isTopMargin, isBottomMargin = props.isBottomMargin;
|
|
7
7
|
// 主容器类名
|
|
8
8
|
var classes = classNames("ztxk-title", className, {
|
|
9
9
|
"ztxk-title--bordered": bordered,
|
|
10
10
|
"ztxk-title--background": showBg,
|
|
11
|
+
"ztxk-title--marginTop": isTopMargin,
|
|
12
|
+
"ztxk-title--marginBottom": isBottomMargin,
|
|
11
13
|
});
|
|
12
14
|
return (jsxs("div", __assign({ className: classes, style: { justifyContent: justifyContent } }, { children: [jsx("div", __assign({ className: "ztxk-title--title" }, { children: title })), jsx("div", __assign({ className: "ztxk-title--extra" }, { children: children }))] })));
|
|
13
15
|
};
|
|
@@ -227,7 +227,7 @@ var UploadList = function (props, ref) {
|
|
|
227
227
|
},
|
|
228
228
|
};
|
|
229
229
|
});
|
|
230
|
-
return (jsxs("div", __assign({ className: classes }, { children: [isPreview ? null : (jsxs(Fragment, { children: [isImage ? (jsx(ImgCrop, __assign({ rotationSlider: true, showReset: true, quality: 0.8, modalClassName: "ztxk-upload-imgcrop" }, { children: renderChildren }))) : (renderChildren), showTip ? (jsxs("span", __assign({ className: "ztxk-upload--tips" }, { children: ["(\u5355\u4E2A\u9644\u4EF6\u6700\u5927\u652F\u6301", maxSizeStr, ")"] }))) : ("")] })), isDelete && !isPreview ? (jsx(Popconfirm, __assign({ title: "\u662F\u5426\u5220\u9664\u9009\u4E2D\u9644\u4EF6\uFF1F", cancelText: "\u5426", okText: "\u662F", onConfirm: function () { return onBatchDeleteHandle(); } }, { children: jsx(ButtonCom, __assign({ type: "primary" }, { children: "\u6279\u91CF\u5220\u9664" })) }))) : null, isDownload ? (jsx(Dropdown, __assign({ menu: {
|
|
230
|
+
return (jsxs("div", __assign({ className: classes }, { children: [isPreview ? null : (jsxs(Fragment, { children: [isImage ? (jsx(ImgCrop, __assign({ rotationSlider: true, showReset: true, quality: 0.8, modalClassName: "ztxk-upload-imgcrop" }, { children: renderChildren }))) : (renderChildren), showTip ? (jsxs("span", __assign({ className: "ztxk-upload--tips" }, { children: ["(\u5355\u4E2A\u9644\u4EF6\u6700\u5927\u652F\u6301", maxSizeStr, ")"] }))) : ("")] })), isDelete && !isPreview && listType !== "text" ? (jsx(Popconfirm, __assign({ title: "\u662F\u5426\u5220\u9664\u9009\u4E2D\u9644\u4EF6\uFF1F", cancelText: "\u5426", okText: "\u662F", onConfirm: function () { return onBatchDeleteHandle(); } }, { children: jsx(ButtonCom, __assign({ type: "primary" }, { children: "\u6279\u91CF\u5220\u9664" })) }))) : null, isDownload && listType !== "text" ? (jsx(Dropdown, __assign({ menu: {
|
|
231
231
|
items: [
|
|
232
232
|
{
|
|
233
233
|
label: "压缩",
|