@zat-design/sisyphus-react 3.11.14-beta.10 → 3.11.14-beta.12
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/coverage/lcov-report/src/.umi/core/devScripts.ts.html +241 -0
- package/coverage/lcov-report/src/.umi/core/history.ts.html +1 -1
- package/coverage/lcov-report/src/.umi/core/index.html +67 -7
- package/coverage/lcov-report/src/.umi/core/plugin.ts.html +1 -1
- package/coverage/lcov-report/src/.umi/core/pluginRegister.ts.html +1 -1
- package/coverage/lcov-report/src/.umi/core/polyfill.ts.html +1 -1
- package/coverage/lcov-report/src/.umi/core/routes.ts.html +29149 -0
- package/coverage/lcov-report/src/.umi/core/umiExports.ts.html +112 -0
- package/coverage/lcov-report/src/.umi/dumi/index.html +116 -0
- package/coverage/lcov-report/src/.umi/dumi/layout.tsx.html +109 -0
- package/coverage/lcov-report/src/.umi/index.html +116 -0
- package/coverage/lcov-report/src/.umi/plugin-antd/index.html +116 -0
- package/coverage/lcov-report/src/.umi/plugin-antd/runtime.tsx.html +172 -0
- package/coverage/lcov-report/src/.umi/plugin-helmet/exports.ts.html +94 -0
- package/coverage/lcov-report/src/.umi/plugin-helmet/index.html +116 -0
- package/coverage/lcov-report/src/.umi/plugin-initial-state/Provider.tsx.html +196 -0
- package/coverage/lcov-report/src/.umi/plugin-initial-state/exports.ts.html +106 -0
- package/coverage/lcov-report/src/.umi/plugin-initial-state/index.html +146 -0
- package/coverage/lcov-report/src/.umi/plugin-initial-state/models/index.html +116 -0
- package/coverage/lcov-report/src/.umi/plugin-initial-state/models/initialState.ts.html +88 -0
- package/coverage/lcov-report/src/.umi/plugin-initial-state/runtime.tsx.html +124 -0
- package/coverage/lcov-report/src/.umi/plugin-locale/SelectLang.tsx.html +1246 -0
- package/coverage/lcov-report/src/.umi/plugin-locale/index.html +161 -0
- package/coverage/lcov-report/src/.umi/plugin-locale/locale.tsx.html +268 -0
- package/coverage/lcov-report/src/.umi/plugin-locale/localeExports.ts.html +778 -0
- package/coverage/lcov-report/src/.umi/plugin-locale/runtime.tsx.html +115 -0
- package/coverage/lcov-report/src/.umi/plugin-model/Provider.tsx.html +202 -0
- package/coverage/lcov-report/src/.umi/plugin-model/helpers/constant.tsx.html +97 -0
- package/coverage/lcov-report/src/.umi/plugin-model/helpers/dispatcher.tsx.html +142 -0
- package/coverage/lcov-report/src/.umi/plugin-model/helpers/executor.tsx.html +334 -0
- package/coverage/lcov-report/src/.umi/plugin-model/helpers/index.html +146 -0
- package/coverage/lcov-report/src/.umi/plugin-model/index.html +146 -0
- package/coverage/lcov-report/src/.umi/plugin-model/runtime.tsx.html +121 -0
- package/coverage/lcov-report/src/.umi/plugin-model/useModel.tsx.html +298 -0
- package/coverage/lcov-report/src/.umi/plugin-request/index.html +116 -0
- package/coverage/lcov-report/src/.umi/plugin-request/request.ts.html +919 -0
- package/coverage/lcov-report/src/.umi/umi.ts.html +268 -0
- package/coverage/src/.umi/core/devScripts.ts.html +241 -0
- package/coverage/src/.umi/core/history.ts.html +1 -1
- package/coverage/src/.umi/core/index.html +67 -7
- package/coverage/src/.umi/core/plugin.ts.html +1 -1
- package/coverage/src/.umi/core/pluginRegister.ts.html +1 -1
- package/coverage/src/.umi/core/polyfill.ts.html +1 -1
- package/coverage/src/.umi/core/routes.ts.html +29149 -0
- package/coverage/src/.umi/core/umiExports.ts.html +112 -0
- package/coverage/src/.umi/dumi/index.html +116 -0
- package/coverage/src/.umi/dumi/layout.tsx.html +109 -0
- package/coverage/src/.umi/index.html +116 -0
- package/coverage/src/.umi/plugin-antd/index.html +116 -0
- package/coverage/src/.umi/plugin-antd/runtime.tsx.html +172 -0
- package/coverage/src/.umi/plugin-helmet/exports.ts.html +94 -0
- package/coverage/src/.umi/plugin-helmet/index.html +116 -0
- package/coverage/src/.umi/plugin-initial-state/Provider.tsx.html +196 -0
- package/coverage/src/.umi/plugin-initial-state/exports.ts.html +106 -0
- package/coverage/src/.umi/plugin-initial-state/index.html +146 -0
- package/coverage/src/.umi/plugin-initial-state/models/index.html +116 -0
- package/coverage/src/.umi/plugin-initial-state/models/initialState.ts.html +88 -0
- package/coverage/src/.umi/plugin-initial-state/runtime.tsx.html +124 -0
- package/coverage/src/.umi/plugin-locale/SelectLang.tsx.html +1246 -0
- package/coverage/src/.umi/plugin-locale/index.html +161 -0
- package/coverage/src/.umi/plugin-locale/locale.tsx.html +268 -0
- package/coverage/src/.umi/plugin-locale/localeExports.ts.html +778 -0
- package/coverage/src/.umi/plugin-locale/runtime.tsx.html +115 -0
- package/coverage/src/.umi/plugin-model/Provider.tsx.html +202 -0
- package/coverage/src/.umi/plugin-model/helpers/constant.tsx.html +97 -0
- package/coverage/src/.umi/plugin-model/helpers/dispatcher.tsx.html +142 -0
- package/coverage/src/.umi/plugin-model/helpers/executor.tsx.html +334 -0
- package/coverage/src/.umi/plugin-model/helpers/index.html +146 -0
- package/coverage/src/.umi/plugin-model/index.html +146 -0
- package/coverage/src/.umi/plugin-model/runtime.tsx.html +121 -0
- package/coverage/src/.umi/plugin-model/useModel.tsx.html +298 -0
- package/coverage/src/.umi/plugin-request/index.html +116 -0
- package/coverage/src/.umi/plugin-request/request.ts.html +919 -0
- package/coverage/src/.umi/umi.ts.html +268 -0
- package/es/ProConfigProvider/index.d.ts +4 -4
- package/es/ProDrawerForm/propsType.d.ts +1 -1
- package/es/ProEditLabel/propsType.d.ts +2 -2
- package/es/ProEditTable/components/Summary/index.d.ts +2 -2
- package/es/ProEditTable/index.js +12 -8
- package/es/ProEditTable/propsType.d.ts +40 -42
- package/es/ProEditTable/utils/index.d.ts +1 -1
- package/es/ProEditTable/utils/index.js +6 -4
- package/es/ProEditTable/utils/tools.d.ts +57 -22
- package/es/ProEditTable/utils/tools.js +47 -21
- package/es/ProEnum/propsType.d.ts +2 -2
- package/es/ProForm/components/FormFooter/index.d.ts +1 -1
- package/es/ProForm/components/base/Checkbox/index.d.ts +1 -1
- package/es/ProForm/components/base/Input/propsType.d.ts +3 -3
- package/es/ProForm/components/base/InputNumber/index.d.ts +1 -1
- package/es/ProForm/components/base/Radio/index.d.ts +1 -1
- package/es/ProForm/components/base/RangePicker/index.d.ts +1 -1
- package/es/ProForm/components/base/Select/index.d.ts +1 -1
- package/es/ProForm/components/base/Switch/index.d.ts +1 -1
- package/es/ProForm/components/base/SwitchCheckbox/index.d.ts +1 -1
- package/es/ProForm/components/base/TextArea/index.d.ts +1 -1
- package/es/ProForm/components/base/TimePicker/index.d.ts +1 -1
- package/es/ProForm/components/combination/Container/propsType.d.ts +3 -3
- package/es/ProForm/components/combination/FormList/components/ActionButton.d.ts +1 -1
- package/es/ProForm/components/combination/FormList/components/BlockFields.d.ts +1 -1
- package/es/ProForm/components/combination/FormList/components/LineFields.d.ts +2 -2
- package/es/ProForm/components/combination/FormList/components/ToolbarButton.d.ts +1 -1
- package/es/ProForm/components/combination/FormList/propsType.d.ts +2 -2
- package/es/ProForm/components/combination/Group/index.d.ts +1 -1
- package/es/ProForm/components/combination/Group/propsType.d.ts +1 -1
- package/es/ProForm/components/combination/Group/utils.d.ts +3 -3
- package/es/ProForm/components/combination/ProCascader/index.d.ts +1 -1
- package/es/ProForm/components/combination/ProCombination/index.d.ts +1 -1
- package/es/ProForm/components/combination/ProCombination/propsType.d.ts +1 -1
- package/es/ProForm/components/combination/ProModalSelect/index.d.ts +1 -1
- package/es/ProForm/components/combination/ProModalSelect/propsType.d.ts +5 -5
- package/es/ProForm/components/combination/ProNumberRange/index.d.ts +2 -2
- package/es/ProForm/components/combination/ProNumberRange/propsType.d.ts +1 -1
- package/es/ProForm/components/combination/ProTimeLimit/index.d.ts +2 -2
- package/es/ProForm/components/old/EnumSelect/index.d.ts +1 -1
- package/es/ProForm/components/old/EnumSelect/interface.d.ts +2 -2
- package/es/ProForm/components/old/InputWithSuffix/index.d.ts +1 -1
- package/es/ProForm/components/old/ProAddress/index.d.ts +1 -1
- package/es/ProForm/components/old/ProCertNo/index.d.ts +1 -1
- package/es/ProForm/components/old/ProCertValidity/index.d.ts +1 -1
- package/es/ProForm/components/old/ProRangeBox/index.d.ts +1 -1
- package/es/ProForm/components/render/ChangedWrapper.d.ts +1 -1
- package/es/ProForm/components/render/ConfirmWrapper.d.ts +2 -2
- package/es/ProForm/components/render/RenderFields.d.ts +3 -3
- package/es/ProForm/components/render/propsType.d.ts +37 -41
- package/es/ProForm/index.d.ts +1 -1
- package/es/ProForm/propsType.d.ts +6 -4
- package/es/ProForm/propsType.js +0 -1
- package/es/ProForm/utils/transformValue.d.ts +1 -1
- package/es/ProForm/utils/useFieldProps.d.ts +1 -1
- package/es/ProForm/utils/useForm.d.ts +1 -1
- package/es/ProForm/utils/useRules.d.ts +1 -1
- package/es/ProForm/utils/useShouldUpdate.d.ts +3 -3
- package/es/ProIcon/propsTypes.d.ts +0 -4
- package/es/ProSelect/propsType.d.ts +1 -1
- package/es/ProStep/components/Anchor/index.d.ts +2 -1
- package/es/ProStep/components/Item/index.d.ts +1 -1
- package/es/ProStep/components/Item/index.js +6 -2
- package/es/ProStep/components/Listener/index.d.ts +4 -3
- package/es/ProStep/components/Listener/index.js +18 -4
- package/es/ProStep/index.d.ts +7 -7
- package/es/ProStep/index.js +7 -3
- package/es/ProStep/propsType.d.ts +145 -5
- package/es/ProStep/utils/index.d.ts +16 -3
- package/es/ProStep/utils/index.js +11 -2
- package/es/ProTable/components/FormatColumn/index.js +3 -6
- package/es/ProTable/propsType.d.ts +14 -20
- package/es/ProTooltip/propsType.d.ts +0 -3
- package/es/ProTree/components/List.d.ts +2 -2
- package/es/ProTree/components/List.js +2 -2
- package/es/ProTree/components/ProTree.d.ts +2 -2
- package/es/ProTree/components/ProTreeSelect/index.d.ts +3 -3
- package/es/ProTree/components/ProTreeSelect/propsType.d.ts +371 -33
- package/es/ProTree/components/SearchTitle.d.ts +1 -1
- package/es/ProTree/components/Tree.d.ts +3 -3
- package/es/ProTree/index.d.ts +2 -2
- package/es/ProTree/index.js +1 -1
- package/es/ProTree/propsType.d.ts +44 -42
- package/es/ProTree/utils.d.ts +7 -7
- package/es/ProTreeModal/components/Cascader.d.ts +3 -3
- package/es/ProTreeModal/components/List.d.ts +3 -3
- package/es/ProTreeModal/components/Tree.d.ts +2 -2
- package/es/ProTreeModal/index.d.ts +2 -2
- package/es/ProTreeModal/index.js +2 -2
- package/es/ProTreeModal/propsType.d.ts +257 -48
- package/es/ProTreeModal/utils.d.ts +7 -7
- package/es/index.d.ts +15 -7
- package/es/index.js +1 -8
- package/lib/ProConfigProvider/index.d.ts +4 -4
- package/lib/ProDrawerForm/propsType.d.ts +1 -1
- package/lib/ProEditLabel/propsType.d.ts +2 -2
- package/lib/ProEditTable/components/Summary/index.d.ts +2 -2
- package/lib/ProEditTable/index.js +12 -8
- package/lib/ProEditTable/propsType.d.ts +40 -42
- package/lib/ProEditTable/utils/index.d.ts +1 -1
- package/lib/ProEditTable/utils/index.js +6 -4
- package/lib/ProEditTable/utils/tools.d.ts +57 -22
- package/lib/ProEditTable/utils/tools.js +47 -21
- package/lib/ProEnum/propsType.d.ts +2 -2
- package/lib/ProForm/components/FormFooter/index.d.ts +1 -1
- package/lib/ProForm/components/base/Checkbox/index.d.ts +1 -1
- package/lib/ProForm/components/base/Input/propsType.d.ts +3 -3
- package/lib/ProForm/components/base/InputNumber/index.d.ts +1 -1
- package/lib/ProForm/components/base/Radio/index.d.ts +1 -1
- package/lib/ProForm/components/base/RangePicker/index.d.ts +1 -1
- package/lib/ProForm/components/base/Select/index.d.ts +1 -1
- package/lib/ProForm/components/base/Switch/index.d.ts +1 -1
- package/lib/ProForm/components/base/SwitchCheckbox/index.d.ts +1 -1
- package/lib/ProForm/components/base/TextArea/index.d.ts +1 -1
- package/lib/ProForm/components/base/TimePicker/index.d.ts +1 -1
- package/lib/ProForm/components/combination/Container/propsType.d.ts +3 -3
- package/lib/ProForm/components/combination/FormList/components/ActionButton.d.ts +1 -1
- package/lib/ProForm/components/combination/FormList/components/BlockFields.d.ts +1 -1
- package/lib/ProForm/components/combination/FormList/components/LineFields.d.ts +2 -2
- package/lib/ProForm/components/combination/FormList/components/ToolbarButton.d.ts +1 -1
- package/lib/ProForm/components/combination/FormList/propsType.d.ts +2 -2
- package/lib/ProForm/components/combination/Group/index.d.ts +1 -1
- package/lib/ProForm/components/combination/Group/propsType.d.ts +1 -1
- package/lib/ProForm/components/combination/Group/utils.d.ts +3 -3
- package/lib/ProForm/components/combination/ProCascader/index.d.ts +1 -1
- package/lib/ProForm/components/combination/ProCombination/index.d.ts +1 -1
- package/lib/ProForm/components/combination/ProCombination/propsType.d.ts +1 -1
- package/lib/ProForm/components/combination/ProModalSelect/index.d.ts +1 -1
- package/lib/ProForm/components/combination/ProModalSelect/propsType.d.ts +5 -5
- package/lib/ProForm/components/combination/ProNumberRange/index.d.ts +2 -2
- package/lib/ProForm/components/combination/ProNumberRange/propsType.d.ts +1 -1
- package/lib/ProForm/components/combination/ProTimeLimit/index.d.ts +2 -2
- package/lib/ProForm/components/old/EnumSelect/index.d.ts +1 -1
- package/lib/ProForm/components/old/EnumSelect/interface.d.ts +2 -2
- package/lib/ProForm/components/old/InputWithSuffix/index.d.ts +1 -1
- package/lib/ProForm/components/old/ProAddress/index.d.ts +1 -1
- package/lib/ProForm/components/old/ProCertNo/index.d.ts +1 -1
- package/lib/ProForm/components/old/ProCertValidity/index.d.ts +1 -1
- package/lib/ProForm/components/old/ProRangeBox/index.d.ts +1 -1
- package/lib/ProForm/components/render/ChangedWrapper.d.ts +1 -1
- package/lib/ProForm/components/render/ConfirmWrapper.d.ts +2 -2
- package/lib/ProForm/components/render/RenderFields.d.ts +3 -3
- package/lib/ProForm/components/render/propsType.d.ts +37 -41
- package/lib/ProForm/index.d.ts +1 -1
- package/lib/ProForm/propsType.d.ts +6 -4
- package/lib/ProForm/propsType.js +0 -15
- package/lib/ProForm/utils/transformValue.d.ts +1 -1
- package/lib/ProForm/utils/useFieldProps.d.ts +1 -1
- package/lib/ProForm/utils/useForm.d.ts +1 -1
- package/lib/ProForm/utils/useRules.d.ts +1 -1
- package/lib/ProForm/utils/useShouldUpdate.d.ts +3 -3
- package/lib/ProIcon/propsTypes.d.ts +0 -4
- package/lib/ProSelect/propsType.d.ts +1 -1
- package/lib/ProStep/components/Anchor/index.d.ts +2 -1
- package/lib/ProStep/components/Item/index.d.ts +1 -1
- package/lib/ProStep/components/Item/index.js +6 -2
- package/lib/ProStep/components/Listener/index.d.ts +4 -3
- package/lib/ProStep/components/Listener/index.js +18 -4
- package/lib/ProStep/index.d.ts +7 -7
- package/lib/ProStep/index.js +7 -3
- package/lib/ProStep/propsType.d.ts +145 -5
- package/lib/ProStep/utils/index.d.ts +16 -3
- package/lib/ProStep/utils/index.js +11 -2
- package/lib/ProTable/components/FormatColumn/index.js +3 -6
- package/lib/ProTable/propsType.d.ts +14 -20
- package/lib/ProTooltip/propsType.d.ts +0 -3
- package/lib/ProTree/components/List.d.ts +2 -2
- package/lib/ProTree/components/List.js +2 -2
- package/lib/ProTree/components/ProTree.d.ts +2 -2
- package/lib/ProTree/components/ProTreeSelect/index.d.ts +3 -3
- package/lib/ProTree/components/ProTreeSelect/propsType.d.ts +371 -33
- package/lib/ProTree/components/SearchTitle.d.ts +1 -1
- package/lib/ProTree/components/Tree.d.ts +3 -3
- package/lib/ProTree/index.d.ts +2 -2
- package/lib/ProTree/index.js +1 -1
- package/lib/ProTree/propsType.d.ts +44 -42
- package/lib/ProTree/utils.d.ts +7 -7
- package/lib/ProTreeModal/components/Cascader.d.ts +3 -3
- package/lib/ProTreeModal/components/List.d.ts +3 -3
- package/lib/ProTreeModal/components/Tree.d.ts +2 -2
- package/lib/ProTreeModal/index.d.ts +2 -2
- package/lib/ProTreeModal/index.js +2 -2
- package/lib/ProTreeModal/propsType.d.ts +257 -48
- package/lib/ProTreeModal/utils.d.ts +7 -7
- package/lib/index.d.ts +15 -7
- package/lib/index.js +7 -83
- package/package.json +1 -1
@@ -0,0 +1,268 @@
|
|
1
|
+
|
2
|
+
<!doctype html>
|
3
|
+
<html lang="en">
|
4
|
+
|
5
|
+
<head>
|
6
|
+
<title>Code coverage report for src/.umi/umi.ts</title>
|
7
|
+
<meta charset="utf-8" />
|
8
|
+
<link rel="stylesheet" href="../../prettify.css" />
|
9
|
+
<link rel="stylesheet" href="../../base.css" />
|
10
|
+
<link rel="shortcut icon" type="image/x-icon" href="../../favicon.png" />
|
11
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
12
|
+
<style type='text/css'>
|
13
|
+
.coverage-summary .sorter {
|
14
|
+
background-image: url(../../sort-arrow-sprite.png);
|
15
|
+
}
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<div class='wrapper'>
|
21
|
+
<div class='pad1'>
|
22
|
+
<h1><a href="../../index.html">All files</a> / <a href="index.html">src/.umi</a> umi.ts</h1>
|
23
|
+
<div class='clearfix'>
|
24
|
+
|
25
|
+
<div class='fl pad1y space-right2'>
|
26
|
+
<span class="strong">0% </span>
|
27
|
+
<span class="quiet">Statements</span>
|
28
|
+
<span class='fraction'>0/14</span>
|
29
|
+
</div>
|
30
|
+
|
31
|
+
|
32
|
+
<div class='fl pad1y space-right2'>
|
33
|
+
<span class="strong">0% </span>
|
34
|
+
<span class="quiet">Branches</span>
|
35
|
+
<span class='fraction'>0/7</span>
|
36
|
+
</div>
|
37
|
+
|
38
|
+
|
39
|
+
<div class='fl pad1y space-right2'>
|
40
|
+
<span class="strong">0% </span>
|
41
|
+
<span class="quiet">Functions</span>
|
42
|
+
<span class='fraction'>0/4</span>
|
43
|
+
</div>
|
44
|
+
|
45
|
+
|
46
|
+
<div class='fl pad1y space-right2'>
|
47
|
+
<span class="strong">0% </span>
|
48
|
+
<span class="quiet">Lines</span>
|
49
|
+
<span class='fraction'>0/13</span>
|
50
|
+
</div>
|
51
|
+
|
52
|
+
|
53
|
+
</div>
|
54
|
+
<p class="quiet">
|
55
|
+
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
|
56
|
+
</p>
|
57
|
+
<template id="filterTemplate">
|
58
|
+
<div class="quiet">
|
59
|
+
Filter:
|
60
|
+
<input type="search" id="fileSearch">
|
61
|
+
</div>
|
62
|
+
</template>
|
63
|
+
</div>
|
64
|
+
<div class='status-line low'></div>
|
65
|
+
<pre><table class="coverage">
|
66
|
+
<tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
|
67
|
+
<a name='L2'></a><a href='#L2'>2</a>
|
68
|
+
<a name='L3'></a><a href='#L3'>3</a>
|
69
|
+
<a name='L4'></a><a href='#L4'>4</a>
|
70
|
+
<a name='L5'></a><a href='#L5'>5</a>
|
71
|
+
<a name='L6'></a><a href='#L6'>6</a>
|
72
|
+
<a name='L7'></a><a href='#L7'>7</a>
|
73
|
+
<a name='L8'></a><a href='#L8'>8</a>
|
74
|
+
<a name='L9'></a><a href='#L9'>9</a>
|
75
|
+
<a name='L10'></a><a href='#L10'>10</a>
|
76
|
+
<a name='L11'></a><a href='#L11'>11</a>
|
77
|
+
<a name='L12'></a><a href='#L12'>12</a>
|
78
|
+
<a name='L13'></a><a href='#L13'>13</a>
|
79
|
+
<a name='L14'></a><a href='#L14'>14</a>
|
80
|
+
<a name='L15'></a><a href='#L15'>15</a>
|
81
|
+
<a name='L16'></a><a href='#L16'>16</a>
|
82
|
+
<a name='L17'></a><a href='#L17'>17</a>
|
83
|
+
<a name='L18'></a><a href='#L18'>18</a>
|
84
|
+
<a name='L19'></a><a href='#L19'>19</a>
|
85
|
+
<a name='L20'></a><a href='#L20'>20</a>
|
86
|
+
<a name='L21'></a><a href='#L21'>21</a>
|
87
|
+
<a name='L22'></a><a href='#L22'>22</a>
|
88
|
+
<a name='L23'></a><a href='#L23'>23</a>
|
89
|
+
<a name='L24'></a><a href='#L24'>24</a>
|
90
|
+
<a name='L25'></a><a href='#L25'>25</a>
|
91
|
+
<a name='L26'></a><a href='#L26'>26</a>
|
92
|
+
<a name='L27'></a><a href='#L27'>27</a>
|
93
|
+
<a name='L28'></a><a href='#L28'>28</a>
|
94
|
+
<a name='L29'></a><a href='#L29'>29</a>
|
95
|
+
<a name='L30'></a><a href='#L30'>30</a>
|
96
|
+
<a name='L31'></a><a href='#L31'>31</a>
|
97
|
+
<a name='L32'></a><a href='#L32'>32</a>
|
98
|
+
<a name='L33'></a><a href='#L33'>33</a>
|
99
|
+
<a name='L34'></a><a href='#L34'>34</a>
|
100
|
+
<a name='L35'></a><a href='#L35'>35</a>
|
101
|
+
<a name='L36'></a><a href='#L36'>36</a>
|
102
|
+
<a name='L37'></a><a href='#L37'>37</a>
|
103
|
+
<a name='L38'></a><a href='#L38'>38</a>
|
104
|
+
<a name='L39'></a><a href='#L39'>39</a>
|
105
|
+
<a name='L40'></a><a href='#L40'>40</a>
|
106
|
+
<a name='L41'></a><a href='#L41'>41</a>
|
107
|
+
<a name='L42'></a><a href='#L42'>42</a>
|
108
|
+
<a name='L43'></a><a href='#L43'>43</a>
|
109
|
+
<a name='L44'></a><a href='#L44'>44</a>
|
110
|
+
<a name='L45'></a><a href='#L45'>45</a>
|
111
|
+
<a name='L46'></a><a href='#L46'>46</a>
|
112
|
+
<a name='L47'></a><a href='#L47'>47</a>
|
113
|
+
<a name='L48'></a><a href='#L48'>48</a>
|
114
|
+
<a name='L49'></a><a href='#L49'>49</a>
|
115
|
+
<a name='L50'></a><a href='#L50'>50</a>
|
116
|
+
<a name='L51'></a><a href='#L51'>51</a>
|
117
|
+
<a name='L52'></a><a href='#L52'>52</a>
|
118
|
+
<a name='L53'></a><a href='#L53'>53</a>
|
119
|
+
<a name='L54'></a><a href='#L54'>54</a>
|
120
|
+
<a name='L55'></a><a href='#L55'>55</a>
|
121
|
+
<a name='L56'></a><a href='#L56'>56</a>
|
122
|
+
<a name='L57'></a><a href='#L57'>57</a>
|
123
|
+
<a name='L58'></a><a href='#L58'>58</a>
|
124
|
+
<a name='L59'></a><a href='#L59'>59</a>
|
125
|
+
<a name='L60'></a><a href='#L60'>60</a>
|
126
|
+
<a name='L61'></a><a href='#L61'>61</a>
|
127
|
+
<a name='L62'></a><a href='#L62'>62</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
128
|
+
<span class="cline-any cline-neutral"> </span>
|
129
|
+
<span class="cline-any cline-neutral"> </span>
|
130
|
+
<span class="cline-any cline-neutral"> </span>
|
131
|
+
<span class="cline-any cline-neutral"> </span>
|
132
|
+
<span class="cline-any cline-neutral"> </span>
|
133
|
+
<span class="cline-any cline-neutral"> </span>
|
134
|
+
<span class="cline-any cline-neutral"> </span>
|
135
|
+
<span class="cline-any cline-neutral"> </span>
|
136
|
+
<span class="cline-any cline-neutral"> </span>
|
137
|
+
<span class="cline-any cline-neutral"> </span>
|
138
|
+
<span class="cline-any cline-neutral"> </span>
|
139
|
+
<span class="cline-any cline-neutral"> </span>
|
140
|
+
<span class="cline-any cline-no"> </span>
|
141
|
+
<span class="cline-any cline-neutral"> </span>
|
142
|
+
<span class="cline-any cline-no"> </span>
|
143
|
+
<span class="cline-any cline-neutral"> </span>
|
144
|
+
<span class="cline-any cline-neutral"> </span>
|
145
|
+
<span class="cline-any cline-neutral"> </span>
|
146
|
+
<span class="cline-any cline-no"> </span>
|
147
|
+
<span class="cline-any cline-neutral"> </span>
|
148
|
+
<span class="cline-any cline-neutral"> </span>
|
149
|
+
<span class="cline-any cline-neutral"> </span>
|
150
|
+
<span class="cline-any cline-neutral"> </span>
|
151
|
+
<span class="cline-any cline-neutral"> </span>
|
152
|
+
<span class="cline-any cline-neutral"> </span>
|
153
|
+
<span class="cline-any cline-neutral"> </span>
|
154
|
+
<span class="cline-any cline-neutral"> </span>
|
155
|
+
<span class="cline-any cline-neutral"> </span>
|
156
|
+
<span class="cline-any cline-neutral"> </span>
|
157
|
+
<span class="cline-any cline-neutral"> </span>
|
158
|
+
<span class="cline-any cline-neutral"> </span>
|
159
|
+
<span class="cline-any cline-no"> </span>
|
160
|
+
<span class="cline-any cline-neutral"> </span>
|
161
|
+
<span class="cline-any cline-neutral"> </span>
|
162
|
+
<span class="cline-any cline-neutral"> </span>
|
163
|
+
<span class="cline-any cline-neutral"> </span>
|
164
|
+
<span class="cline-any cline-no"> </span>
|
165
|
+
<span class="cline-any cline-neutral"> </span>
|
166
|
+
<span class="cline-any cline-neutral"> </span>
|
167
|
+
<span class="cline-any cline-neutral"> </span>
|
168
|
+
<span class="cline-any cline-no"> </span>
|
169
|
+
<span class="cline-any cline-neutral"> </span>
|
170
|
+
<span class="cline-any cline-neutral"> </span>
|
171
|
+
<span class="cline-any cline-neutral"> </span>
|
172
|
+
<span class="cline-any cline-neutral"> </span>
|
173
|
+
<span class="cline-any cline-neutral"> </span>
|
174
|
+
<span class="cline-any cline-neutral"> </span>
|
175
|
+
<span class="cline-any cline-no"> </span>
|
176
|
+
<span class="cline-any cline-neutral"> </span>
|
177
|
+
<span class="cline-any cline-no"> </span>
|
178
|
+
<span class="cline-any cline-no"> </span>
|
179
|
+
<span class="cline-any cline-no"> </span>
|
180
|
+
<span class="cline-any cline-no"> </span>
|
181
|
+
<span class="cline-any cline-no"> </span>
|
182
|
+
<span class="cline-any cline-neutral"> </span>
|
183
|
+
<span class="cline-any cline-neutral"> </span>
|
184
|
+
<span class="cline-any cline-no"> </span>
|
185
|
+
<span class="cline-any cline-neutral"> </span>
|
186
|
+
<span class="cline-any cline-neutral"> </span>
|
187
|
+
<span class="cline-any cline-neutral"> </span>
|
188
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">// @ts-nocheck
|
189
|
+
import './core/polyfill';
|
190
|
+
import '@@/core/devScripts';
|
191
|
+
import { plugin } from './core/plugin';
|
192
|
+
import './core/pluginRegister';
|
193
|
+
import { createHistory } from './core/history';
|
194
|
+
import { ApplyPluginsType } from '/Users/zakj/site/zakj/za-material-warehouse/node_modules/umi/node_modules/@umijs/runtime';
|
195
|
+
import { renderClient } from '/Users/zakj/site/zakj/za-material-warehouse/node_modules/@umijs/renderer-react/dist/index.js';
|
196
|
+
import { getRoutes } from './core/routes';
|
197
|
+
|
198
|
+
|
199
|
+
import '../global.less';
|
200
|
+
import { _onCreate } from './plugin-locale/locale';
|
201
|
+
<span class="cstat-no" title="statement not covered" >_onCreate();</span>
|
202
|
+
|
203
|
+
const getClientRender = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >(a</span>rgs: { hot?: boolean; routes?: any[] } = <span class="branch-0 cbranch-no" title="branch not covered" >{})</span> => <span class="cstat-no" title="statement not covered" >plugin.applyPlugins({</span></span>
|
204
|
+
key: 'render',
|
205
|
+
type: ApplyPluginsType.compose,
|
206
|
+
initialValue: <span class="fstat-no" title="function not covered" >()</span> => {
|
207
|
+
const opts = <span class="cstat-no" title="statement not covered" >plugin.applyPlugins({</span>
|
208
|
+
key: 'modifyClientRenderOpts',
|
209
|
+
type: ApplyPluginsType.modify,
|
210
|
+
initialValue: {
|
211
|
+
routes: args.routes || getRoutes(),
|
212
|
+
plugin,
|
213
|
+
history: createHistory(args.hot),
|
214
|
+
isServer: process.env.__IS_SERVER,
|
215
|
+
dynamicImport: true,
|
216
|
+
rootElement: 'root',
|
217
|
+
defaultTitle: `sisyphus(3.11.14-beta.10)`,
|
218
|
+
},
|
219
|
+
});
|
220
|
+
<span class="cstat-no" title="statement not covered" > return renderClient(opts);</span>
|
221
|
+
},
|
222
|
+
args,
|
223
|
+
});
|
224
|
+
|
225
|
+
const clientRender = <span class="cstat-no" title="statement not covered" >getClientRender();</span>
|
226
|
+
export default clientRender();
|
227
|
+
|
228
|
+
|
229
|
+
<span class="cstat-no" title="statement not covered" > window.g_umi = {</span>
|
230
|
+
version: '3.5.43',
|
231
|
+
};
|
232
|
+
|
233
|
+
|
234
|
+
// hot module replacement
|
235
|
+
// @ts-ignore
|
236
|
+
<span class="cstat-no" title="statement not covered" >if (module.hot) {</span>
|
237
|
+
// @ts-ignore
|
238
|
+
<span class="cstat-no" title="statement not covered" > module.hot.accept('./core/routes', <span class="fstat-no" title="function not covered" >()</span> => {</span>
|
239
|
+
const ret = <span class="cstat-no" title="statement not covered" >require('./core/routes');</span>
|
240
|
+
<span class="cstat-no" title="statement not covered" > if (ret.then) {</span>
|
241
|
+
<span class="cstat-no" title="statement not covered" > ret.then(<span class="fstat-no" title="function not covered" >({</span> getRoutes }) => {</span>
|
242
|
+
<span class="cstat-no" title="statement not covered" > getClientRender({ hot: true, routes: getRoutes() })();</span>
|
243
|
+
});
|
244
|
+
} else {
|
245
|
+
<span class="cstat-no" title="statement not covered" > getClientRender({ hot: true, routes: ret.getRoutes() })();</span>
|
246
|
+
}
|
247
|
+
});
|
248
|
+
}
|
249
|
+
</pre></td></tr></table></pre>
|
250
|
+
|
251
|
+
<div class='push'></div><!-- for sticky footer -->
|
252
|
+
</div><!-- /wrapper -->
|
253
|
+
<div class='footer quiet pad2 space-top1 center small'>
|
254
|
+
Code coverage generated by
|
255
|
+
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
256
|
+
at 2025-03-20T08:06:25.125Z
|
257
|
+
</div>
|
258
|
+
<script src="../../prettify.js"></script>
|
259
|
+
<script>
|
260
|
+
window.onload = function () {
|
261
|
+
prettyPrint();
|
262
|
+
};
|
263
|
+
</script>
|
264
|
+
<script src="../../sorter.js"></script>
|
265
|
+
<script src="../../block-navigation.js"></script>
|
266
|
+
</body>
|
267
|
+
</html>
|
268
|
+
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import React, { FC } from 'react';
|
2
2
|
import { FormInstance } from 'antd';
|
3
|
-
import { PropSelectType } from '../ProSelect/propsType';
|
4
|
-
import { ProModalSelectType } from '../ProForm/components/combination/ProModalSelect/propsType';
|
5
|
-
import { ProCascaderType } from '../ProForm/components/combination/ProCascader/propsType';
|
6
|
-
import { ProEnumConfig } from '../ProEnum/propsType';
|
3
|
+
import type { PropSelectType } from '../ProSelect/propsType';
|
4
|
+
import type { ProModalSelectType } from '../ProForm/components/combination/ProModalSelect/propsType';
|
5
|
+
import type { ProCascaderType } from '../ProForm/components/combination/ProCascader/propsType';
|
6
|
+
import type { ProEnumConfig } from '../ProEnum/propsType';
|
7
7
|
export interface ProConfigState {
|
8
8
|
locale?: string;
|
9
9
|
ProEnum?: Partial<ProEnumConfig>;
|
@@ -2,7 +2,7 @@ import { InputProps } from 'antd/es/input';
|
|
2
2
|
import { PopconfirmProps } from 'antd/es/popconfirm';
|
3
3
|
import { FormInstance } from 'antd/es/form';
|
4
4
|
import React from 'react';
|
5
|
-
import {
|
5
|
+
import type { ProFormColumnType } from '../index';
|
6
6
|
export interface ContainerType {
|
7
7
|
/**
|
8
8
|
* @description 触发方式
|
@@ -77,7 +77,7 @@ export interface PopupType {
|
|
77
77
|
* @description 列配置
|
78
78
|
* @default -
|
79
79
|
*/
|
80
|
-
columns?:
|
80
|
+
columns?: ProFormColumnType;
|
81
81
|
/**
|
82
82
|
* @description 允许扩展字段
|
83
83
|
*/
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import {
|
1
|
+
import { ProEditTableSummaryColumnType } from '../../propsType';
|
2
2
|
interface SummaryProps<T = any> {
|
3
3
|
data: T[];
|
4
4
|
summary: {
|
5
|
-
columns:
|
5
|
+
columns: ProEditTableSummaryColumnType[];
|
6
6
|
total?: boolean;
|
7
7
|
fixed?: boolean | 'top' | 'bottom';
|
8
8
|
};
|
package/es/ProEditTable/index.js
CHANGED
@@ -77,7 +77,7 @@ var ProEditTable = function ProEditTable(_ref, ref) {
|
|
77
77
|
disabled = (formFieldProps === null || formFieldProps === void 0 ? void 0 : formFieldProps.disabled) || disabled; // formFieldProps?.disabled可能是函数??
|
78
78
|
}
|
79
79
|
var tableRef = useRef(null);
|
80
|
-
var valueChangeRef = useRef(
|
80
|
+
var valueChangeRef = useRef(0);
|
81
81
|
valueChangeRef.current = 0;
|
82
82
|
var _React$useContext = React.useContext(_ConfigProvider.ConfigContext),
|
83
83
|
getPrefixCls = _React$useContext.getPrefixCls;
|
@@ -88,7 +88,7 @@ var ProEditTable = function ProEditTable(_ref, ref) {
|
|
88
88
|
var requiredAlign = useMemo(function () {
|
89
89
|
var _ref2, _themeConfig$data$zau, _themeConfig$data;
|
90
90
|
return (_ref2 = (_themeConfig$data$zau = themeConfig === null || themeConfig === void 0 ? void 0 : (_themeConfig$data = themeConfig.data) === null || _themeConfig$data === void 0 ? void 0 : _themeConfig$data.zauiFormAlign) !== null && _themeConfig$data$zau !== void 0 ? _themeConfig$data$zau : configRequiredAlign) !== null && _ref2 !== void 0 ? _ref2 : 'left';
|
91
|
-
}, [themeConfig === null || themeConfig === void 0 ? void 0 : (_themeConfig$data2 = themeConfig.data) === null || _themeConfig$data2 === void 0 ? void 0 : _themeConfig$data2.zauiFormAlign]);
|
91
|
+
}, [themeConfig === null || themeConfig === void 0 ? void 0 : (_themeConfig$data2 = themeConfig.data) === null || _themeConfig$data2 === void 0 ? void 0 : _themeConfig$data2.zauiFormAlign, configRequiredAlign]);
|
92
92
|
var _useSetState = useSetState({
|
93
93
|
cellNamePath: [],
|
94
94
|
forceUpdate: {},
|
@@ -211,7 +211,7 @@ var ProEditTable = function ProEditTable(_ref, ref) {
|
|
211
211
|
return function (_x, _x2) {
|
212
212
|
return _ref4.apply(this, arguments);
|
213
213
|
};
|
214
|
-
}(), []);
|
214
|
+
}(), [pagination, page.pageSize, form, name]);
|
215
215
|
var config = _objectSpread({
|
216
216
|
form: form,
|
217
217
|
mode: mode,
|
@@ -269,10 +269,12 @@ var ProEditTable = function ProEditTable(_ref, ref) {
|
|
269
269
|
return item.type === type;
|
270
270
|
});
|
271
271
|
if (typeof (addBtnConfig === null || addBtnConfig === void 0 ? void 0 : addBtnConfig.show) === 'function') {
|
272
|
-
|
272
|
+
var result = addBtnConfig.show();
|
273
|
+
addBtnConfig.show = result;
|
273
274
|
}
|
274
275
|
return (addBtnConfig === null || addBtnConfig === void 0 ? void 0 : addBtnConfig.show) === false;
|
275
276
|
}
|
277
|
+
return false;
|
276
278
|
}, [toolbarProps]);
|
277
279
|
// 是否隐藏勾选框
|
278
280
|
var isHideCheckBox = isForbiddenBtn('mulDelete');
|
@@ -304,7 +306,8 @@ var ProEditTable = function ProEditTable(_ref, ref) {
|
|
304
306
|
className: "com-empty",
|
305
307
|
children: [_jsx("img", {
|
306
308
|
className: "img",
|
307
|
-
src: Empty
|
309
|
+
src: Empty,
|
310
|
+
alt: "Empty"
|
308
311
|
}), _jsx("div", {
|
309
312
|
className: "content",
|
310
313
|
children: disabled || isForbiddenBtn('add') ? locale.ProEditTable.noData : _jsxs(_Fragment, {
|
@@ -357,7 +360,7 @@ var ProEditTable = function ProEditTable(_ref, ref) {
|
|
357
360
|
rowKey: getRowKey(item)
|
358
361
|
});
|
359
362
|
});
|
360
|
-
onChange(nextValues);
|
363
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(nextValues);
|
361
364
|
if (virtualKey) {
|
362
365
|
form.setFieldValue(virtualRowName, nextValues);
|
363
366
|
}
|
@@ -377,8 +380,8 @@ var ProEditTable = function ProEditTable(_ref, ref) {
|
|
377
380
|
useEffect(function () {
|
378
381
|
if (toolbarSticky) {
|
379
382
|
var updatePos = function updatePos() {
|
380
|
-
var _affixRef$current;
|
381
|
-
affixRef === null || affixRef === void 0 ? void 0 : (_affixRef$current = affixRef.current) === null || _affixRef$current === void 0 ? void 0 : _affixRef$current.updatePosition();
|
383
|
+
var _affixRef$current, _affixRef$current$upd;
|
384
|
+
affixRef === null || affixRef === void 0 ? void 0 : (_affixRef$current = affixRef.current) === null || _affixRef$current === void 0 ? void 0 : (_affixRef$current$upd = _affixRef$current.updatePosition) === null || _affixRef$current$upd === void 0 ? void 0 : _affixRef$current$upd.call(_affixRef$current);
|
382
385
|
};
|
383
386
|
window.addEventListener('scroll', updatePos, true);
|
384
387
|
return function () {
|
@@ -480,4 +483,5 @@ ForwardProEditTable.defaultProps = {
|
|
480
483
|
deletePoConfirmMsg: locale.ProEditTable.deletePoConfirmMsg,
|
481
484
|
mulDeletePoConfirmMsg: locale.ProEditTable.mulDeletePoConfirmMsg
|
482
485
|
};
|
486
|
+
// 导出组件
|
483
487
|
export default ForwardProEditTable;
|
@@ -6,9 +6,8 @@ import type { TooltipProps } from 'antd/es/tooltip';
|
|
6
6
|
import type { NamePath } from 'antd/es/form/interface';
|
7
7
|
import type { ColumnType, TableProps } from 'antd/es/table';
|
8
8
|
import type { FormInstance, FormItemProps } from 'antd/es/form';
|
9
|
-
import type { FunctionArgs, ProRule } from '../ProForm/propsType';
|
10
|
-
import {
|
11
|
-
import { DiffOriginalParams } from '../ProForm/utils/diffOriginal';
|
9
|
+
import type { ProFormValueType, FunctionArgs, ProRule } from '../ProForm/components/render/propsType';
|
10
|
+
import type { DiffOriginalParams } from '../ProForm/utils/diffOriginal';
|
12
11
|
/**
|
13
12
|
* 操作类型定义
|
14
13
|
*/
|
@@ -17,14 +16,14 @@ export type ActionType = 'edit' | 'delete' | 'save' | 'cancel' | 'add' | 'mulDel
|
|
17
16
|
* 操作按钮展示控制函数类型
|
18
17
|
* @template T 记录类型
|
19
18
|
*/
|
20
|
-
export type ShowFunction<T> = (record?: T, options?: {
|
19
|
+
export type ShowFunction<T = any> = (record?: T, options?: {
|
21
20
|
index: number;
|
22
21
|
form: FormInstance;
|
23
22
|
name: NamePath;
|
24
23
|
namePath: NamePath;
|
25
24
|
tableLength: number;
|
26
25
|
selectedRows: T[];
|
27
|
-
}) => Promise<
|
26
|
+
}) => Promise<boolean> | boolean | void;
|
28
27
|
/**
|
29
28
|
* 选项属性接口
|
30
29
|
*/
|
@@ -61,10 +60,6 @@ export interface SummaryColumnProps {
|
|
61
60
|
/** 前缀 */
|
62
61
|
prefix?: ReactNode | string;
|
63
62
|
}
|
64
|
-
/**
|
65
|
-
* 汇总列属性类型(基于接口)
|
66
|
-
*/
|
67
|
-
export type SummaryColumnType = SummaryColumnProps;
|
68
63
|
/**
|
69
64
|
* 基础操作按钮属性
|
70
65
|
* @template T 记录类型
|
@@ -110,36 +105,31 @@ export interface BaseActionProps<T = any> {
|
|
110
105
|
/**
|
111
106
|
* 按钮前置校验事件
|
112
107
|
*/
|
113
|
-
onClick?: (record?:
|
108
|
+
onClick?: (record?: T, index?: number) => any;
|
114
109
|
/**
|
115
110
|
* 按钮前置校验事件
|
116
111
|
*/
|
117
|
-
onHandle?: (record?:
|
112
|
+
onHandle?: (record?: T, index?: number) => any;
|
118
113
|
/**
|
119
114
|
* 支持antd的Button属性
|
120
115
|
*/
|
121
116
|
buttonProps?: Omit<ButtonProps, 'type' | 'onClick'>;
|
122
117
|
}
|
123
|
-
/**
|
124
|
-
* 基础操作按钮类型(基于接口)
|
125
|
-
* @template T 记录类型
|
126
|
-
*/
|
127
|
-
export type BaseActionType<T = any> = BaseActionProps<T>;
|
128
118
|
/**
|
129
119
|
* 规则函数类型
|
130
120
|
* @template T 记录类型
|
131
121
|
*/
|
132
|
-
export type RulesFn<T> = (text?: any, record?: T, options?: OptionsProps) => ProRule[] | void;
|
122
|
+
export type RulesFn<T = any> = (text?: any, record?: T, options?: OptionsProps) => ProRule[] | void;
|
133
123
|
/**
|
134
124
|
* 必填函数类型
|
135
125
|
* @template T 记录类型
|
136
126
|
*/
|
137
|
-
export type RequiredFn<T> = (text?: any, record?: T, options?: OptionsProps) => boolean | void;
|
127
|
+
export type RequiredFn<T = any> = (text?: any, record?: T, options?: OptionsProps) => boolean | void;
|
138
128
|
/**
|
139
129
|
* 视图渲染函数类型
|
140
130
|
* @template T 记录类型
|
141
131
|
*/
|
142
|
-
export type viewRenderFn<T> = (text?: any, record?: T, options?: OptionsProps) => string | number | ReactNode | void;
|
132
|
+
export type viewRenderFn<T = any> = (text?: any, record?: T, options?: OptionsProps) => string | number | ReactNode | void;
|
143
133
|
/**
|
144
134
|
* 表格列属性接口
|
145
135
|
* @template Values 值类型
|
@@ -157,7 +147,7 @@ export interface ProColumnsProps<Values = any, T = any> extends Omit<FormItemPro
|
|
157
147
|
/** 是否可编辑 */
|
158
148
|
isEditable?: boolean | RequiredFn<T>;
|
159
149
|
/** 值类型 */
|
160
|
-
valueType?: ProFormValueType | ((text?: any, record?:
|
150
|
+
valueType?: ProFormValueType | ((text?: any, record?: T, options?: OptionsProps) => ProFormValueType);
|
161
151
|
/** 提示信息 */
|
162
152
|
tooltip?: string | ({
|
163
153
|
icon?: string | ReactNode;
|
@@ -188,20 +178,15 @@ export type ProColumnsType<Values = any, T = any> = ProColumnsProps<Values, T>;
|
|
188
178
|
* 可编辑表格列属性
|
189
179
|
* @template K 键类型
|
190
180
|
*/
|
191
|
-
export type ProEditTableColumnsProps<K = any> = ProColumnsProps
|
192
|
-
/**
|
193
|
-
* 可编辑表格列属性类型(基于类型)
|
194
|
-
* @template K 键类型
|
195
|
-
*/
|
196
|
-
export type ProEditTableColumnsType<K = any> = ProEditTableColumnsProps<K>;
|
181
|
+
export type ProEditTableColumnsProps<K = any> = ProColumnsProps<K, 'ProEditTable'>;
|
197
182
|
/**
|
198
183
|
* 状态接口
|
199
184
|
*/
|
200
|
-
export interface
|
185
|
+
export interface StateProps {
|
201
186
|
/** 单元格名称路径 */
|
202
187
|
cellNamePath: NamePath[];
|
203
188
|
/** 表格内部强制刷新开关 */
|
204
|
-
forceUpdate:
|
189
|
+
forceUpdate: Record<string, any>;
|
205
190
|
/** 正在编辑行的row-key集合 */
|
206
191
|
editingKeys: string[];
|
207
192
|
/** 当前选中行的row-key集合 */
|
@@ -219,13 +204,15 @@ export interface State {
|
|
219
204
|
/**
|
220
205
|
* 状态类型(基于接口)
|
221
206
|
*/
|
222
|
-
export type StateType =
|
207
|
+
export type StateType = StateProps;
|
223
208
|
/**
|
224
209
|
* 可编辑表格引用属性
|
225
210
|
*/
|
226
211
|
export interface ProEditTableRefProps {
|
227
212
|
/** 获取内部状态 */
|
228
|
-
getInternalState: () =>
|
213
|
+
getInternalState: () => StateProps;
|
214
|
+
/** 设置内部状态 */
|
215
|
+
setInternalState: (state: Partial<StateProps>) => void;
|
229
216
|
}
|
230
217
|
/**
|
231
218
|
* 可编辑表格引用属性类型(基于接口)
|
@@ -249,12 +236,11 @@ export type ActionDirectionType = ActionDirection;
|
|
249
236
|
* 汇总信息配置
|
250
237
|
* @template T 记录类型
|
251
238
|
*/
|
252
|
-
export type
|
253
|
-
columns:
|
239
|
+
export type SummaryProps<T = any> = {
|
240
|
+
columns: ProEditTableSummaryColumnType[];
|
254
241
|
total?: boolean;
|
255
242
|
fixed?: boolean | 'top' | 'bottom';
|
256
243
|
} | TableProps<T>['summary'];
|
257
|
-
export type SummaryConfigType<T = any> = SummaryConfig<T>;
|
258
244
|
/**
|
259
245
|
* 可编辑表格属性接口
|
260
246
|
* @template T 记录类型
|
@@ -267,18 +253,18 @@ export interface ProEditTableProps<T = any> extends Omit<TableProps<T>, 'onChang
|
|
267
253
|
/**
|
268
254
|
* 原始数据源,设置后可以对比更新后的数值
|
269
255
|
*/
|
270
|
-
originalValues?: any
|
256
|
+
originalValues?: Record<string, any>;
|
271
257
|
/**
|
272
258
|
* 可编辑表格的模式
|
273
259
|
* @default multiple
|
274
260
|
*/
|
275
|
-
mode?:
|
261
|
+
mode?: ProEditTableMode;
|
276
262
|
/**
|
277
263
|
* 可编辑表格的类型,单行编辑或者多行编辑
|
278
264
|
* @deprecated 将于下个版本 4.0.0 被弃用
|
279
265
|
* @default multiple
|
280
266
|
*/
|
281
|
-
type?:
|
267
|
+
type?: ProEditTableMode;
|
282
268
|
/**
|
283
269
|
* 必填对齐方式, 默认右对齐
|
284
270
|
* @default right
|
@@ -297,7 +283,7 @@ export interface ProEditTableProps<T = any> extends Omit<TableProps<T>, 'onChang
|
|
297
283
|
* 表格列的配置描述,扩展了FormItemProps属性
|
298
284
|
* @default []
|
299
285
|
*/
|
300
|
-
columns:
|
286
|
+
columns: ProEditTableColumnType<T>[];
|
301
287
|
/**
|
302
288
|
* 是否禁止编辑
|
303
289
|
* @default false
|
@@ -352,7 +338,7 @@ export interface ProEditTableProps<T = any> extends Omit<TableProps<T>, 'onChang
|
|
352
338
|
/**
|
353
339
|
* 自定义编辑模式的操作栏 单行编辑默认为编辑、删除、保存、取消;多行编辑为删除
|
354
340
|
*/
|
355
|
-
actionProps?:
|
341
|
+
actionProps?: BaseActionProps<T>[] | boolean;
|
356
342
|
/**
|
357
343
|
* 自定义 table footer 左侧渲染, 配置后toolbarProps会失效
|
358
344
|
*/
|
@@ -360,7 +346,7 @@ export interface ProEditTableProps<T = any> extends Omit<TableProps<T>, 'onChang
|
|
360
346
|
/**
|
361
347
|
* 自定义底部操作栏 默认为添加、删除(批量)
|
362
348
|
*/
|
363
|
-
toolbarProps?:
|
349
|
+
toolbarProps?: BaseActionProps<T>[] | boolean;
|
364
350
|
/**
|
365
351
|
* 自定义底部操作栏跟随页面滚动
|
366
352
|
*/
|
@@ -372,11 +358,11 @@ export interface ProEditTableProps<T = any> extends Omit<TableProps<T>, 'onChang
|
|
372
358
|
/**
|
373
359
|
* formItem的props
|
374
360
|
*/
|
375
|
-
otherProps?: any
|
361
|
+
otherProps?: Record<string, any>;
|
376
362
|
/**
|
377
363
|
* 底部合计配置
|
378
364
|
*/
|
379
|
-
summary?:
|
365
|
+
summary?: ProEditTableSummaryConfigType<T>;
|
380
366
|
/**
|
381
367
|
* 自定义头部渲染
|
382
368
|
*/
|
@@ -400,7 +386,7 @@ export interface ProEditTableProps<T = any> extends Omit<TableProps<T>, 'onChang
|
|
400
386
|
/**
|
401
387
|
* 操作按钮方向
|
402
388
|
*/
|
403
|
-
actionDirection?:
|
389
|
+
actionDirection?: ActionDirection;
|
404
390
|
/**
|
405
391
|
* 校验触发方式
|
406
392
|
*/
|
@@ -413,6 +399,18 @@ export interface ProEditTableProps<T = any> extends Omit<TableProps<T>, 'onChang
|
|
413
399
|
scrollFollowParent?: boolean;
|
414
400
|
};
|
415
401
|
}
|
402
|
+
/**
|
403
|
+
* 基础操作按钮类型(基于接口)
|
404
|
+
* @template T 记录类型
|
405
|
+
*/
|
406
|
+
export type ProEditTableActionType<T = any> = BaseActionProps<T>;
|
407
|
+
export type ProEditTableSummaryConfigType<T = any> = SummaryProps<T>;
|
408
|
+
export type ProEditTableSummaryColumnType = SummaryColumnProps;
|
409
|
+
/**
|
410
|
+
* 可编辑表格列属性类型(基于类型)
|
411
|
+
* @template K 键类型
|
412
|
+
*/
|
413
|
+
export type ProEditTableColumnType<K = any> = ProEditTableColumnsProps<K>;
|
416
414
|
/**
|
417
415
|
* 可编辑表格属性类型(基于接口)
|
418
416
|
* @template T 记录类型
|