cnhis-design-vue 3.1.42-release.0 → 3.1.42-release.2
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/annotation-edit/src/AnnotationEdit.js +1 -1
- package/es/components/annotation-edit/src/type.d.ts +3 -0
- package/es/components/annotation-edit/style/index.css +1 -1
- package/es/components/base-search/index.d.ts +271 -0
- package/es/components/base-search/index.js +1 -0
- package/es/components/{table-filter/src/base-search-com/BaseSearch.vue.d.ts → base-search/src/index.vue.d.ts} +26 -113
- package/es/components/base-search/src/index.vue.js +1 -0
- package/es/components/base-search/style/iconfont.ttf +0 -0
- package/es/components/base-search/style/index.css +1 -0
- package/es/components/big-table/style/index.css +1 -1
- package/es/components/button-print/index.d.ts +3 -2
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +3 -2
- package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
- package/es/components/button-print/src/api.d.ts +3 -0
- package/es/components/button-print/src/api.js +1 -0
- package/es/components/button-print/src/utils/print.js +1 -1
- package/es/components/classification/index.d.ts +995 -0
- package/es/components/classification/index.js +1 -0
- package/es/components/{table-filter → classification}/src/components/search-filter/index.vue.d.ts +10 -93
- package/es/components/classification/src/components/search-filter/index.vue.js +1 -0
- package/es/components/{table-filter → classification}/src/components/set-classification/index.vue.d.ts +5 -130
- package/es/components/classification/src/components/set-classification/index.vue.js +1 -0
- package/es/components/{table-filter → classification}/src/components/table-modal/index.vue.d.ts +0 -42
- package/es/components/classification/src/components/table-modal/index.vue.js +1 -0
- package/es/components/classification/src/const/index.d.ts +2 -0
- package/es/components/classification/src/const/index.js +1 -0
- package/es/components/{table-filter/src/classification/Classification-com.vue.d.ts → classification/src/index.vue.d.ts} +57 -291
- package/es/components/classification/src/index.vue.js +1 -0
- package/es/components/classification/style/iconfont.ttf +0 -0
- package/es/components/classification/style/index.css +1 -0
- package/es/components/config-provider/index.d.ts +14 -0
- package/es/components/config-provider/index.js +1 -0
- package/es/components/config-provider/src/ConfigProvider.d.ts +14 -0
- package/es/components/config-provider/src/ConfigProvider.js +1 -0
- package/es/components/config-provider/src/interface.d.ts +19 -0
- package/es/components/config-provider/src/interface.js +1 -0
- package/es/components/config-provider/src/utils/index.d.ts +2 -0
- package/es/components/config-provider/src/utils/index.js +1 -0
- package/es/components/date-picker/index.d.ts +12 -0
- package/es/components/date-picker/index.js +1 -0
- package/es/components/date-picker/src/DatePicker.vue.d.ts +12 -0
- package/es/components/date-picker/src/DatePicker.vue.js +1 -0
- package/es/components/fabric-chart/src/hooks/useBirthProcess.js +1 -1
- package/es/components/fabric-chart/src/hooks/useBirthProcessChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/useLeft.js +1 -1
- package/es/components/fabric-chart/src/hooks/useRight.js +1 -1
- package/es/components/field-set/index.d.ts +82 -13
- package/es/components/field-set/src/FieldSet.vue.d.ts +78 -27
- package/es/components/field-set/src/types/index.d.ts +18 -0
- package/es/components/field-set/src/types/index.js +1 -0
- package/es/components/form-config/index.d.ts +36 -27
- package/es/components/form-config/src/FormConfig.vue.d.ts +36 -27
- package/es/components/form-config/src/FormConfig.vue.js +1 -1
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +11 -11
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +14 -14
- package/es/components/form-config/src/components/FormConfigMaterialItem.d.ts +9 -1
- package/es/components/form-config/src/components/FormConfigMaterialItem.js +1 -1
- package/es/components/form-config/src/components/renderer/DefaultNode.vue.d.ts +33 -6
- package/es/components/form-config/src/components/renderer/DefaultNode.vue.js +1 -1
- package/es/components/form-config/style/index.css +1 -1
- package/es/components/form-render/index.d.ts +11 -11
- package/es/components/form-render/index.js +1 -1
- package/es/components/form-render/src/FormRender.vue.d.ts +11 -11
- package/es/components/form-render/src/FormRender.vue.js +1 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +11 -11
- package/es/components/form-render/src/FormRenderWrapper.vue.js +1 -1
- package/es/components/form-render/src/components/renderer/date.js +1 -1
- package/es/components/form-render/src/components/renderer/radio&checkbox.d.ts +2 -2
- package/es/components/form-render/src/components/renderer/radio_checkbox.js +1 -1
- package/es/components/form-render/src/components/renderer/searchCascade.js +1 -1
- package/es/components/form-render/src/components/renderer/select.js +1 -1
- package/es/components/form-render/src/hooks/index.d.ts +1 -1
- package/es/components/form-render/src/hooks/index.js +1 -1
- package/es/components/form-render/src/hooks/useFieldListAdaptor.d.ts +1 -1
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
- package/es/components/form-render/src/hooks/useFormAsyncQueue.d.ts +16 -0
- package/es/components/form-render/src/hooks/useFormAsyncQueue.js +1 -0
- package/es/components/form-render/src/hooks/useFormContext.js +1 -1
- package/es/components/form-render/src/hooks/useFormRenderOptions.d.ts +4 -2
- package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
- package/es/components/form-render/src/types/index.d.ts +2 -1
- package/es/components/form-render/style/index.css +1 -1
- package/es/components/iho-table/index.d.ts +1526 -0
- package/es/components/iho-table/src/IhoTable.vue.d.ts +1526 -0
- package/es/components/iho-table/src/IhoTable.vue.js +1 -1
- package/es/components/iho-table/src/constants/index.d.ts +6 -5
- package/es/components/iho-table/src/constants/index.js +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/index.js +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.d.ts +3 -1
- package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.js +1 -1
- package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +1 -1
- 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 +12 -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/selectRendererPlugin/editSelect.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.d.ts +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +12 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/labelRendererPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/pictureRendererPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/seqRendererPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.d.ts +1 -0
- package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.js +1 -0
- package/es/components/iho-table/src/plugins/virtualTreePlugin/index.js +1 -1
- package/es/components/iho-table/src/types/index.d.ts +2 -0
- package/es/components/iho-table/src/types/pluginType.d.ts +3 -1
- 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/iho-table/style/index.css +1 -1
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +9 -2
- package/es/components/index.js +1 -1
- package/es/components/info-header/index.d.ts +3800 -157
- package/es/components/info-header/src/InfoHeader.vue.d.ts +3801 -157
- package/es/components/info-header/src/InfoHeader.vue.js +1 -1
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +1842 -0
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.js +1 -0
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +1972 -0
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.js +1 -0
- package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue.js +1 -1
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +2669 -139
- package/es/components/info-header/src/components/infoDescription/index.vue.js +1 -1
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +745 -0
- package/es/components/info-header/src/components/patientInfo/index.vue.js +1 -1
- package/es/components/info-header/src/constants/index.d.ts +4 -0
- package/es/components/info-header/src/constants/index.js +1 -0
- package/es/components/info-header/src/hooks/useThemeOverrides.d.ts +4 -0
- package/es/components/info-header/src/hooks/useThemeOverrides.js +1 -0
- package/es/components/info-header/src/types/index.d.ts +17 -3
- package/es/components/info-header/style/index.css +1 -1
- package/es/components/keyboard/index.d.ts +3 -1
- package/es/components/keyboard/src/Keyboard.vue.d.ts +3 -1
- package/es/components/keyboard/src/Keyboard.vue.js +1 -1
- package/es/components/keyboard/src/constants/index.d.ts +2 -0
- package/es/components/keyboard/src/constants/index.js +1 -0
- package/es/components/keyboard/style/index.css +1 -1
- package/es/components/quick-search/index.d.ts +713 -0
- package/es/components/quick-search/index.js +1 -0
- package/es/components/{table-filter/src/quick-search/QuickSearch.vue.d.ts → quick-search/src/index.vue.d.ts} +31 -120
- package/es/components/quick-search/src/index.vue.js +1 -0
- package/es/components/quick-search/style/index.css +1 -0
- package/es/components/recommend-search/index.d.ts +2 -2
- package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +2 -2
- package/es/components/recommend-search/src/components/RecommendSelect.vue.d.ts +1 -1
- package/es/components/scale-view/src/ScaleView.vue.js +1 -1
- package/es/components/scale-view/src/components/formitem/sign-com.d.ts +1 -1
- package/es/components/scale-view/src/hooks/use-component.d.ts +69 -116
- package/es/components/search-cascader/index.d.ts +2 -2
- package/es/components/search-cascader/src/SearchCascader.vue.d.ts +2 -2
- package/es/components/search-cascader/src/components/SearchMenu.d.ts +1 -1
- package/es/components/select-label/index.d.ts +70 -169
- package/es/components/select-label/src/LabelFormContent.vue.d.ts +1 -53
- package/es/components/select-label/src/LabelFormContent.vue.js +1 -1
- package/es/components/select-label/src/SelectLabel.vue.d.ts +70 -116
- package/es/components/select-label/src/SelectLabel.vue2.js +1 -1
- package/es/components/select-label/src/components/label-classify.vue.js +1 -1
- package/es/components/select-label/style/iconfont.ttf +0 -0
- package/es/components/select-label/style/index.css +1 -1
- package/es/components/shortcut-setter/index.d.ts +12 -12
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +12 -12
- package/es/components/steps-wheel/index.d.ts +1 -0
- package/es/components/steps-wheel/src/StepsWheel.vue.d.ts +1 -0
- package/es/components/steps-wheel/src/StepsWheel.vue.js +1 -1
- package/es/components/steps-wheel/src/constants/index.d.ts +2 -0
- package/es/components/steps-wheel/src/constants/index.js +1 -0
- package/es/components/steps-wheel/style/index.css +1 -1
- package/es/components/table-filter/index.d.ts +0 -2386
- package/es/components/table-filter/index.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +1 -0
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +1 -42
- package/es/components/table-filter/src/components/classify-filter/index.vue.js +1 -1
- package/es/components/table-filter/src/components/render-widget/enums.d.ts +0 -8
- package/es/components/table-filter/src/components/render-widget/enums.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/render-widget/widgetCfgMaps.js +1 -1
- package/es/components/table-filter/src/hooks/useAdvanced.d.ts +4 -1
- package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
- package/es/components/table-filter/src/hooks/useMixins.d.ts +1 -54
- package/es/components/table-filter/src/hooks/useMixins.js +1 -1
- package/es/components/table-filter/src/hooks/useRenderWidget.js +1 -1
- package/es/components/table-filter/src/tool/baseOptions.d.ts +8 -0
- package/es/components/table-filter/src/tool/baseOptions.js +1 -0
- package/es/components/table-filter/src/tool/generateDefOptions.d.ts +0 -7
- package/es/components/table-filter/src/tool/generateDefOptions.js +1 -1
- package/es/components/table-filter/src/tool/transformData.d.ts +1 -37
- package/es/components/table-filter/src/tool/transformData.js +1 -1
- package/es/components/table-filter/src/types/enums.d.ts +1 -0
- package/es/components/table-filter/src/types/enums.js +1 -1
- package/es/components/table-filter/src/types/index.d.ts +13 -243
- package/es/components/time-picker/index.d.ts +12 -0
- package/es/components/time-picker/index.js +1 -0
- package/es/components/time-picker/src/TimePicker.vue.d.ts +12 -0
- package/es/components/time-picker/src/TimePicker.vue.js +1 -0
- package/es/env.d.ts +24 -24
- package/es/shared/hooks/index.d.ts +3 -0
- package/es/shared/hooks/index.js +1 -0
- package/es/{components/form-render/src → shared}/hooks/useAsyncQueue.d.ts +0 -14
- package/es/shared/hooks/useAsyncQueue.js +1 -0
- package/es/shared/hooks/useDateTime.d.ts +6 -0
- package/es/shared/hooks/useDateTime.js +1 -0
- package/es/shared/hooks/useTheme.d.ts +3 -0
- package/es/shared/hooks/useTheme.js +1 -0
- package/es/shared/utils/index.d.ts +1 -0
- package/es/shared/utils/index.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/components/fabric-chart/src/utils/index.d.ts +0 -6823
- package/es/components/form-render/src/hooks/useAsyncQueue.js +0 -1
- 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
- package/es/components/table-filter/src/base-search-com/BaseSearch.vue.js +0 -1
- package/es/components/table-filter/src/classification/Classification-com.vue.js +0 -1
- package/es/components/table-filter/src/components/search-filter/index.vue.js +0 -1
- package/es/components/table-filter/src/components/set-classification/index.vue.js +0 -1
- package/es/components/table-filter/src/components/table-modal/index.vue.js +0 -1
- package/es/components/table-filter/src/const/index.d.ts +0 -5
- package/es/components/table-filter/src/const/index.js +0 -1
- package/es/components/table-filter/src/directive/resize.d.ts +0 -4
- package/es/components/table-filter/src/directive/resize.js +0 -1
- package/es/components/table-filter/src/hooks/export.d.ts +0 -1
- package/es/components/table-filter/src/hooks/export.js +0 -1
- package/es/components/table-filter/src/hooks/useTableSearchCon.d.ts +0 -8
- package/es/components/table-filter/src/hooks/useTableSearchCon.js +0 -1
- package/es/components/table-filter/src/hooks/useWordBookutils.d.ts +0 -12
- package/es/components/table-filter/src/hooks/useWordBookutils.js +0 -1
- package/es/components/table-filter/src/quick-search/QuickSearch.vue.js +0 -1
- package/es/components/table-filter/src/tool/getWidgetType.d.ts +0 -1
- package/es/components/table-filter/src/tool/getWidgetType.js +0 -1
- package/es/components/table-filter/src/tool/options.d.ts +0 -18
- package/es/components/table-filter/src/tool/options.js +0 -1
- package/es/components/table-filter/src/tool/resizeSensor.d.ts +0 -16
- package/es/components/table-filter/src/tool/resizeSensor.js +0 -1
- package/es/components/table-filter/src/tool/time-domain.d.ts +0 -39
- package/es/components/table-filter/src/tool/time-domain.js +0 -1
- package/es/components/table-filter/src/tool/utils.d.ts +0 -4
- package/es/components/table-filter/src/tool/utils.js +0 -1
- package/es/components/table-filter/style/index.css +0 -1
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
- package/es/shared/utils/colorLog.d.ts +0 -31
- package/es/shared/utils/colorLog.js +0 -1
- package/es/shared/utils/tapable/index.d.ts +0 -139
- /package/es/components/{table-filter → classification}/src/directive/flexibleResize.d.ts +0 -0
- /package/es/components/{table-filter → classification}/src/directive/flexibleResize.js +0 -0
|
@@ -1,83 +1,107 @@
|
|
|
1
1
|
import { SFCWithInstall } from '../../../es/shared/types';
|
|
2
2
|
declare const SelectLabel: SFCWithInstall<import("vue").DefineComponent<{
|
|
3
3
|
selectedList: {
|
|
4
|
-
type:
|
|
5
|
-
required: false;
|
|
4
|
+
type: import("vue").PropType<any[]>;
|
|
6
5
|
default: () => never[];
|
|
7
6
|
};
|
|
8
7
|
item: {
|
|
9
|
-
type:
|
|
10
|
-
required: false;
|
|
8
|
+
type: import("vue").PropType<any>;
|
|
11
9
|
default: () => {};
|
|
12
10
|
};
|
|
13
11
|
isDetail: {
|
|
14
12
|
type: BooleanConstructor;
|
|
15
|
-
required: false;
|
|
16
13
|
default: boolean;
|
|
17
14
|
};
|
|
18
15
|
isLock: {
|
|
19
16
|
type: BooleanConstructor;
|
|
20
|
-
required: false;
|
|
21
17
|
default: boolean;
|
|
22
18
|
};
|
|
23
19
|
sourceType: {
|
|
24
20
|
type: StringConstructor;
|
|
25
|
-
required: false;
|
|
26
21
|
default: string;
|
|
27
22
|
};
|
|
23
|
+
explicit: {
|
|
24
|
+
type: BooleanConstructor;
|
|
25
|
+
default: boolean;
|
|
26
|
+
};
|
|
28
27
|
getLabelList: {
|
|
29
28
|
type: FunctionConstructor;
|
|
30
|
-
required: false;
|
|
31
29
|
default: () => Promise<{
|
|
32
30
|
rows: never[];
|
|
33
31
|
}>;
|
|
34
32
|
};
|
|
35
|
-
explicit: {
|
|
36
|
-
type: BooleanConstructor;
|
|
37
|
-
required: false;
|
|
38
|
-
default: boolean;
|
|
39
|
-
};
|
|
40
|
-
explicitHeiht: {
|
|
41
|
-
type: StringConstructor;
|
|
42
|
-
required: false;
|
|
43
|
-
default: string;
|
|
44
|
-
};
|
|
45
33
|
queryCommonlabels: {
|
|
46
34
|
type: FunctionConstructor;
|
|
47
|
-
required: false;
|
|
48
35
|
default: () => Promise<{
|
|
49
36
|
data: {};
|
|
50
37
|
}>;
|
|
51
38
|
};
|
|
52
39
|
deleteLabel: {
|
|
53
40
|
type: FunctionConstructor;
|
|
54
|
-
required: false;
|
|
55
41
|
default: () => Promise<{
|
|
56
42
|
status: boolean;
|
|
57
43
|
}>;
|
|
58
44
|
};
|
|
59
45
|
saveLabelItem: {
|
|
60
46
|
type: FunctionConstructor;
|
|
61
|
-
required: false;
|
|
62
47
|
default: () => Promise<{
|
|
63
48
|
status: boolean;
|
|
64
49
|
}>;
|
|
65
50
|
};
|
|
66
51
|
}, {
|
|
67
|
-
props: {
|
|
68
|
-
selectedList:
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
52
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
53
|
+
selectedList: {
|
|
54
|
+
type: import("vue").PropType<any[]>;
|
|
55
|
+
default: () => never[];
|
|
56
|
+
};
|
|
57
|
+
item: {
|
|
58
|
+
type: import("vue").PropType<any>;
|
|
59
|
+
default: () => {};
|
|
60
|
+
};
|
|
61
|
+
isDetail: {
|
|
62
|
+
type: BooleanConstructor;
|
|
63
|
+
default: boolean;
|
|
64
|
+
};
|
|
65
|
+
isLock: {
|
|
66
|
+
type: BooleanConstructor;
|
|
67
|
+
default: boolean;
|
|
68
|
+
};
|
|
69
|
+
sourceType: {
|
|
70
|
+
type: StringConstructor;
|
|
71
|
+
default: string;
|
|
72
|
+
};
|
|
73
|
+
explicit: {
|
|
74
|
+
type: BooleanConstructor;
|
|
75
|
+
default: boolean;
|
|
76
|
+
};
|
|
77
|
+
getLabelList: {
|
|
78
|
+
type: FunctionConstructor;
|
|
79
|
+
default: () => Promise<{
|
|
80
|
+
rows: never[];
|
|
81
|
+
}>;
|
|
82
|
+
};
|
|
83
|
+
queryCommonlabels: {
|
|
84
|
+
type: FunctionConstructor;
|
|
85
|
+
default: () => Promise<{
|
|
86
|
+
data: {};
|
|
87
|
+
}>;
|
|
88
|
+
};
|
|
89
|
+
deleteLabel: {
|
|
90
|
+
type: FunctionConstructor;
|
|
91
|
+
default: () => Promise<{
|
|
92
|
+
status: boolean;
|
|
93
|
+
}>;
|
|
94
|
+
};
|
|
95
|
+
saveLabelItem: {
|
|
96
|
+
type: FunctionConstructor;
|
|
97
|
+
default: () => Promise<{
|
|
98
|
+
status: boolean;
|
|
99
|
+
}>;
|
|
100
|
+
};
|
|
101
|
+
}>> & {
|
|
102
|
+
onOnChange?: ((...args: any[]) => any) | undefined;
|
|
103
|
+
}>>;
|
|
104
|
+
emit: (event: "onChange", ...args: any[]) => void;
|
|
81
105
|
labelFormContentRef: any;
|
|
82
106
|
state: {
|
|
83
107
|
labelVisible: boolean;
|
|
@@ -94,7 +118,6 @@ declare const SelectLabel: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
94
118
|
};
|
|
95
119
|
updateCommonChecked: (value: boolean, item: any) => void;
|
|
96
120
|
item_is_edit: import("vue").ComputedRef<any>;
|
|
97
|
-
titleRender: () => JSX.Element;
|
|
98
121
|
hadleCommonlabels: (commonLabelList: any[], selectList: any[]) => void;
|
|
99
122
|
getCommonlabelsList: (type: any) => Promise<void>;
|
|
100
123
|
closeTag: (d: {
|
|
@@ -231,58 +254,6 @@ declare const SelectLabel: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
231
254
|
anchorGetContainer: () => any;
|
|
232
255
|
handleResetOptions: () => void;
|
|
233
256
|
hanldeSetLabelItem: (id: string | number, status: boolean) => void;
|
|
234
|
-
NTabs: any;
|
|
235
|
-
NTabPane: import("vue").DefineComponent<{
|
|
236
|
-
readonly tab: import("vue").PropType<string | number | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
237
|
-
[key: string]: any;
|
|
238
|
-
}> | (() => import("vue").VNodeChild)>;
|
|
239
|
-
readonly name: {
|
|
240
|
-
readonly type: import("vue").PropType<string | number>;
|
|
241
|
-
readonly required: true;
|
|
242
|
-
};
|
|
243
|
-
readonly disabled: BooleanConstructor;
|
|
244
|
-
readonly displayDirective: {
|
|
245
|
-
readonly type: import("vue").PropType<"if" | "show" | "show:lazy">;
|
|
246
|
-
readonly default: "if";
|
|
247
|
-
};
|
|
248
|
-
readonly closable: {
|
|
249
|
-
readonly type: import("vue").PropType<boolean | undefined>;
|
|
250
|
-
readonly default: undefined;
|
|
251
|
-
};
|
|
252
|
-
readonly tabProps: import("vue").PropType<import("vue").HTMLAttributes>;
|
|
253
|
-
readonly label: import("vue").PropType<string | number | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
254
|
-
[key: string]: any;
|
|
255
|
-
}> | (() => import("vue").VNodeChild)>;
|
|
256
|
-
}, {
|
|
257
|
-
style: import("vue").Ref<string | import("vue").CSSProperties | undefined>;
|
|
258
|
-
class: import("vue").Ref<string | undefined>;
|
|
259
|
-
mergedClsPrefix: import("vue").Ref<string>;
|
|
260
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
261
|
-
readonly tab: import("vue").PropType<string | number | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
262
|
-
[key: string]: any;
|
|
263
|
-
}> | (() => import("vue").VNodeChild)>;
|
|
264
|
-
readonly name: {
|
|
265
|
-
readonly type: import("vue").PropType<string | number>;
|
|
266
|
-
readonly required: true;
|
|
267
|
-
};
|
|
268
|
-
readonly disabled: BooleanConstructor;
|
|
269
|
-
readonly displayDirective: {
|
|
270
|
-
readonly type: import("vue").PropType<"if" | "show" | "show:lazy">;
|
|
271
|
-
readonly default: "if";
|
|
272
|
-
};
|
|
273
|
-
readonly closable: {
|
|
274
|
-
readonly type: import("vue").PropType<boolean | undefined>;
|
|
275
|
-
readonly default: undefined;
|
|
276
|
-
};
|
|
277
|
-
readonly tabProps: import("vue").PropType<import("vue").HTMLAttributes>;
|
|
278
|
-
readonly label: import("vue").PropType<string | number | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
279
|
-
[key: string]: any;
|
|
280
|
-
}> | (() => import("vue").VNodeChild)>;
|
|
281
|
-
}>>, {
|
|
282
|
-
readonly disabled: boolean;
|
|
283
|
-
readonly closable: boolean | undefined;
|
|
284
|
-
readonly displayDirective: "if" | "show" | "show:lazy";
|
|
285
|
-
}>;
|
|
286
257
|
NAnchor: any;
|
|
287
258
|
NAnchorLink: import("vue").DefineComponent<{
|
|
288
259
|
readonly title: StringConstructor;
|
|
@@ -481,89 +452,71 @@ declare const SelectLabel: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
481
452
|
item: any;
|
|
482
453
|
isLock: boolean;
|
|
483
454
|
sourceType: string;
|
|
484
|
-
getLabelList: Function;
|
|
485
455
|
explicit: boolean;
|
|
456
|
+
getLabelList: Function;
|
|
486
457
|
deleteLabel: Function;
|
|
487
458
|
saveLabelItem: Function;
|
|
488
459
|
}>;
|
|
489
460
|
handleLabelColor: typeof import("../../shared/utils/vexutils").handleLabelColor;
|
|
490
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
461
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "onChange"[], "onChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
491
462
|
selectedList: {
|
|
492
|
-
type:
|
|
493
|
-
required: false;
|
|
463
|
+
type: import("vue").PropType<any[]>;
|
|
494
464
|
default: () => never[];
|
|
495
465
|
};
|
|
496
466
|
item: {
|
|
497
|
-
type:
|
|
498
|
-
required: false;
|
|
467
|
+
type: import("vue").PropType<any>;
|
|
499
468
|
default: () => {};
|
|
500
469
|
};
|
|
501
470
|
isDetail: {
|
|
502
471
|
type: BooleanConstructor;
|
|
503
|
-
required: false;
|
|
504
472
|
default: boolean;
|
|
505
473
|
};
|
|
506
474
|
isLock: {
|
|
507
475
|
type: BooleanConstructor;
|
|
508
|
-
required: false;
|
|
509
476
|
default: boolean;
|
|
510
477
|
};
|
|
511
478
|
sourceType: {
|
|
512
479
|
type: StringConstructor;
|
|
513
|
-
required: false;
|
|
514
480
|
default: string;
|
|
515
481
|
};
|
|
482
|
+
explicit: {
|
|
483
|
+
type: BooleanConstructor;
|
|
484
|
+
default: boolean;
|
|
485
|
+
};
|
|
516
486
|
getLabelList: {
|
|
517
487
|
type: FunctionConstructor;
|
|
518
|
-
required: false;
|
|
519
488
|
default: () => Promise<{
|
|
520
489
|
rows: never[];
|
|
521
490
|
}>;
|
|
522
491
|
};
|
|
523
|
-
explicit: {
|
|
524
|
-
type: BooleanConstructor;
|
|
525
|
-
required: false;
|
|
526
|
-
default: boolean;
|
|
527
|
-
};
|
|
528
|
-
explicitHeiht: {
|
|
529
|
-
type: StringConstructor;
|
|
530
|
-
required: false;
|
|
531
|
-
default: string;
|
|
532
|
-
};
|
|
533
492
|
queryCommonlabels: {
|
|
534
493
|
type: FunctionConstructor;
|
|
535
|
-
required: false;
|
|
536
494
|
default: () => Promise<{
|
|
537
495
|
data: {};
|
|
538
496
|
}>;
|
|
539
497
|
};
|
|
540
498
|
deleteLabel: {
|
|
541
499
|
type: FunctionConstructor;
|
|
542
|
-
required: false;
|
|
543
500
|
default: () => Promise<{
|
|
544
501
|
status: boolean;
|
|
545
502
|
}>;
|
|
546
503
|
};
|
|
547
504
|
saveLabelItem: {
|
|
548
505
|
type: FunctionConstructor;
|
|
549
|
-
required: false;
|
|
550
506
|
default: () => Promise<{
|
|
551
507
|
status: boolean;
|
|
552
508
|
}>;
|
|
553
509
|
};
|
|
554
510
|
}>> & {
|
|
555
511
|
onOnChange?: ((...args: any[]) => any) | undefined;
|
|
556
|
-
onScaleChange?: ((...args: any[]) => any) | undefined;
|
|
557
|
-
onVodFileList?: ((...args: any[]) => any) | undefined;
|
|
558
512
|
}, {
|
|
559
|
-
selectedList:
|
|
513
|
+
selectedList: any[];
|
|
560
514
|
item: any;
|
|
561
515
|
isDetail: boolean;
|
|
562
516
|
isLock: boolean;
|
|
563
517
|
sourceType: string;
|
|
564
|
-
getLabelList: Function;
|
|
565
518
|
explicit: boolean;
|
|
566
|
-
|
|
519
|
+
getLabelList: Function;
|
|
567
520
|
queryCommonlabels: Function;
|
|
568
521
|
deleteLabel: Function;
|
|
569
522
|
saveLabelItem: Function;
|
|
@@ -678,58 +631,6 @@ declare const LabelFormContent: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
678
631
|
anchorGetContainer: () => any;
|
|
679
632
|
handleResetOptions: () => void;
|
|
680
633
|
hanldeSetLabelItem: (id: string | number, status: boolean) => void;
|
|
681
|
-
NTabs: any;
|
|
682
|
-
NTabPane: import("vue").DefineComponent<{
|
|
683
|
-
readonly tab: import("vue").PropType<string | number | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
684
|
-
[key: string]: any;
|
|
685
|
-
}> | (() => import("vue").VNodeChild)>;
|
|
686
|
-
readonly name: {
|
|
687
|
-
readonly type: import("vue").PropType<string | number>;
|
|
688
|
-
readonly required: true;
|
|
689
|
-
};
|
|
690
|
-
readonly disabled: BooleanConstructor;
|
|
691
|
-
readonly displayDirective: {
|
|
692
|
-
readonly type: import("vue").PropType<"if" | "show" | "show:lazy">;
|
|
693
|
-
readonly default: "if";
|
|
694
|
-
};
|
|
695
|
-
readonly closable: {
|
|
696
|
-
readonly type: import("vue").PropType<boolean | undefined>;
|
|
697
|
-
readonly default: undefined;
|
|
698
|
-
};
|
|
699
|
-
readonly tabProps: import("vue").PropType<import("vue").HTMLAttributes>;
|
|
700
|
-
readonly label: import("vue").PropType<string | number | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
701
|
-
[key: string]: any;
|
|
702
|
-
}> | (() => import("vue").VNodeChild)>;
|
|
703
|
-
}, {
|
|
704
|
-
style: import("vue").Ref<string | import("vue").CSSProperties | undefined>;
|
|
705
|
-
class: import("vue").Ref<string | undefined>;
|
|
706
|
-
mergedClsPrefix: import("vue").Ref<string>;
|
|
707
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
708
|
-
readonly tab: import("vue").PropType<string | number | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
709
|
-
[key: string]: any;
|
|
710
|
-
}> | (() => import("vue").VNodeChild)>;
|
|
711
|
-
readonly name: {
|
|
712
|
-
readonly type: import("vue").PropType<string | number>;
|
|
713
|
-
readonly required: true;
|
|
714
|
-
};
|
|
715
|
-
readonly disabled: BooleanConstructor;
|
|
716
|
-
readonly displayDirective: {
|
|
717
|
-
readonly type: import("vue").PropType<"if" | "show" | "show:lazy">;
|
|
718
|
-
readonly default: "if";
|
|
719
|
-
};
|
|
720
|
-
readonly closable: {
|
|
721
|
-
readonly type: import("vue").PropType<boolean | undefined>;
|
|
722
|
-
readonly default: undefined;
|
|
723
|
-
};
|
|
724
|
-
readonly tabProps: import("vue").PropType<import("vue").HTMLAttributes>;
|
|
725
|
-
readonly label: import("vue").PropType<string | number | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
726
|
-
[key: string]: any;
|
|
727
|
-
}> | (() => import("vue").VNodeChild)>;
|
|
728
|
-
}>>, {
|
|
729
|
-
readonly disabled: boolean;
|
|
730
|
-
readonly closable: boolean | undefined;
|
|
731
|
-
readonly displayDirective: "if" | "show" | "show:lazy";
|
|
732
|
-
}>;
|
|
733
634
|
NAnchor: any;
|
|
734
635
|
NAnchorLink: import("vue").DefineComponent<{
|
|
735
636
|
readonly title: StringConstructor;
|
|
@@ -928,8 +829,8 @@ declare const LabelFormContent: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
928
829
|
item: any;
|
|
929
830
|
isLock: boolean;
|
|
930
831
|
sourceType: string;
|
|
931
|
-
getLabelList: Function;
|
|
932
832
|
explicit: boolean;
|
|
833
|
+
getLabelList: Function;
|
|
933
834
|
deleteLabel: Function;
|
|
934
835
|
saveLabelItem: Function;
|
|
935
836
|
}>>;
|
|
@@ -109,58 +109,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
109
109
|
anchorGetContainer: () => any;
|
|
110
110
|
handleResetOptions: () => void;
|
|
111
111
|
hanldeSetLabelItem: (id: string | number, status: boolean) => void;
|
|
112
|
-
NTabs: any;
|
|
113
|
-
NTabPane: import("vue").DefineComponent<{
|
|
114
|
-
readonly tab: import("vue").PropType<string | number | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
115
|
-
[key: string]: any;
|
|
116
|
-
}> | (() => import("vue").VNodeChild)>;
|
|
117
|
-
readonly name: {
|
|
118
|
-
readonly type: import("vue").PropType<string | number>;
|
|
119
|
-
readonly required: true;
|
|
120
|
-
};
|
|
121
|
-
readonly disabled: BooleanConstructor;
|
|
122
|
-
readonly displayDirective: {
|
|
123
|
-
readonly type: import("vue").PropType<"if" | "show" | "show:lazy">;
|
|
124
|
-
readonly default: "if";
|
|
125
|
-
};
|
|
126
|
-
readonly closable: {
|
|
127
|
-
readonly type: import("vue").PropType<boolean | undefined>;
|
|
128
|
-
readonly default: undefined;
|
|
129
|
-
};
|
|
130
|
-
readonly tabProps: import("vue").PropType<import("vue").HTMLAttributes>;
|
|
131
|
-
readonly label: import("vue").PropType<string | number | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
132
|
-
[key: string]: any;
|
|
133
|
-
}> | (() => import("vue").VNodeChild)>;
|
|
134
|
-
}, {
|
|
135
|
-
style: import("vue").Ref<string | import("vue").CSSProperties | undefined>;
|
|
136
|
-
class: import("vue").Ref<string | undefined>;
|
|
137
|
-
mergedClsPrefix: import("vue").Ref<string>;
|
|
138
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
139
|
-
readonly tab: import("vue").PropType<string | number | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
140
|
-
[key: string]: any;
|
|
141
|
-
}> | (() => import("vue").VNodeChild)>;
|
|
142
|
-
readonly name: {
|
|
143
|
-
readonly type: import("vue").PropType<string | number>;
|
|
144
|
-
readonly required: true;
|
|
145
|
-
};
|
|
146
|
-
readonly disabled: BooleanConstructor;
|
|
147
|
-
readonly displayDirective: {
|
|
148
|
-
readonly type: import("vue").PropType<"if" | "show" | "show:lazy">;
|
|
149
|
-
readonly default: "if";
|
|
150
|
-
};
|
|
151
|
-
readonly closable: {
|
|
152
|
-
readonly type: import("vue").PropType<boolean | undefined>;
|
|
153
|
-
readonly default: undefined;
|
|
154
|
-
};
|
|
155
|
-
readonly tabProps: import("vue").PropType<import("vue").HTMLAttributes>;
|
|
156
|
-
readonly label: import("vue").PropType<string | number | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
157
|
-
[key: string]: any;
|
|
158
|
-
}> | (() => import("vue").VNodeChild)>;
|
|
159
|
-
}>>, {
|
|
160
|
-
readonly disabled: boolean;
|
|
161
|
-
readonly closable: boolean | undefined;
|
|
162
|
-
readonly displayDirective: "if" | "show" | "show:lazy";
|
|
163
|
-
}>;
|
|
164
112
|
NAnchor: any;
|
|
165
113
|
NAnchorLink: import("vue").DefineComponent<{
|
|
166
114
|
readonly title: StringConstructor;
|
|
@@ -359,8 +307,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
359
307
|
item: any;
|
|
360
308
|
isLock: boolean;
|
|
361
309
|
sourceType: string;
|
|
362
|
-
getLabelList: Function;
|
|
363
310
|
explicit: boolean;
|
|
311
|
+
getLabelList: Function;
|
|
364
312
|
deleteLabel: Function;
|
|
365
313
|
saveLabelItem: Function;
|
|
366
314
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as
|
|
1
|
+
import{defineComponent as t,ref as e,reactive as l,computed as a,watch as i,openBlock as n,createElementBlock as r,unref as s,createCommentVNode as d,withDirectives as o,createElementVNode as c,normalizeClass as b,createVNode as u,withCtx as p,Fragment as f,renderList as h,createBlock as y,createTextVNode as v,toDisplayString as m,vShow as g,nextTick as C}from"vue";import{useMessage as L,NAnchor as I,NAnchorLink as S}from"naive-ui";import E from"./components/label-classify.vue.js";import{handleLabelColor as w}from"../../../shared/utils/vexutils.js";import x from"../../../_virtual/plugin-vue_export-helper.js";import A from"xe-utils";const O={key:0,class:"label-disable-wrap"},K=[c("p",{class:"label-disable-title"},"无可选标签",-1),c("p",{class:"label-disable-desc"},"请联系管理员进行标签管理设置",-1)],j={style:{height:"100%"}},k={class:"label-wrap"},T=["id"],_={class:"edit-label-type"};var B=x(t({__name:"LabelFormContent",props:{item:{default:()=>({})},isEdit:{type:Boolean,default:!0},isLock:{type:Boolean,default:!1},labelSelectedList:null,isChangeWindow:{type:Boolean},getLabelList:{type:Function,default:()=>Promise.resolve({rows:[]})},deleteLabel:{type:Function,default:()=>Promise.resolve({status:!0})},saveLabelItem:{type:Function,default:()=>Promise.resolve({status:!0})},labelOptions:null,sourceType:{default:""},explicit:{type:Boolean,default:!1}},emits:["explicitOnChange","change","updateLabelData"],setup(t,{expose:x,emit:B}){const D=t,F=L(),V=e(null),P=l({editLabelItem:{},inited:!1,labelSelectedEdit:[],labelAnchorKey:"",cacheAnchorKey:"",labelConfig:{}});let N=e(0);const W=a((()=>{if(!P.inited)return!1;let t=P.labelConfig;return!t||Object.keys(t).every((e=>!t[e].itemList))})),$=a((()=>{let t=[].concat(...P.labelSelectedEdit,...D.labelSelectedList);return J(t,"labelId")})),q=a((()=>{const t=$.value||[];return Array.isArray(t)?t.map((t=>t.labelId)):[]})),J=(t,e)=>{let l={};return t.reduce(((t,a)=>(!l[a[e]]&&(l[a[e]]=t.push(a)),t)),[])},R=()=>{if(P.labelSelectedEdit=$.value,"object"==typeof P.labelConfig){Object.keys(P.labelConfig||{}).forEach((t=>{var e;let l=(null==(e=P.labelConfig[t])?void 0:e.itemList)||[];l.length&&l.forEach((t=>{q.value.includes(t.labelId)&&(t.isSelect=!0)}))}))}},z=(t,e)=>{if(!t)return;let l=Object.keys(t)||[];if(!l.length)return;let a=t[l[0]].curKey;if(e&&"string"==typeof e){let[i]=e.split("~"),n=l.find((e=>t[e]&&t[e].curKey&&t[e].curKey.includes(i)));n&&(a=t[n].curKey)}a&&Y(a)},G=(t,e)=>{e.showAdd=!0;const l=t.target.nextElementSibling;C((()=>{var t;null==(t=null==l?void 0:l.firstChild)||t.focus()}))},H=(t,e)=>{setTimeout((()=>{e.addVal?Q(e):e.showAdd=!1}),150)},M=(t,e)=>{e.addVal="",e.showAdd=!1},Q=async t=>{var e;if(!!t.itemList.filter((t=>!(t.isPublic&&1==t.isPublic))).find((e=>e.labelName===t.addVal)))return F.error("标签名称重复!"),!1;let l="";l=(null==(e=t.itemList)?void 0:e.length)?t.itemList[0].parentColor||t.parentColor||"":(null==t?void 0:t.parentColor)||"";const a={type:t.typeId,name:t.addVal,parentColor:l},{status:i}=await D.saveLabelItem(a,t);i&&(F.success("添加成功!"),B("updateLabelData"),t.showAdd=!1)},U=(t,e,l,a)=>{var i;const n=l.itemList,r=l.multipleChoice;let s=(null==(i=P.labelSelectedEdit)?void 0:i.length)&&A.clone(P.labelSelectedEdit,!0)||[];if(t){if(s.some((t=>t.labelId==e.labelId)))return;if(2==r){const{typeId:t,labelId:l}=e;s=s.filter((e=>e.typeId!==t)),n.forEach((t=>{t.labelId!==l&&(t.isSelect=!1)}))}s.push(e)}else{const t=s.findIndex((t=>t.labelId==e.labelId));-1!=t&&s.splice(t,1)}P.labelSelectedEdit=[...s],N.value++,D.explicit&&B("explicitOnChange",[...P.labelSelectedEdit])},X=async t=>{const{status:e}=await D.deleteLabel(t,D.item);if(e){F.success("删除成功!");for(const e in P.labelConfig){const l=P.labelConfig[e].itemList.findIndex((e=>e.labelId==t.labelId));-1!=l&&P.labelConfig[e].itemList.splice(l,1)}const e=P.labelSelectedEdit||[],l=D.labelSelectedList||[];if(e&&e.length){const l=e.findIndex((e=>e.labelId==t.labelId));-1!=l&&e.splice(l,1)}if(l&&l.length){const e=l.findIndex((e=>e.labelId==t.labelId));-1!=e&&l.splice(e,1),B("change",[...l],D.item)}B("updateLabelData")}else F.warning("删除失败")},Y=t=>{t&&setTimeout((()=>{let e,l="#"+t;e=V.value.querySelector("a[href='"+l+"']"),e&&e.click(),P.labelAnchorKey=t}),32)},Z=t=>{t.preventDefault()},tt=t=>{if(!t)return;let e=t.slice(1);P.cacheAnchorKey=e},et=()=>{var t;return null==(t=V.value)?void 0:t.querySelector(".right-label-wrap")};return i((()=>D.labelOptions),(t=>{t&&(()=>{var t;if(D.isLock)return;const e=JSON.parse(JSON.stringify(D.labelOptions));for(let l in e){let a=(null==(t=e[l])?void 0:t.typeId)||"";Object.assign(e[l],{curKey:`${l}_${a}}`})}P.labelConfig=e,C((()=>{let t;R(),D.explicit&&P.inited&&(t=P.labelAnchorKey),z(P.labelConfig,t),P.inited=!0}))})()}),{immediate:!0,deep:!0}),x({resetShowAdd:()=>{let{labelObj:t}=P.editLabelItem;if(t&&Object.keys(t).length)for(let e in t){let l=t[e];Object.assign(l,{showAdd:!1})}},handleLabelForm:t=>{t([...P.labelSelectedEdit||[]])},handleResetOptions:()=>{},hanldeSetLabelItem:(t,e)=>{if("object"==typeof P.labelConfig){Object.keys(P.labelConfig||{}).forEach((l=>{var a;let i=(null==(a=P.labelConfig[l])?void 0:a.itemList)||[];i.length&&i.forEach((l=>{t==l.labelId&&(l.isSelect=e)}))}))}if(!1===e&&Array.isArray(P.labelSelectedEdit)){const e=P.labelSelectedEdit.findIndex((e=>e.labelId==t));-1!=e&&P.labelSelectedEdit.splice(e,1)}}}),(e,l)=>(n(),r("div",{class:"c-label-form-content",ref_key:"labelFormContent",ref:V},[s(W)?(n(),r("div",O,K)):d("v-if",!0),o(c("div",j,[c("div",k,[d(" 表单内嵌打开标签组件的样式 "),d(' <div v-if="explicit" class="explicit-continer">\r\n\t\t\t\t\t<n-tabs :value="state.labelAnchorKey" type="card" @change="labelAnchorTabsOnChange" tab-position="top">\r\n\t\t\t\t\t\t<template v-for="(v, i) in state.labelConfig">\r\n\t\t\t\t\t\t\t<n-tab-pane :name="v.curKey">\r\n\t\t\t\t\t\t\t\t<span slot="tab">\r\n\t\t\t\t\t\t\t\t\t{{ i }}\r\n\t\t\t\t\t\t\t\t\t<span class="edit-label-type">({{ v.multipleChoice == 2 ? \'单\' : \'多\' }}选)</span>\r\n\t\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t\t<div class="explicit-label-wrap left-label-wrap">\r\n\t\t\t\t\t\t\t\t\t<div class="edit-label-content">\r\n\t\t\t\t\t\t\t\t\t\t<labelClassify\r\n\t\t\t\t\t\t\t\t\t\t\t:classifyItem="v"\r\n\t\t\t\t\t\t\t\t\t\t\t:handleLabelChange="handleLabelChange"\r\n\t\t\t\t\t\t\t\t\t\t\t:handleLabelColor="handleLabelColor"\r\n\t\t\t\t\t\t\t\t\t\t\t:handleDelLabel="handleDelLabel"\r\n\t\t\t\t\t\t\t\t\t\t\t:hanldeBlur="hanldeBlur"\r\n\t\t\t\t\t\t\t\t\t\t\t:handleAddLabel="handleAddLabel"\r\n\t\t\t\t\t\t\t\t\t\t\t:clearaddVal="clearaddVal"\r\n\t\t\t\t\t\t\t\t\t\t\t:isEdit="isEdit"\r\n\t\t\t\t\t\t\t\t\t\t\t:sourceType="sourceType"\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t</n-tab-pane>\r\n\t\t\t\t\t\t</template>\r\n\t\t\t\t\t</n-tabs>\r\n\t\t\t\t</div> '),d("\r\n\t\t\t\t\t普通标签样式\r\n\t\t\t\t\tv-else\r\n\t\t\t\t\texplicit\r\n\t\t\t\t "),c("div",{class:b(["left-label-wrap",{"total-left-label-wrap":t.isChangeWindow}])},[u(s(I),{"offset-target":et,type:"block",onClick:Z,onChange:tt},{default:p((()=>[(n(!0),r(f,null,h(P.labelConfig,((t,e)=>(n(),y(s(S),{href:`#${t.curKey}`,title:String(e)},null,8,["href","title"])))),256))])),_:1})],2),d(' v-if="!explicit" '),c("div",{class:b(["right-label-wrap",{"total-right-label-wrap":t.isChangeWindow}])},[(n(!0),r(f,null,h(P.labelConfig,((e,l)=>(n(),r("div",{key:l,class:"edit-label-content"},[c("div",{class:"edit-label",id:e.curKey},[v(m(l)+" ",1),c("span",_,"("+m(2==e.multipleChoice?"单":"多")+"选)",1)],8,T),u(E,{classifyItem:e,handleLabelChange:U,handleLabelColor:s(w),handleDelLabel:X,hanldeBlur:H,handleAddLabel:G,clearaddVal:M,isEdit:t.isEdit,sourceType:t.sourceType},null,8,["classifyItem","handleLabelColor","isEdit","sourceType"])])))),128))],2)])],512),[[g,!s(W)]])],512))}}),[["__file","LabelFormContent.vue"]]);export{B as default};
|