@flatbiz/antd 5.0.37 → 5.0.39
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.
- package/dist/bootstrap/index.js +2 -2
- package/dist/{bootstrap-BH_Lhcqj.js → bootstrap-DTx6-Q_Y.js} +2 -2
- package/dist/{bootstrap-BH_Lhcqj.js.map → bootstrap-DTx6-Q_Y.js.map} +1 -1
- package/dist/button-operate/index.d.ts +3 -0
- package/dist/button-operate/index.js +4 -4
- package/dist/{button-operate-DtuDijhO.js → button-operate-CPlw00Mg.js} +2 -2
- package/dist/{button-operate-DtuDijhO.js.map → button-operate-CPlw00Mg.js.map} +1 -1
- package/dist/{cell-render-fehZej28.js → cell-render-Dp344auH.js} +2 -2
- package/dist/{cell-render-fehZej28.js.map → cell-render-Dp344auH.js.map} +1 -1
- package/dist/copy-BQVsCFXm.js +283 -0
- package/dist/copy-BQVsCFXm.js.map +1 -0
- package/dist/copy-wrapper/index.css +0 -0
- package/dist/copy-wrapper/index.d.ts +13 -0
- package/dist/copy-wrapper/index.js +48 -0
- package/dist/copy-wrapper/index.js.map +1 -0
- package/dist/dialog-alert/index.d.ts +3 -0
- package/dist/dialog-alert/index.js +3 -3
- package/dist/{dialog-alert-oCn1pNH0.js → dialog-alert-CDsZqePQ.js} +2 -2
- package/dist/{dialog-alert-oCn1pNH0.js.map → dialog-alert-CDsZqePQ.js.map} +1 -1
- package/dist/dialog-confirm/index.d.ts +3 -0
- package/dist/dialog-confirm/index.js +2 -2
- package/dist/{dialog-confirm-CQDn4_GG.js → dialog-confirm-Dc6IMRm7.js} +2 -2
- package/dist/{dialog-confirm-CQDn4_GG.js.map → dialog-confirm-Dc6IMRm7.js.map} +1 -1
- package/dist/dialog-drag-modal/index.js +1 -1
- package/dist/dialog-drawer/index.d.ts +3 -0
- package/dist/dialog-drawer/index.js +1 -1
- package/dist/{dialog-drawer-D_NeRR-R.js → dialog-drawer-JEjoR512.js} +10 -4
- package/dist/dialog-drawer-JEjoR512.js.map +1 -0
- package/dist/dialog-modal/index.d.ts +3 -0
- package/dist/dialog-modal/index.js +1 -1
- package/dist/{dialog-modal-xVzOgsQO.js → dialog-modal-DLWmy5GR.js} +10 -4
- package/dist/dialog-modal-DLWmy5GR.js.map +1 -0
- package/dist/{drag-C1A8pxWB.js → drag-WgtQg-qO.js} +2 -2
- package/dist/{drag-C1A8pxWB.js.map → drag-WgtQg-qO.js.map} +1 -1
- package/dist/drag-editable-card/index.js +3 -3
- package/dist/drag-editable-table/index.js +7 -7
- package/dist/{drag-modal-B7atMt2P.js → drag-modal-CyiFlQrA.js} +13 -13
- package/dist/{drag-modal-B7atMt2P.js.map → drag-modal-CyiFlQrA.js.map} +1 -1
- package/dist/dropdown-menu-wrapper/index.d.ts +3 -0
- package/dist/dropdown-menu-wrapper/index.js +3 -3
- package/dist/{dropdown-menu-wrapper-CfZMQb2W.js → dropdown-menu-wrapper-BE3Liqoh.js} +2 -2
- package/dist/{dropdown-menu-wrapper-CfZMQb2W.js.map → dropdown-menu-wrapper-BE3Liqoh.js.map} +1 -1
- package/dist/easy-form/index.js +1 -1
- package/dist/easy-table/index.js +1 -1
- package/dist/editable-card/index.js +2 -2
- package/dist/{editable-card-hr9oCXyN.js → editable-card-CnYsG1xL.js} +3 -3
- package/dist/editable-card-CnYsG1xL.js.map +1 -0
- package/dist/{editable-card-Dty6epO9.js → editable-card-DdXga629.js} +2 -2
- package/dist/{editable-card-Dty6epO9.js.map → editable-card-DdXga629.js.map} +1 -1
- package/dist/editable-table/index.js +6 -6
- package/dist/{editable-table-DbZx8fOM.js → editable-table-D7Zpl0MJ.js} +2 -2
- package/dist/{editable-table-DbZx8fOM.js.map → editable-table-D7Zpl0MJ.js.map} +1 -1
- package/dist/fba-app/index.d.ts +6 -0
- package/dist/fba-app/index.js +1 -1
- package/dist/{fba-app-BlOEAmoC.js → fba-app-BTgXf567.js} +19 -7
- package/dist/fba-app-BTgXf567.js.map +1 -0
- package/dist/{form-398WU_jI.js → form-ByFljQr9.js} +23 -45
- package/dist/form-ByFljQr9.js.map +1 -0
- package/dist/full-screen/index.css +1 -0
- package/dist/full-screen/index.d.ts +29 -0
- package/dist/full-screen/index.js +66 -0
- package/dist/full-screen/index.js.map +1 -0
- package/dist/index.d.ts +47 -0
- package/dist/index.js +42 -21
- package/dist/index.js.map +1 -1
- package/dist/table-cell-render/index.d.ts +3 -0
- package/dist/table-cell-render/index.js +5 -5
- package/dist/tree-modal/index.d.ts +3 -0
- package/dist/tree-modal/index.js +4 -4
- package/dist/tree-modal-selector/index.d.ts +3 -0
- package/dist/tree-modal-selector/index.js +4 -4
- package/dist/tree-wrapper/index.d.ts +4 -0
- package/dist/tree-wrapper/index.js +25 -13
- package/dist/tree-wrapper/index.js.map +1 -1
- package/package.json +11 -2
- package/dist/dialog-drawer-D_NeRR-R.js.map +0 -1
- package/dist/dialog-modal-xVzOgsQO.js.map +0 -1
- package/dist/editable-card-hr9oCXyN.js.map +0 -1
- package/dist/fba-app-BlOEAmoC.js.map +0 -1
- package/dist/form-398WU_jI.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -21,6 +21,7 @@ import './check-list/index.css';
|
|
|
21
21
|
import './checkbox-wrapper/index.css';
|
|
22
22
|
import './color-picker-wrapper/index.css';
|
|
23
23
|
import './config-provider-wrapper/index.css';
|
|
24
|
+
import './copy-wrapper/index.css';
|
|
24
25
|
import './css-node-hover/index.css';
|
|
25
26
|
import './data-render/index.css';
|
|
26
27
|
import './date-picker-wrapper/index.css';
|
|
@@ -68,6 +69,7 @@ import './form-item-wrapper-dependencies/index.css';
|
|
|
68
69
|
import './form-item-wrapper/index.css';
|
|
69
70
|
import './form-list-wrapper/index.css';
|
|
70
71
|
import './form-wrapper/index.css';
|
|
72
|
+
import './full-screen/index.css';
|
|
71
73
|
import './gap/index.css';
|
|
72
74
|
import './icon-wrapper/index.css';
|
|
73
75
|
import './input-search-wrapper/index.css';
|
|
@@ -146,9 +148,9 @@ export { A as AmountFenInput } from './amount-fen-input-DI4mxLeO.js';
|
|
|
146
148
|
export { A as AmountFenInputFormItem } from './amount-fen-input-Vaayc5GF.js';
|
|
147
149
|
export { A as AnchorSteps } from './anchor-steps-CqqmN9Pf.js';
|
|
148
150
|
export { B as BlockLayout } from './layout-2woF_D6T.js';
|
|
149
|
-
export { B as Bootstrap } from './bootstrap-
|
|
151
|
+
export { B as Bootstrap } from './bootstrap-DTx6-Q_Y.js';
|
|
150
152
|
export { BoxGrid, useBoxBreakpoint } from './box-grid/index.js';
|
|
151
|
-
export { a as ButtonOperate, B as ButtonOperateItemContent } from './button-operate-
|
|
153
|
+
export { a as ButtonOperate, B as ButtonOperateItemContent } from './button-operate-CPlw00Mg.js';
|
|
152
154
|
export { B as ButtonWrapper } from './button-wrapper-DezyMqPx.js';
|
|
153
155
|
export { C as CardLayout } from './card-layout-P-Qb5pCT.js';
|
|
154
156
|
export { C as CardWrapper } from './card-wrapper-C8YADYlW.js';
|
|
@@ -157,35 +159,36 @@ export { CheckList } from './check-list/index.js';
|
|
|
157
159
|
export { C as CheckboxWrapper } from './checkbox-wrapper-BOIS5kIz.js';
|
|
158
160
|
export { C as ColorPickerWrapper } from './color-picker-BYGCHXn2.js';
|
|
159
161
|
export { C as ConfigProviderWrapper } from './config-provider-wrapper-C72dPUJZ.js';
|
|
162
|
+
export { C as CopyWrapper } from './copy-BQVsCFXm.js';
|
|
160
163
|
export { C as CssNodeHover } from './css-node-hover-2asP-4iL.js';
|
|
161
164
|
export { D as DataRender } from './data-render-U7RkK7OY.js';
|
|
162
165
|
export { D as DatePickerWrapper } from './date-picker-wrapper-D0_g483p.js';
|
|
163
166
|
export { D as DateRangePickerWrapper } from './date-range-picker-wrapper-BYOsf0I5.js';
|
|
164
167
|
export { D as DateRangePickerWrapperFormItem } from './date-range-picker-wrapper-form-item-C_ClxVlZ.js';
|
|
165
168
|
export { D as DeleteNode } from './delete-node-BIETvJjg.js';
|
|
166
|
-
export { d as dialogAlert } from './dialog-alert-
|
|
167
|
-
export { d as dialogConfirm } from './dialog-confirm-
|
|
168
|
-
export { d as dialogDragModal } from './drag-modal-
|
|
169
|
-
export { d as dialogDrawer } from './dialog-drawer-
|
|
169
|
+
export { d as dialogAlert } from './dialog-alert-CDsZqePQ.js';
|
|
170
|
+
export { d as dialogConfirm } from './dialog-confirm-Dc6IMRm7.js';
|
|
171
|
+
export { d as dialogDragModal } from './drag-modal-CyiFlQrA.js';
|
|
172
|
+
export { d as dialogDrawer } from './dialog-drawer-JEjoR512.js';
|
|
170
173
|
export { D as DialogDrawerContent } from './content-B5Twifti.js';
|
|
171
174
|
export { d as dialogLoading } from './dialog-loading-Bm6n4_3R.js';
|
|
172
|
-
export { d as dialogModal } from './dialog-modal-
|
|
175
|
+
export { d as dialogModal } from './dialog-modal-DLWmy5GR.js';
|
|
173
176
|
export { d as dialogPreviewImage } from './preview-image-BCBOv4h_.js';
|
|
174
177
|
export { D as DragCollapse } from './drag-collapse-DhZ1V5P6.js';
|
|
175
178
|
export { D as DragCollapseFormList } from './drag-collapse-D2mbeDvD.js';
|
|
176
|
-
export { D as DragEditableCard } from './editable-card-
|
|
177
|
-
export { D as DragEditableTable } from './drag-
|
|
179
|
+
export { D as DragEditableCard } from './editable-card-DdXga629.js';
|
|
180
|
+
export { D as DragEditableTable } from './drag-WgtQg-qO.js';
|
|
178
181
|
export { D as DragEditableTablePro } from './drag-xBmmIPTD.js';
|
|
179
182
|
export { D as DragFormList } from './drag-form-list-BrIW06Ex.js';
|
|
180
183
|
export { D as DragTable } from './drag-table-B5s0LEwN.js';
|
|
181
|
-
export { D as DropdownMenuWrapper } from './dropdown-menu-wrapper-
|
|
184
|
+
export { D as DropdownMenuWrapper } from './dropdown-menu-wrapper-BE3Liqoh.js';
|
|
182
185
|
export { d as dynamicNode } from './dynamic-node-B_An5owN.js';
|
|
183
|
-
export { E as EasyForm } from './form-
|
|
186
|
+
export { E as EasyForm } from './form-ByFljQr9.js';
|
|
184
187
|
export { EasyTable } from './easy-table/index.js';
|
|
185
|
-
export { E as EditableCard } from './editable-card-
|
|
188
|
+
export { E as EditableCard } from './editable-card-CnYsG1xL.js';
|
|
186
189
|
export { E as EditableField } from './editable-field-BH6M_S9W.js';
|
|
187
190
|
export { E as EditableFieldProvider } from './editable-field-provider-DqKcZQYP.js';
|
|
188
|
-
export { E as EditableTable } from './editable-table-
|
|
191
|
+
export { E as EditableTable } from './editable-table-D7Zpl0MJ.js';
|
|
189
192
|
export { E as EditableTablePro } from './editable-table-pro-B12YG7J_.js';
|
|
190
193
|
export { E as ErrorBoundaryWrapper } from './error-boundary-D6RX4EQZ.js';
|
|
191
194
|
export { FbaApp } from './fba-app/index.js';
|
|
@@ -204,6 +207,7 @@ export { F as FormItemWrapper } from './form-item-wrapper-Ci7-5IKi.js';
|
|
|
204
207
|
export { F as FormItemWrapperDependencies } from './dependencies-BPs1pFvo.js';
|
|
205
208
|
export { F as FormListWrapper } from './form-list-wrapper-BTSuq_pI.js';
|
|
206
209
|
export { F as FormWrapper } from './form-wrapper-DBDMN0mN.js';
|
|
210
|
+
export { FullScreen } from './full-screen/index.js';
|
|
207
211
|
export { G as Gap } from './gap-5v_ndf2v.js';
|
|
208
212
|
export { I as IconWrapper } from './icon-wrapper-DfWj_rer.js';
|
|
209
213
|
export { I as InputSearchWrapper } from './input-search-wrapper-dVFSFf3t.js';
|
|
@@ -245,7 +249,7 @@ export { styles } from './styles/index.js';
|
|
|
245
249
|
export { S as SvgHttpView } from './svg-CqFW3W-s.js';
|
|
246
250
|
export { S as SwitchConfirmWrapper } from './switch-confirm-wrapper-CFFD0YJY.js';
|
|
247
251
|
export { S as SwitchWrapper } from './switch-wrapper-CxGztawn.js';
|
|
248
|
-
export { t as tableCellRender } from './cell-render-
|
|
252
|
+
export { t as tableCellRender } from './cell-render-Dp344auH.js';
|
|
249
253
|
export { T as TableScrollbar } from './table-scrollbar-yqz5FkCz.js';
|
|
250
254
|
export { T as TableTitleTooltip } from './title-render-DGYUo6yV.js';
|
|
251
255
|
export { T as TabsSticky } from './tabs-cpy2bCpo.js';
|
|
@@ -292,7 +296,7 @@ import 'ace-builds/src-noconflict/mode-xml.js';
|
|
|
292
296
|
import 'ace-builds/src-noconflict/snippets/xml.js';
|
|
293
297
|
import '@flatbiz/ai-request';
|
|
294
298
|
import '@dimjs/utils/get/get';
|
|
295
|
-
import './fba-app-
|
|
299
|
+
import './fba-app-BTgXf567.js';
|
|
296
300
|
import '@dimjs/lang/is-promise';
|
|
297
301
|
import 'ahooks';
|
|
298
302
|
import '@wove/react/create-ctx';
|
|
@@ -319,16 +323,35 @@ import 'dayjs/plugin/weekOfYear.js';
|
|
|
319
323
|
import 'dayjs/plugin/weekYear.js';
|
|
320
324
|
import 'dayjs/locale/en.js';
|
|
321
325
|
import 'dayjs/locale/zh-cn.js';
|
|
326
|
+
import '@ant-design/icons/es/icons/CopyOutlined.js';
|
|
327
|
+
import '@ant-design/icons/es/icons/CheckOutlined.js';
|
|
328
|
+
import 'copy-to-clipboard';
|
|
329
|
+
import '@dimjs/utils/json/parse';
|
|
330
|
+
import '@dimjs/utils/pick/pick';
|
|
331
|
+
import '@dimjs/utils/uri/param-str-to-json';
|
|
332
|
+
import '@flatbiz/antd';
|
|
333
|
+
import '@dimjs/utils/uri/modify-query-string';
|
|
334
|
+
import '@dimjs/utils/uri/uri-parse';
|
|
335
|
+
import 'react-is';
|
|
336
|
+
import 'react-dom/client';
|
|
337
|
+
import '@dimjs/utils/uri/get-query-string';
|
|
338
|
+
import '@wove/react/exception';
|
|
339
|
+
import '@dimjs/utils/tree/find-ancestors';
|
|
340
|
+
import '@dimjs/utils/env/get-env-name';
|
|
341
|
+
import '@ant-design/icons/es/icons/MenuFoldOutlined.js';
|
|
342
|
+
import '@ant-design/icons/es/icons/MenuUnfoldOutlined.js';
|
|
343
|
+
import '@ant-design/icons/es/icons/UserOutlined.js';
|
|
344
|
+
import '@ant-design/icons/es/icons/LogoutOutlined.js';
|
|
345
|
+
import '@ant-design/icons/es/icons/CaretDownOutlined.js';
|
|
346
|
+
import '@ant-design/icons/es/icons/CloseOutlined.js';
|
|
347
|
+
import '@dimjs/utils/array/array-remove';
|
|
348
|
+
import '@dimjs/model-react';
|
|
322
349
|
import './time-Cv4_lLXu.js';
|
|
323
350
|
import '@ant-design/icons/es/icons/DeleteOutlined.js';
|
|
324
|
-
import '@ant-design/icons/es/icons/CloseOutlined.js';
|
|
325
|
-
import 'react-dom/client';
|
|
326
351
|
import './_commonjsHelpers-nJh5OW6J.js';
|
|
327
|
-
import 'react-is';
|
|
328
352
|
import 'react-dom';
|
|
329
353
|
import './context-BjWI-TkR.js';
|
|
330
354
|
import './dom-DJxTwF3J.js';
|
|
331
|
-
import '@dimjs/utils/array/array-remove';
|
|
332
355
|
import '@dnd-kit/core';
|
|
333
356
|
import '@dnd-kit/sortable';
|
|
334
357
|
import '@ant-design/icons/es/icons/DragOutlined.js';
|
|
@@ -338,7 +361,6 @@ import '@ant-design/icons/es/icons/ExclamationCircleFilled.js';
|
|
|
338
361
|
import '@ant-design/icons/es/icons/DownOutlined.js';
|
|
339
362
|
import '@ant-design/icons/es/icons/UpOutlined.js';
|
|
340
363
|
import '@ant-design/icons/es/icons/PlusOutlined.js';
|
|
341
|
-
import '@ant-design/icons/es/icons/CheckOutlined.js';
|
|
342
364
|
import '@ant-design/icons/es/icons/EditOutlined.js';
|
|
343
365
|
import './context-HuMVSP3b.js';
|
|
344
366
|
import '@dimjs/lang/is-boolean';
|
|
@@ -351,7 +373,6 @@ import 'react-resizable';
|
|
|
351
373
|
import '@tinymce/tinymce-react';
|
|
352
374
|
import '@ant-design/icons/es/icons/PlusCircleOutlined.js';
|
|
353
375
|
import '@ant-design/icons/es/icons/FullscreenOutlined.js';
|
|
354
|
-
import '@dimjs/model-react';
|
|
355
376
|
import '@dimjs/utils/json/sort';
|
|
356
377
|
import 'pubsub-js';
|
|
357
378
|
import 'react-split';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -46,6 +46,9 @@ export type DialogModalProps = Omit<ModalProps, "onOk" | "onCancel" | "getContai
|
|
|
46
46
|
size?: "small" | "middle" | "large" | null;
|
|
47
47
|
onOk?: (form: FormInstance, e: React.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
48
48
|
onCancel?: (form: FormInstance, e: React.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
49
|
+
/**
|
|
50
|
+
* content只在第一次弹起时,执行一次
|
|
51
|
+
*/
|
|
49
52
|
content: string | ReactElement | ((form: FormInstance, operate: {
|
|
50
53
|
onClose: TNoopDefine;
|
|
51
54
|
}) => ReactElement);
|
|
@@ -7,7 +7,7 @@ import './../tag-list-render/index.css';
|
|
|
7
7
|
import './index.css';
|
|
8
8
|
/*! @flatjs/forge MIT @flatbiz/antd */
|
|
9
9
|
|
|
10
|
-
export { t as tableCellRender } from '../cell-render-
|
|
10
|
+
export { t as tableCellRender } from '../cell-render-Dp344auH.js';
|
|
11
11
|
import '@dimjs/lang/is-string';
|
|
12
12
|
import '@dimjs/lang/is-object';
|
|
13
13
|
import '@dimjs/utils/get/get';
|
|
@@ -17,7 +17,7 @@ import '@dimjs/lang/is-empty';
|
|
|
17
17
|
import 'react';
|
|
18
18
|
import 'antd';
|
|
19
19
|
import '@flatbiz/utils';
|
|
20
|
-
import '../button-operate-
|
|
20
|
+
import '../button-operate-CPlw00Mg.js';
|
|
21
21
|
import '@ant-design/icons/es/icons/MoreOutlined.js';
|
|
22
22
|
import '@dimjs/lang/is-undefined';
|
|
23
23
|
import '@dimjs/utils/class-names/class-names';
|
|
@@ -46,10 +46,10 @@ import 'react/jsx-runtime';
|
|
|
46
46
|
import '../fba-utils-okhb5eSJ.js';
|
|
47
47
|
import '@dimjs/lang/is-array';
|
|
48
48
|
import '@dimjs/model';
|
|
49
|
-
import '../dropdown-menu-wrapper-
|
|
49
|
+
import '../dropdown-menu-wrapper-BE3Liqoh.js';
|
|
50
50
|
import '@ant-design/icons/es/icons/ExclamationCircleFilled.js';
|
|
51
|
-
import '../dialog-confirm-
|
|
52
|
-
import '../dialog-modal-
|
|
51
|
+
import '../dialog-confirm-Dc6IMRm7.js';
|
|
52
|
+
import '../dialog-modal-DLWmy5GR.js';
|
|
53
53
|
import 'react-dom/client';
|
|
54
54
|
import 'ahooks';
|
|
55
55
|
import '../flex-layout-BGtMe7zr.js';
|
|
@@ -46,6 +46,9 @@ export type DialogModalProps = Omit<ModalProps, "onOk" | "onCancel" | "getContai
|
|
|
46
46
|
size?: "small" | "middle" | "large" | null;
|
|
47
47
|
onOk?: (form: FormInstance, e: React.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
48
48
|
onCancel?: (form: FormInstance, e: React.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
49
|
+
/**
|
|
50
|
+
* content只在第一次弹起时,执行一次
|
|
51
|
+
*/
|
|
49
52
|
content: string | ReactElement | ((form: FormInstance, operate: {
|
|
50
53
|
onClose: TNoopDefine;
|
|
51
54
|
}) => ReactElement);
|
package/dist/tree-modal/index.js
CHANGED
|
@@ -42,7 +42,7 @@ import '@ant-design/icons/es/icons/MoreOutlined.js';
|
|
|
42
42
|
import '@dimjs/utils/extend/extend';
|
|
43
43
|
import '@dimjs/utils/get/get';
|
|
44
44
|
import '@dimjs/model';
|
|
45
|
-
import '../button-operate-
|
|
45
|
+
import '../button-operate-CPlw00Mg.js';
|
|
46
46
|
import '@dimjs/lang/is-plain-object';
|
|
47
47
|
import '@dimjs/lang/is-promise';
|
|
48
48
|
import '../button-wrapper-DezyMqPx.js';
|
|
@@ -61,10 +61,10 @@ import 'dayjs/plugin/weekYear.js';
|
|
|
61
61
|
import 'dayjs/locale/en.js';
|
|
62
62
|
import 'dayjs/locale/zh-cn.js';
|
|
63
63
|
import '../fba-utils-okhb5eSJ.js';
|
|
64
|
-
import '../dropdown-menu-wrapper-
|
|
64
|
+
import '../dropdown-menu-wrapper-BE3Liqoh.js';
|
|
65
65
|
import '@ant-design/icons/es/icons/ExclamationCircleFilled.js';
|
|
66
|
-
import '../dialog-confirm-
|
|
67
|
-
import '../dialog-modal-
|
|
66
|
+
import '../dialog-confirm-Dc6IMRm7.js';
|
|
67
|
+
import '../dialog-modal-DLWmy5GR.js';
|
|
68
68
|
import 'react-dom/client';
|
|
69
69
|
import '@wove/react/create-ctx';
|
|
70
70
|
import '../input-search-wrapper-dVFSFf3t.js';
|
|
@@ -46,6 +46,9 @@ export type DialogModalProps = Omit<ModalProps, "onOk" | "onCancel" | "getContai
|
|
|
46
46
|
size?: "small" | "middle" | "large" | null;
|
|
47
47
|
onOk?: (form: FormInstance, e: React.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
48
48
|
onCancel?: (form: FormInstance, e: React.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
49
|
+
/**
|
|
50
|
+
* content只在第一次弹起时,执行一次
|
|
51
|
+
*/
|
|
49
52
|
content: string | ReactElement | ((form: FormInstance, operate: {
|
|
50
53
|
onClose: TNoopDefine;
|
|
51
54
|
}) => ReactElement);
|
|
@@ -45,7 +45,7 @@ import '@ant-design/icons/es/icons/MoreOutlined.js';
|
|
|
45
45
|
import '@dimjs/utils/extend/extend';
|
|
46
46
|
import '@dimjs/utils/get/get';
|
|
47
47
|
import '@dimjs/model';
|
|
48
|
-
import '../button-operate-
|
|
48
|
+
import '../button-operate-CPlw00Mg.js';
|
|
49
49
|
import '@dimjs/lang/is-plain-object';
|
|
50
50
|
import '@dimjs/lang/is-promise';
|
|
51
51
|
import '../button-wrapper-DezyMqPx.js';
|
|
@@ -64,10 +64,10 @@ import 'dayjs/plugin/weekYear.js';
|
|
|
64
64
|
import 'dayjs/locale/en.js';
|
|
65
65
|
import 'dayjs/locale/zh-cn.js';
|
|
66
66
|
import '../fba-utils-okhb5eSJ.js';
|
|
67
|
-
import '../dropdown-menu-wrapper-
|
|
67
|
+
import '../dropdown-menu-wrapper-BE3Liqoh.js';
|
|
68
68
|
import '@ant-design/icons/es/icons/ExclamationCircleFilled.js';
|
|
69
|
-
import '../dialog-confirm-
|
|
70
|
-
import '../dialog-modal-
|
|
69
|
+
import '../dialog-confirm-Dc6IMRm7.js';
|
|
70
|
+
import '../dialog-modal-DLWmy5GR.js';
|
|
71
71
|
import 'react-dom/client';
|
|
72
72
|
import '@wove/react/create-ctx';
|
|
73
73
|
import '../input-search-wrapper-dVFSFf3t.js';
|
|
@@ -46,6 +46,9 @@ export type DialogModalProps = Omit<ModalProps, "onOk" | "onCancel" | "getContai
|
|
|
46
46
|
size?: "small" | "middle" | "large" | null;
|
|
47
47
|
onOk?: (form: FormInstance, e: React.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
48
48
|
onCancel?: (form: FormInstance, e: React.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
49
|
+
/**
|
|
50
|
+
* content只在第一次弹起时,执行一次
|
|
51
|
+
*/
|
|
49
52
|
content: string | ReactElement | ((form: FormInstance, operate: {
|
|
50
53
|
onClose: TNoopDefine;
|
|
51
54
|
}) => ReactElement);
|
|
@@ -408,6 +411,7 @@ export type TreeWrapperRefApi = {
|
|
|
408
411
|
onExpandedAll: () => void;
|
|
409
412
|
/** 取消展开所有 */
|
|
410
413
|
onCancelExpandedAll: () => void;
|
|
414
|
+
onRefresh: () => void;
|
|
411
415
|
};
|
|
412
416
|
/**
|
|
413
417
|
* Tree包装组件,默认返回父节点,可配置不返回
|
|
@@ -19,13 +19,13 @@ import { classNames } from '@dimjs/utils/class-names/class-names';
|
|
|
19
19
|
import { isString } from '@dimjs/lang/is-string';
|
|
20
20
|
import { c as _toConsumableArray, b as _objectSpread2, i as _defineProperty, _ as _objectWithoutProperties, a as _slicedToArray } from '../_rollupPluginBabelHelpers-BspM60Sw.js';
|
|
21
21
|
import { extend } from '@dimjs/utils/extend/extend';
|
|
22
|
-
import { hooks } from '@wove/react/hooks';
|
|
23
22
|
import { get } from '@dimjs/utils/get/get';
|
|
23
|
+
import { hooks } from '@wove/react/hooks';
|
|
24
24
|
import { forwardRef, useState, useMemo, useRef, useImperativeHandle, Fragment, isValidElement } from 'react';
|
|
25
25
|
import { Spin, Tree, Button, message } from 'antd';
|
|
26
26
|
import { cloneState } from '@dimjs/model';
|
|
27
|
-
import { a as ButtonOperate } from '../button-operate-
|
|
28
|
-
import { D as DropdownMenuWrapper } from '../dropdown-menu-wrapper-
|
|
27
|
+
import { a as ButtonOperate } from '../button-operate-CPlw00Mg.js';
|
|
28
|
+
import { D as DropdownMenuWrapper } from '../dropdown-menu-wrapper-BE3Liqoh.js';
|
|
29
29
|
import { fbaHooks } from '../fba-hooks/index.js';
|
|
30
30
|
import { I as InputSearchWrapper } from '../input-search-wrapper-dVFSFf3t.js';
|
|
31
31
|
import { R as RequestStatus } from '../request-status-5M9DP8-J.js';
|
|
@@ -53,8 +53,8 @@ import 'dayjs/locale/en.js';
|
|
|
53
53
|
import 'dayjs/locale/zh-cn.js';
|
|
54
54
|
import '../fba-utils-okhb5eSJ.js';
|
|
55
55
|
import '@ant-design/icons/es/icons/ExclamationCircleFilled.js';
|
|
56
|
-
import '../dialog-confirm-
|
|
57
|
-
import '../dialog-modal-
|
|
56
|
+
import '../dialog-confirm-Dc6IMRm7.js';
|
|
57
|
+
import '../dialog-modal-DLWmy5GR.js';
|
|
58
58
|
import 'react-dom/client';
|
|
59
59
|
import 'ahooks';
|
|
60
60
|
import '../flex-layout-BGtMe7zr.js';
|
|
@@ -399,6 +399,8 @@ var TreeWrapper$1 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
399
399
|
required = props.required,
|
|
400
400
|
executeOnChangeInRenderFirstValue = props.executeOnChangeInRenderFirstValue,
|
|
401
401
|
otherProps = _objectWithoutProperties(props, _excluded);
|
|
402
|
+
var forceUpdate = hooks.useForceUpdate();
|
|
403
|
+
|
|
402
404
|
// eslint-disable-next-line no-prototype-builtins
|
|
403
405
|
var hasSelectorTreeList = props.hasOwnProperty('selectorTreeList');
|
|
404
406
|
var newServiceConfig = serviceConfig || {};
|
|
@@ -698,6 +700,9 @@ var TreeWrapper$1 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
698
700
|
},
|
|
699
701
|
onCancelExpandedAll: function onCancelExpandedAll() {
|
|
700
702
|
setTreeExpandedKeys([]);
|
|
703
|
+
},
|
|
704
|
+
onRefresh: function onRefresh() {
|
|
705
|
+
forceUpdate();
|
|
701
706
|
}
|
|
702
707
|
};
|
|
703
708
|
});
|
|
@@ -1043,15 +1048,22 @@ var TreeWrapper$1 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
1043
1048
|
_value = targetEle.dataset.value;
|
|
1044
1049
|
}
|
|
1045
1050
|
if (!isUndefinedOrNull(_value)) {
|
|
1046
|
-
var
|
|
1047
|
-
if (
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1051
|
+
var treeExpandedTarget = false;
|
|
1052
|
+
if (props.loadDataFlag) {
|
|
1053
|
+
treeExpandedTarget = treeExpandedKeys.includes(_value);
|
|
1054
|
+
} else {
|
|
1055
|
+
var _target$fieldNames$ch;
|
|
1056
|
+
var target = state.treeTiledArrayMap[_value];
|
|
1057
|
+
if (!(target !== null && target !== void 0 && (_target$fieldNames$ch = target[fieldNames.children]) !== null && _target$fieldNames$ch !== void 0 && _target$fieldNames$ch.length)) {
|
|
1058
|
+
return;
|
|
1054
1059
|
}
|
|
1060
|
+
treeExpandedTarget = treeExpandedKeys.includes(_value);
|
|
1061
|
+
}
|
|
1062
|
+
if (treeExpandedTarget) {
|
|
1063
|
+
var newList = arrayRemove(treeExpandedKeys, _value);
|
|
1064
|
+
setTreeExpandedKeys(_toConsumableArray(newList));
|
|
1065
|
+
} else {
|
|
1066
|
+
setTreeExpandedKeys([].concat(_toConsumableArray(treeExpandedKeys), [_value]));
|
|
1055
1067
|
}
|
|
1056
1068
|
}
|
|
1057
1069
|
}
|