zmdms-webui 1.1.9 → 1.2.0
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.
|
@@ -16,6 +16,8 @@ var SelectRender = function (props) {
|
|
|
16
16
|
var isChangeRef = useRef(false);
|
|
17
17
|
var valueRef = useRef(value);
|
|
18
18
|
var completeDataRef = useRef([]);
|
|
19
|
+
// 当前页签选中模块
|
|
20
|
+
var _h = useState(), activeTab = _h[0], setActiveTab = _h[1];
|
|
19
21
|
var getTitle = useMemoizedFn(function (item) {
|
|
20
22
|
return createRenderItem(item, {
|
|
21
23
|
dataKey: dataKey,
|
|
@@ -243,7 +245,9 @@ var SelectRender = function (props) {
|
|
|
243
245
|
}
|
|
244
246
|
return { label: label, key: key, children: menu };
|
|
245
247
|
});
|
|
246
|
-
return jsx(SelectTabs, { items: items
|
|
248
|
+
return (jsx(SelectTabs, { activeKey: activeTab, items: items, onChange: function (activeKey) {
|
|
249
|
+
setActiveTab(activeKey);
|
|
250
|
+
} }));
|
|
247
251
|
} }, resetProps)));
|
|
248
252
|
};
|
|
249
253
|
var selectRender = memo(SelectRender);
|
|
@@ -98,7 +98,7 @@ var UploadTable = function (_a, ref) {
|
|
|
98
98
|
width: 60,
|
|
99
99
|
key: "index",
|
|
100
100
|
fixed: "left",
|
|
101
|
-
align: "
|
|
101
|
+
align: "left",
|
|
102
102
|
render: function (value, record, index) { return "".concat(index + 1); },
|
|
103
103
|
},
|
|
104
104
|
{
|
|
@@ -106,8 +106,9 @@ var UploadTable = function (_a, ref) {
|
|
|
106
106
|
width: 140,
|
|
107
107
|
dataIndex: "attachName",
|
|
108
108
|
key: "attachName",
|
|
109
|
+
align: "left",
|
|
109
110
|
render: function (text, record, index) {
|
|
110
|
-
return (jsx(ButtonCom, __assign({ type: "link", onClick: function () { return operationCallback("preview", record, index); } }, { children:
|
|
111
|
+
return (jsx(ButtonCom, __assign({ type: "link", onClick: function () { return operationCallback("preview", record, index); }, style: { textAlign: "left" } }, { children: "\u554A\u82CF\u8054\u7A7A\u519B\u6697\u7EFF\u8272\u79D1\u6280\u554A\u82CF\u8054\u7A7A\u519B\u8428\u62C9\u5C3D\u5FEB \u554A\u82CF\u8054\u7A7A\u519B\u6697\u7EFF\u8272\u79D1\u6280\u554A\u82CF\u8054\u7A7A\u519B\u8428\u62C9\u5C3D\u5FEB \u554A\u82CF\u8054\u7A7A\u519B\u6697\u7EFF\u8272\u79D1\u6280\u554A\u82CF\u8054\u7A7A\u519B\u8428\u62C9\u5C3D\u5FEB" })));
|
|
111
112
|
},
|
|
112
113
|
},
|
|
113
114
|
{
|
|
@@ -115,6 +116,7 @@ var UploadTable = function (_a, ref) {
|
|
|
115
116
|
width: 100,
|
|
116
117
|
dataIndex: "attachSize",
|
|
117
118
|
key: "attachSize",
|
|
119
|
+
align: "left",
|
|
118
120
|
render: function (text, record) {
|
|
119
121
|
var size = text ? text : record.fileSize;
|
|
120
122
|
return size ? formatUnit(size) : "— —";
|
|
@@ -125,7 +127,7 @@ var UploadTable = function (_a, ref) {
|
|
|
125
127
|
width: 100,
|
|
126
128
|
dataIndex: "uploadTime",
|
|
127
129
|
key: "uploadTime",
|
|
128
|
-
align: "
|
|
130
|
+
align: "left",
|
|
129
131
|
render: function (text) {
|
|
130
132
|
return dayjs(text).format("YYYY-MM-DD HH:mm");
|
|
131
133
|
},
|
|
@@ -133,13 +135,14 @@ var UploadTable = function (_a, ref) {
|
|
|
133
135
|
{
|
|
134
136
|
title: "上传人",
|
|
135
137
|
width: 100,
|
|
138
|
+
align: "left",
|
|
136
139
|
dataIndex: "uploadUser",
|
|
137
140
|
key: "uploadUser",
|
|
138
141
|
},
|
|
139
142
|
{
|
|
140
143
|
title: "上传进度",
|
|
141
144
|
width: 160,
|
|
142
|
-
align: "
|
|
145
|
+
align: "left",
|
|
143
146
|
isDisplay: !isPreview,
|
|
144
147
|
render: function (text, record, index) {
|
|
145
148
|
var _a, _b;
|
|
@@ -161,6 +164,7 @@ var UploadTable = function (_a, ref) {
|
|
|
161
164
|
width: 140,
|
|
162
165
|
ellipsis: false,
|
|
163
166
|
fixed: "right",
|
|
167
|
+
align: "left",
|
|
164
168
|
render: function (text, record, index) {
|
|
165
169
|
return createOpt(text, record, index);
|
|
166
170
|
},
|