vap1 0.4.5 → 0.5.0
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/base.json +30 -0
- package/basetype.d.ts +4 -1
- package/cems/admin/AsyncSelect.d.ts +45 -0
- package/cems/admin/AsyncSelect.js +2 -0
- package/cems/admin/CardTable.d.ts +207 -0
- package/cems/admin/CardTable.js +2 -0
- package/cems/admin/EasyuiTree.d.ts +131 -0
- package/cems/admin/EasyuiTree.js +2 -0
- package/cems/admin/utils.d.ts +5 -0
- package/cems/admin/utils.js +3 -0
- package/cems/admin/validator.d.ts +137 -0
- package/cems/admin/validator.js +2 -0
- package/cems/assets/CUpload.d.ts +23 -0
- package/cems/assets/CUpload.js +2 -0
- package/cems/assets/Charts.d.ts +37 -0
- package/cems/assets/Charts.js +2 -0
- package/cems/assets/DInfo.d.ts +38 -0
- package/cems/assets/DInfo.js +2 -0
- package/cems/assets/DModal.d.ts +84 -0
- package/cems/assets/DModal.js +2 -0
- package/cems/assets/DTable.d.ts +128 -0
- package/cems/assets/DTable.js +2 -0
- package/cems/assets/DivWidth.d.ts +14 -0
- package/cems/assets/DivWidth.js +2 -0
- package/cems/assets/Patch.d.ts +9 -0
- package/cems/assets/Patch.js +2 -0
- package/cems/assets/Sensitive.d.ts +33 -0
- package/cems/assets/Sensitive.js +2 -0
- package/cems/assets/types.d.ts +200 -0
- package/cems/assets/types.js +2 -0
- package/cems/assets/utils.d.ts +61 -0
- package/cems/assets/utils.js +2 -0
- package/cems/define.d.ts +9 -0
- package/cems/define.js +18 -0
- package/cems/index.d.ts +228 -0
- package/cems/index.js +81 -0
- package/cems/policy/CForm.d.ts +133 -0
- package/cems/policy/CForm.js +2 -0
- package/cems/policy/DApiTable.d.ts +78 -0
- package/cems/policy/DApiTable.js +2 -0
- package/cems/policy/DButton.d.ts +17 -0
- package/cems/policy/DButton.js +2 -0
- package/cems/policy/DCheckbox.d.ts +50 -0
- package/cems/policy/DCheckbox.js +2 -0
- package/cems/policy/DCheckboxGroup.d.ts +34 -0
- package/cems/policy/DCheckboxGroup.js +2 -0
- package/cems/policy/DCol.d.ts +33 -0
- package/cems/policy/DCol.js +2 -0
- package/cems/policy/DColorPicker.d.ts +9 -0
- package/cems/policy/DColorPicker.js +2 -0
- package/cems/policy/DDatePicker.d.ts +41 -0
- package/cems/policy/DDatePicker.js +2 -0
- package/cems/policy/DDiv.d.ts +65 -0
- package/cems/policy/DDiv.js +2 -0
- package/cems/policy/DDrawer.d.ts +6 -0
- package/cems/policy/DDrawer.js +2 -0
- package/cems/policy/DDynamicSelect.d.ts +50 -0
- package/cems/policy/DDynamicSelect.js +2 -0
- package/cems/policy/DDynamicTreeSelect.d.ts +45 -0
- package/cems/policy/DDynamicTreeSelect.js +2 -0
- package/cems/policy/DForm.d.ts +248 -0
- package/cems/policy/DForm.js +2 -0
- package/cems/policy/DIcon.d.ts +33 -0
- package/cems/policy/DIcon.js +2 -0
- package/cems/policy/DInput.d.ts +41 -0
- package/cems/policy/DInput.js +2 -0
- package/cems/policy/DLabel.d.ts +17 -0
- package/cems/policy/DLabel.js +2 -0
- package/cems/policy/DPTable.d.ts +86 -0
- package/cems/policy/DPTable.js +2 -0
- package/cems/policy/DRadio.d.ts +34 -0
- package/cems/policy/DRadio.js +2 -0
- package/cems/policy/DSCTable.d.ts +33 -0
- package/cems/policy/DSCTable.js +2 -0
- package/cems/policy/DSelect.d.ts +42 -0
- package/cems/policy/DSelect.js +2 -0
- package/cems/policy/DSlider.d.ts +21 -0
- package/cems/policy/DSlider.js +2 -0
- package/cems/policy/DSwitch.d.ts +21 -0
- package/cems/policy/DSwitch.js +2 -0
- package/cems/policy/DTab.d.ts +30 -0
- package/cems/policy/DTab.js +2 -0
- package/cems/policy/DTimePicker.d.ts +37 -0
- package/cems/policy/DTimePicker.js +2 -0
- package/cems/policy/DTree.d.ts +98 -0
- package/cems/policy/DTree.js +2 -0
- package/cems/policy/DUpload.d.ts +33 -0
- package/cems/policy/DUpload.js +2 -0
- package/cems/policy/types.d.ts +200 -0
- package/cems/policy/types.js +2 -0
- package/cems/policy/utils.d.ts +13 -0
- package/cems/policy/utils.js +2 -0
- package/components/Box/Box.d.ts +43 -7
- package/components/Box/Box.js +67 -17
- package/components/Box/SelectBar.d.ts +1 -1
- package/components/Box/SelectBar.js +19 -9
- package/components/Lists/BaseList.d.ts +5 -0
- package/components/Lists/BaseList.js +111 -0
- package/components/Lists/Fields/IconRender.d.ts +53 -0
- package/components/Lists/Fields/IconRender.js +174 -0
- package/components/Lists/Fields/ItemRender.d.ts +2 -0
- package/components/Lists/Fields/ItemRender.js +127 -0
- package/components/Lists/Fields/_utils.d.ts +3 -0
- package/components/Lists/Fields/_utils.js +80 -0
- package/components/Lists/Fields/index.d.ts +3 -0
- package/components/Lists/Fields/index.js +47 -0
- package/components/Lists/Grid/grid.d.ts +7 -0
- package/components/Lists/Grid/grid.js +18 -0
- package/components/Lists/Grid/index.d.ts +3 -0
- package/components/Lists/Grid/index.js +50 -0
- package/components/Lists/Row/index.d.ts +3 -0
- package/components/Lists/Row/index.js +14 -0
- package/components/Lists/SList.js +17 -7
- package/components/Lists/Timeline/index.d.ts +3 -0
- package/components/Lists/Timeline/index.js +117 -0
- package/components/Lists/VList.d.ts +3 -0
- package/components/Lists/VList.js +92 -0
- package/components/Lists/components/LayoutSwitcher.d.ts +13 -0
- package/components/Lists/components/LayoutSwitcher.js +121 -0
- package/components/Lists/components/SearchTool.d.ts +13 -0
- package/components/Lists/components/SearchTool.js +34 -0
- package/components/Lists/index.d.ts +129 -0
- package/components/Lists/index.js +2 -0
- package/components/SearchTool/SearchBand/BandInput.d.ts +3 -0
- package/components/SearchTool/SearchBand/BandInput.js +54 -0
- package/components/SearchTool/SearchBand/BandTag.d.ts +7 -0
- package/components/SearchTool/SearchBand/BandTag.js +82 -0
- package/components/SearchTool/SearchBand/_SearchBandAction.d.ts +3 -0
- package/components/SearchTool/SearchBand/_SearchBandAction.js +23 -0
- package/components/SearchTool/SearchBand/_SearchBandFix.d.ts +3 -0
- package/components/SearchTool/SearchBand/_SearchBandFix.js +72 -0
- package/components/SearchTool/SearchBand/_SearchBandTag.d.ts +3 -0
- package/components/SearchTool/SearchBand/_SearchBandTag.js +75 -0
- package/components/SearchTool/SearchBand/_register.d.ts +47 -0
- package/components/SearchTool/SearchBand/_register.js +15 -0
- package/components/SearchTool/SearchBand/hooks.d.ts +12 -0
- package/components/SearchTool/SearchBand/hooks.js +181 -0
- package/components/SearchTool/SearchBand/index.d.ts +3 -0
- package/components/SearchTool/SearchBand/index.js +66 -0
- package/components/SearchTool/SearchBand/type.d.ts +71 -0
- package/components/SearchTool/SearchBand/type.js +3 -0
- package/components/{SearchBar → SearchTool/SearchBar}/ActionButtons.d.ts +2 -2
- package/components/{SearchBar → SearchTool/SearchBar}/ActionButtons.js +22 -12
- package/components/{SearchBar → SearchTool/SearchBar}/ByField.d.ts +1 -1
- package/components/{SearchBar → SearchTool/SearchBar}/ByField.js +21 -11
- package/components/{SearchBar → SearchTool/SearchBar}/ByKeyword.d.ts +1 -1
- package/components/{SearchBar → SearchTool/SearchBar}/ByKeyword.js +20 -10
- package/components/{SearchBar → SearchTool/SearchBar}/SearchField.d.ts +1 -1
- package/components/{SearchBar → SearchTool/SearchBar}/SearchTags.js +1 -1
- package/components/{SearchBar → SearchTool/SearchBar}/_register.d.ts +1 -1
- package/components/{SearchBar → SearchTool/SearchBar}/_register.js +3 -3
- package/components/SearchTool/SearchBar/index.d.ts +7 -0
- package/components/{SearchBar → SearchTool/SearchBar}/index.js +1 -1
- package/components/{SearchBar/index.d.ts → SearchTool/SearchBar/type.d.ts} +68 -67
- package/components/SearchTool/SearchBar/type.js +35 -0
- package/components/SearchTool/index.d.ts +5 -0
- package/components/SearchTool/index.js +7 -0
- package/components/Tables/ApiTable.d.ts +5 -7
- package/components/Tables/ApiTable.js +17 -7
- package/components/Tables/ApiTableModal.d.ts +5 -7
- package/components/Tables/ApiTableModal.js +17 -7
- package/components/Tables/Components/ActionBar.d.ts +8 -11
- package/components/Tables/Components/ActionBar.js +74 -41
- package/components/Tables/Components/Actions.d.ts +3 -1
- package/components/Tables/Components/Actions.js +40 -3
- package/components/Tables/Components/index.d.ts +3 -1
- package/components/Tables/Components/useTableContext.d.ts +16 -0
- package/components/Tables/Components/useTableContext.js +116 -0
- package/components/Tables/STable.js +17 -7
- package/components/Tables/TopTable.js +17 -7
- package/components/Tables/Util.d.ts +2 -2
- package/components/Tables/Util.js +0 -1
- package/components/Tables/VTable.d.ts +9 -9
- package/components/Tables/VTable.js +119 -172
- package/components/Tables/VTableBack.d.ts +0 -0
- package/components/Tables/VTableBack.js +269 -0
- package/components/Tables/index.d.ts +11 -22
- package/components/TreeSelect/BaseTreeSelect.js +17 -7
- package/components/TreeSelect/DTreeSelect.js +19 -9
- package/components/TreeSelect/FTreeSelect.js +2 -2
- package/components/TreeSelect/STreeSelect.js +1 -1
- package/components/Trees/ActionTree.d.ts +3 -5
- package/components/Trees/ActionTree.js +19 -9
- package/components/Trees/BaseTree.js +17 -7
- package/components/Trees/COTree/COButton.js +17 -7
- package/components/Trees/COTree/COSelect.js +17 -7
- package/components/Trees/COTree/COTree.js +19 -9
- package/components/Trees/DTree.d.ts +0 -7
- package/components/Trees/DTree.js +19 -9
- package/components/Trees/FTree.js +19 -9
- package/components/Trees/STree.js +17 -7
- package/components/UForm/FormWrapper.js +17 -7
- package/components/UForm/UDescriptions.d.ts +2 -3
- package/components/UForm/UDescriptions.js +17 -7
- package/components/UForm/UForm.d.ts +1 -1
- package/components/UForm/UForm.js +24 -11
- package/components/UForm/UFormModal.js +19 -9
- package/components/UForm/_FieldType.d.ts +1 -1
- package/components/UForm/_FieldType.js +4 -0
- package/components/UForm/_input.d.ts +5 -1
- package/components/UForm/_input.js +25 -8
- package/components/Upload/UploadImage.js +17 -7
- package/components/Upload/UploadModal.js +19 -9
- package/components/Upload/useUpload.js +2 -2
- package/components/_adapt/Alert.js +17 -7
- package/components/_adapt/Col.d.ts +1 -1
- package/components/_adapt/ColorPicker.js +17 -7
- package/components/_adapt/Drawer.js +17 -7
- package/components/_adapt/Dropdown.js +17 -7
- package/components/_adapt/FloatButton.js +17 -7
- package/components/_adapt/Input.js +17 -7
- package/components/_adapt/InputNumber.js +17 -7
- package/components/_adapt/Layout.js +17 -7
- package/components/_adapt/Menu.js +17 -7
- package/components/_adapt/Modal.js +17 -7
- package/components/_adapt/Popconfirm.js +17 -7
- package/components/_adapt/Popover.js +17 -7
- package/components/_adapt/Progress.js +17 -7
- package/components/_adapt/Select.js +17 -7
- package/components/_adapt/Table.js +17 -7
- package/components/_adapt/Tabs.js +17 -7
- package/components/_adapt/Tag.js +17 -7
- package/components/_adapt/TreeSelect.js +17 -7
- package/components/_adapt/todo/Image.d.ts +0 -1
- package/components/_adapt/todo/Segmented.d.ts +0 -1
- package/components/_common/AutoComplete.js +35 -12
- package/components/_common/CountUp.js +17 -7
- package/components/_common/DateRange.d.ts +5 -2
- package/components/_common/DateRange.js +43 -40
- package/components/_common/HighLight.d.ts +1 -1
- package/components/_common/HighLight.js +26 -24
- package/components/_common/Loading.js +17 -7
- package/components/_common/MonthRange.js +17 -7
- package/components/_common/PromiseLabel.js +2 -2
- package/components/_common/UTitle.d.ts +1 -1
- package/components/_common/UTitle.js +18 -8
- package/components/_common/Upagination.d.ts +1 -0
- package/components/_common/Upagination.js +5 -1
- package/components/_i18n.d.ts +1 -102
- package/components/index.d.ts +2 -2
- package/components/index.js +5 -1
- package/deps/JsonView.js +17 -7
- package/deps/app-audit/LookUp.js +19 -9
- package/deps/app-data/Const.d.ts +68 -3
- package/deps/app-data/Const.js +47 -3
- package/deps/app-data/TimeConst.d.ts +0 -0
- package/deps/app-data/TimeConst.js +58 -0
- package/deps/app-data/useSource.d.ts +22 -0
- package/deps/app-data/useSource.js +253 -162
- package/deps/echarts.d.ts +3 -0
- package/deps/echarts.js +20 -10
- package/deps/editor/Article.js +17 -7
- package/deps/editor/Editor.js +17 -7
- package/deps/editor/EditorModal.js +17 -7
- package/deps/editor/support/buttons/ImageButton.js +17 -7
- package/deps/editor/tools/Button.js +0 -2
- package/deps/editor/tools/_TxtButton.js +17 -7
- package/deps/vapc/_basic.d.ts +1 -0
- package/deps/vapc/_basic.js +15 -0
- package/deps/vapc/index.d.ts +10 -0
- package/deps/vapc/index.js +70 -0
- package/hooks/useAjaxAction.js +2 -2
- package/hooks/useAjaxQuery.js +2 -2
- package/hooks/useApiBase.js +2 -2
- package/hooks/useApiGlobal.js +1 -1
- package/hooks/useArray.js +2 -2
- package/hooks/useDefault.d.ts +0 -1
- package/hooks/useDoLoad.d.ts +1 -1
- package/hooks/useError.d.ts +1 -1
- package/hooks/useMemoPromise.js +2 -2
- package/index.d.ts +2 -1
- package/index.js +1 -1
- package/login/Base65.d.ts +7 -1
- package/login/Base65.js +49 -22
- package/login/Password.d.ts +8 -5
- package/login/Password.js +68 -102
- package/package.json +1 -1
- package/screen/Page.js +17 -7
- package/screen/vapc-schema/dark.d.ts +1 -0
- package/screen/vapc-schema/dark.js +50 -0
- package/screen/vapc-schema/insight.d.ts +1 -0
- package/screen/vapc-schema/insight.js +49 -0
- package/uform/FormEditor.js +17 -7
- package/uform/FormViewer.js +17 -7
- package/uform/hooks/useEditor.d.ts +0 -1
- package/uform/hooks/useForm.d.ts +0 -1
- package/uform/inputs/index.d.ts +0 -1
- package/uform/panel/Editor/_GroupDefault.js +17 -7
- package/uform/panel/Editor/_GroupStep.js +17 -7
- package/uform/panel/Editor/_GroupTab.js +17 -7
- package/uform/panel/Editor/index.js +17 -7
- package/uform/panel/Items/Fields.js +17 -7
- package/uform/panel/Items/InputSelector.js +17 -7
- package/uform/panel/Items/Inputs.js +17 -7
- package/uform/panel/Items/index.d.ts +1 -1
- package/uform/panel/Propreties/CanvasProperties.js +17 -7
- package/uform/panel/Propreties/Component/FieldPlugin.js +17 -7
- package/uform/panel/Propreties/Component/LinkAsyncFunction.js +17 -7
- package/uform/panel/Propreties/Component/LinkSyncFunction.js +17 -7
- package/uform/panel/Propreties/Component/Links.js +17 -7
- package/uform/panel/Propreties/Component/OptionTable.js +17 -7
- package/uform/panel/Propreties/Component/RegexpModal.js +17 -7
- package/uform/panel/Propreties/Component/Validate.js +17 -7
- package/uform/panel/Propreties/Component/ValidateAsyncFunction.js +17 -7
- package/uform/panel/Propreties/Component/ValidateSyncFunction.js +17 -7
- package/uform/panel/Propreties/FieldOptions.js +17 -7
- package/uform/panel/Propreties/FieldProperties.js +17 -7
- package/uform/panel/Propreties/_ItemAdvance.js +17 -7
- package/uform/panel/Propreties/_ItemBase.js +17 -7
- package/uform/panel/Propreties/_ItemLink.js +17 -7
- package/uform/panel/Propreties/_ItemValidate.js +17 -7
- package/uform/schema.d.ts +1 -1
- package/uform/utils/Convert.js +2 -2
- package/utils/Ajax.d.ts +3 -0
- package/utils/Ajax.js +22 -16
- package/utils/CacheUtil.d.ts +1 -1
- package/utils/Const.js +17 -7
- package/utils/Format.d.ts +138 -14
- package/utils/Format.js +132 -23
- package/utils/Global.d.ts +46 -2
- package/utils/Global.js +24 -2
- package/utils/PageUtil.d.ts +111 -23
- package/utils/PageUtil.js +163 -28
- package/utils/Renders/ApiGetRender.js +25 -12
- package/utils/Renders/ApiPostRender.js +3 -3
- package/utils/Renders/CondictionRender.js +17 -7
- package/utils/Renders/DateRender.js +20 -2
- package/utils/Renders/ListRender.js +1 -1
- package/utils/Renders/NumberRender.js +24 -5
- package/utils/Renders/StringRender.js +81 -11
- package/utils/Renders/_define.d.ts +8 -7
- package/utils/Renders/_define.js +76 -17
- package/utils/StringUtil.d.ts +292 -62
- package/utils/StringUtil.js +310 -63
- package/utils/TreeUtil.js +14 -12
- package/utils/VAP.d.ts +26 -1
- package/utils/VAP.js +57 -1
- package/utils/_AjaxUtil.d.ts +1 -0
- package/utils/_AjaxUtil.js +70 -3
- package/utils/_Support.d.ts +2 -2
- package/utils/_Support.js +4 -2
- package/utils/crontab/_en.d.ts +2 -0
- package/utils/crontab/_en.js +178 -0
- package/utils/crontab/_global.d.ts +11 -0
- package/utils/crontab/_global.js +23 -0
- package/utils/crontab/_zh_CN.d.ts +2 -0
- package/utils/crontab/_zh_CN.js +180 -0
- package/utils/crontab/_zh_TW.d.ts +2 -0
- package/utils/crontab/_zh_TW.js +170 -0
- package/utils/crontab/crontabParser.d.ts +1 -0
- package/utils/crontab/crontabParser.js +251 -0
- package/utils/crontab/crontabRender.d.ts +23 -0
- package/utils/crontab/crontabRender.js +502 -0
- package/utils/crontab/index.d.ts +3 -0
- package/utils/crontab/index.js +9 -0
- package/utils/crontab/type.d.ts +79 -0
- package/utils/crontab/type.js +2 -0
- package/utils/crontab/utils.d.ts +20 -0
- package/utils/crontab/utils.js +122 -0
- package/utils/i18n.d.ts +13 -2
- package/utils/i18n.js +13 -2
- package/utils/index.d.ts +4 -0
- package/utils/index.js +19 -9
- package/utils/py.js +2 -0
- package/components/SearchBar/_FieldType.d.ts +0 -8
- package/components/SearchBar/_FieldType.js +0 -51
- /package/components/{SearchBar → SearchTool/SearchBar}/SearchField.js +0 -0
- /package/components/{SearchBar → SearchTool/SearchBar}/SearchTags.d.ts +0 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { DMethodRef, DBaseProps } from "./types";
|
|
2
|
+
import type { ForwardRefExoticComponent, RefAttributes } from "react";
|
|
3
|
+
export type DColorPickerProps = Omit<DBaseProps, 'width' | 'height'> & {
|
|
4
|
+
/**
|
|
5
|
+
* 大小 1是 0否 默认0
|
|
6
|
+
*/
|
|
7
|
+
size?: 'large' | 'middle' | 'small';
|
|
8
|
+
};
|
|
9
|
+
export type DColorPickerComponent = ForwardRefExoticComponent<DColorPickerProps & RefAttributes<DMethodRef>>;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { DMethodRef, DBaseProps } from "./types";
|
|
2
|
+
import type { ForwardRefExoticComponent, RefAttributes } from "react";
|
|
3
|
+
export type DDatePickerProps = Omit<DBaseProps, 'height'> & {
|
|
4
|
+
/**
|
|
5
|
+
* 绑定Key2
|
|
6
|
+
*/
|
|
7
|
+
dataKey2?: string;
|
|
8
|
+
/**
|
|
9
|
+
* 必填2 0否 1是
|
|
10
|
+
*/
|
|
11
|
+
required2?: '0' | '1';
|
|
12
|
+
/**
|
|
13
|
+
* 日期段连接符
|
|
14
|
+
*/
|
|
15
|
+
dateSplit?: string;
|
|
16
|
+
/**
|
|
17
|
+
* 格式化 默认 YYYY/MM/DD
|
|
18
|
+
*/
|
|
19
|
+
showFormat?: string;
|
|
20
|
+
/**
|
|
21
|
+
* 显示时间 0否 1是
|
|
22
|
+
*/
|
|
23
|
+
showTime?: '0' | '1';
|
|
24
|
+
/**
|
|
25
|
+
* 允许清空 0否 1是
|
|
26
|
+
*/
|
|
27
|
+
allowClear?: '0' | '1';
|
|
28
|
+
/**
|
|
29
|
+
* 允许清空2 0否 1是
|
|
30
|
+
*/
|
|
31
|
+
allowClear2?: '0' | '1';
|
|
32
|
+
/**
|
|
33
|
+
* 禁用时间
|
|
34
|
+
*/
|
|
35
|
+
disabledDate?: (cArgs: any) => any;
|
|
36
|
+
/**
|
|
37
|
+
* 大小 large middle small
|
|
38
|
+
*/
|
|
39
|
+
size?: 'large' | ' middle' | 'small';
|
|
40
|
+
};
|
|
41
|
+
export type DDatePickerComponent = ForwardRefExoticComponent<DDatePickerProps & RefAttributes<DMethodRef>>;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import type { DMethodRef, DBaseProps } from "./types";
|
|
2
|
+
import type { ForwardRefExoticComponent, ReactNode, RefAttributes, CSSProperties } from "react";
|
|
3
|
+
export type DDivProps = Pick<DBaseProps, 'cId' | 'style' | 'className' | 'onChange' | 'width'> & {
|
|
4
|
+
/**
|
|
5
|
+
* 文本
|
|
6
|
+
*/
|
|
7
|
+
text?: string;
|
|
8
|
+
/**
|
|
9
|
+
* 行高
|
|
10
|
+
*/
|
|
11
|
+
lHeight?: number | string;
|
|
12
|
+
/**
|
|
13
|
+
* 点击事件值
|
|
14
|
+
*/
|
|
15
|
+
changeValue?: string;
|
|
16
|
+
/**
|
|
17
|
+
* 标题文本
|
|
18
|
+
*/
|
|
19
|
+
hText?: string;
|
|
20
|
+
/**
|
|
21
|
+
* 标题预置格式 0无样式 1背景样式1 2下划线样式2
|
|
22
|
+
*/
|
|
23
|
+
hType?: '0' | '1' | '2';
|
|
24
|
+
/**
|
|
25
|
+
* 外css样式
|
|
26
|
+
*/
|
|
27
|
+
divStyle?: CSSProperties;
|
|
28
|
+
/**
|
|
29
|
+
* 标题容器切换 0否 1是 默认0
|
|
30
|
+
*/
|
|
31
|
+
hClick?: '0' | '1';
|
|
32
|
+
/**
|
|
33
|
+
* 标题容器样式
|
|
34
|
+
*/
|
|
35
|
+
hStyle?: CSSProperties;
|
|
36
|
+
/**
|
|
37
|
+
* 标题css样式
|
|
38
|
+
*/
|
|
39
|
+
tStyle?: CSSProperties;
|
|
40
|
+
/**
|
|
41
|
+
* 选中图标
|
|
42
|
+
*/
|
|
43
|
+
yIcon?: string;
|
|
44
|
+
/**
|
|
45
|
+
* 未选中图标
|
|
46
|
+
*/
|
|
47
|
+
nIcon?: string;
|
|
48
|
+
/**
|
|
49
|
+
* 图标css样式
|
|
50
|
+
*/
|
|
51
|
+
iStyle?: CSSProperties;
|
|
52
|
+
/**
|
|
53
|
+
* 选中图标样式
|
|
54
|
+
*/
|
|
55
|
+
yStyle?: CSSProperties;
|
|
56
|
+
/**
|
|
57
|
+
* 未中图标样式
|
|
58
|
+
*/
|
|
59
|
+
nStyle?: CSSProperties;
|
|
60
|
+
/**
|
|
61
|
+
* 子组件
|
|
62
|
+
*/
|
|
63
|
+
children?: ReactNode;
|
|
64
|
+
};
|
|
65
|
+
export type DDivComponent = ForwardRefExoticComponent<DDivProps & RefAttributes<DMethodRef>>;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { DMethodRef, DBaseProps } from "./types";
|
|
2
|
+
import type { ForwardRefExoticComponent, RefAttributes } from "react";
|
|
3
|
+
import type { PlainObject } from "../../basetype";
|
|
4
|
+
export type DDynamicSelectProps = Omit<DBaseProps, 'height'> & {
|
|
5
|
+
/**
|
|
6
|
+
* 下来数据源
|
|
7
|
+
*/
|
|
8
|
+
dataApi?: string;
|
|
9
|
+
/**
|
|
10
|
+
* 接口参数
|
|
11
|
+
*/
|
|
12
|
+
params?: PlainObject;
|
|
13
|
+
/**
|
|
14
|
+
* 多选 0否 1是
|
|
15
|
+
*/
|
|
16
|
+
mode?: '0' | '1';
|
|
17
|
+
/**
|
|
18
|
+
* 多选拼接 默认是逗号
|
|
19
|
+
*/
|
|
20
|
+
join?: string;
|
|
21
|
+
/**
|
|
22
|
+
* 值字段
|
|
23
|
+
*/
|
|
24
|
+
valueKey?: string;
|
|
25
|
+
/**
|
|
26
|
+
* 显示字段
|
|
27
|
+
*/
|
|
28
|
+
labelKey?: string;
|
|
29
|
+
/**
|
|
30
|
+
* 排序字段
|
|
31
|
+
*/
|
|
32
|
+
sortKey?: string;
|
|
33
|
+
/**
|
|
34
|
+
* 默认值
|
|
35
|
+
*/
|
|
36
|
+
dValue?: string;
|
|
37
|
+
/**
|
|
38
|
+
* 提示文字
|
|
39
|
+
*/
|
|
40
|
+
placeholder?: string;
|
|
41
|
+
/**
|
|
42
|
+
* 允许清空 0否 1是
|
|
43
|
+
*/
|
|
44
|
+
allowClear?: '0' | '1';
|
|
45
|
+
/**
|
|
46
|
+
* 大小 large middle small
|
|
47
|
+
*/
|
|
48
|
+
size?: 'large' | ' middle' | 'small';
|
|
49
|
+
};
|
|
50
|
+
export type DDynamicSelectComponent = ForwardRefExoticComponent<DDynamicSelectProps & RefAttributes<DMethodRef>>;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { DMethodRef, DBaseProps } from "./types";
|
|
2
|
+
import type { ForwardRefExoticComponent, RefAttributes } from "react";
|
|
3
|
+
export type DDynamicTreeSelectProps = Omit<DBaseProps, 'height'> & {
|
|
4
|
+
/**
|
|
5
|
+
* 显示Key
|
|
6
|
+
*/
|
|
7
|
+
showKey?: string;
|
|
8
|
+
/**
|
|
9
|
+
* 根接口
|
|
10
|
+
*/
|
|
11
|
+
rootApi?: string;
|
|
12
|
+
/**
|
|
13
|
+
* 下级接口
|
|
14
|
+
*/
|
|
15
|
+
childApi?: string;
|
|
16
|
+
/**
|
|
17
|
+
* 值字段
|
|
18
|
+
*/
|
|
19
|
+
valueKey?: string;
|
|
20
|
+
/**
|
|
21
|
+
* 显示字段
|
|
22
|
+
*/
|
|
23
|
+
labelKey?: string;
|
|
24
|
+
/**
|
|
25
|
+
* 上级字段
|
|
26
|
+
*/
|
|
27
|
+
parentKey?: string;
|
|
28
|
+
/**
|
|
29
|
+
* 默认值
|
|
30
|
+
*/
|
|
31
|
+
dValue?: string;
|
|
32
|
+
/**
|
|
33
|
+
* 提示文字
|
|
34
|
+
*/
|
|
35
|
+
placeholder?: string;
|
|
36
|
+
/**
|
|
37
|
+
* 允许清空 0否 1是
|
|
38
|
+
*/
|
|
39
|
+
allowClear?: '0' | '1';
|
|
40
|
+
/**
|
|
41
|
+
* 大小 large middle small
|
|
42
|
+
*/
|
|
43
|
+
size?: 'large' | ' middle' | 'small';
|
|
44
|
+
};
|
|
45
|
+
export type DDynamicTreeSelectComponent = ForwardRefExoticComponent<DDynamicTreeSelectProps & RefAttributes<DMethodRef>>;
|
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
import type { CSSProperties, ForwardRefExoticComponent, ReactNode, RefAttributes } from "react";
|
|
2
|
+
import type { FormSchemaType } from "./types";
|
|
3
|
+
import type { PlainObject } from "../../basetype";
|
|
4
|
+
/**
|
|
5
|
+
* 表单方法定义
|
|
6
|
+
*/
|
|
7
|
+
export type MethodRef = {
|
|
8
|
+
/**
|
|
9
|
+
* 修改组件的属性 同时修改多个属性时,请传一个对象
|
|
10
|
+
* @param pKey 组件属性路径
|
|
11
|
+
* @param pVal 属性值
|
|
12
|
+
* @returns
|
|
13
|
+
*/
|
|
14
|
+
setAttr: (pKey: string | PlainObject, pVal?: any) => void;
|
|
15
|
+
getAttr: (pKey: string) => any;
|
|
16
|
+
/**
|
|
17
|
+
* 设置数据的值 同时修改多个数据时,请传一个对象
|
|
18
|
+
* @param pKey 属性路径
|
|
19
|
+
* @param pVal 属性值
|
|
20
|
+
* @returns
|
|
21
|
+
*/
|
|
22
|
+
setValue: (pKey: string | PlainObject, pVal?: any) => void;
|
|
23
|
+
/**
|
|
24
|
+
* 删除数据的属性
|
|
25
|
+
* @param pKey 属性路径
|
|
26
|
+
* @returns
|
|
27
|
+
*/
|
|
28
|
+
delValue: (pKey: string) => void;
|
|
29
|
+
/**
|
|
30
|
+
* 获取数据的值
|
|
31
|
+
* @param pKey 属性路径
|
|
32
|
+
* @returns
|
|
33
|
+
*/
|
|
34
|
+
getValue: (pKey: string, defValue?: any) => any;
|
|
35
|
+
callTemplateFunc: (tValue: any, fValue?: any) => any;
|
|
36
|
+
getExpValue: (eValue: any, fValue?: any) => any;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* 表单ref定义
|
|
40
|
+
*/
|
|
41
|
+
export type DFormRef = {
|
|
42
|
+
/**
|
|
43
|
+
* 提交获取数据
|
|
44
|
+
* @returns false 表示表单有验证失败的情况
|
|
45
|
+
*/
|
|
46
|
+
submit: () => any;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* 表单的根组件ref定义
|
|
50
|
+
*/
|
|
51
|
+
export type DRootRef = DFormRef & MethodRef;
|
|
52
|
+
/**
|
|
53
|
+
* 根组件的参数
|
|
54
|
+
*/
|
|
55
|
+
export type DRootProps = {
|
|
56
|
+
/**
|
|
57
|
+
* 组件实例id
|
|
58
|
+
*/
|
|
59
|
+
cId: string;
|
|
60
|
+
/**
|
|
61
|
+
* 表单描述
|
|
62
|
+
*/
|
|
63
|
+
Schema?: FormSchemaType;
|
|
64
|
+
/**
|
|
65
|
+
* 表单数据
|
|
66
|
+
*/
|
|
67
|
+
Data?: PlainObject;
|
|
68
|
+
/**
|
|
69
|
+
* 表单参数
|
|
70
|
+
*/
|
|
71
|
+
Design?: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* 表单其他控制参数
|
|
74
|
+
*/
|
|
75
|
+
Config?: PlainObject;
|
|
76
|
+
changeSchema?: (pKey: string | PlainObject, pVal?: any) => void;
|
|
77
|
+
setTempFunc: (func: any) => void;
|
|
78
|
+
getTempFunc: () => any;
|
|
79
|
+
/**
|
|
80
|
+
* 在弹窗的表单里获取外面表单的数据
|
|
81
|
+
* @param pKey
|
|
82
|
+
* @param defValue
|
|
83
|
+
* @returns
|
|
84
|
+
*/
|
|
85
|
+
getRootValue?: (pKey: string, defValue?: any) => any;
|
|
86
|
+
/**
|
|
87
|
+
* 变化且大于0,表示重新加载
|
|
88
|
+
*/
|
|
89
|
+
reload?: number;
|
|
90
|
+
/**
|
|
91
|
+
* 表单数据改变
|
|
92
|
+
* @param data
|
|
93
|
+
* @returns
|
|
94
|
+
*/
|
|
95
|
+
onFormChange?: (data: PlainObject) => void;
|
|
96
|
+
/**
|
|
97
|
+
* 表单的数据变化
|
|
98
|
+
* @param key
|
|
99
|
+
* @param value
|
|
100
|
+
* @returns
|
|
101
|
+
*/
|
|
102
|
+
onDataChange?: (key: any, value: any) => void;
|
|
103
|
+
/**
|
|
104
|
+
* 子组件
|
|
105
|
+
*/
|
|
106
|
+
children?: ReactNode;
|
|
107
|
+
};
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
*/
|
|
111
|
+
export type DFormProps = Omit<DRootProps, 'cId' | 'setTempFunc' | 'getTempFunc'> & {
|
|
112
|
+
/**
|
|
113
|
+
* 表单高度
|
|
114
|
+
*/
|
|
115
|
+
height?: number;
|
|
116
|
+
/**
|
|
117
|
+
* 表单宽度
|
|
118
|
+
*/
|
|
119
|
+
width?: number | string;
|
|
120
|
+
/**
|
|
121
|
+
* 样式
|
|
122
|
+
*/
|
|
123
|
+
style?: CSSProperties;
|
|
124
|
+
/**
|
|
125
|
+
* class
|
|
126
|
+
*/
|
|
127
|
+
className?: string;
|
|
128
|
+
/**
|
|
129
|
+
* 默认数据
|
|
130
|
+
*/
|
|
131
|
+
default?: PlainObject;
|
|
132
|
+
};
|
|
133
|
+
export type DFormContextProps = Omit<DRootProps, 'cId'> & {
|
|
134
|
+
/**
|
|
135
|
+
* 下载文件
|
|
136
|
+
* @param url
|
|
137
|
+
* @param postParam
|
|
138
|
+
* @returns
|
|
139
|
+
*/
|
|
140
|
+
download?: (url: string, postParam?: PlainObject) => void;
|
|
141
|
+
};
|
|
142
|
+
export type DFormContext = Omit<DFormProps, 'setTempFunc' | 'getTempFunc' | 'onFormChange' | 'onDataChange'> & MethodRef & {
|
|
143
|
+
/**
|
|
144
|
+
* 更新schema
|
|
145
|
+
* @param schema
|
|
146
|
+
* @returns
|
|
147
|
+
*/
|
|
148
|
+
setInitSchema: (schema: FormSchemaType) => any;
|
|
149
|
+
/**
|
|
150
|
+
* 更新初始化数据
|
|
151
|
+
* @param data
|
|
152
|
+
* @returns
|
|
153
|
+
*/
|
|
154
|
+
setInitData: (data: PlainObject) => any;
|
|
155
|
+
setInitConfig: (config: PlainObject) => any;
|
|
156
|
+
/**
|
|
157
|
+
* 下载文件
|
|
158
|
+
* @param url
|
|
159
|
+
* @param postParam
|
|
160
|
+
* @returns
|
|
161
|
+
*/
|
|
162
|
+
download: (url: string, postParam?: PlainObject) => void;
|
|
163
|
+
getExpValue: (eValue: any, fValue?: any) => any;
|
|
164
|
+
callExpValue: (eValue: any) => any;
|
|
165
|
+
/**
|
|
166
|
+
* 执行事件
|
|
167
|
+
* @param func
|
|
168
|
+
* @returns
|
|
169
|
+
*/
|
|
170
|
+
callEvent: (func: any, fValue?: any, init?: any, cId?: any) => void;
|
|
171
|
+
/**执行自定义函数 */
|
|
172
|
+
callTemplateFunc: (tValue: any, fValue?: any) => any;
|
|
173
|
+
/**生成自定义函数 */
|
|
174
|
+
getTemplateFunc: (tValue: any) => any;
|
|
175
|
+
/**
|
|
176
|
+
* 是否重新初始化了数据
|
|
177
|
+
*/
|
|
178
|
+
InitStatu?: number;
|
|
179
|
+
/**
|
|
180
|
+
* 错误消息
|
|
181
|
+
*/
|
|
182
|
+
getErrMsg: () => any;
|
|
183
|
+
/**
|
|
184
|
+
* 错误报告
|
|
185
|
+
* @param title 控件名称
|
|
186
|
+
* @param msg 错误消息
|
|
187
|
+
* @returns
|
|
188
|
+
*/
|
|
189
|
+
errReport: (title: string, msg: string) => void;
|
|
190
|
+
/**
|
|
191
|
+
* 比较版本号
|
|
192
|
+
* @param useVersion
|
|
193
|
+
* @param newVersion
|
|
194
|
+
* @returns newVersion 《= useVersion 返回 true
|
|
195
|
+
*/
|
|
196
|
+
compareVersion: (useVersion: string, newVersion: string) => boolean;
|
|
197
|
+
/**
|
|
198
|
+
* 比较ip
|
|
199
|
+
* @param startIp
|
|
200
|
+
* @param endIp
|
|
201
|
+
* @returns 0:相等 1:大 -1:小
|
|
202
|
+
*/
|
|
203
|
+
compareIp: (startIp: string, endIp: string) => number;
|
|
204
|
+
/**
|
|
205
|
+
* 获取组件的参数篇
|
|
206
|
+
* @param cId 组件id
|
|
207
|
+
* @returns
|
|
208
|
+
*/
|
|
209
|
+
getOption: (cId: string, cType?: string, props?: any) => PlainObject;
|
|
210
|
+
/**
|
|
211
|
+
* 获取文件信息
|
|
212
|
+
* @param fId
|
|
213
|
+
* @param isDrawer 是否弹窗使用
|
|
214
|
+
* @returns
|
|
215
|
+
*/
|
|
216
|
+
getFile: (fId: string, isDrawer?: boolean) => PlainObject;
|
|
217
|
+
/**
|
|
218
|
+
* 设置文件信息
|
|
219
|
+
* @param fId
|
|
220
|
+
* @param fInfo
|
|
221
|
+
* @returns
|
|
222
|
+
*/
|
|
223
|
+
setFile: (fId: string, nInfo?: PlainObject) => string;
|
|
224
|
+
/**
|
|
225
|
+
* 集合转对象
|
|
226
|
+
* @param aJson
|
|
227
|
+
* @param idAlias id别名 id=id时保留id
|
|
228
|
+
* @returns
|
|
229
|
+
*/
|
|
230
|
+
ArrayToObject: (aJson: any, idAlias?: string) => any;
|
|
231
|
+
/**
|
|
232
|
+
* 对象转集合
|
|
233
|
+
* @param oJson
|
|
234
|
+
* @param idAlias id别名 id=id时保留id
|
|
235
|
+
* @returns
|
|
236
|
+
*/
|
|
237
|
+
ObjectToArray: (oJson: any, idAlias?: string) => any;
|
|
238
|
+
/**
|
|
239
|
+
* 根据属性(默认:dataKey)找控件Id
|
|
240
|
+
*/
|
|
241
|
+
getId: (attrValue: string, attrName?: string, cType?: string) => string;
|
|
242
|
+
/**
|
|
243
|
+
* 正则验证
|
|
244
|
+
* @returns
|
|
245
|
+
*/
|
|
246
|
+
regExpTest: (rules: any, nValue: any) => any;
|
|
247
|
+
};
|
|
248
|
+
export type DFormComponent = ForwardRefExoticComponent<DFormProps & RefAttributes<DFormRef>>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { DMethodRef, DBaseProps } from "./types";
|
|
2
|
+
import type { ForwardRefExoticComponent, RefAttributes, CSSProperties } from "react";
|
|
3
|
+
export type DIconProps = Omit<DBaseProps, 'br' | 'disabled' | 'required' | 'width' | 'height' | 'onChange'> & {
|
|
4
|
+
/**
|
|
5
|
+
* 大小
|
|
6
|
+
*/
|
|
7
|
+
size?: string;
|
|
8
|
+
/**
|
|
9
|
+
* 颜色
|
|
10
|
+
*/
|
|
11
|
+
color?: string;
|
|
12
|
+
/**
|
|
13
|
+
* 图片地址
|
|
14
|
+
*/
|
|
15
|
+
url?: string;
|
|
16
|
+
/**
|
|
17
|
+
* fromId
|
|
18
|
+
*/
|
|
19
|
+
fromId?: string;
|
|
20
|
+
/**
|
|
21
|
+
* 点击事件
|
|
22
|
+
*/
|
|
23
|
+
onClick?: () => void;
|
|
24
|
+
/**
|
|
25
|
+
* 图片css样式
|
|
26
|
+
*/
|
|
27
|
+
uStyle?: CSSProperties;
|
|
28
|
+
/**
|
|
29
|
+
* 空值隐藏 0否 1是
|
|
30
|
+
*/
|
|
31
|
+
uEmpty?: '0' | '1';
|
|
32
|
+
};
|
|
33
|
+
export type DIconComponent = ForwardRefExoticComponent<DIconProps & RefAttributes<DMethodRef>>;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { DBaseProps, DMethodRef, RegExpType } from "./types";
|
|
2
|
+
import type { ForwardRefExoticComponent, RefAttributes } from "react";
|
|
3
|
+
export type DInputProps = DBaseProps & {
|
|
4
|
+
/**
|
|
5
|
+
* 文本框类型 0文本框 1数字文本框 2文本域 3加密密码框 4密码框 默认0
|
|
6
|
+
*/
|
|
7
|
+
nType?: '0' | '1' | '2' | '3' | '4';
|
|
8
|
+
/**
|
|
9
|
+
* 最小值
|
|
10
|
+
*/
|
|
11
|
+
min?: number;
|
|
12
|
+
/**
|
|
13
|
+
* 最大值
|
|
14
|
+
*/
|
|
15
|
+
max?: number;
|
|
16
|
+
/**
|
|
17
|
+
* 非空默认值
|
|
18
|
+
*/
|
|
19
|
+
requiredDefValue?: any;
|
|
20
|
+
/**
|
|
21
|
+
* 绑定Key
|
|
22
|
+
*/
|
|
23
|
+
rules?: RegExpType;
|
|
24
|
+
/**
|
|
25
|
+
* 提示文字
|
|
26
|
+
*/
|
|
27
|
+
placeholder?: string;
|
|
28
|
+
/**
|
|
29
|
+
* 只读 1是 0否 默认0
|
|
30
|
+
*/
|
|
31
|
+
readOnly?: '0' | '1';
|
|
32
|
+
/**
|
|
33
|
+
* 大小 1是 0否 默认0
|
|
34
|
+
*/
|
|
35
|
+
size?: 'large' | 'middle' | 'small';
|
|
36
|
+
/**
|
|
37
|
+
* 绑定Key 1是 0否 默认0
|
|
38
|
+
*/
|
|
39
|
+
trim?: '0' | '1';
|
|
40
|
+
};
|
|
41
|
+
export type DInputComponent = ForwardRefExoticComponent<DInputProps & RefAttributes<DMethodRef>>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { DBaseProps, DMethodRef } from "./types";
|
|
2
|
+
import type { ForwardRefExoticComponent, RefAttributes } from "react";
|
|
3
|
+
export type DLabelProps = Omit<DBaseProps, 'dataKey' | 'disabled' | 'required' | 'height' | 'onChange'> & {
|
|
4
|
+
/**
|
|
5
|
+
* 格式化
|
|
6
|
+
*/
|
|
7
|
+
format?: string;
|
|
8
|
+
/**
|
|
9
|
+
* 提示文字
|
|
10
|
+
*/
|
|
11
|
+
tipText?: string;
|
|
12
|
+
/**
|
|
13
|
+
* 对齐方式 left左 center中 right右
|
|
14
|
+
*/
|
|
15
|
+
align?: 'left' | 'center' | 'right';
|
|
16
|
+
};
|
|
17
|
+
export type DLabelComponent = ForwardRefExoticComponent<DLabelProps & RefAttributes<DMethodRef>>;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import type { DBaseProps, DMethodRef } from "./types";
|
|
2
|
+
import type { ForwardRefExoticComponent, RefAttributes } from "react";
|
|
3
|
+
import type { PlainObject } from "../../basetype";
|
|
4
|
+
export type DPTableProps = Omit<DBaseProps, 'onChange'> & {
|
|
5
|
+
/**
|
|
6
|
+
* 选项
|
|
7
|
+
*/
|
|
8
|
+
options?: PlainObject;
|
|
9
|
+
/**
|
|
10
|
+
* 默认值
|
|
11
|
+
*/
|
|
12
|
+
dVal?: string;
|
|
13
|
+
/**
|
|
14
|
+
* 页签样式 card 选项卡
|
|
15
|
+
*/
|
|
16
|
+
showType?: 'card';
|
|
17
|
+
/**
|
|
18
|
+
* 显示大小 large大 default中 small小
|
|
19
|
+
*/
|
|
20
|
+
showSize?: 'large' | 'default' | 'small';
|
|
21
|
+
/**
|
|
22
|
+
* 页签位置 top顶 right右 bottom底 left左
|
|
23
|
+
*/
|
|
24
|
+
position?: 'top' | 'right' | 'bottom' | 'left左';
|
|
25
|
+
/**
|
|
26
|
+
* 关联显示
|
|
27
|
+
*/
|
|
28
|
+
display?: string;
|
|
29
|
+
/**
|
|
30
|
+
* 显示列
|
|
31
|
+
*/
|
|
32
|
+
cols?: PlainObject;
|
|
33
|
+
/**
|
|
34
|
+
* 按钮
|
|
35
|
+
*/
|
|
36
|
+
btns?: PlainObject;
|
|
37
|
+
/**
|
|
38
|
+
* 分页 0否 1是
|
|
39
|
+
*/
|
|
40
|
+
page?: '0' | '1';
|
|
41
|
+
/**
|
|
42
|
+
* 显示序号 0否 1是
|
|
43
|
+
*/
|
|
44
|
+
showIndex?: '0' | '1';
|
|
45
|
+
/**
|
|
46
|
+
* 查重小写 0否 1是
|
|
47
|
+
*/
|
|
48
|
+
distLower?: '0' | '1';
|
|
49
|
+
/**
|
|
50
|
+
* 最大行数
|
|
51
|
+
*/
|
|
52
|
+
maxRow?: number;
|
|
53
|
+
/**
|
|
54
|
+
* 自定义查重
|
|
55
|
+
*/
|
|
56
|
+
distRow?: (cArgs: any) => string | boolean;
|
|
57
|
+
/**
|
|
58
|
+
* 数据分隔符 格式 行列用-连接
|
|
59
|
+
*/
|
|
60
|
+
dataSplit?: string;
|
|
61
|
+
/**
|
|
62
|
+
* 自定义分隔符 数据分隔符中默认使用 - 作为行列分割,可自定义成其它分隔符
|
|
63
|
+
*/
|
|
64
|
+
symbol?: string;
|
|
65
|
+
/**
|
|
66
|
+
* 集合转对象 0否 1是
|
|
67
|
+
*/
|
|
68
|
+
convert?: '0' | '1';
|
|
69
|
+
/**
|
|
70
|
+
* id别名
|
|
71
|
+
*/
|
|
72
|
+
idAlias?: string;
|
|
73
|
+
/**
|
|
74
|
+
* 序号别名
|
|
75
|
+
*/
|
|
76
|
+
numberAlias?: string;
|
|
77
|
+
/**
|
|
78
|
+
* 操作之后事件
|
|
79
|
+
*/
|
|
80
|
+
actionChange?: (cArgs: any) => void;
|
|
81
|
+
/**
|
|
82
|
+
* 丢失空值 0否 1是
|
|
83
|
+
*/
|
|
84
|
+
delEmpty?: '0' | '1';
|
|
85
|
+
};
|
|
86
|
+
export type DPTableComponent = ForwardRefExoticComponent<DPTableProps & RefAttributes<DMethodRef>>;
|