zmdms-webui 1.3.2 → 1.3.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.
@@ -1,7 +1,7 @@
1
1
  import React__default from 'react';
2
2
  import { IButtonProps } from './interface.js';
3
3
 
4
- interface IButtonDownloadProps extends Omit<IButtonProps, "onClick"> {
4
+ interface IButtonExportProps extends Omit<IButtonProps, "onClick"> {
5
5
  /** 导出的接口方法 */
6
6
  fetchHandle?: () => Promise<any>;
7
7
  /** 导出的前置行为 */
@@ -10,6 +10,6 @@ interface IButtonDownloadProps extends Omit<IButtonProps, "onClick"> {
10
10
  onClick?: (e: any, info: any) => void;
11
11
  fileName?: string;
12
12
  }
13
- declare const ButtonExport: React__default.FC<IButtonDownloadProps>;
13
+ declare const ButtonExport: React__default.FC<IButtonExportProps>;
14
14
 
15
- export { IButtonDownloadProps, ButtonExport as default };
15
+ export { IButtonExportProps, ButtonExport as default };
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+ import * as _ant_design_icons_lib_components_IconFont from '@ant-design/icons/lib/components/IconFont';
3
+
4
+ declare const IconFont: React.FC<_ant_design_icons_lib_components_IconFont.IconFontProps<string>>;
5
+
6
+ export { IconFont as default };
@@ -0,0 +1,8 @@
1
+ import create from '../node_modules/@ant-design/icons/es/components/IconFont.js';
2
+
3
+ var IconFont = create({
4
+ // scriptUrl: ["//at.alicdn.com/t/c/font_4078313_kmoas13azo.js"],
5
+ scriptUrl: ["https://zmdms-lowcode.bj.bcebos.com/icon.js"],
6
+ });
7
+
8
+ export { IconFont as default };
@@ -174,7 +174,7 @@ function filterHandle(value, record, key) {
174
174
  // eslint-disable-next-line eqeqeq
175
175
  return currentValue == subValue;
176
176
  }
177
- // 使用eval执行代码 长度不能过长。防止
177
+ // 使用eval执行代码 长度不能过长。防止一些恶意攻击
178
178
  if (newValue.indexOf("$0") !== -1 && newValue.length <= 100) {
179
179
  var newEvalStr = newValue.replace(/\$0/g, currentValue);
180
180
  var result = null;
@@ -181,6 +181,7 @@ interface IColumnType<RecordType> extends Omit<ColumnType<RecordType>, "render">
181
181
  * return <Input onPaste={async (e) => {
182
182
  * const result = await insertTableFromClipboard(e, {
183
183
  * index,
184
+ * // 默认传true
184
185
  * // 传true 表格如果传入了 onTableChange的话会直接调用这个方法。false则不会调用。
185
186
  * // 你可以自行通过result的结果处理数据
186
187
  * isUpdate: true,
@@ -156,7 +156,7 @@ function useColumns(columns, options) {
156
156
  justifyContent: _column.align
157
157
  ? justifyContent[_column.align]
158
158
  : undefined,
159
- } }, { children: [isRequireNode, jsx("div", __assign({ style: { flexGrow: 1 }, className: isStress ? "ztxk-table--title-stress" : undefined }, { children: typeof _column.title === "function"
159
+ } }, { children: [isRequireNode, jsx("div", __assign({ className: isStress ? "ztxk-table--title-stress" : undefined }, { children: typeof _column.title === "function"
160
160
  ? (_f = _column.title) === null || _f === void 0 ? void 0 : _f.call(_column, {})
161
161
  : _column.title }))] })));
162
162
  }
@@ -266,6 +266,7 @@ function useColumns(columns, options) {
266
266
  };
267
267
  }
268
268
  if (_column.render) {
269
+ // 对外暴露粘贴方法
269
270
  var options_1 = {
270
271
  insertTableFromClipboard: insertTableFromClipboard,
271
272
  };
@@ -9,6 +9,7 @@ export { default as SuspenseComponent } from './es/suspensecomponent/index.js';
9
9
  export { default as ProtectedRoute } from './es/protectedroute/index.js';
10
10
  export { ILoginChildrenProps, default as Login } from './es/login/index.js';
11
11
  export { default as Icon } from './es/icon/index.js';
12
+ export { default as IconOss } from './es/icon/icon-oss.js';
12
13
  export { default as DynamicSetting } from './es/dynamicsetting/dynamicSetting.js';
13
14
  export { default as Form } from './es/form/form.js';
14
15
  export { default as FormItem } from './es/formitem/formItem.js';
@@ -45,6 +46,9 @@ export { default as ZtTransfer } from './es/zttransfer/zt-transfer.js';
45
46
  export { default as Watermark } from './es/watermark/watermark.js';
46
47
  export { default as Sortable } from './es/sortable/sortable.js';
47
48
  export { Affix, Anchor, AutoComplete, Avatar, BackTop, Badge, Breadcrumb, Card, Carousel, Cascader, Checkbox, Col, Comment, ConfigProvider, Divider, Drawer, Dropdown, Empty, Grid, Image, Layout, List, Mentions, Menu, PageHeader, Popconfirm, Popover, Progress, Radio, Rate, Result, Row, Segmented, Skeleton, Slider, Space, Spin, Statistic, Steps, Switch, Timeline, Tooltip, Transfer, Typography, Upload, message, notification } from 'antd';
49
+ export { IButtonProps } from './es/button/interface.js';
50
+ export { IButtonDownloadProps } from './es/button/buttonDownload.js';
51
+ export { IButtonExportProps } from './es/button/buttonExport.js';
48
52
  export { IModalOpenOptions, IModalProps, IModalRef } from './es/modal/interface.js';
49
53
  export { IFooterDom, IFooterProps } from './es/footer/interface.js';
50
54
  export { IColumnsType, ITableProps, ITableRefHandel, ValidateErrorObject } from './es/table/interface.js';