cnhis-design-vue 3.2.10-beta.7 → 3.2.10-release.1
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/components/audio-sdk/src/audioSDK.d.ts +24 -22
- package/es/components/audio-sdk/src/audioSDK.js +1 -1
- package/es/components/audio-sdk/src/components/{recording.vue.d.ts → recordingDialog.vue.d.ts} +18 -8
- package/es/components/audio-sdk/src/components/recordingDialog.vue.js +1 -0
- package/es/components/audio-sdk/src/components/recordingDialog.vue2.js +1 -0
- package/es/components/audio-sdk/src/utils/recordingDialog.d.ts +11 -0
- package/es/components/audio-sdk/src/utils/recordingDialog.js +1 -0
- package/es/components/base-search/index.d.ts +3 -0
- package/es/components/base-search/src/index.vue.d.ts +3 -0
- package/es/components/button-print/src/utils/print.js +1 -1
- package/es/components/card-reader-sdk/src/insuranceSDK.js +1 -1
- package/es/components/card-reader-sdk/src/utils/index.js +1 -1
- package/es/components/classification/index.d.ts +1 -1
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +1 -1
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +1 -1
- package/es/components/classification/src/index.vue.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
- package/es/components/field-set/index.d.ts +13 -0
- package/es/components/field-set/src/FieldColor.vue.d.ts +76 -30
- package/es/components/field-set/src/FieldColor.vue2.js +1 -1
- package/es/components/field-set/src/FieldFilter.vue.d.ts +23 -8
- package/es/components/field-set/src/FieldFilter.vue2.js +1 -1
- package/es/components/field-set/src/FieldSet.vue.d.ts +10 -7
- package/es/components/field-set/src/Index.vue.d.ts +13 -0
- package/es/components/field-set/src/Index.vue2.js +1 -1
- package/es/components/field-set/src/components/condition.vue.d.ts +18 -4
- package/es/components/field-set/src/components/condition.vue2.js +1 -1
- package/es/components/field-set/src/components/edit-dialog.vue.d.ts +63 -22
- package/es/components/field-set/src/components/edit-dialog.vue2.js +1 -1
- package/es/components/field-set/src/components/edit-filter.vue.d.ts +44 -44
- package/es/components/field-set/src/components/edit-filter.vue2.js +1 -1
- package/es/components/field-set/src/components/table-row.vue.d.ts +9 -6
- package/es/components/field-set/src/components/table-row.vue2.js +1 -1
- package/es/components/field-set/style/index.css +1 -1
- package/es/components/form-config/index.d.ts +3 -3
- package/es/components/form-config/src/FormConfig.vue.d.ts +3 -3
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +3 -3
- package/es/components/form-render/index.js +1 -1
- package/es/components/form-render/src/components/renderer/combination/combination.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/combination/jsonCombination.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/combination/tableCombination.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/lineBar/index.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/text.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/text.js +1 -1
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
- package/es/components/form-render/src/hooks/useFieldNormalize.js +1 -1
- package/es/components/form-render/src/types/fieldItem.d.ts +1 -1
- package/es/components/form-render/src/types/index.d.ts +4 -3
- package/es/components/form-render/src/utils/index.d.ts +2 -0
- package/es/components/form-render/src/utils/index.js +1 -1
- package/es/components/iho-chat/index.d.ts +8 -8
- package/es/components/iho-chat/src/Index.vue.d.ts +8 -8
- package/es/components/iho-chat/src/components/ChatAdd.vue.d.ts +1 -1
- package/es/components/iho-chat/src/components/ChatFile.vue.d.ts +1 -1
- package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +1 -1
- package/es/components/iho-chat/src/components/ChatFooter.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +3 -3
- package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +2 -2
- package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatSet.vue.d.ts +1 -1
- package/es/components/iho-chat/src/components/ContextMenu.js +1 -1
- package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +1 -1
- package/es/components/iho-chat/src/utils/index.d.ts +1 -1
- package/es/components/iho-chat/src/utils/index.js +1 -1
- package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.d.ts +1 -0
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue2.js +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/filterTextPlugin/filter.vue.d.ts +30 -0
- package/es/components/iho-table/src/plugins/filterTextPlugin/filter.vue.js +1 -0
- package/es/components/iho-table/src/plugins/filterTextPlugin/filter.vue2.js +1 -0
- package/es/components/iho-table/src/plugins/filterTextPlugin/index.d.ts +1 -0
- package/es/components/iho-table/src/plugins/filterTextPlugin/index.js +1 -0
- package/es/components/iho-table/src/plugins/headerPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/index.js +1 -1
- package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin.js +1 -1
- package/es/components/iho-table/src/types/index.d.ts +1 -0
- package/es/components/iho-table/src/utils/index.d.ts +3 -1
- package/es/components/iho-table/src/utils/index.js +1 -1
- package/es/components/index.css +1 -1
- package/es/components/index.js +1 -1
- package/es/components/quick-search/index.d.ts +18 -0
- package/es/components/quick-search/src/index.vue.d.ts +18 -0
- package/es/components/quick-search/src/index.vue2.js +1 -1
- package/es/components/scale-view/src/components/formitem/standard-modal.d.ts +1 -1
- package/es/components/shortcut-setter/index.d.ts +1 -1
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/bi-filter/helpers/options.d.ts +1 -7
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/classify-filter/components/SelectTreeDynamic.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +1 -1
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/components/SelectTreeDynamic.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/helpers/dateExtraMap.d.ts +3 -49
- package/es/components/table-filter/src/components/render-widget/helpers/enums.d.ts +1 -18
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +1 -1
- package/es/components/table-filter/src/hooks/useAdvanced.d.ts +1 -0
- package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
- package/es/components/table-filter/src/hooks/useMixins.d.ts +1 -1
- package/es/components/table-filter/src/hooks/useRenderWidget.js +1 -1
- package/es/components/table-filter/src/types/index.d.ts +3 -0
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
- package/es/components/audio-sdk/src/components/recording.vue.js +0 -1
- package/es/components/audio-sdk/src/components/recording.vue2.js +0 -1
- package/es/components/audio-sdk/src/utils/recordingModal.d.ts +0 -10
- package/es/components/audio-sdk/src/utils/recordingModal.js +0 -1
@@ -27,6 +27,10 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
|
|
27
27
|
type: import("vue").PropType<import("./src/types").FilterSetItem[]>;
|
28
28
|
default: () => never[];
|
29
29
|
};
|
30
|
+
showFilterColumnNames: {
|
31
|
+
type: import("vue").PropType<("type" | "title" | "optionType" | "isShowSearch" | "filterExplicit" | "explicitRequired" | "defaultValue" | "customTitle" | "width")[]>;
|
32
|
+
default: () => never[];
|
33
|
+
};
|
30
34
|
}, {
|
31
35
|
attrs: {
|
32
36
|
[x: string]: unknown;
|
@@ -58,6 +62,10 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
|
|
58
62
|
type: import("vue").PropType<import("./src/types").FilterSetItem[]>;
|
59
63
|
default: () => never[];
|
60
64
|
};
|
65
|
+
showFilterColumnNames: {
|
66
|
+
type: import("vue").PropType<("type" | "title" | "optionType" | "isShowSearch" | "filterExplicit" | "explicitRequired" | "defaultValue" | "customTitle" | "width")[]>;
|
67
|
+
default: () => never[];
|
68
|
+
};
|
61
69
|
}>> & {
|
62
70
|
onSave?: ((...args: any[]) => any) | undefined;
|
63
71
|
}>>;
|
@@ -109,6 +117,10 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
|
|
109
117
|
type: import("vue").PropType<import("./src/types").FilterSetItem[]>;
|
110
118
|
default: () => never[];
|
111
119
|
};
|
120
|
+
showFilterColumnNames: {
|
121
|
+
type: import("vue").PropType<("type" | "title" | "optionType" | "isShowSearch" | "filterExplicit" | "explicitRequired" | "defaultValue" | "customTitle" | "width")[]>;
|
122
|
+
default: () => never[];
|
123
|
+
};
|
112
124
|
}>> & {
|
113
125
|
onSave?: ((...args: any[]) => any) | undefined;
|
114
126
|
}, {
|
@@ -116,5 +128,6 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
|
|
116
128
|
fieldColorList: import("./src/types").ColorSetItem[];
|
117
129
|
highlightRowColorList: import("./src/types").ColorSetItem[];
|
118
130
|
fieldFilterList: import("./src/types").FilterSetItem[];
|
131
|
+
showFilterColumnNames: ("type" | "title" | "optionType" | "isShowSearch" | "filterExplicit" | "explicitRequired" | "defaultValue" | "customTitle" | "width")[];
|
119
132
|
}>>;
|
120
133
|
export default FieldSet;
|
@@ -37,6 +37,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
37
37
|
visible: import("vue").Ref<boolean>;
|
38
38
|
currentRow: import("vue").Ref<AnyObject | null>;
|
39
39
|
data: import("vue").Ref<AnyObject[]>;
|
40
|
+
readonly: import("vue").Ref<boolean>;
|
41
|
+
isAdd: import("vue").Ref<boolean>;
|
40
42
|
columns: import("vue").Ref<{
|
41
43
|
[x: string]: any;
|
42
44
|
title: string;
|
@@ -63,13 +65,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
63
65
|
hide?: boolean | undefined;
|
64
66
|
}[];
|
65
67
|
data: AnyObject[];
|
66
|
-
onEdit: (row: AnyObject) => void;
|
68
|
+
onEdit: ({ row, readonly: _readonly, add }: AnyObject) => void;
|
67
69
|
isHighlightRow: boolean;
|
68
70
|
};
|
69
71
|
handleFieldSave: () => void;
|
70
72
|
onCancle: () => void;
|
71
73
|
onAdd: () => void;
|
72
|
-
onEdit: (row: AnyObject) => void;
|
74
|
+
onEdit: ({ row, readonly: _readonly, add }: AnyObject) => void;
|
73
75
|
initColumns: () => void;
|
74
76
|
initData: () => void;
|
75
77
|
getShowColumn: (column: FieldSetColumnItem) => boolean;
|
@@ -351,7 +353,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
351
353
|
}>>;
|
352
354
|
emit: (event: "edit" | "updateChecked", ...args: any[]) => void;
|
353
355
|
onRemove: () => void;
|
354
|
-
onEdit: () => void;
|
356
|
+
onEdit: (param?: AnyObject) => void;
|
355
357
|
isRenderTooltip: (field: string) => any;
|
356
358
|
getTooltipContent: () => any;
|
357
359
|
getTextValue: (field: string) => any;
|
@@ -363,7 +365,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
363
365
|
label: string;
|
364
366
|
value: number;
|
365
367
|
}[];
|
366
|
-
getSelectText: (field: string) =>
|
368
|
+
getSelectText: (field: string) => any;
|
367
369
|
selectProps: (field: string) => {
|
368
370
|
valueField: string;
|
369
371
|
labelField: string;
|
@@ -383,6 +385,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
383
385
|
NPopconfirm: any;
|
384
386
|
NPopover: any;
|
385
387
|
NSpace: any;
|
388
|
+
NButton: any;
|
386
389
|
setStyle: typeof setStyle;
|
387
390
|
setColorInfo: typeof setColorInfo;
|
388
391
|
ReorderTwoOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
@@ -390,6 +393,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
390
393
|
CreateOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
391
394
|
HelpCircleOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
392
395
|
CaretDownOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
396
|
+
EyeOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
397
|
+
CopyOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
393
398
|
isFunction: (value: any) => value is (...args: any[]) => any;
|
394
399
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("edit" | "updateChecked")[], "edit" | "updateChecked", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
395
400
|
element: {
|
@@ -527,12 +532,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
527
532
|
}>;
|
528
533
|
developMode: boolean;
|
529
534
|
draggable: boolean;
|
530
|
-
|
531
|
-
isFieldSet: boolean;
|
532
|
-
hideExpressionOption: AnyObject[];
|
535
|
+
isHighlightRow: boolean;
|
533
536
|
idx: number;
|
534
537
|
isHighlight: boolean;
|
535
|
-
|
538
|
+
isFieldSet: boolean;
|
539
|
+
fieldDescribeMode: "column" | "tooltip";
|
540
|
+
hideExpressionOption: AnyObject[];
|
536
541
|
}>;
|
537
542
|
EditDialog: import("vue").DefineComponent<{
|
538
543
|
visible: {
|
@@ -547,6 +552,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
547
552
|
type: PropType<AnyObject | null>;
|
548
553
|
default: null;
|
549
554
|
};
|
555
|
+
readonly: {
|
556
|
+
type: BooleanConstructor;
|
557
|
+
default: boolean;
|
558
|
+
};
|
559
|
+
isAdd: {
|
560
|
+
type: BooleanConstructor;
|
561
|
+
default: boolean;
|
562
|
+
};
|
550
563
|
}, {
|
551
564
|
cssVars: import("vue").ComputedRef<AnyObject>;
|
552
565
|
message: import("naive-ui").MessageApi;
|
@@ -569,6 +582,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
569
582
|
type: PropType<AnyObject | null>;
|
570
583
|
default: null;
|
571
584
|
};
|
585
|
+
readonly: {
|
586
|
+
type: BooleanConstructor;
|
587
|
+
default: boolean;
|
588
|
+
};
|
589
|
+
isAdd: {
|
590
|
+
type: BooleanConstructor;
|
591
|
+
default: boolean;
|
592
|
+
};
|
572
593
|
}>> & {
|
573
594
|
onConfirm?: ((...args: any[]) => any) | undefined;
|
574
595
|
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
@@ -577,7 +598,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
577
598
|
formRef: import("vue").Ref<any>;
|
578
599
|
conditionRef: import("vue").Ref<any>;
|
579
600
|
filterVisible: import("vue").Ref<boolean>;
|
580
|
-
title: import("vue").ComputedRef<"新增" | "修改" | "过滤条件">;
|
601
|
+
title: import("vue").ComputedRef<"复制" | "新增" | "修改" | "过滤条件">;
|
581
602
|
model: {
|
582
603
|
name: string;
|
583
604
|
color: string;
|
@@ -604,18 +625,26 @@ declare const _default: import("vue").DefineComponent<{
|
|
604
625
|
NRadio: any;
|
605
626
|
NSpace: any;
|
606
627
|
Condition: import("vue").DefineComponent<{
|
607
|
-
|
628
|
+
model: {
|
608
629
|
type: PropType<AnyObject>;
|
609
630
|
default: null;
|
610
631
|
};
|
632
|
+
readonly: {
|
633
|
+
type: BooleanConstructor;
|
634
|
+
default: boolean;
|
635
|
+
};
|
611
636
|
}, {
|
612
637
|
customValue: string;
|
613
638
|
cssVars: import("vue").ComputedRef<AnyObject>;
|
614
639
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
615
|
-
|
640
|
+
model: {
|
616
641
|
type: PropType<AnyObject>;
|
617
642
|
default: null;
|
618
643
|
};
|
644
|
+
readonly: {
|
645
|
+
type: BooleanConstructor;
|
646
|
+
default: boolean;
|
647
|
+
};
|
619
648
|
}>> & {}>>;
|
620
649
|
fieldList: AnyObject[];
|
621
650
|
queryWordbookData: ((params: import("../../../components/field-set/src/types").ColorSetWordbook) => Promise<{
|
@@ -749,6 +778,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
749
778
|
NInputNumber: any;
|
750
779
|
NSelect: any;
|
751
780
|
NIcon: any;
|
781
|
+
NButton: any;
|
752
782
|
AddCircleSharp: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
753
783
|
RemoveCircle: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
754
784
|
UNIT_OPTIONS: {
|
@@ -879,32 +909,29 @@ declare const _default: import("vue").DefineComponent<{
|
|
879
909
|
holidays: Date[];
|
880
910
|
}>>;
|
881
911
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
882
|
-
|
912
|
+
model: {
|
883
913
|
type: PropType<AnyObject>;
|
884
914
|
default: null;
|
885
915
|
};
|
916
|
+
readonly: {
|
917
|
+
type: BooleanConstructor;
|
918
|
+
default: boolean;
|
919
|
+
};
|
886
920
|
}>>, {
|
887
|
-
|
921
|
+
model: AnyObject;
|
922
|
+
readonly: boolean;
|
888
923
|
}>;
|
889
924
|
EditFilter: import("vue").DefineComponent<{
|
890
925
|
visible: {
|
891
926
|
type: BooleanConstructor;
|
892
927
|
default: boolean;
|
893
928
|
};
|
894
|
-
model: {
|
895
|
-
type: PropType<AnyObject>;
|
896
|
-
default: null;
|
897
|
-
};
|
898
929
|
}, {
|
899
930
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
900
931
|
visible: {
|
901
932
|
type: BooleanConstructor;
|
902
933
|
default: boolean;
|
903
934
|
};
|
904
|
-
model: {
|
905
|
-
type: PropType<AnyObject>;
|
906
|
-
default: null;
|
907
|
-
};
|
908
935
|
}>> & {
|
909
936
|
onConfirm?: ((...args: any[]) => any) | undefined;
|
910
937
|
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
@@ -915,18 +942,26 @@ declare const _default: import("vue").DefineComponent<{
|
|
915
942
|
onClose: () => void;
|
916
943
|
NModal: any;
|
917
944
|
Condition: import("vue").DefineComponent<{
|
918
|
-
|
945
|
+
model: {
|
919
946
|
type: PropType<AnyObject>;
|
920
947
|
default: null;
|
921
948
|
};
|
949
|
+
readonly: {
|
950
|
+
type: BooleanConstructor;
|
951
|
+
default: boolean;
|
952
|
+
};
|
922
953
|
}, {
|
923
954
|
customValue: string;
|
924
955
|
cssVars: import("vue").ComputedRef<AnyObject>;
|
925
956
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
926
|
-
|
957
|
+
model: {
|
927
958
|
type: PropType<AnyObject>;
|
928
959
|
default: null;
|
929
960
|
};
|
961
|
+
readonly: {
|
962
|
+
type: BooleanConstructor;
|
963
|
+
default: boolean;
|
964
|
+
};
|
930
965
|
}>> & {}>>;
|
931
966
|
fieldList: AnyObject[];
|
932
967
|
queryWordbookData: ((params: import("../../../components/field-set/src/types").ColorSetWordbook) => Promise<{
|
@@ -1060,6 +1095,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1060
1095
|
NInputNumber: any;
|
1061
1096
|
NSelect: any;
|
1062
1097
|
NIcon: any;
|
1098
|
+
NButton: any;
|
1063
1099
|
AddCircleSharp: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
1064
1100
|
RemoveCircle: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
1065
1101
|
UNIT_OPTIONS: {
|
@@ -1190,28 +1226,28 @@ declare const _default: import("vue").DefineComponent<{
|
|
1190
1226
|
holidays: Date[];
|
1191
1227
|
}>>;
|
1192
1228
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
1193
|
-
|
1229
|
+
model: {
|
1194
1230
|
type: PropType<AnyObject>;
|
1195
1231
|
default: null;
|
1196
1232
|
};
|
1233
|
+
readonly: {
|
1234
|
+
type: BooleanConstructor;
|
1235
|
+
default: boolean;
|
1236
|
+
};
|
1197
1237
|
}>>, {
|
1198
|
-
|
1238
|
+
model: AnyObject;
|
1239
|
+
readonly: boolean;
|
1199
1240
|
}>;
|
1200
1241
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("confirm" | "update:visible")[], "confirm" | "update:visible", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
1201
1242
|
visible: {
|
1202
1243
|
type: BooleanConstructor;
|
1203
1244
|
default: boolean;
|
1204
1245
|
};
|
1205
|
-
model: {
|
1206
|
-
type: PropType<AnyObject>;
|
1207
|
-
default: null;
|
1208
|
-
};
|
1209
1246
|
}>> & {
|
1210
1247
|
onConfirm?: ((...args: any[]) => any) | undefined;
|
1211
1248
|
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
1212
1249
|
}, {
|
1213
1250
|
visible: boolean;
|
1214
|
-
model: AnyObject;
|
1215
1251
|
}>;
|
1216
1252
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("confirm" | "update:visible")[], "confirm" | "update:visible", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
1217
1253
|
visible: {
|
@@ -1226,12 +1262,22 @@ declare const _default: import("vue").DefineComponent<{
|
|
1226
1262
|
type: PropType<AnyObject | null>;
|
1227
1263
|
default: null;
|
1228
1264
|
};
|
1265
|
+
readonly: {
|
1266
|
+
type: BooleanConstructor;
|
1267
|
+
default: boolean;
|
1268
|
+
};
|
1269
|
+
isAdd: {
|
1270
|
+
type: BooleanConstructor;
|
1271
|
+
default: boolean;
|
1272
|
+
};
|
1229
1273
|
}>> & {
|
1230
1274
|
onConfirm?: ((...args: any[]) => any) | undefined;
|
1231
1275
|
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
1232
1276
|
}, {
|
1233
1277
|
row: AnyObject | null;
|
1234
1278
|
visible: boolean;
|
1279
|
+
isAdd: boolean;
|
1280
|
+
readonly: boolean;
|
1235
1281
|
isFieldColor: boolean;
|
1236
1282
|
}>;
|
1237
1283
|
setStyle: typeof setStyle;
|
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as e,ref as l,reactive as t,openBlock as i,createElementBlock as a,createElementVNode as o,Fragment as s,renderList as r,normalizeStyle as
|
1
|
+
import{defineComponent as e,ref as l,reactive as t,openBlock as i,createElementBlock as a,createElementVNode as o,Fragment as s,renderList as r,normalizeStyle as d,unref as u,toDisplayString as n,createCommentVNode as f,createVNode as c,withCtx as p,mergeProps as m,renderSlot as v,createTextVNode as y,createBlock as b}from"vue";import{NButton as h}from"naive-ui";import x from"../../../shared/components/VueDraggable/src/vuedraggable.js";import g from"./components/table-row.vue.js";import _ from"./components/edit-dialog.vue.js";import{cloneDeep as k,omit as w}from"lodash-es";import{setColorInfo as C,setStyle as F}from"./utils/index.js";import{uuidGenerator as j}from"../../../shared/utils/index.js";import{format as A}from"date-fns";const D={class:"main-wrapper"},S={class:"main-wrapper__table"},V={class:"main-wrapper__table-header"},B={class:"main-wrapper__table-body",ref:"tableBodyRef"},E=["tabindex"],M={key:0,class:"main-wrapper__table-footer"};var L=e({__name:"FieldColor",props:{footerFlag:{type:Boolean,default:!0},isFieldColor:{type:Boolean,default:!0},defaultList:{type:Array,default:()=>[]}},emits:["save","close"],setup(e,{expose:L,emit:R}){const U=e,Y=l(!1),H=l(null),I=l([]),N=l(!1),T=l(!1),$=l([{title:"名称",type:"text",field:"name"},{title:"字段",type:"text",field:"title"},{title:"创建时间",type:"text",field:"createDate"},{title:"效果",type:"text",field:"result"},{title:"颜色",type:"color",field:"color"},{title:"颜色应用于",type:"select",checkedAll:!1,disabledAll:!1,field:"colorScope"},{title:"显示",type:"checkbox",checkedAll:!1,disabledAll:!1,field:"status"},{title:"操作",type:"custom",field:"opt"}]),q=t({columns:$,data:I,onEdit:function({row:e,readonly:l=!1,add:t=!1}){H.value=k(e),T.value=t,N.value=l,Y.value=!0},isHighlightRow:!U.isFieldColor});function z(){R("save")}function G(){R("close")}function J(){H.value=null,T.value=!0,Y.value=!0}function K(e){if(C(e),T.value){const l=A(new Date,"yyyy-MM-dd");I.value.push({...e,createDate:l,uuid:j(),defaultMark:0})}else{const l=I.value.findIndex((l=>l.uuid===e.uuid));I.value.splice(l,1,e)}}return $.value.forEach((e=>{e.isShow=function(e){return U.isFieldColor&&"result"!==e.field||!U.isFieldColor&&"title"!==e.field}(e)})),I.value=U.defaultList.concat(I.value),I.value.forEach((e=>{e.uuid=j(),e.status="Y"===e.status,C(e)})),L({getTableFields:function(){return I.value.map((e=>{const l=k(e);return l.status=l.status?"Y":"N",w(l,["uuid","style","result"])}))}}),(l,t)=>(i(),a("div",D,[o("div",S,[o("div",V,[(i(!0),a(s,null,r($.value,((e,l)=>(i(),a(s,{key:l},[e.isShow?(i(),a("span",{key:0,class:"table-cell",style:d(u(F)(e,l))},[o("span",null,n(e.title),1)],4)):f("v-if",!0)],64)))),128))]),o("div",B,[c(u(x),{modelValue:I.value,"onUpdate:modelValue":t[0]||(t[0]=e=>I.value=e),animation:"150","item-key":"id",draggable:".item"},{item:p((({element:e,index:l})=>[e.hide?f("v-if",!0):(i(),a("div",{key:0,class:"item",tabindex:l},[c(g,m(q,{element:e,index:l}),null,16,["element","index"])],8,E))])),_:1},8,["modelValue"])],512)]),e.footerFlag?(i(),a("div",M,[f(" 底部按钮插槽 "),v(l.$slots,"colorSetFooter",{},(()=>[c(u(h),{style:{"margin-right":"8px"},onClick:G},{default:p((()=>[y("取消")])),_:1}),c(u(h),{style:{"margin-right":"8px"},onClick:J},{default:p((()=>[y("新增")])),_:1}),c(u(h),{type:"primary",onClick:z},{default:p((()=>[y("保存")])),_:1})]))])):f("v-if",!0),Y.value?(i(),b(_,{key:1,visible:Y.value,"onUpdate:visible":t[1]||(t[1]=e=>Y.value=e),"is-field-color":e.isFieldColor,row:H.value,readonly:N.value,"is-add":T.value,onConfirm:K},null,8,["visible","is-field-color","row","readonly","is-add"])):f("v-if",!0)]))}});export{L as default};
|
@@ -2,7 +2,6 @@ import { PropType } from 'vue';
|
|
2
2
|
import { setStyle } from './utils';
|
3
3
|
import { FilterSetItem, FieldSetColumnItem } from '../../../components/field-set/src/types';
|
4
4
|
import { AnyObject } from '../../../shared/types';
|
5
|
-
import { COLUMNLIST_MAP } from './constants/filter';
|
6
5
|
declare const _default: import("vue").DefineComponent<{
|
7
6
|
footerFlag: {
|
8
7
|
type: BooleanConstructor;
|
@@ -12,6 +11,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
12
11
|
type: PropType<FilterSetItem[]>;
|
13
12
|
default: () => never[];
|
14
13
|
};
|
14
|
+
showFilterColumnNames: {
|
15
|
+
type: PropType<("type" | "title" | "optionType" | "isShowSearch" | "filterExplicit" | "explicitRequired" | "defaultValue" | "customTitle" | "width")[]>;
|
16
|
+
default: () => never[];
|
17
|
+
};
|
15
18
|
}, {
|
16
19
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
17
20
|
footerFlag: {
|
@@ -22,6 +25,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
22
25
|
type: PropType<FilterSetItem[]>;
|
23
26
|
default: () => never[];
|
24
27
|
};
|
28
|
+
showFilterColumnNames: {
|
29
|
+
type: PropType<("type" | "title" | "optionType" | "isShowSearch" | "filterExplicit" | "explicitRequired" | "defaultValue" | "customTitle" | "width")[]>;
|
30
|
+
default: () => never[];
|
31
|
+
};
|
25
32
|
}>> & {
|
26
33
|
onSave?: ((...args: any[]) => any) | undefined;
|
27
34
|
onClose?: ((...args: any[]) => any) | undefined;
|
@@ -92,7 +99,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
92
99
|
checked: boolean;
|
93
100
|
column: AnyObject;
|
94
101
|
}) => void;
|
95
|
-
getType: (field:
|
102
|
+
getType: (field: string) => "text" | "checkbox" | "input" | "select" | "inputNumber";
|
96
103
|
initColumns: () => void;
|
97
104
|
isNoAllCheck: (field: string) => boolean;
|
98
105
|
NButton: any;
|
@@ -373,7 +380,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
373
380
|
}>>;
|
374
381
|
emit: (event: "edit" | "updateChecked", ...args: any[]) => void;
|
375
382
|
onRemove: () => void;
|
376
|
-
onEdit: () => void;
|
383
|
+
onEdit: (param?: AnyObject) => void;
|
377
384
|
isRenderTooltip: (field: string) => any;
|
378
385
|
getTooltipContent: () => any;
|
379
386
|
getTextValue: (field: string) => any;
|
@@ -385,7 +392,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
385
392
|
label: string;
|
386
393
|
value: number;
|
387
394
|
}[];
|
388
|
-
getSelectText: (field: string) =>
|
395
|
+
getSelectText: (field: string) => any;
|
389
396
|
selectProps: (field: string) => {
|
390
397
|
valueField: string;
|
391
398
|
labelField: string;
|
@@ -405,6 +412,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
405
412
|
NPopconfirm: any;
|
406
413
|
NPopover: any;
|
407
414
|
NSpace: any;
|
415
|
+
NButton: any;
|
408
416
|
setStyle: typeof setStyle;
|
409
417
|
setColorInfo: typeof import("./utils").setColorInfo;
|
410
418
|
ReorderTwoOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
@@ -412,6 +420,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
412
420
|
CreateOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
413
421
|
HelpCircleOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
414
422
|
CaretDownOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
423
|
+
EyeOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
424
|
+
CopyOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
415
425
|
isFunction: (value: any) => value is (...args: any[]) => any;
|
416
426
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("edit" | "updateChecked")[], "edit" | "updateChecked", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
417
427
|
element: {
|
@@ -549,12 +559,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
549
559
|
}>;
|
550
560
|
developMode: boolean;
|
551
561
|
draggable: boolean;
|
552
|
-
|
553
|
-
isFieldSet: boolean;
|
554
|
-
hideExpressionOption: AnyObject[];
|
562
|
+
isHighlightRow: boolean;
|
555
563
|
idx: number;
|
556
564
|
isHighlight: boolean;
|
557
|
-
|
565
|
+
isFieldSet: boolean;
|
566
|
+
fieldDescribeMode: "column" | "tooltip";
|
567
|
+
hideExpressionOption: AnyObject[];
|
558
568
|
}>;
|
559
569
|
setStyle: typeof setStyle;
|
560
570
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "save" | "reset")[], "close" | "save" | "reset", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
@@ -566,11 +576,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
566
576
|
type: PropType<FilterSetItem[]>;
|
567
577
|
default: () => never[];
|
568
578
|
};
|
579
|
+
showFilterColumnNames: {
|
580
|
+
type: PropType<("type" | "title" | "optionType" | "isShowSearch" | "filterExplicit" | "explicitRequired" | "defaultValue" | "customTitle" | "width")[]>;
|
581
|
+
default: () => never[];
|
582
|
+
};
|
569
583
|
}>> & {
|
570
584
|
onSave?: ((...args: any[]) => any) | undefined;
|
571
585
|
onClose?: ((...args: any[]) => any) | undefined;
|
572
586
|
onReset?: ((...args: any[]) => any) | undefined;
|
573
587
|
}, {
|
588
|
+
showFilterColumnNames: ("type" | "title" | "optionType" | "isShowSearch" | "filterExplicit" | "explicitRequired" | "defaultValue" | "customTitle" | "width")[];
|
574
589
|
defaultList: FilterSetItem[];
|
575
590
|
footerFlag: boolean;
|
576
591
|
}>;
|
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as e,ref as
|
1
|
+
import{defineComponent as e,ref as l,reactive as t,watch as i,openBlock as a,createElementBlock as d,createElementVNode as r,Fragment as o,renderList as s,normalizeStyle as n,unref as c,createBlock as u,withCtx as m,createTextVNode as p,toDisplayString as f,createCommentVNode as h,createVNode as v,mergeProps as k,renderSlot as b}from"vue";import{NCheckbox as x,NPopconfirm as y,NButton as g}from"naive-ui";import _ from"../../../shared/components/VueDraggable/src/vuedraggable.js";import w from"./components/table-row.vue.js";import{cloneDeep as F}from"lodash-es";import{isShowExplicitRequired as C,setStyle as A}from"./utils/index.js";import{COLUMNLIST_MAP as j}from"./constants/filter.js";const R={class:"main-wrapper"},q={class:"main-wrapper__table"},N={class:"main-wrapper__table-header"},V={class:"main-wrapper__table-body",ref:"tableBodyRef"},H=["tabindex"],S={key:0,class:"main-wrapper__table-footer"};var U=e({__name:"FieldFilter",props:{footerFlag:{type:Boolean,default:!0},defaultList:{type:Array,default:()=>[]},showFilterColumnNames:{type:Array,default:()=>[]}},emits:["save","close","reset"],setup(e,{expose:U,emit:E}){const L=e,T=l([]),B=l([]),O=t({columns:T,data:B,onUpdateChecked:function({checked:e,column:l}){const t=!e||G(l.field);l.checkedAll=!t}}),D=()=>{E("save")},P=()=>{E("close")};function $(){B.value=F(L.defaultList),z(),E("reset")}function z(){T.value=Object.entries(j).map((([e,l])=>{var t;const i=function(e){return e?["isShowSearch","filterExplicit","explicitRequired"].includes(e)?"checkbox":["optionType","defaultValue"].includes(e)?"select":["customTitle"].includes(e)?"input":["width"].includes(e)?"inputNumber":"text":"text"}(e),a={isShow:!(null==(t=L.showFilterColumnNames)?void 0:t.length)||L.showFilterColumnNames.includes(e),title:l,type:i,field:e};return"checkbox"===i&&Object.assign(a,{checkedAll:!G(e),disabledAll:!1,isHeadCheckHide:["filterExplicit","explicitRequired"].includes(e)}),a}))}function G(e){return B.value.some((l=>("explicitRequired"!==e||C(l))&&!l[e]))}return i([()=>L.defaultList,()=>{var e;return null==(e=L.showFilterColumnNames)?void 0:e.length}],(([e,l])=>{e.length>0&&(B.value=F(e)),z()}),{immediate:!0,deep:!0}),U({getTableFields:()=>B.value}),(l,t)=>(a(),d("div",R,[r("div",q,[r("div",N,[(a(!0),d(o,null,s(T.value,((e,l)=>(a(),d(o,{key:l},[e.isShow?(a(),d("span",{key:0,class:"table-cell",style:n(c(A)(e,l))},[r("span",null,["checkbox"!==e.type||e.isHeadCheckHide?(a(),d(o,{key:1},[p(f(e.title),1)],64)):(a(),u(c(x),{key:0,checked:e.checkedAll,"onUpdate:checked":[l=>e.checkedAll=l,l=>{return t=l,i=e.field,void B.value.forEach((e=>{("explicitRequired"!==i||"explicitRequired"===i&&C(e))&&(e[i]=t)}));var t,i}],disabled:e.disabledAll},{default:m((()=>[p(f(e.title),1)])),_:2},1032,["checked","onUpdate:checked","disabled"]))])],4)):h("v-if",!0)],64)))),128))]),r("div",V,[v(c(_),{modelValue:B.value,"onUpdate:modelValue":t[0]||(t[0]=e=>B.value=e),animation:"150","item-key":"id",draggable:".item"},{item:m((({element:e,index:l})=>[e.hide?h("v-if",!0):(a(),d("div",{key:0,class:"item",tabindex:l},[v(w,k(O,{element:e,idx:l+1}),null,16,["element","idx"])],8,H))])),_:1},8,["modelValue"])],512)]),e.footerFlag?(a(),d("div",S,[h(" 底部按钮插槽 "),b(l.$slots,"fieldFilterFooter",{},(()=>[v(c(y),{onPositiveClick:$},{trigger:m((()=>[v(c(g),{style:{"margin-right":"8px"}},{default:m((()=>[p("恢复默认设置")])),_:1})])),default:m((()=>[p(" 确认要恢复系统默认设置吗? ")])),_:1}),v(c(g),{style:{"margin-right":"8px"},onClick:P},{default:m((()=>[p("取消")])),_:1}),v(c(g),{type:"primary",onClick:D},{default:m((()=>[p("保存")])),_:1})]))])):h("v-if",!0)]))}});export{U as default};
|
@@ -541,7 +541,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
541
541
|
}>>;
|
542
542
|
emit: (event: "edit" | "updateChecked", ...args: any[]) => void;
|
543
543
|
onRemove: () => void;
|
544
|
-
onEdit: () => void;
|
544
|
+
onEdit: (param?: AnyObject) => void;
|
545
545
|
isRenderTooltip: (field: string) => any;
|
546
546
|
getTooltipContent: () => any;
|
547
547
|
getTextValue: (field: string) => any;
|
@@ -553,7 +553,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
553
553
|
label: string;
|
554
554
|
value: number;
|
555
555
|
}[];
|
556
|
-
getSelectText: (field: string) =>
|
556
|
+
getSelectText: (field: string) => any;
|
557
557
|
selectProps: (field: string) => {
|
558
558
|
valueField: string;
|
559
559
|
labelField: string;
|
@@ -573,6 +573,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
573
573
|
NPopconfirm: any;
|
574
574
|
NPopover: any;
|
575
575
|
NSpace: any;
|
576
|
+
NButton: any;
|
576
577
|
setStyle: typeof setStyle;
|
577
578
|
setColorInfo: typeof import("./utils").setColorInfo;
|
578
579
|
ReorderTwoOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
@@ -580,6 +581,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
580
581
|
CreateOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
581
582
|
HelpCircleOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
582
583
|
CaretDownOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
584
|
+
EyeOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
585
|
+
CopyOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
583
586
|
isFunction: (value: any) => value is (...args: any[]) => any;
|
584
587
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("edit" | "updateChecked")[], "edit" | "updateChecked", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
585
588
|
element: {
|
@@ -717,12 +720,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
717
720
|
}>;
|
718
721
|
developMode: boolean;
|
719
722
|
draggable: boolean;
|
720
|
-
|
721
|
-
isFieldSet: boolean;
|
722
|
-
hideExpressionOption: AnyObject[];
|
723
|
+
isHighlightRow: boolean;
|
723
724
|
idx: number;
|
724
725
|
isHighlight: boolean;
|
725
|
-
|
726
|
+
isFieldSet: boolean;
|
727
|
+
fieldDescribeMode: "column" | "tooltip";
|
728
|
+
hideExpressionOption: AnyObject[];
|
726
729
|
}>;
|
727
730
|
isArray: {
|
728
731
|
(value?: any): value is any[];
|
@@ -852,9 +855,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
852
855
|
showSeq: boolean;
|
853
856
|
developMode: boolean;
|
854
857
|
footerFlag: boolean;
|
858
|
+
fieldDescribeMode: "column" | "tooltip";
|
855
859
|
customColumns: FieldSetColumnItem[];
|
856
860
|
showSortPriority: boolean;
|
857
861
|
showHeadFilter: boolean;
|
858
|
-
fieldDescribeMode: "column" | "tooltip";
|
859
862
|
}>;
|
860
863
|
export default _default;
|
@@ -29,6 +29,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
29
29
|
type: PropType<FilterSetItem[]>;
|
30
30
|
default: () => never[];
|
31
31
|
};
|
32
|
+
showFilterColumnNames: {
|
33
|
+
type: PropType<("type" | "title" | "optionType" | "isShowSearch" | "filterExplicit" | "explicitRequired" | "defaultValue" | "customTitle" | "width")[]>;
|
34
|
+
default: () => never[];
|
35
|
+
};
|
32
36
|
}, {
|
33
37
|
attrs: {
|
34
38
|
[x: string]: unknown;
|
@@ -56,6 +60,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
56
60
|
type: PropType<FilterSetItem[]>;
|
57
61
|
default: () => never[];
|
58
62
|
};
|
63
|
+
showFilterColumnNames: {
|
64
|
+
type: PropType<("type" | "title" | "optionType" | "isShowSearch" | "filterExplicit" | "explicitRequired" | "defaultValue" | "customTitle" | "width")[]>;
|
65
|
+
default: () => never[];
|
66
|
+
};
|
59
67
|
}>> & {
|
60
68
|
onSave?: ((...args: any[]) => any) | undefined;
|
61
69
|
}>>;
|
@@ -103,6 +111,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
103
111
|
type: PropType<FilterSetItem[]>;
|
104
112
|
default: () => never[];
|
105
113
|
};
|
114
|
+
showFilterColumnNames: {
|
115
|
+
type: PropType<("type" | "title" | "optionType" | "isShowSearch" | "filterExplicit" | "explicitRequired" | "defaultValue" | "customTitle" | "width")[]>;
|
116
|
+
default: () => never[];
|
117
|
+
};
|
106
118
|
}>> & {
|
107
119
|
onSave?: ((...args: any[]) => any) | undefined;
|
108
120
|
}, {
|
@@ -110,5 +122,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
110
122
|
fieldColorList: ColorSetItem[];
|
111
123
|
highlightRowColorList: ColorSetItem[];
|
112
124
|
fieldFilterList: FilterSetItem[];
|
125
|
+
showFilterColumnNames: ("type" | "title" | "optionType" | "isShowSearch" | "filterExplicit" | "explicitRequired" | "defaultValue" | "customTitle" | "width")[];
|
113
126
|
}>;
|
114
127
|
export default _default;
|
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as e,useAttrs as l,provide as t,reactive as i,ref as r,computed as a,unref as o,openBlock as s,createElementBlock as d,normalizeStyle as n,createBlock as f,withCtx as u,Fragment as m,renderList as h,resolveDynamicComponent as v,mergeProps as b,createSlots as
|
1
|
+
import{defineComponent as e,useAttrs as l,provide as t,reactive as i,ref as r,computed as a,unref as o,openBlock as s,createElementBlock as d,normalizeStyle as n,createBlock as f,withCtx as u,Fragment as m,renderList as h,resolveDynamicComponent as v,mergeProps as b,createSlots as y,renderSlot as p,createCommentVNode as F,h as g}from"vue";import{useThemeVars as c,NTabs as w,NTabPane as C}from"naive-ui";import L from"./FieldSet.vue.js";import T from"./FieldColor.vue.js";import S from"./TableStyle.vue.js";import _ from"./FieldFilter.vue.js";import{InjectionFieldList as k,InjectionQueryWordbookData as x}from"./constants/index.js";import{useElementSize as $}from"@vueuse/core";import{isArray as j}from"lodash-es";var N=e({__name:"Index",props:{showTabNames:{type:Array,default:()=>["field"]},fieldColorList:{type:Array,default:()=>[]},highlightRowColorList:{type:Array,default:()=>[]},fieldList:{type:Object},queryWordbookData:{type:Function},fieldFilterList:{type:Array,default:()=>[]},showFilterColumnNames:{type:Array,default:()=>[]}},emits:["save"],setup(e,{expose:N,emit:R}){const A=e,q=l();t(k,A.fieldList),t(x,A.queryWordbookData);const D=i({}),W=r(),H=r(c().value.primaryColor),{height:I}=$(W),O=a((()=>{const e=A.showTabNames[0];return"field"===e?j(q.fields)?q.fields.length:0:"fieldFilter"===e?j(A.fieldFilterList)?A.fieldFilterList.length:0:1})),z=a((()=>{var e;const l="showSearch"in q&&!1!==q.showSearch||"show-search"in q&&!1!==q["show-search"]?"52px":"auto";let t=(null==(e=q.style)?void 0:e.height)||"100%";if(B.value.length>1){t=`calc(${"100%"===t&&(null==I?void 0:I.value)?I.value+"px":t} - 54px)`}return{"--row-height":l,"--primary-color":H.value,"--main-height":t}})),B=a((()=>[{name:"field",tab:"字段设置",render:()=>g(L)},{name:"fieldColor",tab:"字段颜色",render:()=>g(T,{isFieldColor:!0,defaultList:A.fieldColorList})},{name:"highlightRow",tab:"高亮行",render:()=>g(T,{isFieldColor:!1,defaultList:A.highlightRowColorList})},{name:"tableStyle",tab:"表格样式",render:()=>g(S)},{name:"fieldFilter",tab:"高级筛选",render:()=>g(_,{defaultList:A.fieldFilterList,showFilterColumnNames:A.showFilterColumnNames})}].filter((e=>A.showTabNames.includes(e.name)))));function E(){var e,l,t,i,r;R("save",{tableFields:null==(e=D.field)?void 0:e.getTableFields(),tableFieldColors:null==(l=D.fieldColor)?void 0:l.getTableFields(),tableHighlightRows:null==(t=D.highlightRow)?void 0:t.getTableFields(),tableStyle:null==(i=D.tableStyle)?void 0:i.getTableFields(),tableFilters:null==(r=D.fieldFilter)?void 0:r.getTableFields()})}function G(e,l){D[l]=e}return N({getTableFields:function(e){var l;return null==(l=D[e||"field"])?void 0:l.getTableFields()}}),(e,l)=>o(O)>0?(s(),d("div",{key:0,class:"c-field-set",style:n(o(z)),ref_key:"fieldSetRef",ref:W},[o(B).length>1?(s(),f(o(w),{key:0,type:"line",naimated:""},{default:u((()=>[(s(!0),d(m,null,h(o(B),(l=>(s(),f(o(C),{key:l.name,name:l.name,tab:l.tab,"display-directive":"show"},{default:u((()=>[(s(),f(v(l.render()),b(e.$attrs,{ref_for:!0,ref:e=>G(e,l.name),onSave:E}),y({_:2},[h(e.$slots,((l,t)=>({name:t,fn:u((()=>[p(e.$slots,t)]))})))]),1040))])),_:2},1032,["name","tab"])))),128))])),_:3})):(s(),f(v(o(B)[0].render()),b({key:1},e.$attrs,{ref:e=>G(e,o(B)[0].name),onSave:E}),y({_:2},[h(e.$slots,((l,t)=>({name:t,fn:u((()=>[p(e.$slots,t)]))})))]),1040))],4)):F("v-if",!0)}});export{N as default};
|