cnhis-design-vue 3.1.14 → 3.1.15-beta.10
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/es/packages/annotation-edit/src/AnnotationEdit.js +2 -1
- package/es/packages/big-table/index.d.ts +8 -11
- package/es/packages/big-table/src/BigTable.vue.d.ts +24 -19
- package/es/packages/big-table/src/BigTable.vue_vue_type_script_setup_true_lang.js +17 -11
- package/es/packages/big-table/src/bigTableProps.d.ts +4 -3
- package/es/packages/big-table/src/bigTableProps.js +1 -1
- package/es/packages/big-table/src/components/edit-form/edit-date.js +13 -4
- package/es/packages/big-table/src/components/edit-form/edit-select.js +2 -1
- package/es/packages/big-table/src/components/edit-form/edit-separate.js +18 -9
- package/es/packages/big-table/src/components/edit-form/edit-separate.vue.d.ts +3 -1
- package/es/packages/big-table/src/hooks/useAnnotation.d.ts +4 -0
- package/es/packages/big-table/src/hooks/useAnnotation.js +21 -0
- package/es/packages/big-table/src/hooks/useColumnConfigAdaptor.js +51 -36
- package/es/packages/big-table/src/hooks/useEdit.d.ts +3 -1
- package/es/packages/big-table/src/hooks/useFormat.js +8 -1
- package/es/packages/big-table/style/index.css +38 -1
- package/es/packages/bpmn-workflow/src/BpmnWorkflow.js +2 -2
- package/es/packages/bpmn-workflow/src/custom/customModeler/customBpmn/BpmnRenderer.js +8 -8
- package/es/packages/bpmn-workflow/src/custom/customModeler/customBpmn/CustomContextPadProvider.js +2 -2
- package/es/packages/bpmn-workflow/src/custom/customModeler/customBpmn/CustomPalette.js +1 -1
- package/es/packages/bpmn-workflow/src/custom/customModeler/customBpmn/CustomRenderer.js +4 -3
- package/es/packages/bpmn-workflow/src/custom/customModeler/customBpmn/CustomRules.js +2 -2
- package/es/packages/bpmn-workflow/src/custom/customModeler/index.js +1 -1
- package/es/packages/bpmn-workflow/src/custom/customOtherModule/CustomPopupMenu.js +2 -2
- package/es/packages/bpmn-workflow/src/custom/customOtherModule/zoomScroll.js +3 -3
- package/es/packages/button-print/src/utils/print.d.ts +1 -1
- package/es/packages/button-print/src/utils/print.js +1 -1
- package/es/packages/fabric-chart/index.d.ts +1 -0
- package/es/packages/fabric-chart/src/FabricChart.js +17 -17
- package/es/packages/fabric-chart/src/FabricChart.vue.d.ts +12 -10
- package/es/packages/fabric-chart/src/hooks/useCenter.js +35 -73
- package/es/packages/fabric-chart/src/hooks/useCumputedPoint.js +4 -2
- package/es/packages/fabric-chart/src/hooks/useDraw.js +1 -0
- package/es/packages/fabric-chart/src/hooks/useLeft.js +5 -4
- package/es/packages/field-set/index.d.ts +4365 -0
- package/es/packages/field-set/src/FieldSet.js +53 -54
- package/es/packages/field-set/src/FieldSet.vue.d.ts +4365 -0
- package/es/packages/field-set/style/index.css +0 -9
- package/es/packages/form-config/index.d.ts +12111 -0
- package/es/packages/form-config/index.js +10 -0
- package/es/packages/form-config/src/FormConfig.js +113 -0
- package/es/packages/form-config/src/FormConfig.vue.d.ts +12113 -0
- package/es/packages/form-config/src/components/FormConfigCreator.js +97 -0
- package/es/packages/form-config/src/components/FormConfigCreator.vue.d.ts +5094 -0
- package/es/packages/form-config/src/components/FormConfigEdit.js +81 -0
- package/es/packages/form-config/src/components/FormConfigEdit.vue.d.ts +3591 -0
- package/es/packages/form-config/src/constants/index.d.ts +28 -0
- package/es/packages/form-config/src/constants/index.js +28 -0
- package/es/packages/form-config/src/hooks/index.d.ts +2 -0
- package/es/packages/form-config/src/hooks/index.js +2 -0
- package/es/packages/form-config/src/hooks/useConfigurationField.d.ts +6 -0
- package/es/packages/form-config/src/hooks/useConfigurationField.js +103 -0
- package/es/packages/form-config/src/hooks/usePresetRenderer.d.ts +5 -0
- package/es/packages/form-config/src/hooks/usePresetRenderer.js +117 -0
- package/es/packages/form-config/src/hooks/useSortable.d.ts +11 -0
- package/es/packages/form-config/src/hooks/useSortable.js +31 -0
- package/es/packages/form-config/src/types/index.d.ts +18 -0
- package/es/packages/form-config/src/types/index.js +1 -0
- package/es/packages/form-config/style/index.css +108 -0
- package/es/packages/form-render/index.d.ts +24 -3
- package/es/packages/form-render/src/FormRender.js +25 -6
- package/es/packages/form-render/src/FormRender.vue.d.ts +24 -3
- package/es/packages/form-render/src/components/renderer/cascader.js +7 -7
- package/es/packages/form-render/src/components/renderer/combination/hooks/useDeepValidate.d.ts +5 -0
- package/es/packages/form-render/src/components/renderer/combination/hooks/useDeepValidate.js +32 -0
- package/es/packages/form-render/src/components/renderer/{combination.d.ts → combination/index.d.ts} +7 -1
- package/es/packages/form-render/src/components/renderer/combination/index.js +157 -0
- package/es/packages/form-render/src/components/renderer/complex.d.ts +2 -0
- package/es/packages/form-render/src/components/renderer/complex.js +2 -5
- package/es/packages/form-render/src/components/renderer/date.d.ts +29 -0
- package/es/packages/form-render/src/components/renderer/date.js +63 -56
- package/es/packages/form-render/src/components/renderer/formItem.js +3 -3
- package/es/packages/form-render/src/components/renderer/index.js +1 -1
- package/es/packages/form-render/src/components/renderer/radio.js +4 -1
- package/es/packages/form-render/src/components/renderer/select.d.ts +9 -0
- package/es/packages/form-render/src/components/renderer/select.js +28 -17
- package/es/packages/form-render/src/constants/index.d.ts +2 -1
- package/es/packages/form-render/src/hooks/useAnchor.d.ts +7 -6
- package/es/packages/form-render/src/hooks/useAnchor.js +1 -2
- package/es/packages/form-render/src/hooks/useAsyncQueue.d.ts +6 -1
- package/es/packages/form-render/src/hooks/useAsyncQueue.js +12 -7
- package/es/packages/form-render/src/hooks/useCommonInjection.d.ts +6 -0
- package/es/packages/form-render/src/hooks/useCommonInjection.js +19 -0
- package/es/packages/form-render/src/hooks/useFieldListAdaptor.js +9 -7
- package/es/packages/form-render/src/hooks/useFormContext.d.ts +3 -3
- package/es/packages/form-render/src/hooks/useFormContext.js +21 -3
- package/es/packages/form-render/src/hooks/useFormRenderLifeCycle.d.ts +13 -0
- package/es/packages/form-render/src/hooks/useFormRenderLifeCycle.js +10 -0
- package/es/packages/form-render/src/types/fieldItem.d.ts +33 -4
- package/es/packages/form-render/src/types/index.d.ts +30 -2
- package/es/packages/form-render/src/utils/index.d.ts +8 -5
- package/es/packages/form-render/src/utils/index.js +64 -13
- package/es/packages/form-render/style/index.css +11 -10
- package/es/packages/form-table/src/hooks/useNuiThemeOverrides.js +1 -1
- package/es/packages/index.css +158 -21
- package/es/packages/index.d.ts +3 -1
- package/es/packages/index.js +4 -1
- package/es/packages/info-header/index.d.ts +1 -3
- package/es/packages/info-header/src/HiddenContent.js +1 -1
- package/es/packages/info-header/src/HiddenContent.vue.d.ts +1 -3
- package/es/packages/info-header/src/InfoHeader.vue.d.ts +1 -3
- package/es/packages/info-header/style/index.css +1 -1
- package/es/packages/shortcut-provider/index.d.ts +2 -11
- package/es/packages/shortcut-provider/src/ShortcutProvider.js +1 -5
- package/es/packages/shortcut-provider/src/ShortcutProvider.vue.d.ts +2 -11
- package/es/packages/shortcut-provider/src/hooks/useShortcuts.d.ts +11 -8
- package/es/packages/shortcut-provider/src/hooks/useShortcuts.js +44 -28
- package/es/packages/shortcut-provider/src/types/index.d.ts +32 -4
- package/es/packages/shortcut-provider/src/utils/index.d.ts +3 -0
- package/es/packages/shortcut-provider/src/utils/index.js +15 -5
- package/es/packages/shortcut-setter/index.d.ts +32 -9
- package/es/packages/shortcut-setter/src/ShortcutSetter.vue.d.ts +32 -9
- package/es/packages/shortcut-setter/src/ShortcutSetterItem.js +8 -6
- package/es/packages/shortcut-setter/src/ShortcutSetterItem.vue.d.ts +8 -6
- package/es/src/utils/state.d.ts +29 -0
- package/es/src/utils/state.js +44 -0
- package/package.json +10 -1
- package/es/_virtual/_commonjsHelpers.js +0 -7
- package/es/_virtual/css.escape.js +0 -3
- package/es/_virtual/inherits.js +0 -3
- package/es/_virtual/inherits_browser.js +0 -3
- package/es/node_modules/@formily/path/esm/contexts.js +0 -22
- package/es/node_modules/@formily/path/esm/destructor.js +0 -124
- package/es/node_modules/@formily/path/esm/index.js +0 -579
- package/es/node_modules/@formily/path/esm/matcher.js +0 -199
- package/es/node_modules/@formily/path/esm/parser.js +0 -402
- package/es/node_modules/@formily/path/esm/shared.js +0 -73
- package/es/node_modules/@formily/path/esm/tokenizer.js +0 -287
- package/es/node_modules/@formily/path/esm/tokens.js +0 -240
- package/es/node_modules/@formily/path/esm/types.js +0 -17
- package/es/node_modules/css.escape/css.escape.js +0 -110
- package/es/node_modules/date-fns/esm/_lib/defaultOptions/index.js +0 -6
- package/es/node_modules/date-fns/esm/_lib/getTimezoneOffsetInMilliseconds/index.js +0 -18
- package/es/node_modules/date-fns/esm/_lib/getUTCISOWeek/index.js +0 -17
- package/es/node_modules/date-fns/esm/_lib/getUTCISOWeekYear/index.js +0 -27
- package/es/node_modules/date-fns/esm/_lib/getUTCWeek/index.js +0 -17
- package/es/node_modules/date-fns/esm/_lib/getUTCWeekYear/index.js +0 -38
- package/es/node_modules/date-fns/esm/_lib/requiredArgs/index.js +0 -7
- package/es/node_modules/date-fns/esm/_lib/setUTCDay/index.js +0 -27
- package/es/node_modules/date-fns/esm/_lib/setUTCISODay/index.js +0 -23
- package/es/node_modules/date-fns/esm/_lib/setUTCISOWeek/index.js +0 -15
- package/es/node_modules/date-fns/esm/_lib/setUTCWeek/index.js +0 -15
- package/es/node_modules/date-fns/esm/_lib/startOfUTCISOWeek/index.js +0 -15
- package/es/node_modules/date-fns/esm/_lib/startOfUTCISOWeekYear/index.js +0 -15
- package/es/node_modules/date-fns/esm/_lib/startOfUTCWeek/index.js +0 -25
- package/es/node_modules/date-fns/esm/_lib/startOfUTCWeekYear/index.js +0 -21
- package/es/node_modules/date-fns/esm/_lib/toInteger/index.js +0 -15
- package/es/node_modules/date-fns/esm/compareAsc/index.js +0 -52
- package/es/node_modules/date-fns/esm/constants/index.js +0 -40
- package/es/node_modules/date-fns/esm/differenceInCalendarDays/index.js +0 -49
- package/es/node_modules/date-fns/esm/differenceInCalendarMonths/index.js +0 -35
- package/es/node_modules/date-fns/esm/differenceInCalendarYears/index.js +0 -33
- package/es/node_modules/date-fns/esm/differenceInDays/index.js +0 -86
- package/es/node_modules/date-fns/esm/differenceInMonths/index.js +0 -59
- package/es/node_modules/date-fns/esm/differenceInYears/index.js +0 -43
- package/es/node_modules/date-fns/esm/endOfDay/index.js +0 -30
- package/es/node_modules/date-fns/esm/endOfMonth/index.js +0 -32
- package/es/node_modules/date-fns/esm/isLastDayOfMonth/index.js +0 -30
- package/es/node_modules/date-fns/esm/parse/_lib/Parser.js +0 -32
- package/es/node_modules/date-fns/esm/parse/_lib/Setter.js +0 -37
- package/es/node_modules/date-fns/esm/parse/_lib/constants.js +0 -48
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/AMPMMidnightParser.js +0 -55
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/AMPMParser.js +0 -55
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/DateParser.js +0 -55
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/DayOfYearParser.js +0 -52
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/DayParser.js +0 -80
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/DayPeriodParser.js +0 -56
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/EraParser.js +0 -53
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/ExtendedYearParser.js +0 -30
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/FractionOfSecondParser.js +0 -29
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/Hour0To11Parser.js +0 -48
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/Hour0to23Parser.js +0 -41
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/Hour1To24Parser.js +0 -42
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/Hour1to12Parser.js +0 -50
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/ISODayParser.js +0 -99
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/ISOTimezoneParser.js +0 -46
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/ISOTimezoneWithZParser.js +0 -46
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/ISOWeekParser.js +0 -43
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/ISOWeekYearParser.js +0 -33
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/LocalDayParser.js +0 -96
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/LocalWeekParser.js +0 -43
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/LocalWeekYearParser.js +0 -61
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/MinuteParser.js +0 -41
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/MonthParser.js +0 -80
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/QuarterParser.js +0 -73
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/SecondParser.js +0 -41
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/StandAloneLocalDayParser.js +0 -96
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/StandAloneMonthParser.js +0 -80
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/StandAloneQuarterParser.js +0 -73
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/TimestampMillisecondsParser.js +0 -26
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/TimestampSecondsParser.js +0 -26
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/YearParser.js +0 -66
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/index.js +0 -109
- package/es/node_modules/date-fns/esm/parse/_lib/utils.js +0 -133
- package/es/node_modules/date-fns/esm/startOfDay/index.js +0 -30
- package/es/node_modules/date-fns/esm/toDate/index.js +0 -55
- package/es/node_modules/diagram-js/lib/command/CommandInterceptor.js +0 -139
- package/es/node_modules/diagram-js/lib/draw/BaseRenderer.js +0 -88
- package/es/node_modules/diagram-js/lib/features/popup-menu/PopupMenu.js +0 -591
- package/es/node_modules/diagram-js/lib/features/rules/RuleProvider.js +0 -88
- package/es/node_modules/diagram-js/lib/navigation/movecanvas/MoveCanvas.js +0 -120
- package/es/node_modules/diagram-js/lib/navigation/movecanvas/index.js +0 -8
- package/es/node_modules/diagram-js/lib/navigation/zoomscroll/ZoomScroll.js +0 -227
- package/es/node_modules/diagram-js/lib/navigation/zoomscroll/ZoomUtil.js +0 -24
- package/es/node_modules/diagram-js/lib/util/ClickTrap.js +0 -23
- package/es/node_modules/diagram-js/lib/util/Cursor.js +0 -20
- package/es/node_modules/diagram-js/lib/util/Event.js +0 -22
- package/es/node_modules/diagram-js/lib/util/Math.js +0 -9
- package/es/node_modules/diagram-js/lib/util/Mouse.js +0 -30
- package/es/node_modules/diagram-js/lib/util/Platform.js +0 -5
- package/es/node_modules/diagram-js/lib/util/PositionUtil.js +0 -8
- package/es/node_modules/diagram-js/lib/util/RenderUtil.js +0 -25
- package/es/node_modules/diagram-js/lib/util/SvgTransformUtil.js +0 -48
- package/es/node_modules/ids/dist/index.esm.js +0 -164
- package/es/node_modules/inherits/inherits.js +0 -19
- package/es/node_modules/inherits/inherits_browser.js +0 -38
- package/es/node_modules/inherits-browser/dist/index.es.js +0 -3
- package/es/node_modules/min-dash/dist/index.esm.js +0 -169
- package/es/node_modules/min-dom/dist/index.esm.js +0 -588
- package/es/node_modules/tiny-svg/dist/index.esm.js +0 -525
- package/es/packages/form-render/src/components/renderer/combination.js +0 -148
|
@@ -36,7 +36,8 @@ var script = defineComponent({
|
|
|
36
36
|
});
|
|
37
37
|
const isEdit = ref(false);
|
|
38
38
|
let clickTimer;
|
|
39
|
-
function iconClick() {
|
|
39
|
+
function iconClick(evt) {
|
|
40
|
+
evt.stopPropagation();
|
|
40
41
|
clearTimeout(clickTimer);
|
|
41
42
|
if (showPopper.value && isEdit.value) {
|
|
42
43
|
showPopper.value = false;
|
|
@@ -9,9 +9,8 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
9
9
|
type: NumberConstructor;
|
|
10
10
|
default: number;
|
|
11
11
|
};
|
|
12
|
-
|
|
13
|
-
type:
|
|
14
|
-
default: boolean;
|
|
12
|
+
annotation: {
|
|
13
|
+
type: import("vue").PropType<import("../../../es/src/types").AnyObject>;
|
|
15
14
|
};
|
|
16
15
|
showFooter: BooleanConstructor;
|
|
17
16
|
sumData: {
|
|
@@ -2595,9 +2594,8 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2595
2594
|
type: NumberConstructor;
|
|
2596
2595
|
default: number;
|
|
2597
2596
|
};
|
|
2598
|
-
|
|
2599
|
-
type:
|
|
2600
|
-
default: boolean;
|
|
2597
|
+
annotation: {
|
|
2598
|
+
type: import("vue").PropType<import("../../../es/src/types").AnyObject>;
|
|
2601
2599
|
};
|
|
2602
2600
|
showFooter: BooleanConstructor;
|
|
2603
2601
|
sumData: {
|
|
@@ -2945,7 +2943,8 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2945
2943
|
maskUp: (e: any) => void;
|
|
2946
2944
|
setGroupTreeExpand: () => void;
|
|
2947
2945
|
resetTableInlineEditStatus: () => false | undefined;
|
|
2948
|
-
|
|
2946
|
+
renderAnnotation: (columnConfig: import("../../../es/src/types").AnyObject) => JSX.Element | null;
|
|
2947
|
+
toolTipTitle: (item: any, type: any) => any[] | (() => any[]);
|
|
2949
2948
|
triggerExpand: (e: any, isExpand: any) => void;
|
|
2950
2949
|
getOtherConfigInit: () => any;
|
|
2951
2950
|
refreshTable: () => void;
|
|
@@ -4082,9 +4081,8 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
4082
4081
|
type: NumberConstructor;
|
|
4083
4082
|
default: number;
|
|
4084
4083
|
};
|
|
4085
|
-
|
|
4086
|
-
type:
|
|
4087
|
-
default: boolean;
|
|
4084
|
+
annotation: {
|
|
4085
|
+
type: import("vue").PropType<import("../../../es/src/types").AnyObject>;
|
|
4088
4086
|
};
|
|
4089
4087
|
showFooter: BooleanConstructor;
|
|
4090
4088
|
sumData: {
|
|
@@ -4281,7 +4279,6 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
4281
4279
|
columnConfig: Record<string, any>;
|
|
4282
4280
|
menuConfig: Record<string, any>;
|
|
4283
4281
|
maxCheckSize: number;
|
|
4284
|
-
checkboxBindRowClick: boolean;
|
|
4285
4282
|
sumData: Record<string, any>;
|
|
4286
4283
|
avgData: Record<string, any>;
|
|
4287
4284
|
refreshRow: number;
|
|
@@ -7,9 +7,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7
7
|
type: NumberConstructor;
|
|
8
8
|
default: number;
|
|
9
9
|
};
|
|
10
|
-
|
|
11
|
-
type:
|
|
12
|
-
default: boolean;
|
|
10
|
+
annotation: {
|
|
11
|
+
type: import("vue").PropType<import("../../../src/types").AnyObject>;
|
|
13
12
|
};
|
|
14
13
|
showFooter: BooleanConstructor;
|
|
15
14
|
sumData: {
|
|
@@ -1163,7 +1162,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1163
1162
|
paddingLarge: string;
|
|
1164
1163
|
paddingRoundTiny: string;
|
|
1165
1164
|
paddingRoundSmall: string;
|
|
1166
|
-
paddingRoundMedium: string;
|
|
1165
|
+
paddingRoundMedium: string; /**
|
|
1166
|
+
* 初始化props
|
|
1167
|
+
* @param {*} unionItem
|
|
1168
|
+
* @param {*} row
|
|
1169
|
+
* @param {*} column
|
|
1170
|
+
* @param {*} $rowIndex
|
|
1171
|
+
* @returns
|
|
1172
|
+
*/
|
|
1167
1173
|
paddingRoundLarge: string;
|
|
1168
1174
|
iconMarginTiny: string;
|
|
1169
1175
|
iconMarginSmall: string;
|
|
@@ -1252,9 +1258,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1252
1258
|
borderHoverPrimary: string;
|
|
1253
1259
|
borderPressedPrimary: string;
|
|
1254
1260
|
borderFocusPrimary: string;
|
|
1255
|
-
borderDisabledPrimary: string;
|
|
1256
|
-
* tsx渲染表格
|
|
1257
|
-
*/
|
|
1261
|
+
borderDisabledPrimary: string;
|
|
1258
1262
|
rippleColorPrimary: string;
|
|
1259
1263
|
colorInfo: string;
|
|
1260
1264
|
colorHoverInfo: string;
|
|
@@ -2595,9 +2599,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2595
2599
|
type: NumberConstructor;
|
|
2596
2600
|
default: number;
|
|
2597
2601
|
};
|
|
2598
|
-
|
|
2599
|
-
type:
|
|
2600
|
-
default: boolean;
|
|
2602
|
+
annotation: {
|
|
2603
|
+
type: import("vue").PropType<import("../../../src/types").AnyObject>;
|
|
2601
2604
|
};
|
|
2602
2605
|
showFooter: BooleanConstructor;
|
|
2603
2606
|
sumData: {
|
|
@@ -2945,7 +2948,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2945
2948
|
maskUp: (e: any) => void;
|
|
2946
2949
|
setGroupTreeExpand: () => void;
|
|
2947
2950
|
resetTableInlineEditStatus: () => false | undefined;
|
|
2948
|
-
|
|
2951
|
+
renderAnnotation: (columnConfig: import("../../../src/types").AnyObject) => JSX.Element | null;
|
|
2952
|
+
toolTipTitle: (item: any, type: any) => any[] | (() => any[]);
|
|
2949
2953
|
triggerExpand: (e: any, isExpand: any) => void;
|
|
2950
2954
|
getOtherConfigInit: () => any;
|
|
2951
2955
|
refreshTable: () => void;
|
|
@@ -3292,7 +3296,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3292
3296
|
buttonColor2: string;
|
|
3293
3297
|
buttonColor2Hover: string;
|
|
3294
3298
|
buttonColor2Pressed: string;
|
|
3295
|
-
boxShadow1: string;
|
|
3299
|
+
boxShadow1: string;
|
|
3300
|
+
boxShadow2: string;
|
|
3301
|
+
boxShadow3: string;
|
|
3302
|
+
/**
|
|
3296
3303
|
* 针对 bigTable 的设置列
|
|
3297
3304
|
* type: 列的类型
|
|
3298
3305
|
* field: 列字段名(注:属性层级越深,渲染性能将直线下降)
|
|
@@ -3308,8 +3315,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3308
3315
|
* formatter: 格式化显示内容 Function({cellValue, row, column})
|
|
3309
3316
|
* sortable: 是否允许列排序
|
|
3310
3317
|
*/
|
|
3311
|
-
boxShadow2: string;
|
|
3312
|
-
boxShadow3: string;
|
|
3313
3318
|
fontFamily: string;
|
|
3314
3319
|
fontFamilyMono: string;
|
|
3315
3320
|
fontWeight: string;
|
|
@@ -4061,7 +4066,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4061
4066
|
color: string;
|
|
4062
4067
|
opacity1Depth: string;
|
|
4063
4068
|
opacity2Depth: string;
|
|
4064
|
-
opacity3Depth: string;
|
|
4069
|
+
opacity3Depth: string; /**
|
|
4070
|
+
* computed
|
|
4071
|
+
*/
|
|
4065
4072
|
opacity4Depth: string;
|
|
4066
4073
|
opacity5Depth: string;
|
|
4067
4074
|
}, any>>;
|
|
@@ -4097,9 +4104,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4097
4104
|
type: NumberConstructor;
|
|
4098
4105
|
default: number;
|
|
4099
4106
|
};
|
|
4100
|
-
|
|
4101
|
-
type:
|
|
4102
|
-
default: boolean;
|
|
4107
|
+
annotation: {
|
|
4108
|
+
type: import("vue").PropType<import("../../../src/types").AnyObject>;
|
|
4103
4109
|
};
|
|
4104
4110
|
showFooter: BooleanConstructor;
|
|
4105
4111
|
sumData: {
|
|
@@ -4296,7 +4302,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4296
4302
|
columnConfig: Record<string, any>;
|
|
4297
4303
|
menuConfig: Record<string, any>;
|
|
4298
4304
|
maxCheckSize: number;
|
|
4299
|
-
checkboxBindRowClick: boolean;
|
|
4300
4305
|
sumData: Record<string, any>;
|
|
4301
4306
|
avgData: Record<string, any>;
|
|
4302
4307
|
refreshRow: number;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { defineComponent, ref, reactive, useAttrs, computed, onMounted, onUnmounted, onActivated, createVNode, h, resolveComponent, Teleport, createTextVNode, nextTick, watch, openBlock, createElementBlock, Fragment, createCommentVNode, createElementVNode, normalizeClass, normalizeStyle, unref, mergeProps, withCtx, renderSlot, createBlock, toDisplayString, withDirectives, vShow, isVNode } from 'vue';
|
|
2
2
|
import { isArray, isFunction } from 'lodash-es';
|
|
3
|
+
import { useAnnotation } from '../../../packages/big-table/src/hooks/useAnnotation';
|
|
3
4
|
import { useSeparateRow } from '../../../packages/big-table/src/hooks/useSeparateRow';
|
|
4
5
|
import bigTableState from './bigTableState.js';
|
|
5
6
|
import bigTableProps from './bigTableProps.js';
|
|
@@ -539,6 +540,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
539
540
|
row,
|
|
540
541
|
index: $rowIndex,
|
|
541
542
|
type: formType,
|
|
543
|
+
...col.componentProps || {},
|
|
542
544
|
onFormChange,
|
|
543
545
|
onClick: () => {
|
|
544
546
|
emit("formClick", {
|
|
@@ -950,6 +952,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
950
952
|
return false;
|
|
951
953
|
handleClickCancelBtnByInline();
|
|
952
954
|
};
|
|
955
|
+
const {
|
|
956
|
+
renderAnnotation
|
|
957
|
+
} = useAnnotation(props);
|
|
953
958
|
const toolTipTitle = (item, type) => {
|
|
954
959
|
var _a;
|
|
955
960
|
let name = item.formTitle || item.alias || item.title;
|
|
@@ -962,11 +967,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
962
967
|
isAlias = !!tooltipTitle;
|
|
963
968
|
}
|
|
964
969
|
if (type === "format")
|
|
965
|
-
return createVNode(TextOverTooltip, {
|
|
970
|
+
return [createVNode(TextOverTooltip, {
|
|
966
971
|
"tooltipTitle": tooltipTitle,
|
|
967
972
|
"content": name,
|
|
968
973
|
"isAlias": isAlias
|
|
969
|
-
}, null);
|
|
974
|
+
}, null), renderAnnotation(item)];
|
|
970
975
|
return () => {
|
|
971
976
|
return [createVNode(TextOverTooltip, {
|
|
972
977
|
"tooltipTitle": tooltipTitle,
|
|
@@ -977,7 +982,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
977
982
|
"component": state.isExpand && state.total < 1001 ? CaretDown : CaretForward,
|
|
978
983
|
"onClick": (e) => triggerExpand(e, state.isExpand)
|
|
979
984
|
}, null) : ""]
|
|
980
|
-
})];
|
|
985
|
+
}), renderAnnotation(item)];
|
|
981
986
|
};
|
|
982
987
|
};
|
|
983
988
|
const triggerExpand = (e, isExpand) => {
|
|
@@ -1341,9 +1346,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1341
1346
|
}
|
|
1342
1347
|
isAboutNestTable.value && emit("setNestLastClickTable", table, props.isNestTable, row[handleRowId.value], row);
|
|
1343
1348
|
emit("setNestTableClick", false);
|
|
1344
|
-
if (!props.checkboxBindRowClick) {
|
|
1345
|
-
return;
|
|
1346
|
-
}
|
|
1347
1349
|
if (props.isNestTable) {
|
|
1348
1350
|
table == null ? void 0 : table.setAllCheckboxRow(false);
|
|
1349
1351
|
nestHandleClickRow(table, data);
|
|
@@ -2314,7 +2316,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2314
2316
|
"span-method": colspanMethod,
|
|
2315
2317
|
"footer-span-method": footerRowspanMethod,
|
|
2316
2318
|
"tooltip-config": {
|
|
2317
|
-
enterable: false
|
|
2319
|
+
enterable: false,
|
|
2320
|
+
..._ctx.$attrs.tooltipConfig || {}
|
|
2318
2321
|
},
|
|
2319
2322
|
"checkbox-config": {
|
|
2320
2323
|
checkField: "checked",
|
|
@@ -2330,10 +2333,12 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2330
2333
|
checkField: "checked",
|
|
2331
2334
|
trigger: "cell",
|
|
2332
2335
|
reserve: true,
|
|
2333
|
-
highlight: true
|
|
2336
|
+
highlight: true,
|
|
2337
|
+
..._ctx.$attrs.radioConfig || {}
|
|
2334
2338
|
},
|
|
2335
2339
|
"scroll-y": {
|
|
2336
|
-
gt: 50
|
|
2340
|
+
gt: 50,
|
|
2341
|
+
..._ctx.$attrs.scrollY || {}
|
|
2337
2342
|
},
|
|
2338
2343
|
"row-style": unref(getRowStyle),
|
|
2339
2344
|
"edit-config": state.editConfig,
|
|
@@ -2343,7 +2348,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2343
2348
|
loadMethod: unref(loadExpandMethod),
|
|
2344
2349
|
toggleMethod: unref(toggleExpandMethod),
|
|
2345
2350
|
iconOpen: "iconfont icon-a-xitongtubiaozhediejian",
|
|
2346
|
-
iconClose: "iconfont icon-a-xitongtubiaotianjia"
|
|
2351
|
+
iconClose: "iconfont icon-a-xitongtubiaotianjia",
|
|
2352
|
+
..._ctx.$attrs.expandConfig || {}
|
|
2347
2353
|
},
|
|
2348
2354
|
"keyboard-config": _ctx.columnConfig.keyboardConfig || {},
|
|
2349
2355
|
"edit-rules": _ctx.columnConfig.editRules || {},
|
|
@@ -2413,7 +2419,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2413
2419
|
}
|
|
2414
2420
|
})]),
|
|
2415
2421
|
_: 3
|
|
2416
|
-
}, 16, ["height", "seq-config", "tree-config", "cell-class-name", "row-config", "show-footer", "checkbox-config", "row-style", "edit-config", "expand-config", "keyboard-config", "edit-rules", "menu-config", "onScroll", "onKeydown"]), createCommentVNode(" `${refreshRow}\u6761\u66F4\u65B0` "), withDirectives(createElementVNode("div", {
|
|
2422
|
+
}, 16, ["height", "seq-config", "tree-config", "cell-class-name", "row-config", "show-footer", "tooltip-config", "checkbox-config", "radio-config", "scroll-y", "row-style", "edit-config", "expand-config", "keyboard-config", "edit-rules", "menu-config", "onScroll", "onKeydown"]), createCommentVNode(" `${refreshRow}\u6761\u66F4\u65B0` "), withDirectives(createElementVNode("div", {
|
|
2417
2423
|
class: "refresh",
|
|
2418
2424
|
onClick: hanldeClickRefresh
|
|
2419
2425
|
}, [createVNode(unref(NIcon), {
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { AnyObject } from '../../../../es/src/types';
|
|
2
|
+
import { PropType } from 'vue';
|
|
1
3
|
declare const bigTableProps: {
|
|
2
4
|
data: {
|
|
3
5
|
type: ArrayConstructor;
|
|
@@ -7,9 +9,8 @@ declare const bigTableProps: {
|
|
|
7
9
|
type: NumberConstructor;
|
|
8
10
|
default: number;
|
|
9
11
|
};
|
|
10
|
-
|
|
11
|
-
type:
|
|
12
|
-
default: boolean;
|
|
12
|
+
annotation: {
|
|
13
|
+
type: PropType<AnyObject>;
|
|
13
14
|
};
|
|
14
15
|
showFooter: BooleanConstructor;
|
|
15
16
|
sumData: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const bigTableProps = {
|
|
2
2
|
data: { type: Array, default: () => [] },
|
|
3
3
|
maxCheckSize: { type: Number, default: 0 },
|
|
4
|
-
|
|
4
|
+
annotation: { type: Object },
|
|
5
5
|
showFooter: Boolean,
|
|
6
6
|
sumData: { type: Object, default: () => ({}) },
|
|
7
7
|
avgData: { type: Object, default: () => ({}) },
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { defineComponent, createVNode, mergeProps } from 'vue';
|
|
2
|
+
import { isFunction } from 'lodash-es';
|
|
2
3
|
import { NDatePicker } from 'naive-ui';
|
|
3
4
|
|
|
4
5
|
var EditDate = defineComponent({
|
|
@@ -94,16 +95,24 @@ var EditDate = defineComponent({
|
|
|
94
95
|
}
|
|
95
96
|
};
|
|
96
97
|
};
|
|
98
|
+
function customDateDisabledDecorator(customDateDisabled) {
|
|
99
|
+
if (!isFunction(customDateDisabled))
|
|
100
|
+
return null;
|
|
101
|
+
return (ts) => {
|
|
102
|
+
return customDateDisabled(ts, props.row);
|
|
103
|
+
};
|
|
104
|
+
}
|
|
97
105
|
const config = {
|
|
98
|
-
type: props.col.type || "datetime",
|
|
106
|
+
type: props.col.type || props.col.dateType || "datetime",
|
|
99
107
|
clearable: props.col.clearable || true,
|
|
100
108
|
disabled: props.col.disabled || false,
|
|
101
109
|
valueFormat: props.col.valueFormat || "yyyy-MM-dd HH:mm:ss",
|
|
102
|
-
isDateDisabled: props.col.isDateDisabled || isDateDisabled,
|
|
103
|
-
placeholder: props.col.placeholder || "\u8BF7\u9009\u62E9"
|
|
110
|
+
isDateDisabled: customDateDisabledDecorator(props.col.isDateDisabled) || isDateDisabled,
|
|
111
|
+
placeholder: props.col.placeholder || "\u8BF7\u9009\u62E9",
|
|
112
|
+
...props.col.componentProps || {}
|
|
104
113
|
};
|
|
105
114
|
if (config.type.includes("time")) {
|
|
106
|
-
config.isTimeDisabled = props.col.isTimeDisabled || isTimeDisabled;
|
|
115
|
+
config.isTimeDisabled = customDateDisabledDecorator(props.col.isTimeDisabled) || isTimeDisabled;
|
|
107
116
|
}
|
|
108
117
|
return () => createVNode(NDatePicker, mergeProps(attrs, config, {
|
|
109
118
|
"onUpdateFormattedValue": onConfirm
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, openBlock, createBlock, unref, withCtx, createVNode, withModifiers } from 'vue';
|
|
1
|
+
import { defineComponent, ref, watch, openBlock, createBlock, unref, withCtx, createVNode, withModifiers } from 'vue';
|
|
2
2
|
import SlotRender from '../../../../../src/components/SlotRender';
|
|
3
3
|
import { cloneDeep, isObject, isArray } from 'lodash-es';
|
|
4
4
|
import { NPopover, NInput } from 'naive-ui';
|
|
@@ -17,14 +17,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
17
17
|
setup(__props, { emit }) {
|
|
18
18
|
const props = __props;
|
|
19
19
|
const popoverRef = ref();
|
|
20
|
+
const show = ref(false);
|
|
21
|
+
function setShow(v) {
|
|
22
|
+
show.value = v;
|
|
23
|
+
}
|
|
24
|
+
watch(show, updateShow);
|
|
20
25
|
const editContent = ref();
|
|
21
26
|
const { getRowData } = useSeparateMap();
|
|
22
|
-
function updateShow(
|
|
27
|
+
async function updateShow(show2) {
|
|
28
|
+
var _a;
|
|
23
29
|
const target = getRowData(props.row);
|
|
24
30
|
if (!target)
|
|
25
31
|
return;
|
|
26
|
-
if (
|
|
32
|
+
if (show2) {
|
|
27
33
|
editContent.value = cloneDeep(target.row[props.col.field]);
|
|
34
|
+
await new Promise((resolve) => setTimeout(resolve));
|
|
35
|
+
(_a = popoverRef.value) == null ? void 0 : _a.syncPosition();
|
|
28
36
|
return;
|
|
29
37
|
}
|
|
30
38
|
const old = target.row[props.col.field];
|
|
@@ -52,14 +60,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
52
60
|
return openBlock(), createBlock(unref(NPopover), {
|
|
53
61
|
ref_key: "popoverRef",
|
|
54
62
|
ref: popoverRef,
|
|
55
|
-
trigger: "
|
|
56
|
-
|
|
57
|
-
"onUpdate:show":
|
|
63
|
+
trigger: "manual",
|
|
64
|
+
show: show.value,
|
|
65
|
+
"onUpdate:show": _cache[3] || (_cache[3] = ($event) => show.value = $event),
|
|
66
|
+
"show-arrow": false
|
|
58
67
|
}, {
|
|
59
68
|
trigger: withCtx(() => [
|
|
60
69
|
createVNode(Separate, {
|
|
61
|
-
onClick: _cache[0] || (_cache[0] = withModifiers(() =>
|
|
62
|
-
}, ["stop"])),
|
|
70
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => show.value = !show.value, ["stop"])),
|
|
63
71
|
style,
|
|
64
72
|
col: __props.col,
|
|
65
73
|
row: __props.row
|
|
@@ -71,6 +79,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
71
79
|
renderer: __props.col.separateSlot,
|
|
72
80
|
value: editContent.value,
|
|
73
81
|
"onUpdate:value": _cache[1] || (_cache[1] = ($event) => editContent.value = $event),
|
|
82
|
+
"onUpdate:show": setShow,
|
|
74
83
|
col: __props.col,
|
|
75
84
|
row: __props.row
|
|
76
85
|
}, null, 8, ["renderer", "value", "col", "row"])) : (openBlock(), createBlock(unref(NInput), {
|
|
@@ -81,7 +90,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
81
90
|
}, null, 8, ["value"]))
|
|
82
91
|
]),
|
|
83
92
|
_: 1
|
|
84
|
-
},
|
|
93
|
+
}, 8, ["show"]);
|
|
85
94
|
};
|
|
86
95
|
}
|
|
87
96
|
});
|
|
@@ -31,6 +31,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
31
31
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
32
32
|
}>>;
|
|
33
33
|
popoverRef: import("vue").Ref<any>;
|
|
34
|
+
show: import("vue").Ref<boolean>;
|
|
35
|
+
setShow: (v: boolean) => void;
|
|
34
36
|
emit: (event: "formChange", ...args: any[]) => void;
|
|
35
37
|
editContent: import("vue").Ref<any>;
|
|
36
38
|
getRowData: (row: AnyObject) => {
|
|
@@ -39,7 +41,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
39
41
|
rawRow: AnyObject;
|
|
40
42
|
row: AnyObject;
|
|
41
43
|
} | undefined;
|
|
42
|
-
updateShow: (show: boolean) => void
|
|
44
|
+
updateShow: (show: boolean) => Promise<void>;
|
|
43
45
|
style: CSSProperties;
|
|
44
46
|
SlotRender: import("vue").DefineComponent<{
|
|
45
47
|
renderer: {
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { createVNode } from 'vue';
|
|
2
|
+
import { isObject } from '@vue/shared';
|
|
3
|
+
import Annotation from '../../../annotation-edit/index.js';
|
|
4
|
+
|
|
5
|
+
function useAnnotation(props) {
|
|
6
|
+
function renderAnnotation(columnConfig) {
|
|
7
|
+
if (!isObject(props.annotation) || columnConfig.annotation === false)
|
|
8
|
+
return null;
|
|
9
|
+
return createVNode("section", {
|
|
10
|
+
"class": "big-table__annotationWrapper"
|
|
11
|
+
}, [createVNode(Annotation, {
|
|
12
|
+
"modelValue": props.annotation[columnConfig.columnName],
|
|
13
|
+
"onUpdate:modelValue": ($event) => props.annotation[columnConfig.columnName] = $event
|
|
14
|
+
}, null)]);
|
|
15
|
+
}
|
|
16
|
+
return {
|
|
17
|
+
renderAnnotation
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export { useAnnotation };
|
|
@@ -31,50 +31,65 @@ function useColumnConfigAdaptor() {
|
|
|
31
31
|
...["INPUT"].map((type) => [type, "input"]),
|
|
32
32
|
...["DIGITAL"].map((type) => [type, "number"])
|
|
33
33
|
]);
|
|
34
|
-
const
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
34
|
+
const isNullHandler = (value, result, _fieldItem, _editRules) => {
|
|
35
|
+
if (value === "1")
|
|
36
|
+
return;
|
|
37
|
+
if (value === "0")
|
|
38
|
+
_editRules[_fieldItem.val_key] = [{ required: true, message: "\u5FC5\u586B" }];
|
|
39
|
+
};
|
|
40
|
+
const validateHandler = (value, result) => {
|
|
41
|
+
if (!isObject(value))
|
|
42
|
+
return;
|
|
43
|
+
result.componentProps = Object.assign({}, result.comonentProps, {
|
|
44
|
+
maxlength: value.max_length,
|
|
45
|
+
minlength: value.min_length,
|
|
46
|
+
max: value.max_value,
|
|
47
|
+
min: value.min_value,
|
|
48
|
+
precision: value.decimal_length
|
|
49
|
+
});
|
|
50
|
+
};
|
|
51
|
+
const dateRangeValidate = (value, result) => {
|
|
52
|
+
if (!isObject(value))
|
|
53
|
+
return;
|
|
54
|
+
result.isDateDisabled = (ts, row) => {
|
|
55
|
+
if (!isObject(row))
|
|
56
|
+
return;
|
|
57
|
+
const { startDate, endDate } = value;
|
|
58
|
+
let invalid = false;
|
|
59
|
+
if (startDate) {
|
|
60
|
+
invalid = new Date(row[startDate]).getTime() > ts;
|
|
43
61
|
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
"validate",
|
|
47
|
-
(value, result) => {
|
|
48
|
-
if (!isObject(value))
|
|
49
|
-
return;
|
|
50
|
-
result.componentProps = Object.assign({}, result.comonentProps, {
|
|
51
|
-
maxlength: value.max_length,
|
|
52
|
-
minlength: value.min_length,
|
|
53
|
-
max: value.max_value,
|
|
54
|
-
min: value.min_value,
|
|
55
|
-
precision: value.decimal_length
|
|
56
|
-
});
|
|
62
|
+
if (endDate) {
|
|
63
|
+
invalid = invalid || new Date(row[endDate]).getTime() < ts;
|
|
57
64
|
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
65
|
+
return invalid;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
const switchOptionHandler = (value, result) => {
|
|
69
|
+
if (!isObject(value))
|
|
70
|
+
return;
|
|
71
|
+
const option = { label: value.describe, ...value };
|
|
72
|
+
result.options = isArray(result.options) ? [...result.options, option] : [option];
|
|
73
|
+
};
|
|
74
|
+
const settingMap = new Map([
|
|
75
|
+
["multi_select_value", { property: "multiple", valueMap: multipleValueMap }],
|
|
76
|
+
["is_null", isNullHandler],
|
|
77
|
+
["validate", validateHandler],
|
|
78
|
+
["dateValidate", dateRangeValidate],
|
|
79
|
+
...["open", "close"].map((key) => [key, switchOptionHandler]),
|
|
70
80
|
["is_edit", { property: "isEdit", valueMap: isEditValueMap }],
|
|
71
81
|
["html_type", { property: "formType", valueMap: htmlTypeValueMap }],
|
|
72
|
-
["option", { property: "options", fieldMap: /* @__PURE__ */ new Map([["text", "label"]]) }]
|
|
82
|
+
["option", { property: "options", fieldMap: /* @__PURE__ */ new Map([["text", "label"]]) }],
|
|
83
|
+
[
|
|
84
|
+
"alias",
|
|
85
|
+
(value, result, fieldItem) => {
|
|
86
|
+
result.title = `${value}${fieldItem.suffix ? `(${fieldItem.suffix})` : ""}`;
|
|
87
|
+
}
|
|
88
|
+
]
|
|
73
89
|
]);
|
|
74
90
|
const fieldMap = /* @__PURE__ */ new Map([
|
|
75
91
|
["sum", "isSum"],
|
|
76
92
|
["show", "isShow"],
|
|
77
|
-
["name", "title"],
|
|
78
93
|
["elementId", "columnName"],
|
|
79
94
|
["columnWidth", "colWidth"],
|
|
80
95
|
["fixedWayEnum", { property: "isFixed", valueMap: fixedWayEnumValueMap }],
|
|
@@ -223,6 +223,8 @@ export declare const comps: {
|
|
|
223
223
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
224
224
|
}>>;
|
|
225
225
|
popoverRef: import("vue").Ref<any>;
|
|
226
|
+
show: import("vue").Ref<boolean>;
|
|
227
|
+
setShow: (v: boolean) => void;
|
|
226
228
|
emit: (event: "formChange", ...args: any[]) => void;
|
|
227
229
|
editContent: import("vue").Ref<any>;
|
|
228
230
|
getRowData: (row: import("../../../../src/types").AnyObject) => {
|
|
@@ -231,7 +233,7 @@ export declare const comps: {
|
|
|
231
233
|
rawRow: import("../../../../src/types").AnyObject;
|
|
232
234
|
row: import("../../../../src/types").AnyObject;
|
|
233
235
|
} | undefined;
|
|
234
|
-
updateShow: (show: boolean) => void
|
|
236
|
+
updateShow: (show: boolean) => Promise<void>;
|
|
235
237
|
style: import("vue").CSSProperties;
|
|
236
238
|
SlotRender: import("vue").DefineComponent<{
|
|
237
239
|
renderer: {
|
|
@@ -133,7 +133,14 @@ const useFormat = (state) => {
|
|
|
133
133
|
item[key] = temp.change_text;
|
|
134
134
|
} else {
|
|
135
135
|
if (temp.background != "#ffffff") {
|
|
136
|
-
|
|
136
|
+
const reg = /^#?([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/;
|
|
137
|
+
let color = temp.background;
|
|
138
|
+
let iconHtml = `<span class="${temp.icon}"></span>`;
|
|
139
|
+
if (reg.test(temp.icon)) {
|
|
140
|
+
color = temp.icon;
|
|
141
|
+
iconHtml = `<span class="icon-dot-custom" style="--table-icon-color:${temp.icon};--table-icon-shadow:${temp.icon}80"></span>`;
|
|
142
|
+
}
|
|
143
|
+
item[key] = `<span class="field-span" style="color:${color}">${iconHtml}${temp.change_text || ""}</span>`;
|
|
137
144
|
} else {
|
|
138
145
|
item[key] = temp.change_text;
|
|
139
146
|
}
|