ztxkui 1.9.0 → 1.9.4

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.
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare function WechatDemo(): JSX.Element;
3
+ export default WechatDemo;
@@ -0,0 +1,11 @@
1
+ import Layout from 'components/Layout';
2
+ var Header = Layout.Header, Footer = Layout.Footer, Sider = Layout.Sider, Content = Layout.Content;
3
+ function WechatDemo() {
4
+ return (React.createElement(Layout, null,
5
+ React.createElement(Sider, null, "Sider"),
6
+ React.createElement(Layout, null,
7
+ React.createElement(Header, null, "Header"),
8
+ React.createElement(Content, null, "Content"),
9
+ React.createElement(Footer, null, "Footer"))));
10
+ }
11
+ export default WechatDemo;
@@ -240,6 +240,8 @@ function EnhanceSelect(_a) {
240
240
  var resultData = originalData.slice() || [];
241
241
  if (Array.isArray(newData)) {
242
242
  newData.forEach(function (item) {
243
+ // 如果源数组中找到了该条数据,那么不添加
244
+ // 否则添加
243
245
  if (!resultData.find(function (resultItem) { return resultItem[dataKey] === item[dataKey]; })) {
244
246
  resultData.unshift(item);
245
247
  }
@@ -64,7 +64,7 @@ function useColumns(props) {
64
64
  }
65
65
  // 添加render字段
66
66
  if (!_column.render) {
67
- _column.render = function (text, record, index) { return (text ? text : '—— ——'); };
67
+ _column.render = function (text, record, index) { return (text ? text : ' '); };
68
68
  }
69
69
  });
70
70
  if (showColumnDynamic) {
@@ -173,7 +173,7 @@ var Upload = function (props) {
173
173
  var fileAction = apiBaseUrl + "/api/zmdms-resource/oss/endpoint/put-file-attach";
174
174
  return (React.createElement(React.Fragment, null,
175
175
  showUploadBtn && (React.createElement("div", { className: "zt-upload" },
176
- React.createElement(AntUpload, __assign({ className: classes, beforeUpload: beforeUpload ? beforeUpload : beforeFileUpload, onChange: onChange ? onChange : onFileChange, showUploadList: showUploadList ? showUploadList : false, fileList: fileList, multiple: multiple ? multiple : true, action: fileAction, headers: headers, data: data, method: method, onDownload: onFileDownload, onPreview: onFilePreview, onRemove: onFileRemove, openFileDialogOnClick: maxCount !== fileList.length, maxCount: maxCount, listType: listType }, restProps), children ? (children) : !listType || listType === 'text' ? (React.createElement(Button, { type: "primary" },
176
+ React.createElement(AntUpload, __assign({ className: classes, beforeUpload: beforeUpload ? beforeUpload : beforeFileUpload, onChange: onChange ? onChange : onFileChange, showUploadList: showUploadList ? showUploadList : false, fileList: fileList, multiple: multiple ? multiple : true, action: fileAction, headers: headers, data: data, method: method, onDownload: onFileDownload, onPreview: onFilePreview, onRemove: onFileRemove, openFileDialogOnClick: maxCount !== fileList.length, maxCount: maxCount, listType: listType }, restProps), children ? (children) : !listType || listType === 'text' ? (React.createElement(Button, { type: "primary", disabled: maxCount === fileList.length },
177
177
  React.createElement(UploadOutlined, null),
178
178
  fileBtnText || '添加附件',
179
179
  maxCount === fileList.length &&
@@ -3,7 +3,8 @@ var IconFont = createFromIconfontCN({
3
3
  scriptUrl: [
4
4
  // '/symbol/iconfont.js',
5
5
  // '//at.alicdn.com/t/font_2231093_wkc26cl4nv.js'
6
- '//at.alicdn.com/t/font_1808087_cq3yc9wfqnl.js',
6
+ // '//at.alicdn.com/t/font_1808087_cq3yc9wfqnl.js',
7
+ '//at.alicdn.com/t/font_1808087_rnzqhjbqpc.js',
7
8
  ],
8
9
  });
9
10
  export default IconFont;
@@ -148,7 +148,7 @@ var UserInfo = function (_a) {
148
148
  message.success(msg);
149
149
  onCloseHandle();
150
150
  // 设置用户信息
151
- setUserInfo && setUserInfo();
151
+ setUserInfo && setUserInfo(submitParams);
152
152
  }
153
153
  else {
154
154
  message.error(msg);
@@ -131,7 +131,7 @@ var Making = function (_a) {
131
131
  React.createElement("div", { style: { width: '100%' } },
132
132
  React.createElement(Item, { name: "oldPassword", label: "\u539F\u5BC6\u7801", rules: [{ required: true, message: '请输入原密码' }] },
133
133
  React.createElement(Input, { autoComplete: "new-password", type: "password" }))),
134
- React.createElement("div", { style: { width: '100%' } },
134
+ React.createElement("div", { style: { width: '100%', display: 'flex' } },
135
135
  React.createElement(Item, { name: "newPassword", label: "\u65B0\u5BC6\u7801", rules: [
136
136
  { required: true, message: '请输入新密码' },
137
137
  {
@@ -139,7 +139,9 @@ var Making = function (_a) {
139
139
  message: commonMessage.passwordMessage,
140
140
  },
141
141
  ] },
142
- React.createElement(Input, { placeholder: "\u75319-128\u4F4D\u7684\u5B57\u6BCD+\u6570\u5B57\uFF0C\u5B57\u6BCD+\u7279\u6B8A\u5B57\u7B26\uFF0C\u6570\u5B57+\u7279\u6B8A\u5B57\u7B26\u7EC4\u6210", autoComplete: "new-password", type: "password" }))),
142
+ React.createElement(Input, { autoComplete: "new-password", type: "password" })),
143
+ React.createElement("div", null,
144
+ React.createElement("p", { style: { height: 32, lineHeight: '32px', color: 'red' } }, "\u75319-128\u4F4D\u7684\u5B57\u6BCD+\u6570\u5B57\uFF0C\u5B57\u6BCD+\u7279\u6B8A\u5B57\u7B26\uFF0C\u6570\u5B57+\u7279\u6B8A\u5B57\u7B26\u7EC4\u6210"))),
143
145
  React.createElement(Item, { name: "newPassword1", label: "\u786E\u8BA4\u65B0\u5BC6\u7801", rules: [
144
146
  { required: true, message: '请确认密码' },
145
147
  function (_a) {
package/dist/index.js CHANGED
@@ -12,6 +12,7 @@
12
12
  // import UploadDemo from './UploadDemo';
13
13
  // import CollapseDemo from './DemoCom/CollapseDemo';
14
14
  // import TimelineDemo from './DemoCom/TimelineDemo';
15
+ // import WeChatDemo from './DemoCom/WechatDemo';
15
16
  // dayjs.locale(zhCn);
16
17
  // ReactDOM.render(
17
18
  // // <React.StrictMode>
@@ -39,6 +40,9 @@
39
40
  // <Route exact path="/timeline">
40
41
  // <TimelineDemo />
41
42
  // </Route>
43
+ // <Route exact path="/wechat">
44
+ // <WeChatDemo />
45
+ // </Route>
42
46
  // <Route exact path="/test">
43
47
  // <div>
44
48
  // <h1>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ztxkui",
3
- "version": "1.9.0",
3
+ "version": "1.9.4",
4
4
  "private": false,
5
5
  "description": "React components library",
6
6
  "author": "zt-front-end",