ztxkui 3.0.17 → 3.0.18

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,7 @@
1
+ /**
2
+ * @author 陈亚雄
3
+ * @description
4
+ */
5
+ import React from 'react';
6
+ declare const SinaturesDemo: React.FC;
7
+ export default SinaturesDemo;
@@ -0,0 +1,17 @@
1
+ /**
2
+ * @author 陈亚雄
3
+ * @description
4
+ */
5
+ import React from 'react';
6
+ // redux
7
+ // ztxkui公共组件
8
+ import { Sinatures } from '../index';
9
+ // 路由配置
10
+ // store
11
+ // 自定义组件
12
+ // 其他文件
13
+ var SinaturesDemo = function () {
14
+ return (React.createElement("div", null,
15
+ React.createElement(Sinatures, null)));
16
+ };
17
+ export default SinaturesDemo;
@@ -524,14 +524,16 @@ function EnhanceSelect(_a) {
524
524
  // 选中时
525
525
  var onSelectHandle = function (value, obj) {
526
526
  // console.log('选中数据事件');
527
- var text = textContent(obj.children);
528
- var textarea = document.createElement('textarea');
529
- textarea.setAttribute('readonly', 'readonly');
530
- textarea.value = text;
531
- document.body.appendChild(textarea);
532
- textarea.select();
533
- document === null || document === void 0 ? void 0 : document.execCommand('copy');
534
- document.body.removeChild(textarea);
527
+ if (restProps.mode !== 'multiple') {
528
+ var text = textContent(obj.children);
529
+ var textarea = document.createElement('textarea');
530
+ textarea.setAttribute('readonly', 'readonly');
531
+ textarea.value = text;
532
+ document.body.appendChild(textarea);
533
+ textarea.select();
534
+ document === null || document === void 0 ? void 0 : document.execCommand('copy');
535
+ document.body.removeChild(textarea);
536
+ }
535
537
  if (!restProps.mode) {
536
538
  setIsOpen(false);
537
539
  }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @author 陈亚雄
3
+ * @description 电子签章组件
4
+ */
5
+ import React from 'react';
6
+ /**
7
+ * TodoList
8
+ * 实现可以上传文件,删除列
9
+ * 实现受控,接收一个附件列表
10
+ */
11
+ declare const Sinatures: React.FC;
12
+ export default Sinatures;
@@ -0,0 +1,20 @@
1
+ /**
2
+ * @author 陈亚雄
3
+ * @description 电子签章组件
4
+ */
5
+ import React from 'react';
6
+ // redux
7
+ // ztxkui公共组件
8
+ // 路由配置
9
+ // store
10
+ // 自定义组件
11
+ // 其他文件
12
+ /**
13
+ * TodoList
14
+ * 实现可以上传文件,删除列
15
+ * 实现受控,接收一个附件列表
16
+ */
17
+ var Sinatures = function () {
18
+ return React.createElement("div", null, "Sinatures");
19
+ };
20
+ export default Sinatures;
@@ -0,0 +1,19 @@
1
+ export interface IFileItem {
2
+ attachId: string;
3
+ attachName: string;
4
+ attachSize?: number;
5
+ attachType?: string;
6
+ attachTypeName?: string;
7
+ isCustomerReference?: boolean;
8
+ templateAttachId?: string;
9
+ templateAttachName?: string;
10
+ compareAttachId?: string;
11
+ compareAttachName?: string;
12
+ [prop: string]: any;
13
+ }
14
+ export interface IProps {
15
+ /** 是否显示上传按钮 */
16
+ isUpdate?: boolean;
17
+ /** 附件列表 */
18
+ fileList?: IFileItem[];
19
+ }
@@ -0,0 +1 @@
1
+ export {};
package/dist/index.d.ts CHANGED
@@ -42,6 +42,7 @@ export { default as SortList } from './components/business/SortList';
42
42
  export { default as Empty } from './components/Empty';
43
43
  export { default as Print } from './components/Print';
44
44
  export { default as PrintContainer } from './components/PrintContainer';
45
+ export { default as Sinatures } from './components/business/Signatures';
45
46
  export { ConfigProvider, Drawer, message, Space, Grid, Divider, Dropdown, Badge, List, Result, Spin, Popconfirm, TreeSelect, Tree, Progress, Cascader, Tooltip, Descriptions, Image, Popover, Breadcrumb, Transfer, Row, Col, } from 'antd';
46
47
  export { default as zhCN } from 'antd/lib/locale/zh_CN';
47
48
  export { default as Icon, createFromIconfontCN } from '@ant-design/icons';
package/dist/index.js CHANGED
@@ -21,6 +21,7 @@
21
21
  // import DragSort from './DemoCom/DragSort';
22
22
  // import PrintDemo from './DemoCom/PrintDemo';
23
23
  // import PrintContainerDemo from './DemoCom/PrintContainerDemo';
24
+ // import SinaturesDemo from './DemoCom/SinaturesDemo';
24
25
  // dayjs.locale(zhCn);
25
26
  // ReactDOM.render(
26
27
  // // <React.StrictMode>
@@ -75,6 +76,9 @@
75
76
  // <Route exact path="/drag-sort">
76
77
  // <DragSort />
77
78
  // </Route>
79
+ // <Route exact path="/sinatures">
80
+ // <SinaturesDemo />
81
+ // </Route>
78
82
  // <Route exact path="/test">
79
83
  // <div>
80
84
  // <h1>
@@ -144,6 +148,7 @@ export { default as SortList } from './components/business/SortList';
144
148
  export { default as Empty } from './components/Empty';
145
149
  export { default as Print } from './components/Print';
146
150
  export { default as PrintContainer } from './components/PrintContainer';
151
+ export { default as Sinatures } from './components/business/Signatures';
147
152
  export { ConfigProvider, Drawer, message, Space, Grid, Divider, Dropdown, Badge, List, Result, Spin, Popconfirm, TreeSelect, Tree, Progress, Cascader, Tooltip, Descriptions, Image, Popover, Breadcrumb, Transfer, Row, Col, } from 'antd';
148
153
  export { default as zhCN } from 'antd/lib/locale/zh_CN';
149
154
  export { default as Icon, createFromIconfontCN } from '@ant-design/icons';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ztxkui",
3
- "version": "3.0.17",
3
+ "version": "3.0.18",
4
4
  "private": false,
5
5
  "description": "React components library",
6
6
  "author": "zt-front-end",