zmdms-webui 3.1.1 → 3.1.3

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.
Files changed (31) hide show
  1. package/dist/es/applayout/index.css +1 -1
  2. package/dist/es/applayoutheader/appLayoutHeader.d.ts +1 -0
  3. package/dist/es/applayoutheader/appLayoutHeader.js +2 -2
  4. package/dist/es/applayoutheader/tabs/index.js +5 -2
  5. package/dist/es/applayoutsider/appLayoutSider.d.ts +2 -0
  6. package/dist/es/applayoutsider/appLayoutSider.js +2 -2
  7. package/dist/es/applayoutsider/menu/Logo.js +2 -2
  8. package/dist/es/applayoutsider/menu/index.js +2 -2
  9. package/dist/es/asyncdynamicsetting/asyncDynamicDrawer.js +281 -0
  10. package/dist/es/asyncdynamicsetting/asyncDynamicSetting.d.ts +6 -0
  11. package/dist/es/asyncdynamicsetting/asyncDynamicSetting.js +76 -0
  12. package/dist/es/asyncdynamicsetting/index.d.ts +5 -0
  13. package/dist/es/asyncdynamicsetting/index.js +8 -0
  14. package/dist/es/asyncdynamicsetting/interface.d.ts +74 -0
  15. package/dist/es/asyncdynamicsetting/moreConfig.js +47 -0
  16. package/dist/es/asyncdynamicsetting/storage/IStorageAdapter.d.ts +25 -0
  17. package/dist/es/asyncdynamicsetting/storage/index.js +21 -0
  18. package/dist/es/asyncdynamicsetting/storage/indexedDBAdapter.js +79 -0
  19. package/dist/es/asyncdynamicsetting/storage/localStorageAdapter.js +53 -0
  20. package/dist/es/asyncdynamicsetting/useAsyncDrawer.js +56 -0
  21. package/dist/es/asyncdynamicsetting/useAsyncDynamic.js +254 -0
  22. package/dist/es/asyncdynamicsetting/useSearch.js +98 -0
  23. package/dist/es/config/ZtxkContext.d.ts +4 -0
  24. package/dist/es/config/ZtxkContext.js +1 -0
  25. package/dist/es/table/components/EnhanceBodyCell.js +12 -12
  26. package/dist/index.build.d.ts +3 -0
  27. package/dist/index.dark.css +1 -1
  28. package/dist/index.default.css +1 -1
  29. package/dist/index.es.js +3 -0
  30. package/dist/less/components/AppLayout/style/index.less +6 -1
  31. package/package.json +1 -1
@@ -16,7 +16,7 @@ import { Popover } from 'antd';
16
16
  var EnhanceCell = function (props) {
17
17
  var _a, _b;
18
18
  var record = props.record, propsIndex = props.index, editable = props.editable, editableConfig = props.editableConfig, dataIndex = props.dataIndex, title = props.title, onEditableSave = props.onEditableSave, dataSourceRef = props.dataSourceRef; props.onMouseEnter; props.onMouseLeave; var children = props.children, currentPage = props.currentPage, isValidate = props.isValidate, validate = props.validate, isRealTimeValidate = props.isRealTimeValidate, insertTableFromClipboard = props.insertTableFromClipboard, filterConfigRef = props.filterConfigRef, __rowKey = props.__rowKey, resetProps = __rest(props, ["record", "index", "editable", "editableConfig", "dataIndex", "title", "onEditableSave", "dataSourceRef", "onMouseEnter", "onMouseLeave", "children", "currentPage", "isValidate", "validate", "isRealTimeValidate", "insertTableFromClipboard", "filterConfigRef", "__rowKey"]);
19
- var editTableInputMode = useBaseContext().editTableInputMode;
19
+ var _c = useBaseContext(), editTableInputMode = _c.editTableInputMode, editTableInputAllowClear = _c.editTableInputAllowClear;
20
20
  // 当前单元格的类型
21
21
  var tdType = editableConfig === null || editableConfig === void 0 ? void 0 : editableConfig.type;
22
22
  // 设置最新的index
@@ -33,22 +33,22 @@ var EnhanceCell = function (props) {
33
33
  // 20250114:用下面这种方式取值,如果是配置了scu的话,值就会有问题。
34
34
  // const newRecord = record || dataSourceRef?.current?.[index];
35
35
  // 当前数据
36
- var _c = useState(newRecord ? newRecord[dataIndex] : undefined), val = _c[0], setVal = _c[1];
36
+ var _d = useState(newRecord ? newRecord[dataIndex] : undefined), val = _d[0], setVal = _d[1];
37
37
  var iptNumberRef = useRef();
38
38
  var isIptNumberBooleanRef = useRef(false);
39
39
  // 当前是否是编辑状态 性能优化,显示纯字段比显示一个完整的组件 性能要高出许多
40
40
  // 文本域 不需要切换状态
41
- var _d = useEditing(
41
+ var _e = useEditing(
42
42
  // tdType === "textarea" ? true : false,
43
- false, tdType === "textarea" ? false : true), editing = _d.editing, toggleEdit = _d.toggleEdit;
43
+ false, tdType === "textarea" ? false : true), editing = _e.editing, toggleEdit = _e.toggleEdit;
44
44
  // 输入框ref对象
45
45
  var iptRef = useIptRef(editing);
46
46
  // 单元格Ref
47
- var _e = useTdRef(), tdRef = _e.tdRef, removeErrorClass = _e.removeErrorClass, addErrorClass = _e.addErrorClass;
48
- var _f = useState({
47
+ var _f = useTdRef(), tdRef = _f.tdRef, removeErrorClass = _f.removeErrorClass, addErrorClass = _f.addErrorClass;
48
+ var _g = useState({
49
49
  open: false,
50
50
  message: "",
51
- }), showPopover = _f[0], setShowPopover = _f[1];
51
+ }), showPopover = _g[0], setShowPopover = _g[1];
52
52
  // 点击时触发验证
53
53
  // const [isCurrent, setIsCurrent] = useState<boolean>(false);
54
54
  // 20231124 修改逻辑: 点击时不触发 点击只做一个必要条件
@@ -183,9 +183,9 @@ var EnhanceCell = function (props) {
183
183
  }); };
184
184
  // 如果开启编辑 那么内部直接代理
185
185
  if (typeof editable === "function" ? editable(newRecord, index) : editable) {
186
- var _g = editableConfig || {
186
+ var _h = editableConfig || {
187
187
  type: "input",
188
- }, _h = _g.type, type = _h === void 0 ? "input" : _h, max = _g.max, min = _g.min, maxHandle = _g.maxHandle, minHandle = _g.minHandle, disabled = _g.disabled, disabledHandle = _g.disabledHandle; _g.trimType; var resetEditableConfigProps = __rest(_g, ["type", "max", "min", "maxHandle", "minHandle", "disabled", "disabledHandle", "trimType"]);
188
+ }, _j = _h.type, type = _j === void 0 ? "input" : _j, max = _h.max, min = _h.min, maxHandle = _h.maxHandle, minHandle = _h.minHandle, disabled = _h.disabled, disabledHandle = _h.disabledHandle; _h.trimType; var resetEditableConfigProps = __rest(_h, ["type", "max", "min", "maxHandle", "minHandle", "disabled", "disabledHandle", "trimType"]);
189
189
  var CurrentReactNode = null;
190
190
  // 这里将children 替换成val 要显示的值
191
191
  // let newChildren: any = children;
@@ -202,7 +202,7 @@ var EnhanceCell = function (props) {
202
202
  if (isValidate) {
203
203
  removeErrorClass();
204
204
  }
205
- }, onPressEnter: onSave, onBlur: onSave, ref: iptRef, disabled: resultDisabled, onPaste: onPasteHand }, resetEditableConfigProps)));
205
+ }, onPressEnter: onSave, onBlur: onSave, ref: iptRef, disabled: resultDisabled, onPaste: onPasteHand, allowClear: editTableInputAllowClear }, resetEditableConfigProps)));
206
206
  }
207
207
  // 文本域输入框处理
208
208
  if (type === "textarea") {
@@ -213,7 +213,7 @@ var EnhanceCell = function (props) {
213
213
  if (isValidate) {
214
214
  removeErrorClass();
215
215
  }
216
- }, onPressEnter: onSave, onBlur: onSave, ref: iptRef, disabled: resultDisabled, onPaste: onPasteHand }, resetEditableConfigProps)));
216
+ }, onPressEnter: onSave, onBlur: onSave, ref: iptRef, disabled: resultDisabled, onPaste: onPasteHand, allowClear: editTableInputAllowClear }, resetEditableConfigProps)));
217
217
  }
218
218
  // 数字输入框处理
219
219
  if (type === "inputNumber") {
@@ -239,7 +239,7 @@ var EnhanceCell = function (props) {
239
239
  setTimeout(function () {
240
240
  onSave();
241
241
  });
242
- }, ref: iptRef, disabled: resultDisabled, onPaste: onPasteHand }, resetEditableConfigProps)));
242
+ }, ref: iptRef, disabled: resultDisabled, onPaste: onPasteHand, allowClear: editTableInputAllowClear }, resetEditableConfigProps)));
243
243
  // 显示的时候 展示转换的值
244
244
  try {
245
245
  if (Array.isArray(newChildren)) {
@@ -11,6 +11,9 @@ export { ILoginChildrenProps, default as Login } from './es/login/index.js';
11
11
  export { default as Icon } from './es/icon/index.js';
12
12
  export { default as IconOss } from './es/icon/icon-oss.js';
13
13
  export { default as DynamicSetting } from './es/dynamicsetting/dynamicSetting.js';
14
+ export { default as AsyncDynamicSetting } from './es/asyncdynamicsetting/asyncDynamicSetting.js';
15
+ export { IAsyncDynamicDrawerProps, IDynamicItem as IAsyncDynamicItem, IRef as IAsyncDynamicRef, IAsyncDynamicSettingProps, IFilter as IAsyncFilter, IStorageConfig, StorageType } from './es/asyncdynamicsetting/interface.js';
16
+ export { IStorageAdapter } from './es/asyncdynamicsetting/storage/IStorageAdapter.js';
14
17
  export { default as Form } from './es/form/form.js';
15
18
  export { default as FormItem } from './es/formitem/formItem.js';
16
19
  export { default as Container } from './es/container/container.js';