cnhis-design-vue 3.1.57-beta.3 → 3.1.57-beta.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +87 -87
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +1 -0
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
- package/es/components/button-print/index.d.ts +8 -8
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +8 -8
- package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
- package/es/components/button-print/src/components/EditFormat.vue.d.ts +3 -3
- package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +7 -7
- package/es/components/button-print/style/index.css +1 -1
- package/es/components/calendar/index.d.ts +277 -0
- package/es/components/calendar/index.js +1 -0
- package/es/components/calendar/src/Calendar.vue.d.ts +266 -0
- package/es/components/calendar/src/Calendar.vue.js +1 -0
- package/es/components/calendar/src/Calendar.vue2.js +1 -0
- package/es/components/calendar/src/types/index.d.ts +6 -0
- package/es/components/calendar/src/types/index.js +1 -0
- package/es/components/calendar/style/index.css +1 -0
- package/es/components/callback/src/components/render/popupMaps.d.ts +259 -224
- package/es/components/classification/index.d.ts +3 -3
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +3 -3
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +3 -3
- package/es/components/classification/src/index.vue.d.ts +6 -3
- package/es/components/date-picker/index.d.ts +1 -1
- package/es/components/date-picker/src/DatePicker.vue.d.ts +1 -1
- package/es/components/date-picker/src/DatePicker.vue2.js +1 -1
- package/es/components/drag-scroll/index.d.ts +2 -0
- package/es/components/drag-scroll/index.js +1 -0
- package/es/components/drag-scroll/src/index.d.ts +4 -0
- package/es/components/drag-scroll/src/index.js +1 -0
- package/es/components/drag-scroll/src/types.d.ts +19 -0
- package/es/components/drag-scroll/src/types.js +1 -0
- package/es/components/expand-field/index.d.ts +3 -3
- package/es/components/expand-field/src/components/form.vue.d.ts +3 -3
- package/es/components/expand-field/src/components/form.vue2.js +1 -1
- package/es/components/expand-field/src/index.vue.d.ts +3 -3
- package/es/components/fabric-chart/index.d.ts +4 -2
- package/es/components/fabric-chart/src/FabricChart.vue.d.ts +4 -2
- package/es/components/fabric-chart/src/FabricChart.vue2.js +1 -1
- package/es/components/fabric-chart/src/components/PopupMenu.js +1 -1
- package/es/components/fabric-chart/src/constants/index.d.ts +2 -1
- package/es/components/fabric-chart/src/constants/index.js +1 -1
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogram.js +1 -1
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useLeft.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useOther.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useOther.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
- package/es/components/fabric-chart/src/interface.d.ts +4 -3
- package/es/components/field-set/index.d.ts +107 -616
- package/es/components/field-set/index.js +1 -1
- package/es/components/field-set/src/FieldColor.vue.d.ts +1680 -0
- package/es/components/field-set/src/FieldColor.vue.js +1 -0
- package/es/components/field-set/src/FieldColor.vue2.js +1 -0
- package/es/components/field-set/src/FieldSet.vue.d.ts +58 -16
- package/es/components/field-set/src/FieldSet.vue2.js +1 -1
- package/es/components/field-set/src/Index.vue.d.ts +141 -0
- package/es/components/field-set/src/Index.vue.js +1 -0
- package/es/components/field-set/src/Index.vue2.js +1 -0
- package/es/components/field-set/src/components/Row.vue.d.ts +50 -9
- package/es/components/field-set/src/components/Row.vue2.js +1 -1
- package/es/components/field-set/src/components/condition.vue.d.ts +172 -0
- package/es/components/field-set/src/components/condition.vue.js +1 -0
- package/es/components/field-set/src/components/condition.vue2.js +1 -0
- package/es/components/field-set/src/components/edit-dialog.vue.d.ts +1194 -0
- package/es/components/field-set/src/components/edit-dialog.vue.js +1 -0
- package/es/components/field-set/src/components/edit-dialog.vue2.js +1 -0
- package/es/components/field-set/src/components/edit-filter.vue.d.ts +286 -0
- package/es/components/field-set/src/components/edit-filter.vue.js +1 -0
- package/es/components/field-set/src/components/edit-filter.vue2.js +1 -0
- package/es/components/field-set/src/constants/index.d.ts +55 -0
- package/es/components/field-set/src/constants/index.js +1 -0
- package/es/components/field-set/src/types/index.d.ts +31 -1
- package/es/components/field-set/src/utils/index.d.ts +2 -1
- package/es/components/field-set/src/utils/index.js +1 -1
- package/es/components/field-set/style/index.css +1 -1
- package/es/components/form-config/index.d.ts +89 -30
- package/es/components/form-config/src/FormConfig.vue.d.ts +89 -30
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +31 -8
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +40 -11
- package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +8 -8
- package/es/components/form-config/src/constants/index.d.ts +1 -1
- package/es/components/form-config/src/types/index.d.ts +2 -2
- package/es/components/form-render/index.d.ts +31 -8
- package/es/components/form-render/index.js +1 -1
- package/es/components/form-render/src/FormRender.vue.d.ts +31 -8
- package/es/components/form-render/src/FormRender.vue2.js +1 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +31 -8
- package/es/components/form-render/src/components/renderer/combination/combination.d.ts +12 -0
- package/es/components/form-render/src/components/renderer/combination/combination.js +1 -1
- package/es/components/form-render/src/components/renderer/combination/hooks/useCombination.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/combination/hooks/useCombination.js +1 -1
- package/es/components/form-render/src/components/renderer/combination/jsonCombination.d.ts +12 -0
- package/es/components/form-render/src/components/renderer/combination/jsonCombination.js +1 -1
- package/es/components/form-render/src/components/renderer/select.d.ts +2 -0
- package/es/components/form-render/src/components/renderer/select.js +1 -1
- package/es/components/form-render/src/components/renderer/switch.js +1 -1
- package/es/components/form-render/src/hooks/index.d.ts +1 -0
- package/es/components/form-render/src/hooks/index.js +1 -1
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
- package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +4 -2
- package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
- package/es/components/form-render/src/hooks/useLowCodeReactions.d.ts +1 -1
- package/es/components/form-render/src/hooks/useNewLowCodeReactions.d.ts +6 -0
- package/es/components/form-render/src/hooks/useNewLowCodeReactions.js +1 -0
- package/es/components/form-render/src/types/fieldItem.d.ts +1 -0
- package/es/components/form-render/src/types/index.d.ts +2 -1
- package/es/components/guide/src/renderer.d.ts +2 -2
- package/es/components/iho-table/index.d.ts +228 -216
- package/es/components/iho-table/src/IhoTable.vue.d.ts +228 -216
- package/es/components/iho-table/src/IhoTable.vue2.js +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +1 -5
- package/es/components/iho-table/src/hooks/tapHooks/index.js +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.d.ts +2 -1
- package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.js +1 -1
- package/es/components/iho-table/src/plugins/{bindEventSettingPlugin/index.d.ts → bindEventSettingPlugin.d.ts} +1 -1
- package/es/components/iho-table/src/plugins/bindEventSettingPlugin.js +1 -0
- package/es/components/iho-table/src/plugins/{defaultConfigPlugin/index.d.ts → defaultConfigPlugin.d.ts} +1 -1
- package/es/components/iho-table/src/plugins/defaultConfigPlugin.js +1 -0
- package/es/components/iho-table/src/plugins/dragScrollPlugin.d.ts +1 -0
- package/es/components/iho-table/src/plugins/dragScrollPlugin.js +1 -0
- package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.d.ts +4 -2
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue2.js +1 -1
- package/es/components/iho-table/src/plugins/headerPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/index.js +1 -1
- package/es/components/iho-table/src/plugins/{keyboardEventPlugin/index.d.ts → keyboardEventPlugin.d.ts} +1 -1
- package/es/components/iho-table/src/plugins/keyboardEventPlugin.js +1 -0
- package/es/components/iho-table/src/plugins/{lowCodeFieldAdaptorPlugin/index.d.ts → lowCodeFieldAdaptorPlugin.d.ts} +1 -1
- package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin.js +1 -0
- package/es/components/iho-table/src/plugins/{operationalFormPlugin/index.d.ts → operationalFormPlugin.d.ts} +1 -1
- package/es/components/iho-table/src/plugins/operationalFormPlugin.js +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +32 -2
- 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/levelSearchCascadePlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.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/separateRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +1 -1
- 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/plugins/rowClickPlugin.d.ts +1 -0
- package/es/components/iho-table/src/plugins/rowClickPlugin.js +1 -0
- package/es/components/iho-table/src/plugins/rowDragPlugin.d.ts +1 -0
- package/es/components/iho-table/src/plugins/rowDragPlugin.js +1 -0
- package/es/components/iho-table/src/plugins/{varialbleHeightPlugin/index.d.ts → varialbleHeightPlugin.d.ts} +1 -1
- package/es/components/iho-table/src/plugins/varialbleHeightPlugin.js +1 -0
- package/es/components/iho-table/src/plugins/verticalTablePlugin/constants.d.ts +1 -0
- package/es/components/iho-table/src/plugins/verticalTablePlugin/constants.js +1 -0
- package/es/components/iho-table/src/plugins/verticalTablePlugin/index.d.ts +1 -0
- package/es/components/iho-table/src/plugins/verticalTablePlugin/index.js +1 -0
- package/es/components/iho-table/src/plugins/verticalTablePlugin/renderer.d.ts +3 -0
- package/es/components/iho-table/src/plugins/verticalTablePlugin/renderer.js +1 -0
- package/es/components/iho-table/src/plugins/verticalTablePlugin/types.d.ts +8 -0
- package/es/components/iho-table/src/plugins/verticalTablePlugin/types.js +1 -0
- package/es/components/iho-table/src/plugins/verticalTablePlugin/utils.d.ts +15 -0
- package/es/components/iho-table/src/plugins/verticalTablePlugin/utils.js +1 -0
- package/es/components/iho-table/src/plugins/{virtualTreePlugin/index.d.ts → virtualTreePlugin.d.ts} +1 -1
- package/es/components/iho-table/src/plugins/virtualTreePlugin.js +1 -0
- package/es/components/iho-table/src/types/index.d.ts +10 -1
- package/es/components/iho-table/src/types/pluginType.d.ts +3 -1
- package/es/components/iho-table/src/utils/index.d.ts +4 -7
- package/es/components/iho-table/src/utils/index.js +1 -1
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +3 -1
- package/es/components/index.js +1 -1
- package/es/components/info-header/index.d.ts +74 -23
- package/es/components/info-header/src/InfoHeader.vue.d.ts +74 -23
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +2 -1
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +2 -1
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +33 -9
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +31 -8
- package/es/components/keyboard/index.d.ts +1 -1
- package/es/components/keyboard/src/Keyboard.vue.d.ts +1 -1
- package/es/components/quick-search/index.d.ts +3 -3
- package/es/components/quick-search/src/index.vue.d.ts +3 -3
- package/es/components/recommend-search/index.d.ts +6 -6
- package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +6 -6
- package/es/components/recommend-search/src/components/BaseSearch.d.ts +1 -1
- package/es/components/recommend-search/src/components/RecommendInput.vue.d.ts +1 -1
- package/es/components/recommend-search/src/components/RecommendSelect.vue.d.ts +1 -1
- package/es/components/scale-view/index.d.ts +3 -3
- package/es/components/scale-view/src/ScaleView.vue.d.ts +3 -3
- package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
- package/es/components/scale-view/src/components/formitem/standard-modal.d.ts +1 -1
- package/es/components/scale-view/src/hooks/use-component.d.ts +1 -1
- package/es/components/select-label/index.d.ts +2 -2
- package/es/components/select-label/src/LabelFormContent.vue.d.ts +1 -1
- package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
- package/es/components/select-label/src/SelectLabel.vue.d.ts +1 -1
- package/es/components/select-label/src/index.vue.d.ts +1 -1
- package/es/components/select-person/src/SearchMultiple.vue.d.ts +0 -6
- package/es/components/select-person/src/SelectPerson.vue2.js +1 -1
- package/es/components/shortcut-provider/src/hooks/useShortcuts.js +1 -1
- package/es/components/shortcut-setter/index.d.ts +32 -8
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +32 -8
- package/es/components/table-export-field/index.d.ts +3 -3
- package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +3 -0
- package/es/components/table-export-field/src/components/SaveProjectModal.vue.d.ts +3 -3
- package/es/components/table-export-field/src/index.vue.d.ts +3 -3
- package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/bi-filter/components/Date.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/bi-filter/components/index.d.ts +1 -1
- package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +2 -2
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +2 -2
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +2 -2
- package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +4 -4
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +4 -4
- package/es/components/time-line/index.d.ts +7 -7
- package/es/components/time-line/src/TimeLine.vue.d.ts +3 -3
- 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.js +1 -1
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +86 -0
- package/es/shared/hooks/selectHooks/useOptionFiltered.d.ts +3 -1
- package/es/shared/hooks/selectHooks/useOptionFiltered.js +1 -1
- package/es/shared/hooks/selectHooks/useSearchContent.d.ts +1 -1
- package/es/shared/hooks/selectHooks/useSearchContent.js +1 -1
- package/es/shared/package.json.js +1 -1
- package/es/shared/types/business.d.ts +23 -3
- package/es/shared/utils/business.d.ts +2 -1
- package/es/shared/utils/business.js +1 -1
- package/es/shared/utils/fabricjs/index.d.ts +6823 -0
- package/es/shared/utils/index.d.ts +2 -1
- package/es/shared/utils/index.js +1 -1
- package/es/shared/utils/tapable/index.d.ts +139 -0
- package/package.json +8 -2
- package/es/components/iho-table/src/plugins/bindEventSettingPlugin/index.js +0 -1
- package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.js +0 -1
- package/es/components/iho-table/src/plugins/keyboardEventPlugin/index.js +0 -1
- package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +0 -1
- package/es/components/iho-table/src/plugins/operationalFormPlugin/index.js +0 -1
- package/es/components/iho-table/src/plugins/rowClickPlugin/index.d.ts +0 -1
- package/es/components/iho-table/src/plugins/rowClickPlugin/index.js +0 -1
- package/es/components/iho-table/src/plugins/rowDragPlugin/index.d.ts +0 -1
- package/es/components/iho-table/src/plugins/rowDragPlugin/index.js +0 -1
- package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.js +0 -1
- package/es/components/iho-table/src/plugins/virtualTreePlugin/index.js +0 -1
|
@@ -187,7 +187,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
187
187
|
default: boolean;
|
|
188
188
|
};
|
|
189
189
|
lowCodeReactions: {
|
|
190
|
-
type: import("vue").PropType<import("../../../..").LowCodeTypes.
|
|
190
|
+
type: import("vue").PropType<import("../../../..").LowCodeTypes.reactionConfig[]>;
|
|
191
|
+
};
|
|
192
|
+
newLowCodeReactions: {
|
|
193
|
+
type: import("vue").PropType<import("../../../..").LowCodeTypes.newReactionConfig[]>;
|
|
191
194
|
};
|
|
192
195
|
operationalForm: {
|
|
193
196
|
type: import("vue").PropType<import("../../../..").LowCodeTypes.operationalConfig[]>;
|
|
@@ -215,6 +218,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
215
218
|
default: boolean;
|
|
216
219
|
};
|
|
217
220
|
forceClearable: BooleanConstructor;
|
|
221
|
+
wordSplitFilter: {
|
|
222
|
+
type: BooleanConstructor;
|
|
223
|
+
default: boolean;
|
|
224
|
+
};
|
|
218
225
|
}, {
|
|
219
226
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
220
227
|
fieldList: {
|
|
@@ -349,7 +356,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
349
356
|
default: boolean;
|
|
350
357
|
};
|
|
351
358
|
lowCodeReactions: {
|
|
352
|
-
type: import("vue").PropType<import("../../../..").LowCodeTypes.
|
|
359
|
+
type: import("vue").PropType<import("../../../..").LowCodeTypes.reactionConfig[]>;
|
|
360
|
+
};
|
|
361
|
+
newLowCodeReactions: {
|
|
362
|
+
type: import("vue").PropType<import("../../../..").LowCodeTypes.newReactionConfig[]>;
|
|
353
363
|
};
|
|
354
364
|
operationalForm: {
|
|
355
365
|
type: import("vue").PropType<import("../../../..").LowCodeTypes.operationalConfig[]>;
|
|
@@ -377,12 +387,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
377
387
|
default: boolean;
|
|
378
388
|
};
|
|
379
389
|
forceClearable: BooleanConstructor;
|
|
390
|
+
wordSplitFilter: {
|
|
391
|
+
type: BooleanConstructor;
|
|
392
|
+
default: boolean;
|
|
393
|
+
};
|
|
380
394
|
}>> & {
|
|
381
395
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
382
396
|
onScroll?: ((...args: any[]) => any) | undefined;
|
|
383
397
|
onAnnotationChange?: ((...args: any[]) => any) | undefined;
|
|
384
398
|
}>>;
|
|
385
|
-
emit: (event: "
|
|
399
|
+
emit: (event: "scroll" | "formChange" | "annotationChange", ...args: any[]) => void;
|
|
386
400
|
cssVars: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
387
401
|
nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
|
|
388
402
|
formRenderRef: import("vue").Ref<HTMLElement | undefined>;
|
|
@@ -440,7 +454,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
440
454
|
[x: string]: any;
|
|
441
455
|
}>;
|
|
442
456
|
lowCodeReactionsHandler: (field: string) => void;
|
|
443
|
-
|
|
457
|
+
newLowCodeReactionsHandler: (field: string) => void;
|
|
444
458
|
operationalFormHandler: {
|
|
445
459
|
trigger(fieldKey: string): void;
|
|
446
460
|
triggerAll(): void;
|
|
@@ -534,13 +548,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
534
548
|
businessFormatter: import("../../../../../components/form-render").FormBusinessFormatter;
|
|
535
549
|
requestInstance: import("../../../..").FormRequestDefine.RequestInstance;
|
|
536
550
|
enterToNextWidget: boolean | ((fieldItem: FieldItem) => boolean | void);
|
|
537
|
-
lowCodeReactions: import("../../../..").LowCodeTypes.
|
|
551
|
+
lowCodeReactions: import("../../../..").LowCodeTypes.reactionConfig[];
|
|
538
552
|
linebarAutoHidden: boolean;
|
|
539
553
|
bordered: string | boolean;
|
|
540
554
|
uniqueCacheData: boolean;
|
|
541
555
|
operationalForm: import("../../../..").LowCodeTypes.operationalConfig[];
|
|
542
556
|
outBordered: boolean;
|
|
543
557
|
forceClearable: boolean;
|
|
558
|
+
wordSplitFilter: boolean;
|
|
544
559
|
}>) => Record<string, import("@formily/json-schema").Stringify<{
|
|
545
560
|
[key: symbol]: any;
|
|
546
561
|
[key: `x-${string}`]: any;
|
|
@@ -718,7 +733,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
718
733
|
readonly displayDirective: "if" | "show" | "show:lazy";
|
|
719
734
|
}>;
|
|
720
735
|
NTabs: any;
|
|
721
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
736
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "formChange" | "annotationChange")[], "scroll" | "formChange" | "annotationChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
722
737
|
fieldList: {
|
|
723
738
|
type: import("vue").PropType<FieldItem[]>;
|
|
724
739
|
};
|
|
@@ -851,7 +866,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
851
866
|
default: boolean;
|
|
852
867
|
};
|
|
853
868
|
lowCodeReactions: {
|
|
854
|
-
type: import("vue").PropType<import("../../../..").LowCodeTypes.
|
|
869
|
+
type: import("vue").PropType<import("../../../..").LowCodeTypes.reactionConfig[]>;
|
|
870
|
+
};
|
|
871
|
+
newLowCodeReactions: {
|
|
872
|
+
type: import("vue").PropType<import("../../../..").LowCodeTypes.newReactionConfig[]>;
|
|
855
873
|
};
|
|
856
874
|
operationalForm: {
|
|
857
875
|
type: import("vue").PropType<import("../../../..").LowCodeTypes.operationalConfig[]>;
|
|
@@ -879,6 +897,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
879
897
|
default: boolean;
|
|
880
898
|
};
|
|
881
899
|
forceClearable: BooleanConstructor;
|
|
900
|
+
wordSplitFilter: {
|
|
901
|
+
type: BooleanConstructor;
|
|
902
|
+
default: boolean;
|
|
903
|
+
};
|
|
882
904
|
}>> & {
|
|
883
905
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
884
906
|
onScroll?: ((...args: any[]) => any) | undefined;
|
|
@@ -887,7 +909,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
887
909
|
anchor: boolean;
|
|
888
910
|
maxHeight: string | number;
|
|
889
911
|
column: number;
|
|
890
|
-
forceClearable: boolean;
|
|
891
912
|
components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
|
|
892
913
|
initialData: import("../../../..").AnyObject;
|
|
893
914
|
parallelism: number;
|
|
@@ -898,6 +919,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
898
919
|
bordered: string | boolean;
|
|
899
920
|
uniqueCacheData: boolean;
|
|
900
921
|
outBordered: boolean;
|
|
922
|
+
forceClearable: boolean;
|
|
923
|
+
wordSplitFilter: boolean;
|
|
901
924
|
operationalFormInit: boolean;
|
|
902
925
|
}>;
|
|
903
926
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
|
|
@@ -297,7 +297,7 @@ declare const Keyboard: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
297
297
|
positionInitialValue: import("@vueuse/core").Position;
|
|
298
298
|
moveOffset: import("@vueuse/core").Position;
|
|
299
299
|
}>;
|
|
300
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "keydown")[], "
|
|
300
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "keydown")[], "change" | "keydown", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
301
301
|
mode: {
|
|
302
302
|
type: import("vue").PropType<"number" | "day" | "dose" | "english">;
|
|
303
303
|
default: string;
|
|
@@ -298,7 +298,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
298
298
|
positionInitialValue: Position;
|
|
299
299
|
moveOffset: Position;
|
|
300
300
|
}>;
|
|
301
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "keydown")[], "
|
|
301
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "keydown")[], "change" | "keydown", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
302
302
|
mode: {
|
|
303
303
|
type: PropType<"number" | "day" | "dose" | "english">;
|
|
304
304
|
default: string;
|
|
@@ -214,7 +214,7 @@ declare const CQuickSearch: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
214
214
|
readonly rule: import("vue").PropType<import("naive-ui").FormItemRule | import("naive-ui").FormItemRule[]>;
|
|
215
215
|
readonly size: import("vue").PropType<"small" | "medium" | "large">;
|
|
216
216
|
readonly ignorePathChange: BooleanConstructor;
|
|
217
|
-
readonly validationStatus: import("vue").PropType<"
|
|
217
|
+
readonly validationStatus: import("vue").PropType<"success" | "error" | "warning">;
|
|
218
218
|
readonly feedback: StringConstructor;
|
|
219
219
|
readonly showLabel: {
|
|
220
220
|
readonly type: import("vue").PropType<boolean | undefined>;
|
|
@@ -345,7 +345,7 @@ declare const CQuickSearch: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
345
345
|
mergedLabelAlign: import("vue").ComputedRef<import("naive-ui/es/form/src/interface").LabelAlign | undefined>;
|
|
346
346
|
mergedShowRequireMark: import("vue").ComputedRef<boolean | undefined>;
|
|
347
347
|
mergedRequireMarkPlacement: import("vue").ComputedRef<"left" | "right" | "right-hanging">;
|
|
348
|
-
mergedValidationStatus: import("vue").ComputedRef<"
|
|
348
|
+
mergedValidationStatus: import("vue").ComputedRef<"success" | "error" | "warning" | undefined>;
|
|
349
349
|
mergedShowFeedback: import("vue").ComputedRef<boolean>;
|
|
350
350
|
mergedShowLabel: import("vue").ComputedRef<boolean>;
|
|
351
351
|
isAutoLabelWidth: import("vue").ComputedRef<boolean>;
|
|
@@ -379,7 +379,7 @@ declare const CQuickSearch: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
379
379
|
readonly rule: import("vue").PropType<import("naive-ui").FormItemRule | import("naive-ui").FormItemRule[]>;
|
|
380
380
|
readonly size: import("vue").PropType<"small" | "medium" | "large">;
|
|
381
381
|
readonly ignorePathChange: BooleanConstructor;
|
|
382
|
-
readonly validationStatus: import("vue").PropType<"
|
|
382
|
+
readonly validationStatus: import("vue").PropType<"success" | "error" | "warning">;
|
|
383
383
|
readonly feedback: StringConstructor;
|
|
384
384
|
readonly showLabel: {
|
|
385
385
|
readonly type: import("vue").PropType<boolean | undefined>;
|
|
@@ -216,7 +216,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
216
216
|
readonly rule: PropType<import("naive-ui").FormItemRule | import("naive-ui").FormItemRule[]>;
|
|
217
217
|
readonly size: PropType<"small" | "medium" | "large">;
|
|
218
218
|
readonly ignorePathChange: BooleanConstructor;
|
|
219
|
-
readonly validationStatus: PropType<"
|
|
219
|
+
readonly validationStatus: PropType<"success" | "error" | "warning">;
|
|
220
220
|
readonly feedback: StringConstructor;
|
|
221
221
|
readonly showLabel: {
|
|
222
222
|
readonly type: PropType<boolean | undefined>;
|
|
@@ -347,7 +347,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
347
347
|
mergedLabelAlign: import("vue").ComputedRef<import("naive-ui/es/form/src/interface").LabelAlign | undefined>;
|
|
348
348
|
mergedShowRequireMark: import("vue").ComputedRef<boolean | undefined>;
|
|
349
349
|
mergedRequireMarkPlacement: import("vue").ComputedRef<"left" | "right" | "right-hanging">;
|
|
350
|
-
mergedValidationStatus: import("vue").ComputedRef<"
|
|
350
|
+
mergedValidationStatus: import("vue").ComputedRef<"success" | "error" | "warning" | undefined>;
|
|
351
351
|
mergedShowFeedback: import("vue").ComputedRef<boolean>;
|
|
352
352
|
mergedShowLabel: import("vue").ComputedRef<boolean>;
|
|
353
353
|
isAutoLabelWidth: import("vue").ComputedRef<boolean>;
|
|
@@ -381,7 +381,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
381
381
|
readonly rule: PropType<import("naive-ui").FormItemRule | import("naive-ui").FormItemRule[]>;
|
|
382
382
|
readonly size: PropType<"small" | "medium" | "large">;
|
|
383
383
|
readonly ignorePathChange: BooleanConstructor;
|
|
384
|
-
readonly validationStatus: PropType<"
|
|
384
|
+
readonly validationStatus: PropType<"success" | "error" | "warning">;
|
|
385
385
|
readonly feedback: StringConstructor;
|
|
386
386
|
readonly showLabel: {
|
|
387
387
|
readonly type: PropType<boolean | undefined>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SFCWithInstall } from '../../shared/types';
|
|
2
2
|
declare const RecommendSearch: SFCWithInstall<import("vue").DefineComponent<{
|
|
3
3
|
mode: {
|
|
4
|
-
type: import("vue").PropType<"
|
|
4
|
+
type: import("vue").PropType<"input" | "select">;
|
|
5
5
|
default: string;
|
|
6
6
|
};
|
|
7
7
|
value: {
|
|
@@ -51,7 +51,7 @@ declare const RecommendSearch: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
51
51
|
}, {
|
|
52
52
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
53
53
|
mode: {
|
|
54
|
-
type: import("vue").PropType<"
|
|
54
|
+
type: import("vue").PropType<"input" | "select">;
|
|
55
55
|
default: string;
|
|
56
56
|
};
|
|
57
57
|
value: {
|
|
@@ -293,7 +293,7 @@ declare const RecommendSearch: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
293
293
|
type: BooleanConstructor;
|
|
294
294
|
default: boolean;
|
|
295
295
|
};
|
|
296
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "search" | "update:show" | "keydown" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "
|
|
296
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "search" | "update:show" | "keydown" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "clear" | "update:show" | "keydown" | "openMenu", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
297
297
|
displayValue: {
|
|
298
298
|
type: StringConstructor;
|
|
299
299
|
};
|
|
@@ -525,7 +525,7 @@ declare const RecommendSearch: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
525
525
|
type: BooleanConstructor;
|
|
526
526
|
default: boolean;
|
|
527
527
|
};
|
|
528
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "search" | "update:show" | "keydown" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "
|
|
528
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "search" | "update:show" | "keydown" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "clear" | "update:show" | "keydown" | "openMenu", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
529
529
|
displayValue: {
|
|
530
530
|
type: StringConstructor;
|
|
531
531
|
};
|
|
@@ -631,7 +631,7 @@ declare const RecommendSearch: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
631
631
|
instance: import("vue").ComponentInternalInstance | null;
|
|
632
632
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("delete" | "clear" | "search" | "update:value" | "choose" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "delete" | "clear" | "update:value" | "choose" | "openMenu", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
633
633
|
mode: {
|
|
634
|
-
type: import("vue").PropType<"
|
|
634
|
+
type: import("vue").PropType<"input" | "select">;
|
|
635
635
|
default: string;
|
|
636
636
|
};
|
|
637
637
|
value: {
|
|
@@ -688,7 +688,7 @@ declare const RecommendSearch: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
688
688
|
onCloseMenu?: ((...args: any[]) => any) | undefined;
|
|
689
689
|
}, {
|
|
690
690
|
options: import("../../shared/types").AnyObject[];
|
|
691
|
-
mode: "
|
|
691
|
+
mode: "input" | "select";
|
|
692
692
|
valueKey: string;
|
|
693
693
|
clearable: boolean;
|
|
694
694
|
editPlaceholder: string;
|
|
@@ -3,7 +3,7 @@ import { PropType } from 'vue';
|
|
|
3
3
|
import { RecommendItem } from '../../../components/recommend-search/src/types';
|
|
4
4
|
declare const _default: import("vue").DefineComponent<{
|
|
5
5
|
mode: {
|
|
6
|
-
type: PropType<"
|
|
6
|
+
type: PropType<"input" | "select">;
|
|
7
7
|
default: string;
|
|
8
8
|
};
|
|
9
9
|
value: {
|
|
@@ -53,7 +53,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
53
53
|
}, {
|
|
54
54
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
55
55
|
mode: {
|
|
56
|
-
type: PropType<"
|
|
56
|
+
type: PropType<"input" | "select">;
|
|
57
57
|
default: string;
|
|
58
58
|
};
|
|
59
59
|
value: {
|
|
@@ -295,7 +295,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
295
295
|
type: BooleanConstructor;
|
|
296
296
|
default: boolean;
|
|
297
297
|
};
|
|
298
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "search" | "update:show" | "keydown" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "
|
|
298
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "search" | "update:show" | "keydown" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "clear" | "update:show" | "keydown" | "openMenu", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
299
299
|
displayValue: {
|
|
300
300
|
type: StringConstructor;
|
|
301
301
|
};
|
|
@@ -527,7 +527,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
527
527
|
type: BooleanConstructor;
|
|
528
528
|
default: boolean;
|
|
529
529
|
};
|
|
530
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "search" | "update:show" | "keydown" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "
|
|
530
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "search" | "update:show" | "keydown" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "clear" | "update:show" | "keydown" | "openMenu", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
531
531
|
displayValue: {
|
|
532
532
|
type: StringConstructor;
|
|
533
533
|
};
|
|
@@ -633,7 +633,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
633
633
|
instance: import("vue").ComponentInternalInstance | null;
|
|
634
634
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("delete" | "clear" | "search" | "update:value" | "choose" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "delete" | "clear" | "update:value" | "choose" | "openMenu", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
635
635
|
mode: {
|
|
636
|
-
type: PropType<"
|
|
636
|
+
type: PropType<"input" | "select">;
|
|
637
637
|
default: string;
|
|
638
638
|
};
|
|
639
639
|
value: {
|
|
@@ -690,7 +690,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
690
690
|
onCloseMenu?: ((...args: any[]) => any) | undefined;
|
|
691
691
|
}, {
|
|
692
692
|
options: AnyObject[];
|
|
693
|
-
mode: "
|
|
693
|
+
mode: "input" | "select";
|
|
694
694
|
valueKey: string;
|
|
695
695
|
clearable: boolean;
|
|
696
696
|
editPlaceholder: string;
|
|
@@ -32,7 +32,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
32
32
|
type: BooleanConstructor;
|
|
33
33
|
default: boolean;
|
|
34
34
|
};
|
|
35
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "search" | "update:show" | "keydown" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "
|
|
35
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "search" | "update:show" | "keydown" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "clear" | "update:show" | "keydown" | "openMenu", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
36
36
|
displayValue: {
|
|
37
37
|
type: StringConstructor;
|
|
38
38
|
};
|
|
@@ -185,7 +185,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
185
185
|
type: BooleanConstructor;
|
|
186
186
|
default: boolean;
|
|
187
187
|
};
|
|
188
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "search" | "update:show" | "keydown" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "
|
|
188
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "search" | "update:show" | "keydown" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "clear" | "update:show" | "keydown" | "openMenu", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
189
189
|
displayValue: {
|
|
190
190
|
type: StringConstructor;
|
|
191
191
|
};
|
|
@@ -140,7 +140,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
140
140
|
type: BooleanConstructor;
|
|
141
141
|
default: boolean;
|
|
142
142
|
};
|
|
143
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "search" | "update:show" | "keydown" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "
|
|
143
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "search" | "update:show" | "keydown" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "clear" | "update:show" | "keydown" | "openMenu", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
144
144
|
displayValue: {
|
|
145
145
|
type: StringConstructor;
|
|
146
146
|
};
|
|
@@ -738,7 +738,7 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
738
738
|
readonly rule: import("vue").PropType<import("naive-ui").FormItemRule | import("naive-ui").FormItemRule[]>;
|
|
739
739
|
readonly size: import("vue").PropType<"small" | "medium" | "large">;
|
|
740
740
|
readonly ignorePathChange: BooleanConstructor;
|
|
741
|
-
readonly validationStatus: import("vue").PropType<"
|
|
741
|
+
readonly validationStatus: import("vue").PropType<"success" | "error" | "warning">;
|
|
742
742
|
readonly feedback: StringConstructor;
|
|
743
743
|
readonly showLabel: {
|
|
744
744
|
readonly type: import("vue").PropType<boolean | undefined>;
|
|
@@ -869,7 +869,7 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
869
869
|
mergedLabelAlign: import("vue").ComputedRef<import("naive-ui/es/form/src/interface").LabelAlign | undefined>;
|
|
870
870
|
mergedShowRequireMark: import("vue").ComputedRef<boolean | undefined>;
|
|
871
871
|
mergedRequireMarkPlacement: import("vue").ComputedRef<"left" | "right" | "right-hanging">;
|
|
872
|
-
mergedValidationStatus: import("vue").ComputedRef<"
|
|
872
|
+
mergedValidationStatus: import("vue").ComputedRef<"success" | "error" | "warning" | undefined>;
|
|
873
873
|
mergedShowFeedback: import("vue").ComputedRef<boolean>;
|
|
874
874
|
mergedShowLabel: import("vue").ComputedRef<boolean>;
|
|
875
875
|
isAutoLabelWidth: import("vue").ComputedRef<boolean>;
|
|
@@ -903,7 +903,7 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
903
903
|
readonly rule: import("vue").PropType<import("naive-ui").FormItemRule | import("naive-ui").FormItemRule[]>;
|
|
904
904
|
readonly size: import("vue").PropType<"small" | "medium" | "large">;
|
|
905
905
|
readonly ignorePathChange: BooleanConstructor;
|
|
906
|
-
readonly validationStatus: import("vue").PropType<"
|
|
906
|
+
readonly validationStatus: import("vue").PropType<"success" | "error" | "warning">;
|
|
907
907
|
readonly feedback: StringConstructor;
|
|
908
908
|
readonly showLabel: {
|
|
909
909
|
readonly type: import("vue").PropType<boolean | undefined>;
|
|
@@ -736,7 +736,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
736
736
|
readonly rule: import("vue").PropType<import("naive-ui").FormItemRule | import("naive-ui").FormItemRule[]>;
|
|
737
737
|
readonly size: import("vue").PropType<"small" | "medium" | "large">;
|
|
738
738
|
readonly ignorePathChange: BooleanConstructor;
|
|
739
|
-
readonly validationStatus: import("vue").PropType<"
|
|
739
|
+
readonly validationStatus: import("vue").PropType<"success" | "error" | "warning">;
|
|
740
740
|
readonly feedback: StringConstructor;
|
|
741
741
|
readonly showLabel: {
|
|
742
742
|
readonly type: import("vue").PropType<boolean | undefined>;
|
|
@@ -867,7 +867,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
867
867
|
mergedLabelAlign: import("vue").ComputedRef<import("naive-ui/es/form/src/interface").LabelAlign | undefined>;
|
|
868
868
|
mergedShowRequireMark: import("vue").ComputedRef<boolean | undefined>;
|
|
869
869
|
mergedRequireMarkPlacement: import("vue").ComputedRef<"left" | "right" | "right-hanging">;
|
|
870
|
-
mergedValidationStatus: import("vue").ComputedRef<"
|
|
870
|
+
mergedValidationStatus: import("vue").ComputedRef<"success" | "error" | "warning" | undefined>;
|
|
871
871
|
mergedShowFeedback: import("vue").ComputedRef<boolean>;
|
|
872
872
|
mergedShowLabel: import("vue").ComputedRef<boolean>;
|
|
873
873
|
isAutoLabelWidth: import("vue").ComputedRef<boolean>;
|
|
@@ -901,7 +901,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
901
901
|
readonly rule: import("vue").PropType<import("naive-ui").FormItemRule | import("naive-ui").FormItemRule[]>;
|
|
902
902
|
readonly size: import("vue").PropType<"small" | "medium" | "large">;
|
|
903
903
|
readonly ignorePathChange: BooleanConstructor;
|
|
904
|
-
readonly validationStatus: import("vue").PropType<"
|
|
904
|
+
readonly validationStatus: import("vue").PropType<"success" | "error" | "warning">;
|
|
905
905
|
readonly feedback: StringConstructor;
|
|
906
906
|
readonly showLabel: {
|
|
907
907
|
readonly type: import("vue").PropType<boolean | undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,reactive as o,ref as t,watch as a,nextTick as n,openBlock as s,createElementBlock as i,normalizeClass as l,unref as r,createCommentVNode as m,Fragment as c,createBlock as u,mergeProps as d,createElementVNode as p,normalizeStyle as v,createVNode as f,withCtx as g,renderList as h,toDisplayString as k,createTextVNode as y,resolveDynamicComponent as w}from"vue";import S from"./hooks/use-noData.js";import{ScaleViewProps as b}from"./hooks/scaleview-props.js";import{getScaleViewState as C}from"./hooks/scaleview-state.js";import{ScaleViewComputed as D}from"./hooks/scaleview-computed.js";import{ScaleViewInit as E}from"./hooks/scaleview-init.js";import{ScaleViewSubmit as j}from"./hooks/scaleview-submit.js";import{ScaleViewMethods as _}from"./hooks/scaleview-methods.js";import{handleQueryParams as x,isCollection as P}from"./utils/judge-types.js";import{useEvent as q}from"./hooks/use-event.js";import"xe-utils";import"moment";import F from"../../../shared/utils/vexutilsExpand.js";import L from"./components/NoData.vue.js";import N from"./components/EvaluateCountdown.vue.js";import R from"./components/EvaluatePage.vue.js";import T from"./components/AnswerParse.vue.js";import A from"./components/ScaleScore.js";import M from"./components/DescribeContent.vue.js";import{NForm as O,NFormItem as I,NButton as J}from"naive-ui";const V=["innerHTML"],G={key:0,class:"required-text"},W={key:1,class:"evalute-label"},B=["onClick"],H=p("i",{class:"scale-view-iconfont icon-scale-view-dengpao"},null,-1),Q={key:1,class:"footer"};var z=e({__name:"ScaleView",props:b,emits:["onCloseSetting","submitNoRequest","onSubmit","startWriteScale"],setup(e,{expose:b,emit:z}){const K=e,{ScaleViewState:U}=C(),X=o(U),Y=t(null),Z=t(null),{noDataState:$,setNoData:ee,resetNodata:oe}=S(),te=x(),{showEvatip:ae,isFormBoldOpen:ne,scaleStyle:se,handlePageClass:ie,isShowItem:le,handleShowQuestionNumber:re,hasScore:me,isPreviewScale:ce,showEvaluateEntry:ue,showEvaluateCoundownPage:de,showSaveBtn:pe,showEvaluateLabel:ve,showAnswerParse:fe,propsConfig:ge,evaluatePageProps:he,evaluateCountdownProps:ke,isEvaluetaResSituation:ye,disableEdit:we,desStart:Se,desEnd:be,desContent:Ce}=D(K,X,{query:te}),{initForm:De}=E(K,X,z,{query:te}),{submitMethod:Ee,onSubmitData:je,onSubmitForm:_e,handleScoreJson:xe}=j(K,X,z,{query:te,formRef:Z,countdownDom:Y}),{nextLogicEvent:Pe,handleDynamicDataRelation:qe}=q(K,X),{scaleChange:Fe,labelChange:Le,vodFileList:Ne,writeGuage:Re,closeEvaluateCountdown:Te,showEvaTipModal:Ae}=_(K,X,z,{nextLogicEvent:Pe,handleDynamicDataRelation:qe,isPreviewScale:ce,submitMethod:Ee,isEvaluetaResSituation:ye,handleScoreJson:xe,disableEdit:we});(()=>{let{id:e}=te;e&&(X.shareId=e)})();const Me=e=>{try{oe(),De(e)}catch(e){console.log(e,"--error"),X.spinning=!1,X.hasFrontAddress=!1,ee(!0,null==e?void 0:e.resultMsg,null==e?void 0:e.result)}};a((()=>K.ids),((e,o)=>{o?e.guage_id&&e.guage_id!=o.guage_id&&Me(e):e.guage_id&&Me(e)}),{immediate:!0}),a((()=>K.guageData),(e=>{if(!e||!Object.keys(e||{}).length)return;X.form={},X.formArray=[];const o=JSON.parse(JSON.stringify(e));n((()=>{De(o)}))}),{immediate:!0});const Oe=F.debounce(je,300),Ie=()=>{z("onCloseSetting")};return b({getScaleData:()=>({...X}),onSubmitForm:_e,cancel:Ie}),(e,o)=>(s(),i("div",{class:l(["c-scale-view-block",{"c-scale-view-block-hasfooter":r(pe)}])},[m(' <template v-if="state.spinning">\
|
|
1
|
+
import{defineComponent as e,reactive as o,ref as t,watch as a,nextTick as n,openBlock as s,createElementBlock as i,normalizeClass as l,unref as r,createCommentVNode as m,Fragment as c,createBlock as u,mergeProps as d,createElementVNode as p,normalizeStyle as v,createVNode as f,withCtx as g,renderList as h,toDisplayString as k,createTextVNode as y,resolveDynamicComponent as w}from"vue";import S from"./hooks/use-noData.js";import{ScaleViewProps as b}from"./hooks/scaleview-props.js";import{getScaleViewState as C}from"./hooks/scaleview-state.js";import{ScaleViewComputed as D}from"./hooks/scaleview-computed.js";import{ScaleViewInit as E}from"./hooks/scaleview-init.js";import{ScaleViewSubmit as j}from"./hooks/scaleview-submit.js";import{ScaleViewMethods as _}from"./hooks/scaleview-methods.js";import{handleQueryParams as x,isCollection as P}from"./utils/judge-types.js";import{useEvent as q}from"./hooks/use-event.js";import"xe-utils";import"moment";import F from"../../../shared/utils/vexutilsExpand.js";import L from"./components/NoData.vue.js";import N from"./components/EvaluateCountdown.vue.js";import R from"./components/EvaluatePage.vue.js";import T from"./components/AnswerParse.vue.js";import A from"./components/ScaleScore.js";import M from"./components/DescribeContent.vue.js";import{NForm as O,NFormItem as I,NButton as J}from"naive-ui";const V=["innerHTML"],G={key:0,class:"required-text"},W={key:1,class:"evalute-label"},B=["onClick"],H=p("i",{class:"scale-view-iconfont icon-scale-view-dengpao"},null,-1),Q={key:1,class:"footer"};var z=e({__name:"ScaleView",props:b,emits:["onCloseSetting","submitNoRequest","onSubmit","startWriteScale"],setup(e,{expose:b,emit:z}){const K=e,{ScaleViewState:U}=C(),X=o(U),Y=t(null),Z=t(null),{noDataState:$,setNoData:ee,resetNodata:oe}=S(),te=x(),{showEvatip:ae,isFormBoldOpen:ne,scaleStyle:se,handlePageClass:ie,isShowItem:le,handleShowQuestionNumber:re,hasScore:me,isPreviewScale:ce,showEvaluateEntry:ue,showEvaluateCoundownPage:de,showSaveBtn:pe,showEvaluateLabel:ve,showAnswerParse:fe,propsConfig:ge,evaluatePageProps:he,evaluateCountdownProps:ke,isEvaluetaResSituation:ye,disableEdit:we,desStart:Se,desEnd:be,desContent:Ce}=D(K,X,{query:te}),{initForm:De}=E(K,X,z,{query:te}),{submitMethod:Ee,onSubmitData:je,onSubmitForm:_e,handleScoreJson:xe}=j(K,X,z,{query:te,formRef:Z,countdownDom:Y}),{nextLogicEvent:Pe,handleDynamicDataRelation:qe}=q(K,X),{scaleChange:Fe,labelChange:Le,vodFileList:Ne,writeGuage:Re,closeEvaluateCountdown:Te,showEvaTipModal:Ae}=_(K,X,z,{nextLogicEvent:Pe,handleDynamicDataRelation:qe,isPreviewScale:ce,submitMethod:Ee,isEvaluetaResSituation:ye,handleScoreJson:xe,disableEdit:we});(()=>{let{id:e}=te;e&&(X.shareId=e)})();const Me=e=>{try{oe(),De(e)}catch(e){console.log(e,"--error"),X.spinning=!1,X.hasFrontAddress=!1,ee(!0,null==e?void 0:e.resultMsg,null==e?void 0:e.result)}};a((()=>K.ids),((e,o)=>{o?e.guage_id&&e.guage_id!=o.guage_id&&Me(e):e.guage_id&&Me(e)}),{immediate:!0}),a((()=>K.guageData),(e=>{if(!e||!Object.keys(e||{}).length)return;X.form={},X.formArray=[];const o=JSON.parse(JSON.stringify(e));n((()=>{De(o)}))}),{immediate:!0});const Oe=F.debounce(je,300),Ie=()=>{z("onCloseSetting")};return b({getScaleData:()=>({...X}),onSubmitForm:_e,cancel:Ie}),(e,o)=>(s(),i("div",{class:l(["c-scale-view-block",{"c-scale-view-block-hasfooter":r(pe)}])},[m(' <template v-if="state.spinning">\n <n-spin :show="state.spinning" description="加载中"></n-spin>\n </template> '),X.spinning||X.hasFrontAddress?m("v-if",!0):(s(),i(c,{key:0},[r($).noData?(s(),u(L,{key:0,noDataImg:r($).noDataImg,noDataTip:r($).noDataTip},null,8,["noDataImg","noDataTip"])):(s(),i(c,{key:1},[r(ue)?(s(),u(R,d({key:0},r(he),{onWriteGuage:r(Re)}),null,16,["onWriteGuage"])):(s(),i(c,{key:1},[r(de)?(s(),u(N,d({key:0,ref_key:"countdownDom",ref:Y},r(ke),{onCloseEvaluateCountdown:r(Te)}),null,16,["onCloseEvaluateCountdown"])):m("v-if",!0),p("div",{class:l(["scale-container",{"scale-container-nopadding":r(ie),"scale-container-hasfooter":r(pe)}]),style:v(r(se))},[r(me)?(s(),u(r(A),{key:0,config:X.config,maxScore:X.maxScore},null,8,["config","maxScore"])):m("v-if",!0),r(Se)?(s(),u(M,{key:1,content:r(Ce)},null,8,["content"])):m("v-if",!0),f(r(O),{ref_key:"formRef",ref:Z,model:X.form,rules:X.rules,"require-mark-placement":"left",class:"main"},{default:g((()=>[(s(!0),i(c,null,h(X.formArray,((e,o)=>(s(),i(c,{key:(e.id||e.seq)+o},[r(le)(e)?(s(),u(r(I),{key:0,path:e.val_key,"show-label":!r(P)(e.type),class:"c-scle-form-item"},{label:g((()=>[p("span",{class:l({"scale-label-required":r(ne)(e)}),innerHTML:r(re)(e)},null,10,V),r(ne)(e)?(s(),i("span",G,"(必填)")):m("v-if",!0),r(ve)(e)?(s(),i("span",W,k(r(ve)(e)),1)):m("v-if",!0),r(ae)(e)?(s(),i("span",{key:2,class:"evalute-tip",onClick:o=>r(Ae)(e)},[H,y(" 查看提示 ")],8,B)):m("v-if",!0)])),default:g((()=>[(s(),u(w(e.renderCom),d(r(ge)(e,o),{key:(e.id||e.seq)+o,onScaleChange:r(Fe),onOnChange:o=>r(Le)(o,e),onVodFileList:r(Ne)}),null,16,["onScaleChange","onOnChange","onVodFileList"])),r(fe)(e)?(s(),u(T,{key:0,item:e},null,8,["item"])):m("v-if",!0)])),_:2},1032,["path","show-label"])):m("v-if",!0)],64)))),128))])),_:1},8,["model","rules"]),r(be)?(s(),u(M,{key:2,content:r(Ce)},null,8,["content"])):m("v-if",!0)],6),r(pe)?(s(),i("div",Q,[m(" 分享的链接 隐藏取消按钮 "),"guage"!==K.sourceType?(s(),u(r(J),{key:0,onClick:Ie},{default:g((()=>[y("取消")])),_:1})):m("v-if",!0),K.isLock?m("v-if",!0):(s(),u(r(J),{key:1,onClick:r(Oe),disabled:X.banSubmit,type:"primary"},{default:g((()=>[y(" 保存 ")])),_:1},8,["onClick","disabled"]))])):m("v-if",!0)],64))],64))],64))],2))}});export{z as default};
|
|
@@ -69,10 +69,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
69
69
|
onOnClose?: ((...args: any[]) => any) | undefined;
|
|
70
70
|
}, {
|
|
71
71
|
closable: boolean;
|
|
72
|
-
title: string | Function;
|
|
73
72
|
visible: boolean;
|
|
74
73
|
modalWidth: string;
|
|
75
74
|
modalHeight: string;
|
|
75
|
+
title: string | Function;
|
|
76
76
|
handleOk: Function;
|
|
77
77
|
cancel: Function;
|
|
78
78
|
changeSize: boolean;
|
|
@@ -1018,7 +1018,6 @@ export declare const componentMap: {
|
|
|
1018
1018
|
onExplicitOnChange?: ((...args: any[]) => any) | undefined;
|
|
1019
1019
|
onUpdateLabelData?: ((...args: any[]) => any) | undefined;
|
|
1020
1020
|
}, {
|
|
1021
|
-
isEdit: boolean;
|
|
1022
1021
|
item: any;
|
|
1023
1022
|
isLock: boolean;
|
|
1024
1023
|
sourceType: string;
|
|
@@ -1026,6 +1025,7 @@ export declare const componentMap: {
|
|
|
1026
1025
|
getLabelList: Function;
|
|
1027
1026
|
deleteLabel: Function;
|
|
1028
1027
|
saveLabelItem: Function;
|
|
1028
|
+
isEdit: boolean;
|
|
1029
1029
|
}>;
|
|
1030
1030
|
handleLabelColor: typeof import("../../../../shared/utils/vexutils").handleLabelColor;
|
|
1031
1031
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "onChange"[], "onChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -521,7 +521,6 @@ declare const SelectLabel: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
521
521
|
onExplicitOnChange?: ((...args: any[]) => any) | undefined;
|
|
522
522
|
onUpdateLabelData?: ((...args: any[]) => any) | undefined;
|
|
523
523
|
}, {
|
|
524
|
-
isEdit: boolean;
|
|
525
524
|
item: any;
|
|
526
525
|
isLock: boolean;
|
|
527
526
|
sourceType: string;
|
|
@@ -529,6 +528,7 @@ declare const SelectLabel: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
529
528
|
getLabelList: Function;
|
|
530
529
|
deleteLabel: Function;
|
|
531
530
|
saveLabelItem: Function;
|
|
531
|
+
isEdit: boolean;
|
|
532
532
|
}>;
|
|
533
533
|
handleLabelColor: typeof import("../../shared/utils/vexutils").handleLabelColor;
|
|
534
534
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "onChange"[], "onChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -1199,7 +1199,6 @@ declare const LabelFormContent: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1199
1199
|
onExplicitOnChange?: ((...args: any[]) => any) | undefined;
|
|
1200
1200
|
onUpdateLabelData?: ((...args: any[]) => any) | undefined;
|
|
1201
1201
|
}, {
|
|
1202
|
-
isEdit: boolean;
|
|
1203
1202
|
item: any;
|
|
1204
1203
|
isLock: boolean;
|
|
1205
1204
|
sourceType: string;
|
|
@@ -1207,6 +1206,7 @@ declare const LabelFormContent: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1207
1206
|
getLabelList: Function;
|
|
1208
1207
|
deleteLabel: Function;
|
|
1209
1208
|
saveLabelItem: Function;
|
|
1209
|
+
isEdit: boolean;
|
|
1210
1210
|
}>>;
|
|
1211
1211
|
export * from './src/types';
|
|
1212
1212
|
export default SelectLabel;
|
|
@@ -303,7 +303,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
303
303
|
onExplicitOnChange?: ((...args: any[]) => any) | undefined;
|
|
304
304
|
onUpdateLabelData?: ((...args: any[]) => any) | undefined;
|
|
305
305
|
}, {
|
|
306
|
-
isEdit: boolean;
|
|
307
306
|
item: any;
|
|
308
307
|
isLock: boolean;
|
|
309
308
|
sourceType: string;
|
|
@@ -311,5 +310,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
311
310
|
getLabelList: Function;
|
|
312
311
|
deleteLabel: Function;
|
|
313
312
|
saveLabelItem: Function;
|
|
313
|
+
isEdit: boolean;
|
|
314
314
|
}>;
|
|
315
315
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as t,ref as e,reactive as l,computed as a,watch as i,openBlock as n,createElementBlock as s,unref as
|
|
1
|
+
import{defineComponent as t,ref as e,reactive as l,computed as a,watch as i,openBlock as n,createElementBlock as s,unref as d,createCommentVNode as o,withDirectives as r,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"../../../shared/utils/vexutilsExpand.js";const A={key:0,class:"label-disable-wrap"},O=[c("p",{class:"label-disable-title"},"无可选标签",-1),c("p",{class:"label-disable-desc"},"请联系管理员进行标签管理设置",-1)],K={style:{height:"100%"}},j={class:"label-wrap"},k=["id"],T={class:"edit-label-type"};var B=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:B,emit:D}){const V=t,F=L(),P=e(null),_=l({editLabelItem:{},inited:!1,labelSelectedEdit:[],labelAnchorKey:"",cacheAnchorKey:"",labelConfig:{}});let N=e(0);const W=a((()=>{if(!_.inited)return!1;let t=_.labelConfig;return!t||Object.keys(t).every((e=>!t[e].itemList))})),$=a((()=>{let t=[].concat(..._.labelSelectedEdit,...V.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(_.labelSelectedEdit=$.value,"object"==typeof _.labelConfig){Object.keys(_.labelConfig||{}).forEach((t=>{var e;let l=(null==(e=_.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 V.saveLabelItem(a,t);i&&(F.success("添加成功!"),D("updateLabelData"),t.showAdd=!1)},U=(t,e,l,a)=>{var i;const n=l.itemList,s=l.multipleChoice;let d=(null==(i=_.labelSelectedEdit)?void 0:i.length)&&x.clone(_.labelSelectedEdit,!0)||[];if(t){if(d.some((t=>t.labelId==e.labelId)))return;if(2==s){const{typeId:t,labelId:l}=e;d=d.filter((e=>e.typeId!==t)),n.forEach((t=>{t.labelId!==l&&(t.isSelect=!1)}))}d.push(e)}else{const t=d.findIndex((t=>t.labelId==e.labelId));-1!=t&&d.splice(t,1)}_.labelSelectedEdit=[...d],N.value++,V.explicit&&D("explicitOnChange",[..._.labelSelectedEdit])},X=async t=>{const{status:e}=await V.deleteLabel(t,V.item);if(e){F.success("删除成功!");for(const e in _.labelConfig){const l=_.labelConfig[e].itemList.findIndex((e=>e.labelId==t.labelId));-1!=l&&_.labelConfig[e].itemList.splice(l,1)}const e=_.labelSelectedEdit||[],l=V.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),D("change",[...l],V.item)}D("updateLabelData")}else F.warning("删除失败")},Y=t=>{t&&setTimeout((()=>{let e,l="#"+t;e=P.value.querySelector("a[href='"+l+"']"),e&&e.click(),_.labelAnchorKey=t}),32)},Z=t=>{t.preventDefault()},tt=t=>{if(!t)return;let e=t.slice(1);_.cacheAnchorKey=e},et=()=>{var t;return null==(t=P.value)?void 0:t.querySelector(".right-label-wrap")};return i((()=>V.labelOptions),(t=>{t&&(()=>{var t;if(V.isLock)return;const e=JSON.parse(JSON.stringify(V.labelOptions));for(let l in e){let a=(null==(t=e[l])?void 0:t.typeId)||"";Object.assign(e[l],{curKey:`${l}_${a}}`})}_.labelConfig=e,C((()=>{let t;R(),V.explicit&&_.inited&&(t=_.labelAnchorKey),z(_.labelConfig,t),_.inited=!0}))})()}),{immediate:!0,deep:!0}),B({resetShowAdd:()=>{let{labelObj:t}=_.editLabelItem;if(t&&Object.keys(t).length)for(let e in t){let l=t[e];Object.assign(l,{showAdd:!1})}},handleLabelForm:t=>{t([..._.labelSelectedEdit||[]])},handleResetOptions:()=>{},hanldeSetLabelItem:(t,e)=>{if("object"==typeof _.labelConfig){Object.keys(_.labelConfig||{}).forEach((l=>{var a;let i=(null==(a=_.labelConfig[l])?void 0:a.itemList)||[];i.length&&i.forEach((l=>{t==l.labelId&&(l.isSelect=e)}))}))}if(!1===e&&Array.isArray(_.labelSelectedEdit)){const e=_.labelSelectedEdit.findIndex((e=>e.labelId==t));-1!=e&&_.labelSelectedEdit.splice(e,1)}}}),(e,l)=>(n(),s("div",{class:"c-label-form-content",ref_key:"labelFormContent",ref:P},[d(W)?(n(),s("div",A,O)):o("v-if",!0),r(c("div",K,[c("div",j,[o(" 表单内嵌打开标签组件的样式 "),o(' <div v-if="explicit" class="explicit-continer">\n\t\t\t\t\t<n-tabs :value="state.labelAnchorKey" type="card" @change="labelAnchorTabsOnChange" tab-position="top">\n\t\t\t\t\t\t<template v-for="(v, i) in state.labelConfig">\n\t\t\t\t\t\t\t<n-tab-pane :name="v.curKey">\n\t\t\t\t\t\t\t\t<span slot="tab">\n\t\t\t\t\t\t\t\t\t{{ i }}\n\t\t\t\t\t\t\t\t\t<span class="edit-label-type">({{ v.multipleChoice == 2 ? \'单\' : \'多\' }}选)</span>\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<div class="explicit-label-wrap left-label-wrap">\n\t\t\t\t\t\t\t\t\t<div class="edit-label-content">\n\t\t\t\t\t\t\t\t\t\t<labelClassify\n\t\t\t\t\t\t\t\t\t\t\t:classifyItem="v"\n\t\t\t\t\t\t\t\t\t\t\t:handleLabelChange="handleLabelChange"\n\t\t\t\t\t\t\t\t\t\t\t:handleLabelColor="handleLabelColor"\n\t\t\t\t\t\t\t\t\t\t\t:handleDelLabel="handleDelLabel"\n\t\t\t\t\t\t\t\t\t\t\t:hanldeBlur="hanldeBlur"\n\t\t\t\t\t\t\t\t\t\t\t:handleAddLabel="handleAddLabel"\n\t\t\t\t\t\t\t\t\t\t\t:clearaddVal="clearaddVal"\n\t\t\t\t\t\t\t\t\t\t\t:isEdit="isEdit"\n\t\t\t\t\t\t\t\t\t\t\t:sourceType="sourceType"\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</n-tab-pane>\n\t\t\t\t\t\t</template>\n\t\t\t\t\t</n-tabs>\n\t\t\t\t</div> '),o("\n\t\t\t\t\t普通标签样式\n\t\t\t\t\tv-else\n\t\t\t\t\texplicit\n\t\t\t\t "),c("div",{class:b(["left-label-wrap",{"total-left-label-wrap":t.isChangeWindow}])},[u(d(I),{"offset-target":et,type:"block",onClick:Z,onChange:tt},{default:p((()=>[(n(!0),s(f,null,h(_.labelConfig,((t,e)=>(n(),y(d(S),{href:`#${t.curKey}`,title:String(e)},null,8,["href","title"])))),256))])),_:1})],2),o(' v-if="!explicit" '),c("div",{class:b(["right-label-wrap",{"total-right-label-wrap":t.isChangeWindow}])},[(n(!0),s(f,null,h(_.labelConfig,((e,l)=>(n(),s("div",{key:l,class:"edit-label-content"},[c("div",{class:"edit-label",id:e.curKey},[v(m(l)+" ",1),c("span",T,"("+m(2==e.multipleChoice?"单":"多")+"选)",1)],8,k),u(E,{classifyItem:e,handleLabelChange:U,handleLabelColor:d(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,!d(W)]])],512))}});export{B as default};
|
|
@@ -458,7 +458,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
458
458
|
onExplicitOnChange?: ((...args: any[]) => any) | undefined;
|
|
459
459
|
onUpdateLabelData?: ((...args: any[]) => any) | undefined;
|
|
460
460
|
}, {
|
|
461
|
-
isEdit: boolean;
|
|
462
461
|
item: any;
|
|
463
462
|
isLock: boolean;
|
|
464
463
|
sourceType: string;
|
|
@@ -466,6 +465,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
466
465
|
getLabelList: Function;
|
|
467
466
|
deleteLabel: Function;
|
|
468
467
|
saveLabelItem: Function;
|
|
468
|
+
isEdit: boolean;
|
|
469
469
|
}>;
|
|
470
470
|
handleLabelColor: typeof handleLabelColor;
|
|
471
471
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "onChange"[], "onChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -522,7 +522,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
522
522
|
onExplicitOnChange?: ((...args: any[]) => any) | undefined;
|
|
523
523
|
onUpdateLabelData?: ((...args: any[]) => any) | undefined;
|
|
524
524
|
}, {
|
|
525
|
-
isEdit: boolean;
|
|
526
525
|
item: any;
|
|
527
526
|
isLock: boolean;
|
|
528
527
|
sourceType: string;
|
|
@@ -530,6 +529,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
530
529
|
getLabelList: Function;
|
|
531
530
|
deleteLabel: Function;
|
|
532
531
|
saveLabelItem: Function;
|
|
532
|
+
isEdit: boolean;
|
|
533
533
|
}>;
|
|
534
534
|
handleLabelColor: typeof import("../../../shared/utils/vexutils").handleLabelColor;
|
|
535
535
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "onChange"[], "onChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|