cnhis-design-vue 3.1.41-beta.26 → 3.1.41-beta.28
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/README.md +87 -87
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +1 -0
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
- package/es/components/date-picker/index.d.ts +20 -0
- package/es/components/date-picker/index.js +1 -0
- package/es/components/date-picker/src/DatePicker.vue.d.ts +20 -0
- package/es/components/date-picker/src/DatePicker.vue.js +1 -0
- package/es/components/fabric-chart/src/utils/index.d.ts +6823 -0
- package/es/components/form-config/index.d.ts +5 -5
- package/es/components/form-config/src/FormConfig.vue.d.ts +5 -5
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +3 -3
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +20 -7
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +18 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.js +1 -1
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +3 -1
- package/es/components/index.js +1 -1
- package/es/components/scale-view/src/ScaleView.vue.js +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/index.d.ts +64 -452
- package/es/components/table-filter/src/base-search-com/BaseSearch.vue.d.ts +19 -88
- package/es/components/table-filter/src/base-search-com/BaseSearch.vue.js +1 -1
- package/es/components/table-filter/src/classification/Classification-com.vue.d.ts +37 -253
- package/es/components/table-filter/src/classification/Classification-com.vue.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +0 -42
- package/es/components/table-filter/src/components/classify-filter/index.vue.js +1 -1
- package/es/components/table-filter/src/components/render-widget/index.vue.d.ts +2 -1
- package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -1
- package/es/components/table-filter/src/components/search-filter/index.vue.d.ts +0 -84
- package/es/components/table-filter/src/components/search-filter/index.vue.js +1 -1
- package/es/components/table-filter/src/components/set-classification/index.vue.d.ts +4 -130
- package/es/components/table-filter/src/components/set-classification/index.vue.js +1 -1
- package/es/components/table-filter/src/components/table-modal/index.vue.d.ts +3 -43
- package/es/components/table-filter/src/components/table-modal/index.vue.js +1 -1
- package/es/components/table-filter/src/quick-search/QuickSearch.vue.d.ts +10 -113
- package/es/components/table-filter/src/quick-search/QuickSearch.vue.js +1 -1
- package/es/components/table-filter/src/types/index.d.ts +6 -162
- package/es/components/table-filter/style/iconfont.ttf +0 -0
- package/es/components/table-filter/style/index.css +1 -1
- package/es/components/time-picker/index.d.ts +18 -0
- package/es/components/time-picker/index.js +1 -0
- package/es/components/time-picker/src/TimePicker.vue.d.ts +18 -0
- package/es/components/time-picker/src/TimePicker.vue.js +1 -0
- package/es/env.d.ts +24 -24
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +86 -0
- package/es/shared/utils/tapable/index.d.ts +139 -0
- package/package.json +2 -2
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/timeUtils.d.ts +0 -2
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/timeUtils.js +0 -1
|
@@ -59,7 +59,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
59
59
|
originalSetting?: {
|
|
60
60
|
[x: string]: any;
|
|
61
61
|
val_key: string;
|
|
62
|
-
html_type: "LINEBAR" | "
|
|
62
|
+
html_type: "LINEBAR" | "SELECT" | "DATE" | ({} & string) | "COMBINATION" | "INPUT" | "LINE_BREAKS" | "INPUT_NUMBER" | "REMOTE_SEARCH" | "LEVEL_SEARCH_CASCADER" | "SEARCH_CASCADER" | "RADIO" | "CHECKBOX" | "SWITCH" | "SLIDER" | "COMPLEX" | "SEARCH" | "PHONE_TYPE" | "IDCARD_TYPE" | "SEARCH_MORE" | "DIGITAL" | "CHECKBOX_BLOCK" | "RADIO_BLOCK" | "DATE-INPUT" | "DATETIME-INPUT" | "SWITCH_COMPONENT" | "SLIDER_COMPONENT" | "LEVEL_SEARCH_CASCADE" | "SEARCH_CASCADE";
|
|
63
63
|
annotation?: boolean | undefined;
|
|
64
64
|
val_key_unit?: string | undefined;
|
|
65
65
|
is_edit?: import("..").FormCommonState | undefined;
|
|
@@ -1752,7 +1752,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1752
1752
|
originalSetting?: {
|
|
1753
1753
|
[x: string]: any;
|
|
1754
1754
|
val_key: string;
|
|
1755
|
-
html_type: "LINEBAR" | "
|
|
1755
|
+
html_type: "LINEBAR" | "SELECT" | "DATE" | ({} & string) | "COMBINATION" | "INPUT" | "LINE_BREAKS" | "INPUT_NUMBER" | "REMOTE_SEARCH" | "LEVEL_SEARCH_CASCADER" | "SEARCH_CASCADER" | "RADIO" | "CHECKBOX" | "SWITCH" | "SLIDER" | "COMPLEX" | "SEARCH" | "PHONE_TYPE" | "IDCARD_TYPE" | "SEARCH_MORE" | "DIGITAL" | "CHECKBOX_BLOCK" | "RADIO_BLOCK" | "DATE-INPUT" | "DATETIME-INPUT" | "SWITCH_COMPONENT" | "SLIDER_COMPONENT" | "LEVEL_SEARCH_CASCADE" | "SEARCH_CASCADE";
|
|
1756
1756
|
annotation?: boolean | undefined;
|
|
1757
1757
|
val_key_unit?: string | undefined;
|
|
1758
1758
|
is_edit?: import("..").FormCommonState | undefined;
|
|
@@ -4376,7 +4376,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
4376
4376
|
fieldList: import("vue").Ref<{
|
|
4377
4377
|
[x: string]: any;
|
|
4378
4378
|
val_key: string;
|
|
4379
|
-
html_type: "LINEBAR" | "
|
|
4379
|
+
html_type: "LINEBAR" | "SELECT" | "DATE" | ({} & string) | "COMBINATION" | "INPUT" | "LINE_BREAKS" | "INPUT_NUMBER" | "REMOTE_SEARCH" | "LEVEL_SEARCH_CASCADER" | "SEARCH_CASCADER" | "RADIO" | "CHECKBOX" | "SWITCH" | "SLIDER" | "COMPLEX" | "SEARCH" | "PHONE_TYPE" | "IDCARD_TYPE" | "SEARCH_MORE" | "DIGITAL" | "CHECKBOX_BLOCK" | "RADIO_BLOCK" | "DATE-INPUT" | "DATETIME-INPUT" | "SWITCH_COMPONENT" | "SLIDER_COMPONENT" | "LEVEL_SEARCH_CASCADE" | "SEARCH_CASCADE";
|
|
4380
4380
|
annotation?: boolean | undefined;
|
|
4381
4381
|
val_key_unit?: string | undefined;
|
|
4382
4382
|
is_edit?: import("..").FormCommonState | undefined;
|
|
@@ -6082,7 +6082,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
6082
6082
|
originalSetting?: {
|
|
6083
6083
|
[x: string]: any;
|
|
6084
6084
|
val_key: string;
|
|
6085
|
-
html_type: "LINEBAR" | "
|
|
6085
|
+
html_type: "LINEBAR" | "SELECT" | "DATE" | ({} & string) | "COMBINATION" | "INPUT" | "LINE_BREAKS" | "INPUT_NUMBER" | "REMOTE_SEARCH" | "LEVEL_SEARCH_CASCADER" | "SEARCH_CASCADER" | "RADIO" | "CHECKBOX" | "SWITCH" | "SLIDER" | "COMPLEX" | "SEARCH" | "PHONE_TYPE" | "IDCARD_TYPE" | "SEARCH_MORE" | "DIGITAL" | "CHECKBOX_BLOCK" | "RADIO_BLOCK" | "DATE-INPUT" | "DATETIME-INPUT" | "SWITCH_COMPONENT" | "SLIDER_COMPONENT" | "LEVEL_SEARCH_CASCADE" | "SEARCH_CASCADE";
|
|
6086
6086
|
annotation?: boolean | undefined;
|
|
6087
6087
|
val_key_unit?: string | undefined;
|
|
6088
6088
|
is_edit?: import("..").FormCommonState | undefined;
|
|
@@ -7759,7 +7759,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
7759
7759
|
originalSetting?: {
|
|
7760
7760
|
[x: string]: any;
|
|
7761
7761
|
val_key: string;
|
|
7762
|
-
html_type: "LINEBAR" | "
|
|
7762
|
+
html_type: "LINEBAR" | "SELECT" | "DATE" | ({} & string) | "COMBINATION" | "INPUT" | "LINE_BREAKS" | "INPUT_NUMBER" | "REMOTE_SEARCH" | "LEVEL_SEARCH_CASCADER" | "SEARCH_CASCADER" | "RADIO" | "CHECKBOX" | "SWITCH" | "SLIDER" | "COMPLEX" | "SEARCH" | "PHONE_TYPE" | "IDCARD_TYPE" | "SEARCH_MORE" | "DIGITAL" | "CHECKBOX_BLOCK" | "RADIO_BLOCK" | "DATE-INPUT" | "DATETIME-INPUT" | "SWITCH_COMPONENT" | "SLIDER_COMPONENT" | "LEVEL_SEARCH_CASCADE" | "SEARCH_CASCADE";
|
|
7763
7763
|
annotation?: boolean | undefined;
|
|
7764
7764
|
val_key_unit?: string | undefined;
|
|
7765
7765
|
is_edit?: import("..").FormCommonState | undefined;
|
|
@@ -61,7 +61,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
61
61
|
originalSetting?: {
|
|
62
62
|
[x: string]: any;
|
|
63
63
|
val_key: string;
|
|
64
|
-
html_type: "LINEBAR" | "
|
|
64
|
+
html_type: "LINEBAR" | "SELECT" | "DATE" | ({} & string) | "COMBINATION" | "INPUT" | "LINE_BREAKS" | "INPUT_NUMBER" | "REMOTE_SEARCH" | "LEVEL_SEARCH_CASCADER" | "SEARCH_CASCADER" | "RADIO" | "CHECKBOX" | "SWITCH" | "SLIDER" | "COMPLEX" | "SEARCH" | "PHONE_TYPE" | "IDCARD_TYPE" | "SEARCH_MORE" | "DIGITAL" | "CHECKBOX_BLOCK" | "RADIO_BLOCK" | "DATE-INPUT" | "DATETIME-INPUT" | "SWITCH_COMPONENT" | "SLIDER_COMPONENT" | "LEVEL_SEARCH_CASCADE" | "SEARCH_CASCADE";
|
|
65
65
|
annotation?: boolean | undefined;
|
|
66
66
|
val_key_unit?: string | undefined;
|
|
67
67
|
is_edit?: import("../../../../es/components/form-render").FormCommonState | undefined;
|
|
@@ -1754,7 +1754,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1754
1754
|
originalSetting?: {
|
|
1755
1755
|
[x: string]: any;
|
|
1756
1756
|
val_key: string;
|
|
1757
|
-
html_type: "LINEBAR" | "
|
|
1757
|
+
html_type: "LINEBAR" | "SELECT" | "DATE" | ({} & string) | "COMBINATION" | "INPUT" | "LINE_BREAKS" | "INPUT_NUMBER" | "REMOTE_SEARCH" | "LEVEL_SEARCH_CASCADER" | "SEARCH_CASCADER" | "RADIO" | "CHECKBOX" | "SWITCH" | "SLIDER" | "COMPLEX" | "SEARCH" | "PHONE_TYPE" | "IDCARD_TYPE" | "SEARCH_MORE" | "DIGITAL" | "CHECKBOX_BLOCK" | "RADIO_BLOCK" | "DATE-INPUT" | "DATETIME-INPUT" | "SWITCH_COMPONENT" | "SLIDER_COMPONENT" | "LEVEL_SEARCH_CASCADE" | "SEARCH_CASCADE";
|
|
1758
1758
|
annotation?: boolean | undefined;
|
|
1759
1759
|
val_key_unit?: string | undefined;
|
|
1760
1760
|
is_edit?: import("../../../../es/components/form-render").FormCommonState | undefined;
|
|
@@ -4378,7 +4378,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4378
4378
|
fieldList: import("vue").Ref<{
|
|
4379
4379
|
[x: string]: any;
|
|
4380
4380
|
val_key: string;
|
|
4381
|
-
html_type: "LINEBAR" | "
|
|
4381
|
+
html_type: "LINEBAR" | "SELECT" | "DATE" | ({} & string) | "COMBINATION" | "INPUT" | "LINE_BREAKS" | "INPUT_NUMBER" | "REMOTE_SEARCH" | "LEVEL_SEARCH_CASCADER" | "SEARCH_CASCADER" | "RADIO" | "CHECKBOX" | "SWITCH" | "SLIDER" | "COMPLEX" | "SEARCH" | "PHONE_TYPE" | "IDCARD_TYPE" | "SEARCH_MORE" | "DIGITAL" | "CHECKBOX_BLOCK" | "RADIO_BLOCK" | "DATE-INPUT" | "DATETIME-INPUT" | "SWITCH_COMPONENT" | "SLIDER_COMPONENT" | "LEVEL_SEARCH_CASCADE" | "SEARCH_CASCADE";
|
|
4382
4382
|
annotation?: boolean | undefined;
|
|
4383
4383
|
val_key_unit?: string | undefined;
|
|
4384
4384
|
is_edit?: import("../../../../es/components/form-render").FormCommonState | undefined;
|
|
@@ -6084,7 +6084,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6084
6084
|
originalSetting?: {
|
|
6085
6085
|
[x: string]: any;
|
|
6086
6086
|
val_key: string;
|
|
6087
|
-
html_type: "LINEBAR" | "
|
|
6087
|
+
html_type: "LINEBAR" | "SELECT" | "DATE" | ({} & string) | "COMBINATION" | "INPUT" | "LINE_BREAKS" | "INPUT_NUMBER" | "REMOTE_SEARCH" | "LEVEL_SEARCH_CASCADER" | "SEARCH_CASCADER" | "RADIO" | "CHECKBOX" | "SWITCH" | "SLIDER" | "COMPLEX" | "SEARCH" | "PHONE_TYPE" | "IDCARD_TYPE" | "SEARCH_MORE" | "DIGITAL" | "CHECKBOX_BLOCK" | "RADIO_BLOCK" | "DATE-INPUT" | "DATETIME-INPUT" | "SWITCH_COMPONENT" | "SLIDER_COMPONENT" | "LEVEL_SEARCH_CASCADE" | "SEARCH_CASCADE";
|
|
6088
6088
|
annotation?: boolean | undefined;
|
|
6089
6089
|
val_key_unit?: string | undefined;
|
|
6090
6090
|
is_edit?: import("../../../../es/components/form-render").FormCommonState | undefined;
|
|
@@ -7761,7 +7761,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7761
7761
|
originalSetting?: {
|
|
7762
7762
|
[x: string]: any;
|
|
7763
7763
|
val_key: string;
|
|
7764
|
-
html_type: "LINEBAR" | "
|
|
7764
|
+
html_type: "LINEBAR" | "SELECT" | "DATE" | ({} & string) | "COMBINATION" | "INPUT" | "LINE_BREAKS" | "INPUT_NUMBER" | "REMOTE_SEARCH" | "LEVEL_SEARCH_CASCADER" | "SEARCH_CASCADER" | "RADIO" | "CHECKBOX" | "SWITCH" | "SLIDER" | "COMPLEX" | "SEARCH" | "PHONE_TYPE" | "IDCARD_TYPE" | "SEARCH_MORE" | "DIGITAL" | "CHECKBOX_BLOCK" | "RADIO_BLOCK" | "DATE-INPUT" | "DATETIME-INPUT" | "SWITCH_COMPONENT" | "SLIDER_COMPONENT" | "LEVEL_SEARCH_CASCADE" | "SEARCH_CASCADE";
|
|
7765
7765
|
annotation?: boolean | undefined;
|
|
7766
7766
|
val_key_unit?: string | undefined;
|
|
7767
7767
|
is_edit?: import("../../../../es/components/form-render").FormCommonState | undefined;
|
|
@@ -26,7 +26,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
26
26
|
fieldList: import("vue").Ref<{
|
|
27
27
|
[x: string]: any;
|
|
28
28
|
val_key: string;
|
|
29
|
-
html_type: "LINEBAR" | "
|
|
29
|
+
html_type: "LINEBAR" | "SELECT" | "DATE" | ({} & string) | "COMBINATION" | "INPUT" | "LINE_BREAKS" | "INPUT_NUMBER" | "REMOTE_SEARCH" | "LEVEL_SEARCH_CASCADER" | "SEARCH_CASCADER" | "RADIO" | "CHECKBOX" | "SWITCH" | "SLIDER" | "COMPLEX" | "SEARCH" | "PHONE_TYPE" | "IDCARD_TYPE" | "SEARCH_MORE" | "DIGITAL" | "CHECKBOX_BLOCK" | "RADIO_BLOCK" | "DATE-INPUT" | "DATETIME-INPUT" | "SWITCH_COMPONENT" | "SLIDER_COMPONENT" | "LEVEL_SEARCH_CASCADE" | "SEARCH_CASCADE";
|
|
30
30
|
annotation?: boolean | undefined;
|
|
31
31
|
val_key_unit?: string | undefined;
|
|
32
32
|
is_edit?: import("../../../../../es/components/form-render").FormCommonState | undefined;
|
|
@@ -1732,7 +1732,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1732
1732
|
originalSetting?: {
|
|
1733
1733
|
[x: string]: any;
|
|
1734
1734
|
val_key: string;
|
|
1735
|
-
html_type: "LINEBAR" | "
|
|
1735
|
+
html_type: "LINEBAR" | "SELECT" | "DATE" | ({} & string) | "COMBINATION" | "INPUT" | "LINE_BREAKS" | "INPUT_NUMBER" | "REMOTE_SEARCH" | "LEVEL_SEARCH_CASCADER" | "SEARCH_CASCADER" | "RADIO" | "CHECKBOX" | "SWITCH" | "SLIDER" | "COMPLEX" | "SEARCH" | "PHONE_TYPE" | "IDCARD_TYPE" | "SEARCH_MORE" | "DIGITAL" | "CHECKBOX_BLOCK" | "RADIO_BLOCK" | "DATE-INPUT" | "DATETIME-INPUT" | "SWITCH_COMPONENT" | "SLIDER_COMPONENT" | "LEVEL_SEARCH_CASCADE" | "SEARCH_CASCADE";
|
|
1736
1736
|
annotation?: boolean | undefined;
|
|
1737
1737
|
val_key_unit?: string | undefined;
|
|
1738
1738
|
is_edit?: import("../../../../../es/components/form-render").FormCommonState | undefined;
|
|
@@ -3409,7 +3409,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3409
3409
|
originalSetting?: {
|
|
3410
3410
|
[x: string]: any;
|
|
3411
3411
|
val_key: string;
|
|
3412
|
-
html_type: "LINEBAR" | "
|
|
3412
|
+
html_type: "LINEBAR" | "SELECT" | "DATE" | ({} & string) | "COMBINATION" | "INPUT" | "LINE_BREAKS" | "INPUT_NUMBER" | "REMOTE_SEARCH" | "LEVEL_SEARCH_CASCADER" | "SEARCH_CASCADER" | "RADIO" | "CHECKBOX" | "SWITCH" | "SLIDER" | "COMPLEX" | "SEARCH" | "PHONE_TYPE" | "IDCARD_TYPE" | "SEARCH_MORE" | "DIGITAL" | "CHECKBOX_BLOCK" | "RADIO_BLOCK" | "DATE-INPUT" | "DATETIME-INPUT" | "SWITCH_COMPONENT" | "SLIDER_COMPONENT" | "LEVEL_SEARCH_CASCADE" | "SEARCH_CASCADE";
|
|
3413
3413
|
annotation?: boolean | undefined;
|
|
3414
3414
|
val_key_unit?: string | undefined;
|
|
3415
3415
|
is_edit?: import("../../../../../es/components/form-render").FormCommonState | undefined;
|
|
@@ -45,8 +45,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
45
45
|
emit: (event: "update:value", ...args: any[]) => void;
|
|
46
46
|
formRef: import("vue").Ref<HTMLElement | null>;
|
|
47
47
|
isShow: import("vue").Ref<boolean>;
|
|
48
|
-
formattedValue:
|
|
49
|
-
onConfirm: (value:
|
|
48
|
+
formattedValue: any;
|
|
49
|
+
onConfirm: (value: any) => void;
|
|
50
50
|
isStartDate: any;
|
|
51
51
|
isEndDate: any;
|
|
52
52
|
connectField: string;
|
|
@@ -58,8 +58,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
58
58
|
isSecondDisabled: (second: number) => boolean;
|
|
59
59
|
};
|
|
60
60
|
customDateDisabledDecorator: (customDateDisabled?: Func) => ((ts: number) => any) | null;
|
|
61
|
-
getFormatDate: (str: string) => string;
|
|
62
|
-
onBlur: () => void;
|
|
63
61
|
formatConfig: import("vue").ComputedRef<{
|
|
64
62
|
valueFormat: string;
|
|
65
63
|
format: string;
|
|
@@ -68,9 +66,24 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
68
66
|
};
|
|
69
67
|
}>;
|
|
70
68
|
dateConfig: AnyObject;
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
69
|
+
DatePicker: import("../../../../../../../../es/shared/types").SFCWithInstall<import("vue").DefineComponent<{}, {
|
|
70
|
+
attrs: {
|
|
71
|
+
[x: string]: unknown;
|
|
72
|
+
};
|
|
73
|
+
emits: (event: "update:formattedValue", ...args: any[]) => void;
|
|
74
|
+
datePickerRef: import("vue").Ref<null>;
|
|
75
|
+
__formattedValue: import("vue").Ref<any>;
|
|
76
|
+
keyupValue: import("vue").Ref<string>;
|
|
77
|
+
inputIndex: number;
|
|
78
|
+
placeholder: string;
|
|
79
|
+
formatRef: import("vue").ComputedRef<unknown>;
|
|
80
|
+
updateFormattedValue: (value: any) => void;
|
|
81
|
+
onBlur: () => void;
|
|
82
|
+
onKeyUp: (event: AnyObject) => any;
|
|
83
|
+
NDatePicker: any;
|
|
84
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:formattedValue"[], "update:formattedValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
|
|
85
|
+
"onUpdate:formattedValue"?: ((...args: any[]) => any) | undefined;
|
|
86
|
+
}, {}>>;
|
|
74
87
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
75
88
|
value: {
|
|
76
89
|
type: StringConstructor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,useAttrs as t,ref as r,computed as
|
|
1
|
+
import{defineComponent as e,useAttrs as t,ref as r,computed as o,watch as i,openBlock as a,createBlock as s,unref as u,mergeProps as l,isRef as n}from"vue";import{generateTimeFormat as m}from"../../../../../../../shared/utils/index.js";import{isFunction as d}from"lodash-es";import{useIhoTableFormEvent as p}from"../../../../utils/index.js";import{useAutoFocus as c}from"../hooks/useAutoFocus.js";import f from"../../../../../../date-picker/index.js";import w from"../../../../../../../_virtual/plugin-vue_export-helper.js";var v=w(e({__name:"editDate",props:{value:{type:String,default:void 0},column:{type:Object,required:!0},row:{type:Object,required:!0},rowIndex:{type:Number,required:!0}},emits:["update:value"],setup(e,{emit:w}){const v=e,D=t(),{emitFormChangeWithParams:g}=p(v),{formRef:h,isShow:y}=c(),b=r(v.value),j=e=>{b.value=e;const t=v.value;w("update:value",e),g({oldValue:t})},{isStartDate:S=!1,isEndDate:T=!1}=D,$=D.connectField||"",_=(e,t)=>S&&$?e>t:!(!T||!$)&&e<t,x=e=>{const t=new Date(v.row[$]),r=new Date(e),o=t.getHours(),i=t.getMinutes(),a=t.getSeconds(),s=(e,t,r,o)=>!(T&&r>o)&&(!(S&&r<o)&&_(e,t));return{isHourDisabled:t=>{if(!v.row[$])return!1;const i=new Date(`${v.row[$].split(" ")[0]} 00:00:00`).getTime(),a=r.getMinutes(),u=r.getSeconds();return s(t,o,e-60*t*60*1e3-60*a*1e3-1e3*u,i)},isMinuteDisabled:t=>{if(!v.row[$])return!1;const a=new Date(`${v.row[$].split(" ")[0]} ${o}:00:00`).getTime(),u=r.getSeconds();return s(t,i,e-60*t*1e3-1e3*u,a)},isSecondDisabled:t=>{if(!v.row[$])return!1;const r=new Date(`${v.row[$].split(" ")[0]} ${o}:${i}:00`).getTime();return s(t,a,e-1e3*t,r)}}};function F(e){return d(e)?t=>e(t,v.row):null}const M=o((()=>{const e=D.valueFormat||"yyyy-MM-dd HH:mm:ss";return{valueFormat:e,format:e,timePickerProps:{format:m(e)}}})),k={type:D.type||"datetime",clearable:!0,placeholder:D.placeholder||"请选择",...D,...M.value,isDateDisabled:F(D.isDateDisabled)||(e=>!!v.row[$]&&_(e,T?new Date(`${v.row[$].split(" ")[0]} 00:00:00`).getTime():new Date(v.row[$]).getTime()))};return k.type.includes("time")&&(k.isTimeDisabled=F(D.isTimeDisabled)||x),i((()=>v.value),(e=>{b.value=e})),(e,t)=>(a(),s(u(f),l({ref_key:"formRef",ref:h,show:u(y),"onUpdate:show":t[0]||(t[0]=e=>n(y)?y.value=e:null),"formatted-value":b.value},u(k),{"onUpdate:formattedValue":j}),null,16,["show","formatted-value"]))}}),[["__file","editDate.vue"]]);export{v as default};
|
|
@@ -52,13 +52,30 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
52
52
|
shortcutOptions: any;
|
|
53
53
|
timeConfig: AnyObject;
|
|
54
54
|
clickShortcutOption: (item: string) => void;
|
|
55
|
+
onUpdateFormattedValue: (value: string) => void;
|
|
55
56
|
onBlur: () => void;
|
|
56
|
-
|
|
57
|
+
onKeyUp: (event: AnyObject) => void;
|
|
57
58
|
NInput: any;
|
|
58
59
|
NPopover: any;
|
|
59
60
|
NSpace: any;
|
|
60
61
|
NButton: any;
|
|
61
62
|
NScrollbar: any;
|
|
63
|
+
TimePicker: import("../../../../../../../../es/shared/types").SFCWithInstall<import("vue").DefineComponent<{}, {
|
|
64
|
+
attrs: {
|
|
65
|
+
[x: string]: unknown;
|
|
66
|
+
};
|
|
67
|
+
emits: (event: "update:formattedValue", ...args: any[]) => void;
|
|
68
|
+
timePickerRef: import("vue").Ref<null>;
|
|
69
|
+
__formattedValue: import("vue").Ref<any>;
|
|
70
|
+
keyupValue: import("vue").Ref<string>;
|
|
71
|
+
formatRef: import("vue").ComputedRef<string>;
|
|
72
|
+
updateFormattedValue: (value: any) => void;
|
|
73
|
+
onBlur: () => void;
|
|
74
|
+
onKeyUp: (event: AnyObject) => any;
|
|
75
|
+
NTimePicker: any;
|
|
76
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:formattedValue"[], "update:formattedValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
|
|
77
|
+
"onUpdate:formattedValue"?: ((...args: any[]) => any) | undefined;
|
|
78
|
+
}, {}>>;
|
|
62
79
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "update:formattedValue")[], "click" | "update:formattedValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
63
80
|
formattedValue: {
|
|
64
81
|
type: StringConstructor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,useAttrs as t,ref as a,openBlock as
|
|
1
|
+
import{defineComponent as e,useAttrs as t,ref as a,openBlock as o,createBlock as l,unref as r,mergeProps as u,withCtx as i,createVNode as m,isRef as n,createElementBlock as d,Fragment as f,renderList as s,createTextVNode as c,toDisplayString as p,createCommentVNode as v}from"vue";import{NPopover as _,NInput as h,NSpace as y,NScrollbar as k,NButton as V}from"naive-ui";import{useIhoTableFormEvent as w}from"../../../../utils/index.js";import{useAutoFocus as b}from"../hooks/useAutoFocus.js";import g from"../../../../../../time-picker/index.js";import{parse as C,isValid as j,format as F}from"date-fns";import x from"../../../../../../../_virtual/plugin-vue_export-helper.js";var H=x(e({__name:"editTime",props:{formattedValue:{type:String,default:void 0},column:{type:Object,required:!0},row:{type:Object,required:!0},rowIndex:{type:Number,required:!0}},emits:["update:formattedValue","click"],setup(e,{emit:x}){const H=e,q=t(),{emitFormChangeWithParams:O}=w(H),{formRef:A,isShow:M}=b(),R=a(H.formattedValue);let S=H.formattedValue;const{placeholder:T="请选择",valueFormat:U="HH:mm",shortcutOptions:z=[]}=q,B={placeholder:T,valueFormat:U,format:U||"yyyy-MM-dd HH:mm:ss"};function D(e){R.value=e,S!==e&&(x("update:formattedValue",e),O({oldValue:S}),S=e)}function I(){const e=C(H.formattedValue||"",B.valueFormat.replace(/:/,""),new Date);if(j(e)){D(F(e,B.valueFormat))}}function K(e){var t;const{keyCode:a=0}=e;13==a&&(null==(t=A.value)||t.blur(),M.value=!1)}return(t,a)=>(o(),l(r(_),u({show:r(M),trigger:"click",showArrow:!1,placement:"bottom-start",style:{padding:"0"}},t.$attrs,{onClickoutside:a[3]||(a[3]=()=>M.value=!1)}),{trigger:i((()=>[m(r(h),{ref_key:"formRef",ref:A,clearable:"",value:e.formattedValue,"onUpdate:value":a[0]||(a[0]=e=>n(formattedValue)?formattedValue.value=e:null),onClick:a[1]||(a[1]=()=>M.value=!0),onBlur:I,onKeyup:K},null,8,["value"])])),default:i((()=>[m(r(y),null,{default:i((()=>[m(r(g),u({show:"","formatted-value":R.value},r(B),{class:"iho-table__time-picker",to:!1,"onUpdate:formattedValue":D,onConfirm:a[2]||(a[2]=()=>M.value=!1)}),null,16,["formatted-value"]),m(r(k),{class:"iho-table__scrollbar"},{default:i((()=>[r(z).length?(o(),l(r(y),{key:0,vertical:"",wrap:!1},{default:i((()=>[(o(!0),d(f,null,s(r(z),(e=>(o(),l(r(V),{size:"tiny",key:e,onClick:t=>function(e){D(e),M.value=!1}(e)},{default:i((()=>[c(p(e),1)])),_:2},1032,["onClick"])))),128))])),_:1})):v("v-if",!0)])),_:1})])),_:1})])),_:1},16,["show"]))}}),[["__file","editTime.vue"]]);export{H as default};
|