cnhis-design-vue 3.1.52-beta.3 → 3.1.52-beta.30
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/body-select/index.d.ts +57 -0
- package/es/components/body-select/index.js +1 -0
- package/es/components/body-select/src/config/index.d.ts +101 -0
- package/es/components/body-select/src/config/index.js +1 -0
- package/es/components/body-select/src/hooks/renderCanvas.d.ts +6 -0
- package/es/components/body-select/src/hooks/renderCanvas.js +1 -0
- package/es/components/body-select/src/index.vue.d.ts +58 -0
- package/es/components/body-select/src/index.vue.js +1 -0
- package/es/components/body-select/src/index.vue2.js +1 -0
- package/es/components/body-select/style/index.css +1 -0
- package/es/components/button-print/src/utils/print.d.ts +3 -3
- package/es/components/button-print/src/utils/print.js +1 -1
- package/es/components/callback/src/components/render/popupMaps.d.ts +45 -41
- package/es/components/classification/index.d.ts +82 -10
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +82 -10
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +82 -10
- package/es/components/classification/src/index.vue.d.ts +82 -10
- package/es/components/classification/style/index.css +1 -1
- package/es/components/date-picker/index.d.ts +38 -3
- package/es/components/date-picker/src/DatePicker.vue.d.ts +38 -3
- package/es/components/date-picker/src/DatePicker.vue2.js +1 -1
- package/es/components/expand-field/src/components/form.vue2.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useLeft.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useTop.js +1 -1
- package/es/components/fabric-chart/src/hooks/useGrid.js +1 -1
- package/es/components/fabric-chart/src/hooks/useScaleColumn.js +1 -1
- package/es/components/fabric-chart/src/interface.d.ts +2 -2
- package/es/components/form-config/index.d.ts +2 -2
- package/es/components/form-config/src/FormConfig.vue.d.ts +74 -74
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +37 -37
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +37 -37
- package/es/components/form-config/src/hooks/useConfigurationField.js +1 -1
- package/es/components/form-render/index.d.ts +37 -37
- package/es/components/form-render/index.js +1 -1
- package/es/components/form-render/src/FormRender.vue.d.ts +1 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +37 -37
- package/es/components/form-render/src/components/renderer/date.d.ts +25 -0
- package/es/components/form-render/src/components/renderer/date.js +1 -1
- package/es/components/form-render/src/components/renderer/levelSearchCascader.js +1 -1
- package/es/components/form-render/src/components/renderer/radio&checkbox.d.ts +6 -0
- package/es/components/form-render/src/components/renderer/radio_checkbox.js +1 -1
- package/es/components/form-render/src/components/renderer/select.d.ts +7 -0
- package/es/components/form-render/src/components/renderer/select.js +1 -1
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
- package/es/components/form-render/src/hooks/useFormEvent.d.ts +2 -2
- package/es/components/form-render/src/hooks/useFormEvent.js +1 -1
- package/es/components/form-render/src/types/fieldItem.d.ts +1 -1
- package/es/components/form-render/src/types/fieldItem.js +1 -1
- package/es/components/form-render/src/types/index.d.ts +2 -2
- package/es/components/form-render/src/types/index.js +1 -1
- package/es/components/iho-table/index.d.ts +8 -4
- package/es/components/iho-table/index.js +1 -1
- package/es/components/iho-table/src/IhoTable.vue.d.ts +8 -4
- package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.d.ts +3 -1
- package/es/components/iho-table/src/plugins/copyPastePlugin.d.ts +1 -0
- package/es/components/iho-table/src/plugins/copyPastePlugin.js +1 -0
- package/es/components/iho-table/src/plugins/defaultValuePlugin.js +1 -1
- package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +38 -3
- package/es/components/iho-table/src/plugins/forceArrowKeyPlugin.d.ts +1 -0
- package/es/components/iho-table/src/plugins/forceArrowKeyPlugin.js +1 -0
- package/es/components/iho-table/src/plugins/index.js +1 -1
- package/es/components/iho-table/src/plugins/keyboardEventPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +38 -3
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue2.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.d.ts +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +2 -7
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue2.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/types/index.d.ts +16 -12
- package/es/components/iho-table/src/utils/index.d.ts +2 -0
- package/es/components/iho-table/src/utils/index.js +1 -1
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +2 -1
- package/es/components/index.js +1 -1
- package/es/components/info-header/index.d.ts +2 -2
- package/es/components/info-header/src/InfoHeader.vue.d.ts +75 -75
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +38 -38
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +37 -37
- package/es/components/keyboard/src/Keyboard.vue2.js +1 -1
- package/es/components/quick-search/index.d.ts +3 -1
- package/es/components/quick-search/src/index.vue.d.ts +3 -1
- package/es/components/quick-search/src/index.vue2.js +1 -1
- package/es/components/quick-search/style/index.css +1 -1
- package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
- package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
- package/es/components/select-person/src/SearchMultiple.vue.d.ts +6 -0
- package/es/components/select-person/src/SearchOrgAndStaff.vue2.js +1 -1
- package/es/components/select-person/src/SelectPerson.vue2.js +1 -1
- package/es/components/shortcut-setter/index.d.ts +1 -1
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +37 -37
- package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +0 -3
- package/es/components/table-filter/index.d.ts +2 -0
- package/es/components/table-filter/index.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +76 -8
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +38 -4
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +38 -4
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +76 -8
- package/es/components/table-filter/src/components/classify-filter/hooks/useDisplayCategory.d.ts +2 -2
- package/es/components/table-filter/src/components/classify-filter/hooks/useDisplayCategory.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +82 -10
- package/es/components/table-filter/src/components/classify-filter/index.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +38 -3
- package/es/components/table-filter/src/components/render-widget/components/DateInner.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +38 -3
- package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +38 -3
- package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +38 -3
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +152 -12
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +152 -12
- package/es/components/table-filter/src/hooks/useRenderWidget.js +1 -1
- package/es/components/time-picker/src/TimePicker.vue2.js +1 -1
- package/es/env.d.ts +25 -25
- package/es/shared/assets/img/failure.png.js +1 -1
- package/es/shared/assets/img/no-permission.png.js +1 -1
- package/es/shared/assets/img/nodata.png.js +1 -1
- package/es/shared/assets/img/notfound.png.js +1 -1
- package/es/shared/assets/img/qr.png.js +1 -1
- package/es/shared/assets/img/success.png.js +1 -1
- package/es/shared/assets/img/video.png.js +1 -1
- package/es/shared/assets/img/video_default_cover.png.js +1 -1
- package/es/shared/assets/img/xb_big.png.js +1 -1
- package/es/shared/assets/img/xb_small.png.js +1 -1
- package/es/shared/components/InputNumberSlash/InputNumberSlash.d.ts +9 -0
- package/es/shared/components/InputNumberSlash/InputNumberSlash.js +1 -1
- package/es/shared/hooks/useDateTime.d.ts +8 -2
- package/es/shared/hooks/useDateTime.js +1 -1
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
- package/es/shared/utils/fabricjs/index.d.ts +0 -6823
- package/es/shared/utils/tapable/index.d.ts +0 -139
|
@@ -443,6 +443,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
443
443
|
}[];
|
|
444
444
|
};
|
|
445
445
|
loading: import("vue").Ref<boolean>;
|
|
446
|
+
parentInputRef: import("vue").Ref<any>;
|
|
447
|
+
parentInputAddRef: import("vue").Ref<any>;
|
|
446
448
|
DisplayCategoryState: {
|
|
447
449
|
addDisplayCategory: string;
|
|
448
450
|
displayCategories: {
|
|
@@ -453,10 +455,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
453
455
|
showAdd: boolean;
|
|
454
456
|
};
|
|
455
457
|
isEnableAddDisplayCategory: import("vue").ComputedRef<boolean>;
|
|
456
|
-
editDisplayCategory: (
|
|
458
|
+
editDisplayCategory: (item: import("../../../../../../es/components/table-filter/src/types").ICategoryItemType, cb?: any) => void;
|
|
457
459
|
handleDisplayCategorySelect: (item: import("../../../../../../es/components/table-filter/src/types").ICategoryItemType) => void;
|
|
458
460
|
handleDisplayCategoryRemove: (index: number, item: import("../../../../../../es/components/table-filter/src/types").ICategoryItemType) => void;
|
|
459
|
-
handleDisplayCategoryAdd: (
|
|
461
|
+
handleDisplayCategoryAdd: (cb?: any) => void;
|
|
460
462
|
handlerBlur: () => void;
|
|
461
463
|
initDisplayCategories: (rawDataDisplayCategories: any, displayCategory: any) => void;
|
|
462
464
|
FilterConditionsState: any;
|
|
@@ -468,6 +470,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
468
470
|
getParamCfg: (key: string) => any;
|
|
469
471
|
initFilterConditions: (tableId: string, rawConditions: import("../../../../../../es/components/table-filter/src/types").ISearchConfigType) => Promise<void>;
|
|
470
472
|
getRawFilterConditions: () => any[];
|
|
473
|
+
handleEditDisplayCategory: (item: import("../../../../../../es/components/table-filter/src/types").ICategoryItemType) => void;
|
|
474
|
+
handleDisplayCategoryAddState: () => void;
|
|
471
475
|
findConditionByDisplayCategory: (sid: string) => unknown;
|
|
472
476
|
handleDisplayCategorySelectProxy: (item: import("../../../../../../es/components/table-filter/src/types").ICategoryItemType) => void;
|
|
473
477
|
clearFormData: () => void;
|
|
@@ -576,7 +580,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
576
580
|
label: string;
|
|
577
581
|
value: string;
|
|
578
582
|
}[]>;
|
|
579
|
-
initMounted: () => void;
|
|
580
583
|
isDateDisabled: (ts: number) => boolean;
|
|
581
584
|
timeDisabled: (ts: number) => {
|
|
582
585
|
isHourDisabled(hour: number): boolean | undefined;
|
|
@@ -590,6 +593,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
590
593
|
onConfirm: {
|
|
591
594
|
type: FunctionConstructor;
|
|
592
595
|
};
|
|
596
|
+
formattedValue: {
|
|
597
|
+
type: StringConstructor;
|
|
598
|
+
};
|
|
599
|
+
placeholder: {
|
|
600
|
+
type: StringConstructor;
|
|
601
|
+
};
|
|
602
|
+
allowedInvalidValue: {
|
|
603
|
+
type: StringConstructor;
|
|
604
|
+
};
|
|
593
605
|
}, {
|
|
594
606
|
attrs: {
|
|
595
607
|
[x: string]: unknown;
|
|
@@ -601,9 +613,23 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
601
613
|
onConfirm: {
|
|
602
614
|
type: FunctionConstructor;
|
|
603
615
|
};
|
|
604
|
-
|
|
616
|
+
formattedValue: {
|
|
617
|
+
type: StringConstructor;
|
|
618
|
+
};
|
|
619
|
+
placeholder: {
|
|
620
|
+
type: StringConstructor;
|
|
621
|
+
};
|
|
622
|
+
allowedInvalidValue: {
|
|
623
|
+
type: StringConstructor;
|
|
624
|
+
};
|
|
625
|
+
}>> & {
|
|
626
|
+
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
|
627
|
+
}>>;
|
|
628
|
+
emit: (event: "update:formatted-value", ...args: any[]) => void;
|
|
605
629
|
datePickerRef: import("vue").Ref<import("../../../..").AnyObject | null>;
|
|
606
630
|
panelInstRef: import("vue").Ref<null>;
|
|
631
|
+
placeholderRef: import("vue").Ref<any>;
|
|
632
|
+
currentFormattedValue: import("vue").WritableComputedRef<string | null | undefined>;
|
|
607
633
|
isDateTime: import("vue").ComputedRef<boolean>;
|
|
608
634
|
formatRef: import("vue").ComputedRef<string>;
|
|
609
635
|
panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
|
|
@@ -612,15 +638,27 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
612
638
|
handleConfirm: (target: HTMLInputElement) => void;
|
|
613
639
|
onUpdateShow: (show: boolean) => void;
|
|
614
640
|
onConfirm: (...args: any[]) => Promise<void>;
|
|
641
|
+
isAllowedInvalidValue: (value?: string) => boolean | "" | undefined;
|
|
615
642
|
NDatePicker: any;
|
|
616
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
643
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:formatted-value"[], "update:formatted-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
617
644
|
updateUnchangedValue: {
|
|
618
645
|
type: BooleanConstructor;
|
|
619
646
|
};
|
|
620
647
|
onConfirm: {
|
|
621
648
|
type: FunctionConstructor;
|
|
622
649
|
};
|
|
623
|
-
|
|
650
|
+
formattedValue: {
|
|
651
|
+
type: StringConstructor;
|
|
652
|
+
};
|
|
653
|
+
placeholder: {
|
|
654
|
+
type: StringConstructor;
|
|
655
|
+
};
|
|
656
|
+
allowedInvalidValue: {
|
|
657
|
+
type: StringConstructor;
|
|
658
|
+
};
|
|
659
|
+
}>> & {
|
|
660
|
+
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
|
661
|
+
}, {
|
|
624
662
|
updateUnchangedValue: boolean;
|
|
625
663
|
}>>;
|
|
626
664
|
NSelect: any;
|
|
@@ -1160,7 +1198,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1160
1198
|
value: string;
|
|
1161
1199
|
}[]>;
|
|
1162
1200
|
presetValCp: import("vue").WritableComputedRef<string>;
|
|
1163
|
-
initMounted: () => void;
|
|
1164
1201
|
handleChange: (val: any, type: "end" | "start") => void;
|
|
1165
1202
|
isStartDateDisabled: (ts: number) => boolean;
|
|
1166
1203
|
timeStartDisabled: (ts: number) => {
|
|
@@ -1183,6 +1220,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1183
1220
|
onConfirm: {
|
|
1184
1221
|
type: FunctionConstructor;
|
|
1185
1222
|
};
|
|
1223
|
+
formattedValue: {
|
|
1224
|
+
type: StringConstructor;
|
|
1225
|
+
};
|
|
1226
|
+
placeholder: {
|
|
1227
|
+
type: StringConstructor;
|
|
1228
|
+
};
|
|
1229
|
+
allowedInvalidValue: {
|
|
1230
|
+
type: StringConstructor;
|
|
1231
|
+
};
|
|
1186
1232
|
}, {
|
|
1187
1233
|
attrs: {
|
|
1188
1234
|
[x: string]: unknown;
|
|
@@ -1194,9 +1240,23 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1194
1240
|
onConfirm: {
|
|
1195
1241
|
type: FunctionConstructor;
|
|
1196
1242
|
};
|
|
1197
|
-
|
|
1243
|
+
formattedValue: {
|
|
1244
|
+
type: StringConstructor;
|
|
1245
|
+
};
|
|
1246
|
+
placeholder: {
|
|
1247
|
+
type: StringConstructor;
|
|
1248
|
+
};
|
|
1249
|
+
allowedInvalidValue: {
|
|
1250
|
+
type: StringConstructor;
|
|
1251
|
+
};
|
|
1252
|
+
}>> & {
|
|
1253
|
+
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
|
1254
|
+
}>>;
|
|
1255
|
+
emit: (event: "update:formatted-value", ...args: any[]) => void;
|
|
1198
1256
|
datePickerRef: import("vue").Ref<import("../../../..").AnyObject | null>;
|
|
1199
1257
|
panelInstRef: import("vue").Ref<null>;
|
|
1258
|
+
placeholderRef: import("vue").Ref<any>;
|
|
1259
|
+
currentFormattedValue: import("vue").WritableComputedRef<string | null | undefined>;
|
|
1200
1260
|
isDateTime: import("vue").ComputedRef<boolean>;
|
|
1201
1261
|
formatRef: import("vue").ComputedRef<string>;
|
|
1202
1262
|
panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
|
|
@@ -1205,15 +1265,27 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1205
1265
|
handleConfirm: (target: HTMLInputElement) => void;
|
|
1206
1266
|
onUpdateShow: (show: boolean) => void;
|
|
1207
1267
|
onConfirm: (...args: any[]) => Promise<void>;
|
|
1268
|
+
isAllowedInvalidValue: (value?: string) => boolean | "" | undefined;
|
|
1208
1269
|
NDatePicker: any;
|
|
1209
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
1270
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:formatted-value"[], "update:formatted-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1210
1271
|
updateUnchangedValue: {
|
|
1211
1272
|
type: BooleanConstructor;
|
|
1212
1273
|
};
|
|
1213
1274
|
onConfirm: {
|
|
1214
1275
|
type: FunctionConstructor;
|
|
1215
1276
|
};
|
|
1216
|
-
|
|
1277
|
+
formattedValue: {
|
|
1278
|
+
type: StringConstructor;
|
|
1279
|
+
};
|
|
1280
|
+
placeholder: {
|
|
1281
|
+
type: StringConstructor;
|
|
1282
|
+
};
|
|
1283
|
+
allowedInvalidValue: {
|
|
1284
|
+
type: StringConstructor;
|
|
1285
|
+
};
|
|
1286
|
+
}>> & {
|
|
1287
|
+
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
|
1288
|
+
}, {
|
|
1217
1289
|
updateUnchangedValue: boolean;
|
|
1218
1290
|
}>>;
|
|
1219
1291
|
WidgetValEnums: {
|
|
@@ -657,6 +657,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
657
657
|
}[];
|
|
658
658
|
};
|
|
659
659
|
loading: import("vue").Ref<boolean>;
|
|
660
|
+
parentInputRef: import("vue").Ref<any>;
|
|
661
|
+
parentInputAddRef: import("vue").Ref<any>;
|
|
660
662
|
DisplayCategoryState: {
|
|
661
663
|
addDisplayCategory: string;
|
|
662
664
|
displayCategories: {
|
|
@@ -667,10 +669,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
667
669
|
showAdd: boolean;
|
|
668
670
|
};
|
|
669
671
|
isEnableAddDisplayCategory: import("vue").ComputedRef<boolean>;
|
|
670
|
-
editDisplayCategory: (
|
|
672
|
+
editDisplayCategory: (item: import("../../../../es/components/table-filter/src/types").ICategoryItemType, cb?: any) => void;
|
|
671
673
|
handleDisplayCategorySelect: (item: import("../../../../es/components/table-filter/src/types").ICategoryItemType) => void;
|
|
672
674
|
handleDisplayCategoryRemove: (index: number, item: import("../../../../es/components/table-filter/src/types").ICategoryItemType) => void;
|
|
673
|
-
handleDisplayCategoryAdd: (
|
|
675
|
+
handleDisplayCategoryAdd: (cb?: any) => void;
|
|
674
676
|
handlerBlur: () => void;
|
|
675
677
|
initDisplayCategories: (rawDataDisplayCategories: any, displayCategory: any) => void;
|
|
676
678
|
FilterConditionsState: any;
|
|
@@ -682,6 +684,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
682
684
|
getParamCfg: (key: string) => any;
|
|
683
685
|
initFilterConditions: (tableId: string, rawConditions: import("../../../../es/components/table-filter/src/types").ISearchConfigType) => Promise<void>;
|
|
684
686
|
getRawFilterConditions: () => any[];
|
|
687
|
+
handleEditDisplayCategory: (item: import("../../../../es/components/table-filter/src/types").ICategoryItemType) => void;
|
|
688
|
+
handleDisplayCategoryAddState: () => void;
|
|
685
689
|
findConditionByDisplayCategory: (sid: string) => unknown;
|
|
686
690
|
handleDisplayCategorySelectProxy: (item: import("../../../../es/components/table-filter/src/types").ICategoryItemType) => void;
|
|
687
691
|
clearFormData: () => void;
|
|
@@ -790,7 +794,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
790
794
|
label: string;
|
|
791
795
|
value: string;
|
|
792
796
|
}[]>;
|
|
793
|
-
initMounted: () => void;
|
|
794
797
|
isDateDisabled: (ts: number) => boolean;
|
|
795
798
|
timeDisabled: (ts: number) => {
|
|
796
799
|
isHourDisabled(hour: number): boolean | undefined;
|
|
@@ -804,6 +807,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
804
807
|
onConfirm: {
|
|
805
808
|
type: FunctionConstructor;
|
|
806
809
|
};
|
|
810
|
+
formattedValue: {
|
|
811
|
+
type: StringConstructor;
|
|
812
|
+
};
|
|
813
|
+
placeholder: {
|
|
814
|
+
type: StringConstructor;
|
|
815
|
+
};
|
|
816
|
+
allowedInvalidValue: {
|
|
817
|
+
type: StringConstructor;
|
|
818
|
+
};
|
|
807
819
|
}, {
|
|
808
820
|
attrs: {
|
|
809
821
|
[x: string]: unknown;
|
|
@@ -815,9 +827,23 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
815
827
|
onConfirm: {
|
|
816
828
|
type: FunctionConstructor;
|
|
817
829
|
};
|
|
818
|
-
|
|
830
|
+
formattedValue: {
|
|
831
|
+
type: StringConstructor;
|
|
832
|
+
};
|
|
833
|
+
placeholder: {
|
|
834
|
+
type: StringConstructor;
|
|
835
|
+
};
|
|
836
|
+
allowedInvalidValue: {
|
|
837
|
+
type: StringConstructor;
|
|
838
|
+
};
|
|
839
|
+
}>> & {
|
|
840
|
+
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
|
841
|
+
}>>;
|
|
842
|
+
emit: (event: "update:formatted-value", ...args: any[]) => void;
|
|
819
843
|
datePickerRef: import("vue").Ref<import("../..").AnyObject | null>;
|
|
820
844
|
panelInstRef: import("vue").Ref<null>;
|
|
845
|
+
placeholderRef: import("vue").Ref<any>;
|
|
846
|
+
currentFormattedValue: import("vue").WritableComputedRef<string | null | undefined>;
|
|
821
847
|
isDateTime: import("vue").ComputedRef<boolean>;
|
|
822
848
|
formatRef: import("vue").ComputedRef<string>;
|
|
823
849
|
panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
|
|
@@ -826,15 +852,27 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
826
852
|
handleConfirm: (target: HTMLInputElement) => void;
|
|
827
853
|
onUpdateShow: (show: boolean) => void;
|
|
828
854
|
onConfirm: (...args: any[]) => Promise<void>;
|
|
855
|
+
isAllowedInvalidValue: (value?: string) => boolean | "" | undefined;
|
|
829
856
|
NDatePicker: any;
|
|
830
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
857
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:formatted-value"[], "update:formatted-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
831
858
|
updateUnchangedValue: {
|
|
832
859
|
type: BooleanConstructor;
|
|
833
860
|
};
|
|
834
861
|
onConfirm: {
|
|
835
862
|
type: FunctionConstructor;
|
|
836
863
|
};
|
|
837
|
-
|
|
864
|
+
formattedValue: {
|
|
865
|
+
type: StringConstructor;
|
|
866
|
+
};
|
|
867
|
+
placeholder: {
|
|
868
|
+
type: StringConstructor;
|
|
869
|
+
};
|
|
870
|
+
allowedInvalidValue: {
|
|
871
|
+
type: StringConstructor;
|
|
872
|
+
};
|
|
873
|
+
}>> & {
|
|
874
|
+
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
|
875
|
+
}, {
|
|
838
876
|
updateUnchangedValue: boolean;
|
|
839
877
|
}>>;
|
|
840
878
|
NSelect: any;
|
|
@@ -1374,7 +1412,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1374
1412
|
value: string;
|
|
1375
1413
|
}[]>;
|
|
1376
1414
|
presetValCp: import("vue").WritableComputedRef<string>;
|
|
1377
|
-
initMounted: () => void;
|
|
1378
1415
|
handleChange: (val: any, type: "end" | "start") => void;
|
|
1379
1416
|
isStartDateDisabled: (ts: number) => boolean;
|
|
1380
1417
|
timeStartDisabled: (ts: number) => {
|
|
@@ -1397,6 +1434,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1397
1434
|
onConfirm: {
|
|
1398
1435
|
type: FunctionConstructor;
|
|
1399
1436
|
};
|
|
1437
|
+
formattedValue: {
|
|
1438
|
+
type: StringConstructor;
|
|
1439
|
+
};
|
|
1440
|
+
placeholder: {
|
|
1441
|
+
type: StringConstructor;
|
|
1442
|
+
};
|
|
1443
|
+
allowedInvalidValue: {
|
|
1444
|
+
type: StringConstructor;
|
|
1445
|
+
};
|
|
1400
1446
|
}, {
|
|
1401
1447
|
attrs: {
|
|
1402
1448
|
[x: string]: unknown;
|
|
@@ -1408,9 +1454,23 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1408
1454
|
onConfirm: {
|
|
1409
1455
|
type: FunctionConstructor;
|
|
1410
1456
|
};
|
|
1411
|
-
|
|
1457
|
+
formattedValue: {
|
|
1458
|
+
type: StringConstructor;
|
|
1459
|
+
};
|
|
1460
|
+
placeholder: {
|
|
1461
|
+
type: StringConstructor;
|
|
1462
|
+
};
|
|
1463
|
+
allowedInvalidValue: {
|
|
1464
|
+
type: StringConstructor;
|
|
1465
|
+
};
|
|
1466
|
+
}>> & {
|
|
1467
|
+
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
|
1468
|
+
}>>;
|
|
1469
|
+
emit: (event: "update:formatted-value", ...args: any[]) => void;
|
|
1412
1470
|
datePickerRef: import("vue").Ref<import("../..").AnyObject | null>;
|
|
1413
1471
|
panelInstRef: import("vue").Ref<null>;
|
|
1472
|
+
placeholderRef: import("vue").Ref<any>;
|
|
1473
|
+
currentFormattedValue: import("vue").WritableComputedRef<string | null | undefined>;
|
|
1414
1474
|
isDateTime: import("vue").ComputedRef<boolean>;
|
|
1415
1475
|
formatRef: import("vue").ComputedRef<string>;
|
|
1416
1476
|
panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
|
|
@@ -1419,15 +1479,27 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1419
1479
|
handleConfirm: (target: HTMLInputElement) => void;
|
|
1420
1480
|
onUpdateShow: (show: boolean) => void;
|
|
1421
1481
|
onConfirm: (...args: any[]) => Promise<void>;
|
|
1482
|
+
isAllowedInvalidValue: (value?: string) => boolean | "" | undefined;
|
|
1422
1483
|
NDatePicker: any;
|
|
1423
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
1484
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:formatted-value"[], "update:formatted-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1424
1485
|
updateUnchangedValue: {
|
|
1425
1486
|
type: BooleanConstructor;
|
|
1426
1487
|
};
|
|
1427
1488
|
onConfirm: {
|
|
1428
1489
|
type: FunctionConstructor;
|
|
1429
1490
|
};
|
|
1430
|
-
|
|
1491
|
+
formattedValue: {
|
|
1492
|
+
type: StringConstructor;
|
|
1493
|
+
};
|
|
1494
|
+
placeholder: {
|
|
1495
|
+
type: StringConstructor;
|
|
1496
|
+
};
|
|
1497
|
+
allowedInvalidValue: {
|
|
1498
|
+
type: StringConstructor;
|
|
1499
|
+
};
|
|
1500
|
+
}>> & {
|
|
1501
|
+
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
|
1502
|
+
}, {
|
|
1431
1503
|
updateUnchangedValue: boolean;
|
|
1432
1504
|
}>>;
|
|
1433
1505
|
WidgetValEnums: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@font-face{font-family:classification-iconfont;src:url(classification-iconfont.ttf) format("truetype")}.iconfont-table-filter{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:classification-iconfont!important;font-size:14px;font-style:normal}.icon-table-filter-menzhenyishengzhananniuqingchu:before{content:"\e74e"}.icon-table-filter-menzhenyishengzhananniushanchu2:before{content:"\e757"}.icon-table-filter-menzhenyishengzhanxitongtubiaoguanbi:before{content:"\e76e"}.icon-table-filter-menzhenyishengzhanxitongtubiaozuixiaohua2:before{content:"\e778"}.icon-table-filter-menzhenyishengzhanxitongtubiaozuidahua:before{content:"\e779"}.icon-table-filter-reset:before{content:"\e611"}.icon-table-filter-shaixuan:before{content:"\e64b"}.classification-modal-block .n-card-header .svg-wrap .iconfont-table-filter{cursor:pointer;font-size:18px}.classification-modal-block .n-card-header .svg-wrap .iconfont-table-filter:last-child{margin-left:16px}.classification-modal-block .n-card-header .svg-wrap .n-icon{cursor:pointer}.classification-modal-block .n-card__content{overflow-y:auto}.classification-modal-block .n-card__content .table-modal-list .list-title{background-color:#f2f2f4;border:1px solid #e1dfdf;display:flex;height:52px;line-height:52px}.classification-modal-block .n-card__content .table-modal-list .list-title .list-title-item{font-weight:700;width:25%}.classification-modal-block .n-card__content .table-modal-list .list-content{padding:0}.classification-modal-block .n-card__content .table-modal-list .list-content li{display:flex;height:52px;line-height:52px}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-item{align-items:center;display:flex;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap;width:25%}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-item .n-icon{cursor:pointer;margin-right:8px}.classification-modal-block .n-card__content .table-modal-list .list-content li.checked,.classification-modal-block .n-card__content .table-modal-list .list-content li.checked .text{background-color:#f2f2f2}.classification-modal-block .n-card__content .table-modal-list .list-content li .text{background-color:#fff;display:inline-block;padding:0 10px;position:relative}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-line{position:relative;text-align:center;width:75%}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-line:before{border:1px solid #e8e8e8;content:"";left:0;margin-top:20px;position:absolute;width:100%}.classification-modal-block .n-card__content .table-modal-list .list-title-item{margin-left:-1px;padding:0 10px}.classification-modal-block .n-card__content .table-modal-list .list-content-item{border-bottom:1px solid #e1dfdf;margin-left:-1px;margin-top:-1px;padding:0 10px}.classification-modal-block .n-card__content .table-modal-list .list-content-item .ant-switch{height:16px;min-width:28px;width:28px}.classification-modal-block .n-card__content .table-modal-list .list-content-item .ant-switch:after{height:12px;width:12px}.classification-modal-block .n-card__content .table-modal-list .list-content-radio,.classification-modal-block .n-card__content .table-modal-list .list-content-switch{text-align:center}.classification-modal-block .n-card__content .table-modal-list .anticon+.anticon{margin-left:8px}.classification-modal-block .n-card__content .class-filter-content .item-name{display:flex;height:32px;line-height:32px;margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .item-name .label{text-align:right;width:120px}.classification-modal-block .n-card__content .class-filter-content .item-name .addAction{align-items:center;cursor:pointer;display:flex}.classification-modal-block .n-card__content .class-filter-content .item-name .blue{color:#2d7aff;margin-right:8px}.classification-modal-block .n-card__content .class-filter-content .n-form-item-label{width:120px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content{align-items:center;display:flex;flex-wrap:wrap;line-height:32px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .label{display:inline-block;height:32px;line-height:32px;margin-bottom:10px;text-align:right;width:120px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .ant-btn-dashed{border-color:#a6a6a6;color:#a6a6a6}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag{margin-bottom:10px;margin-right:10px;position:relative}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag .anticon-close{color:#2d7aff;cursor:pointer;line-height:36px;position:absolute;right:5px;top:2px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag .s-content{align-items:center;background-color:rgba(45,122,255,.1);border:1px solid #2d7aff;border-radius:3px;box-sizing:border-box;color:#2d7aff;cursor:pointer;display:flex;justify-content:center;opacity:1;padding:0 10px;width:100px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag .s-content span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select .ant-input-disabled,.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select .s-content{background-color:#2d7aff;color:#fff}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select .anticon-close{color:#fff}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .ant-btn{margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list{border-top:1px solid #e6e6e6;margin-bottom:6px;margin-top:16px;padding-top:12px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li{align-items:center;display:flex;list-style:none;margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .index-span{display:inline-block;width:30px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .form-item{margin-right:10px;width:120px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .form-item.n-date-picker{width:auto}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .value-cfg_wrapper{display:flex}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .value-cfg_wrapper .form-item{margin-right:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .delete-item-icon{color:red;cursor:pointer;font-size:18px;margin-left:8px}.classification-modal-block .n-card__footer{padding-top:10px}.classification-modal-block .n-card__footer .flex_between{display:flex;justify-content:space-between}.classification-modal-block .n-card__footer .flex_right{display:flex;justify-content:right}.classification-modal-block .n-card__footer .n-button{margin-left:8px}.classification-block .tree-type{border:1px solid #d5d5d5;border-radius:4px;height:100%;line-height:32px;margin-top:0;padding-bottom:80px;width:150px}.classification-block .tree-type .header{border-bottom:1px solid #e6eaef;display:flex;font-size:14px;justify-content:space-between;padding:0 10px}.classification-block .tree-type .header .header-1{align-items:center;cursor:pointer;display:flex}.classification-block .tree-type .tree{height:calc(100% - 32px);line-height:32px;margin:0;overflow:auto;padding-left:0}.classification-block .tree-type .tree::-webkit-scrollbar{width:5px}.classification-block .tree-type .tree .tree-item{border-bottom:1px solid #d5d5d5;cursor:pointer}.classification-block .tree-type .tree .tree-item.tree-header{box-sizing:border-box;padding:0 10px}.classification-block .tree-type .tree .tree-item .parent{align-items:center;display:flex;font-weight:600;justify-content:space-between;padding:0 10px}.classification-block .tree-type .tree .tree-item .parent.open{background-color:#f2f2f2;border-bottom:1px solid #d5d5d5}.classification-block .tree-type .tree .tree-item .header-item{box-sizing:border-box;line-height:1.4}.classification-block .tree-type .tree .tree-item .header-item.selected,.classification-block .tree-type .tree .tree-item .header-item:hover{color:#2d7aff}.classification-block .tree-type .tree .tree-item .header-item:active{border-color:transparent;color:#000}.classification-block .tree-type .tree .tree-item .children{align-items:center;display:flex;height:32px;padding-left:23px;padding-right:10px}.classification-block .tree-type .tree .tree-item .children .child-item{align-items:center;border-bottom:1px solid transparent;color:#7c7c7c;display:flex;line-height:1.5;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-block .tree-type .tree .tree-item .children .child-item:hover{color:#2d7aff}.classification-block .tree-type .tree .tree-item .children .child-item.selected{align-items:center;color:#2d7aff;display:flex;justify-content:space-between;width:100%}.classification-block .tree-type .tree .tree-item .children .child-item:active{border-color:transparent;color:#000}.classification-block .tree-type .tree .tree-item .children .child-item.disabled{color:rgba(0,0,0,.2)}.classification-block .tree-type .tree .tree-item .children .child-item .child-item-content{align-items:center;display:flex}.classification-block .tree-type .tree .tree-item .children .child-item .child-item-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-block .tree-type .tree .tree-item .children .child-item .digital-span{flex:1;margin-left:5px;text-align:left}.classification-block .tree-type .tree .tree-item:last-child{border-bottom:none}.classification-block .tree-type .tree-type-footer{border-top:1px solid #d5d5d5;bottom:0;height:80px;line-height:20px;padding-left:16px;position:absolute;width:100%}.classification-block .tree-type .tree-type-footer .selected-num{margin:10px}.classification-block .tree-type .tree-type-footer .selected-item-del{align-items:center;color:#2474ff;cursor:pointer;display:flex;justify-content:center;margin-left:0}.classification-block .tile-type{border:1px solid #d5d5d5;border-radius:4px;margin-bottom:8px;padding:0 17px}.classification-block .tile-type .header{align-items:center;border-bottom:1px solid #d5d5d5;display:inline-flex;justify-content:space-between;line-height:44px;width:100%}.classification-block .tile-type .header .all-data{border-bottom:1px solid transparent;font-family:PingFangSC-Medium,PingFang SC;font-size:14px;font-weight:500;line-height:1.4;margin-right:auto}.classification-block .tile-type .header .all-data:hover{color:#2d7aff}.classification-block .tile-type .header .all-data:active{border-color:transparent;color:#000}.classification-block .tile-type .header .selected{color:#2d7aff}.classification-block .tile-type .header .right-setting{display:flex}.classification-block .tile-type .header .right-setting .setting-1{align-items:center;cursor:pointer;display:flex}.classification-block .tile-type .header .right-setting .setting-1 .n-icon{margin-right:6px}.classification-block .tile-type .header .right-setting .upack-up-btn{color:#2d7aff}.classification-block .tile-type .tile{border-bottom:1px solid #d5d5d5;margin:0;padding:9px 0}.classification-block .tile-type .tile .tile-item{cursor:pointer;display:flex;line-height:38px}.classification-block .tile-type .tile .tile-item .parent{box-sizing:border-box;font-family:PingFangSC-Medium,PingFang SC;font-size:14px;font-weight:600;max-width:135px;padding-right:16px;width:135px}.classification-block .tile-type .tile .tile-item .children{flex:1}.classification-block .tile-type .tile .tile-item .children .child-item{border-bottom:1px solid transparent;border-radius:4px;color:#7c7c7c;display:inline-block;font-size:14px;line-height:1.5;margin:0 5px;padding:1px 6px}.classification-block .tile-type .tile .tile-item .children .child-item.selected,.classification-block .tile-type .tile .tile-item .children .child-item:hover{background-color:rgba(45,122,255,.1);color:#2d7aff}.classification-block .tile-type .tile .tile-item .children .child-item:active{border-color:transparent;color:#000}.classification-block .tile-type .tile .tile-item .children .child-item.disabled{color:rgba(0,0,0,.2)}.classification-block .tile-type .tile .tile-item .child-item.selected{color:#2d7aff}.classification-block .tile-type .selected-list{align-items:center;display:flex;padding:12px 6px}.classification-block .tile-type .selected-list .selected-num{font-size:14px;line-height:20px;margin-right:8px}.classification-block .tile-type .selected-list .selected-item{align-items:center;background-color:rgba(45,122,255,.1);border-radius:4px;color:#2d7aff;cursor:pointer;display:flex;margin-left:8px;padding:1px 8px}.classification-block .tile-type .selected-list .selected-item-del{align-items:center;color:#2474ff;cursor:pointer;display:flex;font-size:14px;line-height:20px;margin-left:22px}.classification-block .select-type{height:32px;line-height:32px;margin-bottom:8px;margin-right:8px;position:relative;width:100px}.classification-block .select-type .title{align-items:center;border:1px solid #d5d5d5;border-radius:4px;box-sizing:border-box;color:#969696;cursor:pointer;display:flex;font-size:12px;height:100%;justify-content:space-between;padding:0 8px;width:100%}.classification-block .select-type .title>.name{color:#212121;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-block .select-type .main-wrapper{background-color:#fff;border:1px solid #d5d5d5;border-radius:4px;min-width:270px;position:absolute;top:39px;width:100%;z-index:3000}.classification-block .select-type .main-wrapper::-webkit-scrollbar{width:5px}.classification-block .select-type .tree{margin:0;max-height:300px;overflow:auto;padding:32px 0}.classification-block .select-type .tree .tree-item{border-bottom:1px solid #d5d5d5;cursor:pointer;line-height:32px}.classification-block .select-type .tree .tree-item.tree-header{align-items:center;background-color:#fff;box-sizing:border-box;display:flex;height:40px;padding:0 10px;position:absolute;top:0;width:100%;z-index:1}.classification-block .select-type .tree .tree-item .tree-footer{align-items:center;color:rgba(0,0,0,.6);display:flex}.classification-block .select-type .tree .tree-item .tree-footer .tree-footer-icon{align-items:center;cursor:pointer;display:flex}.classification-block .select-type .tree .tree-item .tree-footer .tree-footer-icon .n-icon{margin-right:6px}.classification-block .select-type .tree .tree-item .tree-footer .tree-footer-icon:first-child{margin-right:16px}.classification-block .select-type .tree .tree-item .parent{align-items:center;display:flex;font-weight:600;justify-content:space-between;padding:0 10px}.classification-block .select-type .tree .tree-item .parent.open{background-color:#f2f2f2;border-bottom:1px solid #d5d5d5}.classification-block .select-type .tree .tree-item .header-item{border-bottom:1px solid transparent;color:rgba(0,0,0,.6);flex:1}.classification-block .select-type .tree .tree-item .header-item.selected,.classification-block .select-type .tree .tree-item .header-item:hover{color:#2d7aff}.classification-block .select-type .tree .tree-item .header-item:active{border-color:transparent;color:#000}.classification-block .select-type .tree .tree-item .children{align-items:center;display:flex;height:32px;line-height:32px;padding-left:23px;padding-right:10px}.classification-block .select-type .tree .tree-item .children .child-item{border-bottom:1px solid transparent;color:#7c7c7c;display:inline-block;line-height:1.5;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-block .select-type .tree .tree-item .children .child-item.child-header{padding:0 10px}.classification-block .select-type .tree .tree-item .children .child-item.header-item{border-bottom:1px solid transparent;color:rgba(0,0,0,.6)}.classification-block .select-type .tree .tree-item .children .child-item.header-item.selected,.classification-block .select-type .tree .tree-item .children .child-item.header-item:hover{color:#2d7aff}.classification-block .select-type .tree .tree-item .children .child-item.header-item:active{border-color:transparent;color:#000}.classification-block .select-type .tree .tree-item .children .child-item:hover{color:#2d7aff}.classification-block .select-type .tree .tree-item .children .child-item.selected{align-items:center;color:#2d7aff;display:flex;justify-content:space-between;width:100%}.classification-block .select-type .tree .tree-item .children .child-item:active{border-color:transparent;color:#000}.classification-block .select-type .tree .tree-item .children .child-item.disabled{color:rgba(0,0,0,.2)}.classification-block .select-type .tree .tree-item:last-child{border-bottom:0}.classification-block .select-type .select-type-footer{align-items:center;background-color:#fff;border-top:1px solid #d5d5d5;bottom:0;display:flex;height:40px;justify-content:space-between;padding:0 12px;position:absolute;width:100%}.classification-block .select-type .select-type-footer .selected-num{color:rgba(0,0,0,.6)}.classification-block .select-type .select-type-footer .selected-item-del{color:#2474ff;cursor:pointer}
|
|
1
|
+
@font-face{font-family:classification-iconfont;src:url(classification-iconfont.ttf) format("truetype")}.iconfont-table-filter{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:classification-iconfont!important;font-size:14px;font-style:normal}.icon-table-filter-menzhenyishengzhananniuqingchu:before{content:"\e74e"}.icon-table-filter-menzhenyishengzhananniushanchu2:before{content:"\e757"}.icon-table-filter-menzhenyishengzhanxitongtubiaoguanbi:before{content:"\e76e"}.icon-table-filter-menzhenyishengzhanxitongtubiaozuixiaohua2:before{content:"\e778"}.icon-table-filter-menzhenyishengzhanxitongtubiaozuidahua:before{content:"\e779"}.icon-table-filter-reset:before{content:"\e611"}.icon-table-filter-shaixuan:before{content:"\e64b"}.classification-modal-block .n-card-header .svg-wrap .iconfont-table-filter{cursor:pointer;font-size:18px}.classification-modal-block .n-card-header .svg-wrap .iconfont-table-filter:last-child{margin-left:16px}.classification-modal-block .n-card-header .svg-wrap .n-icon{cursor:pointer}.classification-modal-block .n-card__content{overflow-y:auto}.classification-modal-block .n-card__content .table-modal-list .list-title{background-color:#f2f2f4;border:1px solid #e1dfdf;display:flex;height:52px;line-height:52px}.classification-modal-block .n-card__content .table-modal-list .list-title .list-title-item{font-weight:700;width:25%}.classification-modal-block .n-card__content .table-modal-list .list-content{padding:0}.classification-modal-block .n-card__content .table-modal-list .list-content li{display:flex;height:52px;line-height:52px}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-item{align-items:center;display:flex;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap;width:25%}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-item .n-icon{cursor:pointer;margin-right:8px}.classification-modal-block .n-card__content .table-modal-list .list-content li.checked,.classification-modal-block .n-card__content .table-modal-list .list-content li.checked .text{background-color:#f2f2f2}.classification-modal-block .n-card__content .table-modal-list .list-content li .text{background-color:#fff;display:inline-block;padding:0 10px;position:relative}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-line{position:relative;text-align:center;width:75%}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-line:before{border:1px solid #e8e8e8;content:"";left:0;margin-top:20px;position:absolute;width:100%}.classification-modal-block .n-card__content .table-modal-list .list-title-item{margin-left:-1px;padding:0 10px}.classification-modal-block .n-card__content .table-modal-list .list-content-item{border-bottom:1px solid #e1dfdf;margin-left:-1px;margin-top:-1px;padding:0 10px}.classification-modal-block .n-card__content .table-modal-list .list-content-item .ant-switch{height:16px;min-width:28px;width:28px}.classification-modal-block .n-card__content .table-modal-list .list-content-item .ant-switch:after{height:12px;width:12px}.classification-modal-block .n-card__content .table-modal-list .list-content-radio,.classification-modal-block .n-card__content .table-modal-list .list-content-switch{text-align:center}.classification-modal-block .n-card__content .table-modal-list .anticon+.anticon{margin-left:8px}.classification-modal-block .n-card__content .class-filter-content .item-name{display:flex;height:32px;line-height:32px;margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .item-name .label{text-align:right;width:120px}.classification-modal-block .n-card__content .class-filter-content .item-name .addAction{align-items:center;cursor:pointer;display:flex}.classification-modal-block .n-card__content .class-filter-content .item-name .blue{color:#2d7aff;margin-right:8px}.classification-modal-block .n-card__content .class-filter-content .n-form-item-label{width:120px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content{align-items:center;display:flex;flex-wrap:wrap;line-height:32px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .label{display:inline-block;height:32px;line-height:32px;margin-bottom:10px;text-align:right;width:120px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .ant-btn-dashed{border-color:#a6a6a6;color:#a6a6a6}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .parent-name{align-items:center;display:flex}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .parent-input{margin-bottom:10px;margin-right:10px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag{align-items:center;background-color:rgba(45,122,255,.1);border:1px solid #2d7aff;border-radius:3px;box-sizing:border-box;color:#2d7aff;display:flex;justify-content:center;margin-bottom:10px;margin-right:10px;max-width:120px;padding:0 10px;position:relative}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag .anticon-close{color:#2d7aff;cursor:pointer;display:flex;justify-content:center;line-height:1;width:18px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag .s-content{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select,.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select .ant-input-disabled{background-color:#2d7aff;color:#fff}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select .anticon-close{color:#fff}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .ant-btn{margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list{border-top:1px solid #e6e6e6;margin-bottom:6px;margin-top:16px;padding-top:12px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li{align-items:center;display:flex;list-style:none;margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .index-span{display:inline-block;width:30px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .form-item{margin-right:10px;width:120px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .form-item.n-date-picker{width:auto}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .value-cfg_wrapper{display:flex}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .value-cfg_wrapper .form-item{margin-right:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .delete-item-icon{color:red;cursor:pointer;font-size:18px;margin-left:8px}.classification-modal-block .n-card__footer{padding-top:10px}.classification-modal-block .n-card__footer .flex_between{display:flex;justify-content:space-between}.classification-modal-block .n-card__footer .flex_right{display:flex;justify-content:right}.classification-modal-block .n-card__footer .n-button{margin-left:8px}.classification-block .tree-type{border:1px solid #d5d5d5;border-radius:4px;height:100%;line-height:32px;margin-top:0;padding-bottom:80px;width:150px}.classification-block .tree-type .header{border-bottom:1px solid #e6eaef;display:flex;font-size:14px;justify-content:space-between;padding:0 10px}.classification-block .tree-type .header .header-1{align-items:center;cursor:pointer;display:flex}.classification-block .tree-type .tree{height:calc(100% - 32px);line-height:32px;margin:0;overflow:auto;padding-left:0}.classification-block .tree-type .tree::-webkit-scrollbar{width:5px}.classification-block .tree-type .tree .tree-item{border-bottom:1px solid #d5d5d5;cursor:pointer}.classification-block .tree-type .tree .tree-item.tree-header{box-sizing:border-box;padding:0 10px}.classification-block .tree-type .tree .tree-item .parent{align-items:center;display:flex;font-weight:600;justify-content:space-between;padding:0 10px}.classification-block .tree-type .tree .tree-item .parent.open{background-color:#f2f2f2;border-bottom:1px solid #d5d5d5}.classification-block .tree-type .tree .tree-item .header-item{box-sizing:border-box;line-height:1.4}.classification-block .tree-type .tree .tree-item .header-item.selected,.classification-block .tree-type .tree .tree-item .header-item:hover{color:#2d7aff}.classification-block .tree-type .tree .tree-item .header-item:active{border-color:transparent;color:#000}.classification-block .tree-type .tree .tree-item .children{align-items:center;display:flex;height:32px;padding-left:23px;padding-right:10px}.classification-block .tree-type .tree .tree-item .children .child-item{align-items:center;border-bottom:1px solid transparent;color:#7c7c7c;display:flex;line-height:1.5;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-block .tree-type .tree .tree-item .children .child-item:hover{color:#2d7aff}.classification-block .tree-type .tree .tree-item .children .child-item.selected{align-items:center;color:#2d7aff;display:flex;justify-content:space-between;width:100%}.classification-block .tree-type .tree .tree-item .children .child-item:active{border-color:transparent;color:#000}.classification-block .tree-type .tree .tree-item .children .child-item.disabled{color:rgba(0,0,0,.2)}.classification-block .tree-type .tree .tree-item .children .child-item .child-item-content{align-items:center;display:flex}.classification-block .tree-type .tree .tree-item .children .child-item .child-item-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-block .tree-type .tree .tree-item .children .child-item .digital-span{flex:1;margin-left:5px;text-align:left}.classification-block .tree-type .tree .tree-item:last-child{border-bottom:none}.classification-block .tree-type .tree-type-footer{border-top:1px solid #d5d5d5;bottom:0;height:80px;line-height:20px;padding-left:16px;position:absolute;width:100%}.classification-block .tree-type .tree-type-footer .selected-num{margin:10px}.classification-block .tree-type .tree-type-footer .selected-item-del{align-items:center;color:#2474ff;cursor:pointer;display:flex;justify-content:center;margin-left:0}.classification-block .tile-type{border:1px solid #d5d5d5;border-radius:4px;margin-bottom:8px;padding:0 17px}.classification-block .tile-type .header{align-items:center;border-bottom:1px solid #d5d5d5;display:inline-flex;justify-content:space-between;line-height:44px;width:100%}.classification-block .tile-type .header .all-data{border-bottom:1px solid transparent;font-family:PingFangSC-Medium,PingFang SC;font-size:14px;font-weight:500;line-height:1.4;margin-right:auto}.classification-block .tile-type .header .all-data:hover{color:#2d7aff}.classification-block .tile-type .header .all-data:active{border-color:transparent;color:#000}.classification-block .tile-type .header .selected{color:#2d7aff}.classification-block .tile-type .header .right-setting{display:flex}.classification-block .tile-type .header .right-setting .setting-1{align-items:center;cursor:pointer;display:flex}.classification-block .tile-type .header .right-setting .setting-1 .n-icon{margin-right:6px}.classification-block .tile-type .header .right-setting .upack-up-btn{color:#2d7aff}.classification-block .tile-type .tile{border-bottom:1px solid #d5d5d5;margin:0;padding:9px 0}.classification-block .tile-type .tile .tile-item{cursor:pointer;display:flex;line-height:38px}.classification-block .tile-type .tile .tile-item .parent{box-sizing:border-box;font-family:PingFangSC-Medium,PingFang SC;font-size:14px;font-weight:600;max-width:135px;padding-right:16px;width:135px}.classification-block .tile-type .tile .tile-item .children{flex:1}.classification-block .tile-type .tile .tile-item .children .child-item{border-bottom:1px solid transparent;border-radius:4px;color:#7c7c7c;display:inline-block;font-size:14px;line-height:1.5;margin:0 5px;padding:1px 6px}.classification-block .tile-type .tile .tile-item .children .child-item.selected,.classification-block .tile-type .tile .tile-item .children .child-item:hover{background-color:rgba(45,122,255,.1);color:#2d7aff}.classification-block .tile-type .tile .tile-item .children .child-item:active{border-color:transparent;color:#000}.classification-block .tile-type .tile .tile-item .children .child-item.disabled{color:rgba(0,0,0,.2)}.classification-block .tile-type .tile .tile-item .child-item.selected{color:#2d7aff}.classification-block .tile-type .selected-list{align-items:center;display:flex;padding:12px 6px}.classification-block .tile-type .selected-list .selected-num{font-size:14px;line-height:20px;margin-right:8px}.classification-block .tile-type .selected-list .selected-item{align-items:center;background-color:rgba(45,122,255,.1);border-radius:4px;color:#2d7aff;cursor:pointer;display:flex;margin-left:8px;padding:1px 8px}.classification-block .tile-type .selected-list .selected-item-del{align-items:center;color:#2474ff;cursor:pointer;display:flex;font-size:14px;line-height:20px;margin-left:22px}.classification-block .select-type{height:32px;line-height:32px;margin-bottom:8px;margin-right:8px;position:relative;width:100px}.classification-block .select-type .title{align-items:center;border:1px solid #d5d5d5;border-radius:4px;box-sizing:border-box;color:#969696;cursor:pointer;display:flex;font-size:12px;height:100%;justify-content:space-between;padding:0 8px;width:100%}.classification-block .select-type .title>.name{color:#212121;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-block .select-type .main-wrapper{background-color:#fff;border:1px solid #d5d5d5;border-radius:4px;min-width:270px;position:absolute;top:39px;width:100%;z-index:3000}.classification-block .select-type .main-wrapper::-webkit-scrollbar{width:5px}.classification-block .select-type .tree{margin:0;max-height:300px;overflow:auto;padding:32px 0}.classification-block .select-type .tree .tree-item{border-bottom:1px solid #d5d5d5;cursor:pointer;line-height:32px}.classification-block .select-type .tree .tree-item.tree-header{align-items:center;background-color:#fff;box-sizing:border-box;display:flex;height:40px;padding:0 10px;position:absolute;top:0;width:100%;z-index:1}.classification-block .select-type .tree .tree-item .tree-footer{align-items:center;color:rgba(0,0,0,.6);display:flex}.classification-block .select-type .tree .tree-item .tree-footer .tree-footer-icon{align-items:center;cursor:pointer;display:flex}.classification-block .select-type .tree .tree-item .tree-footer .tree-footer-icon .n-icon{margin-right:6px}.classification-block .select-type .tree .tree-item .tree-footer .tree-footer-icon:first-child{margin-right:16px}.classification-block .select-type .tree .tree-item .parent{align-items:center;display:flex;font-weight:600;justify-content:space-between;padding:0 10px}.classification-block .select-type .tree .tree-item .parent.open{background-color:#f2f2f2;border-bottom:1px solid #d5d5d5}.classification-block .select-type .tree .tree-item .header-item{border-bottom:1px solid transparent;color:rgba(0,0,0,.6);flex:1}.classification-block .select-type .tree .tree-item .header-item.selected,.classification-block .select-type .tree .tree-item .header-item:hover{color:#2d7aff}.classification-block .select-type .tree .tree-item .header-item:active{border-color:transparent;color:#000}.classification-block .select-type .tree .tree-item .children{align-items:center;display:flex;height:32px;line-height:32px;padding-left:23px;padding-right:10px}.classification-block .select-type .tree .tree-item .children .child-item{border-bottom:1px solid transparent;color:#7c7c7c;display:inline-block;line-height:1.5;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-block .select-type .tree .tree-item .children .child-item.child-header{padding:0 10px}.classification-block .select-type .tree .tree-item .children .child-item.header-item{border-bottom:1px solid transparent;color:rgba(0,0,0,.6)}.classification-block .select-type .tree .tree-item .children .child-item.header-item.selected,.classification-block .select-type .tree .tree-item .children .child-item.header-item:hover{color:#2d7aff}.classification-block .select-type .tree .tree-item .children .child-item.header-item:active{border-color:transparent;color:#000}.classification-block .select-type .tree .tree-item .children .child-item:hover{color:#2d7aff}.classification-block .select-type .tree .tree-item .children .child-item.selected{align-items:center;color:#2d7aff;display:flex;justify-content:space-between;width:100%}.classification-block .select-type .tree .tree-item .children .child-item:active{border-color:transparent;color:#000}.classification-block .select-type .tree .tree-item .children .child-item.disabled{color:rgba(0,0,0,.2)}.classification-block .select-type .tree .tree-item:last-child{border-bottom:0}.classification-block .select-type .select-type-footer{align-items:center;background-color:#fff;border-top:1px solid #d5d5d5;bottom:0;display:flex;height:40px;justify-content:space-between;padding:0 12px;position:absolute;width:100%}.classification-block .select-type .select-type-footer .selected-num{color:rgba(0,0,0,.6)}.classification-block .select-type .select-type-footer .selected-item-del{color:#2474ff;cursor:pointer}
|
|
@@ -6,6 +6,15 @@ declare const DatePicker: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
6
6
|
onConfirm: {
|
|
7
7
|
type: FunctionConstructor;
|
|
8
8
|
};
|
|
9
|
+
formattedValue: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
};
|
|
12
|
+
placeholder: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
};
|
|
15
|
+
allowedInvalidValue: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
};
|
|
9
18
|
}, {
|
|
10
19
|
attrs: {
|
|
11
20
|
[x: string]: unknown;
|
|
@@ -17,9 +26,23 @@ declare const DatePicker: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
17
26
|
onConfirm: {
|
|
18
27
|
type: FunctionConstructor;
|
|
19
28
|
};
|
|
20
|
-
|
|
29
|
+
formattedValue: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
};
|
|
32
|
+
placeholder: {
|
|
33
|
+
type: StringConstructor;
|
|
34
|
+
};
|
|
35
|
+
allowedInvalidValue: {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
};
|
|
38
|
+
}>> & {
|
|
39
|
+
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
|
40
|
+
}>>;
|
|
41
|
+
emit: (event: "update:formatted-value", ...args: any[]) => void;
|
|
21
42
|
datePickerRef: import("vue").Ref<import("../../../es/shared/types").AnyObject | null>;
|
|
22
43
|
panelInstRef: import("vue").Ref<null>;
|
|
44
|
+
placeholderRef: import("vue").Ref<any>;
|
|
45
|
+
currentFormattedValue: import("vue").WritableComputedRef<string | null | undefined>;
|
|
23
46
|
isDateTime: import("vue").ComputedRef<boolean>;
|
|
24
47
|
formatRef: import("vue").ComputedRef<string>;
|
|
25
48
|
panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
|
|
@@ -28,15 +51,27 @@ declare const DatePicker: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
28
51
|
handleConfirm: (target: HTMLInputElement) => void;
|
|
29
52
|
onUpdateShow: (show: boolean) => void;
|
|
30
53
|
onConfirm: (...args: any[]) => Promise<void>;
|
|
54
|
+
isAllowedInvalidValue: (value?: string) => boolean | "" | undefined;
|
|
31
55
|
NDatePicker: any;
|
|
32
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
56
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:formatted-value"[], "update:formatted-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
33
57
|
updateUnchangedValue: {
|
|
34
58
|
type: BooleanConstructor;
|
|
35
59
|
};
|
|
36
60
|
onConfirm: {
|
|
37
61
|
type: FunctionConstructor;
|
|
38
62
|
};
|
|
39
|
-
|
|
63
|
+
formattedValue: {
|
|
64
|
+
type: StringConstructor;
|
|
65
|
+
};
|
|
66
|
+
placeholder: {
|
|
67
|
+
type: StringConstructor;
|
|
68
|
+
};
|
|
69
|
+
allowedInvalidValue: {
|
|
70
|
+
type: StringConstructor;
|
|
71
|
+
};
|
|
72
|
+
}>> & {
|
|
73
|
+
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
|
74
|
+
}, {
|
|
40
75
|
updateUnchangedValue: boolean;
|
|
41
76
|
}>>;
|
|
42
77
|
export default DatePicker;
|
|
@@ -6,6 +6,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6
6
|
onConfirm: {
|
|
7
7
|
type: FunctionConstructor;
|
|
8
8
|
};
|
|
9
|
+
formattedValue: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
};
|
|
12
|
+
placeholder: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
};
|
|
15
|
+
allowedInvalidValue: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
};
|
|
9
18
|
}, {
|
|
10
19
|
attrs: {
|
|
11
20
|
[x: string]: unknown;
|
|
@@ -17,9 +26,23 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
17
26
|
onConfirm: {
|
|
18
27
|
type: FunctionConstructor;
|
|
19
28
|
};
|
|
20
|
-
|
|
29
|
+
formattedValue: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
};
|
|
32
|
+
placeholder: {
|
|
33
|
+
type: StringConstructor;
|
|
34
|
+
};
|
|
35
|
+
allowedInvalidValue: {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
};
|
|
38
|
+
}>> & {
|
|
39
|
+
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
|
40
|
+
}>>;
|
|
41
|
+
emit: (event: "update:formatted-value", ...args: any[]) => void;
|
|
21
42
|
datePickerRef: import("vue").Ref<AnyObject | null>;
|
|
22
43
|
panelInstRef: import("vue").Ref<null>;
|
|
44
|
+
placeholderRef: import("vue").Ref<any>;
|
|
45
|
+
currentFormattedValue: import("vue").WritableComputedRef<string | null | undefined>;
|
|
23
46
|
isDateTime: import("vue").ComputedRef<boolean>;
|
|
24
47
|
formatRef: import("vue").ComputedRef<string>;
|
|
25
48
|
panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
|
|
@@ -28,15 +51,27 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
28
51
|
handleConfirm: (target: HTMLInputElement) => void;
|
|
29
52
|
onUpdateShow: (show: boolean) => void;
|
|
30
53
|
onConfirm: (...args: any[]) => Promise<void>;
|
|
54
|
+
isAllowedInvalidValue: (value?: string) => boolean | "" | undefined;
|
|
31
55
|
NDatePicker: any;
|
|
32
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
56
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:formatted-value"[], "update:formatted-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
33
57
|
updateUnchangedValue: {
|
|
34
58
|
type: BooleanConstructor;
|
|
35
59
|
};
|
|
36
60
|
onConfirm: {
|
|
37
61
|
type: FunctionConstructor;
|
|
38
62
|
};
|
|
39
|
-
|
|
63
|
+
formattedValue: {
|
|
64
|
+
type: StringConstructor;
|
|
65
|
+
};
|
|
66
|
+
placeholder: {
|
|
67
|
+
type: StringConstructor;
|
|
68
|
+
};
|
|
69
|
+
allowedInvalidValue: {
|
|
70
|
+
type: StringConstructor;
|
|
71
|
+
};
|
|
72
|
+
}>> & {
|
|
73
|
+
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
|
74
|
+
}, {
|
|
40
75
|
updateUnchangedValue: boolean;
|
|
41
76
|
}>;
|
|
42
77
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,useAttrs as
|
|
1
|
+
import{defineComponent as e,useAttrs as t,ref as a,computed as l,watch as n,openBlock as u,createBlock as o,unref as r,isRef as d,createSlots as i,renderList as s,withCtx as f,renderSlot as p,nextTick as v}from"vue";import{NDatePicker as m}from"naive-ui";import"../../../shared/utils/index.js";import"lodash-es";import{useDateTime as c}from"../../../shared/hooks/useDateTime.js";import{format as y}from"date-fns";var h=e({__name:"DatePicker",props:{updateUnchangedValue:{type:Boolean},onConfirm:{type:Function},formattedValue:{type:String},placeholder:{type:String},allowedInvalidValue:{type:String}},emits:["update:formatted-value"],setup(e,{expose:h,emit:g}){const V=e,w=t(),I=a(null),R=a(null),M=a(),k=l({get:()=>b(V.formattedValue)?null:V.formattedValue,set(e){g("update:formatted-value",e,e?Date.parse(e):null)}}),C=l((()=>{const e=Reflect.get(w,"type")||"";return["datetime","datetimerange"].includes(e)})),D=l((()=>{if(Reflect.get(w,"format"))return w.format;const e=w.type||"";return C.value?"yyyy-MM-dd HH:mm:ss":"month"===e?"yyyy-MM":"year"===e?"yyyy":"yyyy-MM-dd"})),E=l((()=>C.value?D.value.split(" "):"")),{focus:P,blur:S,handleConfirm:U}=c(I,{formatRef:D,attrs:w,emit:g,allowedInvalidValue:V.allowedInvalidValue});function $(e){e&&C.value&&v((()=>{var e;R.value=null==(e=I.value)?void 0:e.panelInstRef,c(R,{formatRef:E,attrs:w,isPanel:!0})}))}async function _(...e){var t,a,l,n,u,o;const r=Reflect.get(w,"type")||"",d=null==(n=null==(l=null==(a=null==(t=I.value)?void 0:t.inputInstRef)?void 0:a.$el)?void 0:l.querySelector)?void 0:n.call(l,"input");if(r.includes("range")?null==(u=V.onConfirm)||u.call(V,...e):(await v(),d.focus(),U(d),d.blur(),null==(o=V.onConfirm)||o.call(V,Date.parse(d.value),d.value)),!(null==d?void 0:d.value)||!V.updateUnchangedValue||r.includes("range"))return;const i=d.value;d.value=y(new Date,D.value),d.dispatchEvent(new InputEvent("input")),d.value=i,d.dispatchEvent(new InputEvent("input"))}function b(e=""){return V.allowedInvalidValue&&V.allowedInvalidValue===e}return n((()=>V.formattedValue),(e=>{M.value=b(e)?e:V.placeholder?V.placeholder:"选择日期时间"}),{immediate:!0}),h({$datePicker:I,focus:P,blur:S}),(e,t)=>(u(),o(r(m),{ref_key:"datePickerRef",ref:I,"onUpdate:show":$,onConfirm:_,placeholder:M.value,"formatted-value":r(k),"onUpdate:formatted-value":t[0]||(t[0]=e=>d(k)?k.value=e:null)},i({_:2},[s(e.$slots,((t,a)=>({name:a,fn:f((()=>[p(e.$slots,a)]))})))]),1032,["placeholder","formatted-value"]))}});export{h as default};
|