cnhis-design-vue 3.4.0-release.3 → 3.4.0-release.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/_virtual/_virtual_i18n-methods.js +5 -1
- package/es/components/audio-sdk/index.d.ts +4 -4
- package/es/components/audio-sdk/src/Index.vue.d.ts +4 -4
- package/es/components/audio-sdk/src/components/recording-modal.vue.d.ts +4 -4
- package/es/components/audio-sdk/src/components/recording.vue.d.ts +4 -4
- package/es/components/base-search/index.d.ts +34 -0
- package/es/components/base-search/src/index.vue.d.ts +34 -0
- package/es/components/base-search/src/index.vue2.js +9 -1
- package/es/components/button-print/index.d.ts +32 -0
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +32 -0
- package/es/components/button-print/src/ButtonPrint.vue2.js +4 -0
- package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +4 -0
- package/es/components/button-print/src/components/NewPrintComponent.vue2.js +73 -48
- package/es/components/button-print/src/components/OldPrintComponent.vue.d.ts +11 -0
- package/es/components/button-print/src/components/OldPrintComponent.vue2.js +35 -0
- package/es/components/button-print/src/utils/print.d.ts +1 -1
- package/es/components/button-print/src/utils/print.js +4 -2
- package/es/components/callback/src/components/render/popupMaps.d.ts +38 -24
- package/es/components/classification/index.d.ts +84 -0
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +84 -0
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +84 -0
- package/es/components/classification/src/index.vue.d.ts +84 -0
- package/es/components/classification/src/index.vue2.js +7 -0
- package/es/components/date-picker/index.d.ts +28 -0
- package/es/components/date-picker/src/DatePicker.vue.d.ts +28 -0
- package/es/components/date-picker/src/DatePicker.vue2.js +26 -1
- package/es/components/expand-field/index.d.ts +31 -0
- package/es/components/expand-field/src/components/FormItemPerson.vue.d.ts +31 -0
- package/es/components/expand-field/src/components/PersonModal.vue.d.ts +31 -0
- package/es/components/expand-field/src/components/form.vue.d.ts +31 -0
- package/es/components/expand-field/src/index.vue.d.ts +31 -0
- package/es/components/fabric-chart/index.d.ts +3 -3
- package/es/components/fabric-chart/src/FabricChart.vue.d.ts +3 -3
- package/es/components/fabric-chart/src/FabricChart.vue2.js +1 -0
- package/es/components/fabric-chart/src/components/PopupMenu.d.ts +4 -4
- package/es/components/fabric-chart/src/components/PopupMenu.js +57 -39
- package/es/components/fabric-chart/src/constants/index.d.ts +19 -5
- package/es/components/fabric-chart/src/constants/index.js +26 -11
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.d.ts +4 -3
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +119 -193
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.js +69 -117
- package/es/components/fabric-chart/src/hooks/electrocardiogram/hooks/useDetailEvent.js +15 -11
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogram.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogram.js +39 -27
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.d.ts +2 -2
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.js +86 -122
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useMeasureInstrument.js +1 -0
- package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcessChart.js +65 -113
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.d.ts +4 -3
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +63 -37
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useLeft.js +31 -14
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.d.ts +4 -3
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.js +6 -7
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +152 -208
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.d.ts +4 -3
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +8 -9
- package/es/components/fabric-chart/src/hooks/temperature/useBottom.js +1 -0
- package/es/components/fabric-chart/src/hooks/temperature/useCenter.d.ts +4 -3
- package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +138 -229
- package/es/components/fabric-chart/src/hooks/temperature/useOther.js +5 -2
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +195 -273
- package/es/components/fabric-chart/src/hooks/temperature/useTop.js +1 -0
- package/es/components/fabric-chart/src/interface.d.ts +14 -1
- package/es/components/fabric-chart/src/utils/eventBus.d.ts +2 -0
- package/es/components/fabric-chart/src/utils/eventBus.js +5 -0
- package/es/components/fabric-chart/src/utils/index.d.ts +1 -1
- package/es/components/fabric-chart/src/utils/index.js +2 -10
- package/es/components/fabric-chart/style/index.css +1 -1
- package/es/components/field-editor/index.d.ts +1 -0
- package/es/components/field-editor/src/FieldEditor.vue.d.ts +1 -0
- package/es/components/field-set/src/FieldColor.vue.d.ts +57 -1
- package/es/components/field-set/src/FieldFilter.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldSet.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldSet.vue2.js +3 -1
- package/es/components/field-set/src/components/condition.vue.d.ts +28 -0
- package/es/components/field-set/src/components/edit-dialog.vue.d.ts +56 -0
- package/es/components/field-set/src/components/edit-filter.vue.d.ts +28 -0
- package/es/components/field-set/src/components/table-row.vue.d.ts +1 -1
- package/es/components/form-config/index.d.ts +24 -0
- package/es/components/form-config/src/FormConfig.vue.d.ts +24 -0
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +1 -0
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +19 -0
- package/es/components/form-config/src/components/FormConfigEdit.vue2.js +48 -24
- package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +1 -0
- package/es/components/form-config/src/constants/index.d.ts +2 -0
- package/es/components/form-config/src/constants/index.js +2 -0
- package/es/components/form-config/src/hooks/useConfigurationField.js +20 -3
- package/es/components/form-render/index.d.ts +1 -0
- package/es/components/form-render/src/FormRender.vue.d.ts +1 -0
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +1 -0
- package/es/components/form-render/src/components/renderer/combination/hooks/useCombination.js +1 -1
- package/es/components/form-render/src/components/renderer/combination/jsonCombination.js +1 -0
- package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +1 -0
- package/es/components/form-render/src/components/renderer/lineBar/index.d.ts +1 -0
- package/es/components/form-render/src/components/renderer/radio_checkbox.js +3 -2
- package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +2 -0
- package/es/components/form-render/src/hooks/useFormEvent.js +1 -1
- package/es/components/form-render/src/hooks/useNewLowCodeReactions.js +8 -0
- package/es/components/form-render/src/types/index.d.ts +1 -0
- package/es/components/form-render/src/utils/index.d.ts +1 -1
- package/es/components/form-render/src/utils/index.js +5 -2
- package/es/components/iho-chat/index.d.ts +2757 -300
- package/es/components/iho-chat/src/Index.vue.d.ts +2757 -300
- package/es/components/iho-chat/src/Index.vue2.js +5 -3
- package/es/components/iho-chat/src/api/index.d.ts +89 -16
- package/es/components/iho-chat/src/api/index.js +8 -1
- package/es/components/iho-chat/src/components/ChatAdd.vue.d.ts +104 -22
- package/es/components/iho-chat/src/components/ChatFile.vue.d.ts +191 -29
- package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +191 -29
- package/es/components/iho-chat/src/components/ChatFooter.vue2.js +3 -0
- package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +783 -101
- package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +611 -51
- package/es/components/iho-chat/src/components/ChatMain.vue2.js +27 -28
- package/es/components/iho-chat/src/components/ChatRecord.vue.d.ts +204 -14
- package/es/components/iho-chat/src/components/ChatSearch.vue.d.ts +175 -10
- package/es/components/iho-chat/src/components/ChatSearch.vue2.js +2 -1
- package/es/components/iho-chat/src/components/ChatSet.vue.d.ts +197 -29
- package/es/components/iho-chat/src/components/ChatSet.vue2.js +48 -11
- package/es/components/iho-chat/src/components/ContextMenu.js +7 -10
- package/es/components/iho-chat/src/components/MessageEvent.vue.d.ts +88 -7
- package/es/components/iho-chat/src/components/MessageMarkdown.vue.d.ts +158 -0
- package/es/components/iho-chat/src/components/MessageMarkdown.vue.js +6 -0
- package/es/components/iho-chat/src/components/MessageMarkdown.vue2.js +51 -0
- package/es/components/iho-chat/src/components/MessageMergeForward.vue.d.ts +176 -14
- package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +192 -29
- package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +2 -1
- package/es/components/iho-chat/src/components/PersonProfile.vue.d.ts +91 -8
- package/es/components/iho-chat/src/components/SiderList.vue.d.ts +121 -11
- package/es/components/iho-chat/src/components/Video.vue.d.ts +89 -8
- package/es/components/iho-chat/src/components/userItemRender.js +2 -1
- package/es/components/iho-chat/src/constants/index.d.ts +2 -1
- package/es/components/iho-chat/src/constants/index.js +1 -0
- package/es/components/iho-chat/src/hooks/useData.d.ts +374 -27
- package/es/components/iho-chat/src/hooks/useData.js +31 -10
- package/es/components/iho-chat/src/hooks/useStreamOutput.d.ts +6 -0
- package/es/components/iho-chat/src/hooks/useStreamOutput.js +100 -0
- package/es/components/iho-chat/src/hooks/useVideo.d.ts +89 -7
- package/es/components/iho-chat/src/hooks/useWebSocket.js +14 -4
- package/es/components/iho-chat/src/types/index.d.ts +39 -7
- package/es/components/iho-chat/src/utils/index.d.ts +2 -1
- package/es/components/iho-chat/src/utils/sseClient.d.ts +22 -0
- package/es/components/iho-chat/src/utils/sseClient.js +97 -0
- package/es/components/iho-chat/style/index.css +1 -1
- package/es/components/iho-table/index.d.ts +37 -24
- package/es/components/iho-table/src/IhoTable.vue.d.ts +37 -24
- package/es/components/iho-table/src/IhoTable.vue2.js +7 -2
- package/es/components/iho-table/src/constants/index.d.ts +2 -2
- package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +3 -3
- package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.d.ts +1 -1
- package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.js +1 -1
- package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +30 -4
- package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue2.js +22 -8
- package/es/components/iho-table/src/plugins/highLightSetPlugin.js +7 -2
- package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +28 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/levelSearchCascade.vue.d.ts +2 -2
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.d.ts +2 -2
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/utils.d.ts +1 -1
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/utils.js +8 -2
- package/es/components/iho-table/src/types/index.d.ts +3 -1
- package/es/components/index.css +1 -1
- package/es/components/info-header/index.d.ts +46 -2
- package/es/components/info-header/src/InfoHeader.vue.d.ts +46 -2
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +41 -2
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue2.js +2 -1
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +41 -2
- package/es/components/info-header/src/components/infoDescription/HiddenContent.vue.d.ts +20 -1
- package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue.d.ts +20 -1
- package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue2.js +9 -6
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +42 -2
- package/es/components/info-header/src/components/infoDescription/index.vue2.js +1 -1
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +1 -0
- package/es/components/scale-view/index.d.ts +1 -1
- package/es/components/scale-view/src/ScaleView.vue.d.ts +1 -1
- package/es/components/scale-view/src/ScaleView.vue2.js +9 -3
- package/es/components/scale-view/src/hooks/use-event.js +56 -22
- package/es/components/select-person/index.d.ts +31 -0
- package/es/components/select-person/src/SelectPerson.vue.d.ts +14 -0
- package/es/components/select-person/src/SelectPerson.vue2.js +36 -8
- package/es/components/select-person/src/index.vue.d.ts +31 -0
- package/es/components/select-person/src/index.vue2.js +4 -0
- package/es/components/shortcut-setter/index.d.ts +1 -0
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +1 -0
- package/es/components/table-export-field/src/components/SaveProjectModal.vue2.js +2 -2
- package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.d.ts +28 -0
- package/es/components/table-filter/src/components/bi-filter/components/Date.vue.d.ts +28 -0
- package/es/components/table-filter/src/components/bi-filter/components/index.d.ts +28 -0
- package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +28 -0
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +56 -0
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +28 -0
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +28 -0
- package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +56 -0
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +56 -0
- package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +28 -0
- package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +30 -0
- package/es/components/table-filter/src/components/render-widget/components/DateOut.vue2.js +10 -2
- package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +28 -0
- package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +30 -0
- package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue2.js +10 -2
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +116 -0
- package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js +9 -9
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +116 -0
- package/es/components/table-filter/src/constants/index.d.ts +1 -0
- package/es/components/table-filter/src/constants/index.js +4 -1
- package/es/shared/components/Ellipsis/Ellipsis.d.ts +12 -0
- package/es/shared/components/Ellipsis/Ellipsis.js +86 -0
- package/es/shared/components/Ellipsis/index.d.ts +2 -0
- package/es/shared/components/Ellipsis/index.js +2 -0
- package/es/shared/components/InputNumberSlash/InputNumberSlash.d.ts +15 -0
- package/es/shared/components/InputNumberSlash/InputNumberSlash.js +24 -10
- package/es/shared/package.json.js +1 -1
- package/es/shared/types/business.d.ts +3 -2
- package/es/shared/utils/business.js +16 -0
- package/package.json +3 -3
|
@@ -221,6 +221,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
221
221
|
type: BooleanConstructor;
|
|
222
222
|
default: boolean;
|
|
223
223
|
};
|
|
224
|
+
onlyCheckChildNode: {
|
|
225
|
+
type: BooleanConstructor;
|
|
226
|
+
default: boolean;
|
|
227
|
+
};
|
|
224
228
|
itemKey: {
|
|
225
229
|
type: PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & import("../../../../shared/types").AnyObject) => string | number>;
|
|
226
230
|
default: undefined;
|
|
@@ -348,6 +352,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
348
352
|
type: BooleanConstructor;
|
|
349
353
|
default: boolean;
|
|
350
354
|
};
|
|
355
|
+
onlyCheckChildNode: {
|
|
356
|
+
type: BooleanConstructor;
|
|
357
|
+
default: boolean;
|
|
358
|
+
};
|
|
351
359
|
itemKey: {
|
|
352
360
|
type: PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & import("../../../../shared/types").AnyObject) => string | number>;
|
|
353
361
|
default: undefined;
|
|
@@ -1492,6 +1500,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1492
1500
|
type: BooleanConstructor;
|
|
1493
1501
|
default: boolean;
|
|
1494
1502
|
};
|
|
1503
|
+
onlyCheckChildNode: {
|
|
1504
|
+
type: BooleanConstructor;
|
|
1505
|
+
};
|
|
1495
1506
|
itemKey: {
|
|
1496
1507
|
type: PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & import("../../../../shared/types").AnyObject) => string | number>;
|
|
1497
1508
|
default: undefined;
|
|
@@ -1578,6 +1589,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1578
1589
|
type: BooleanConstructor;
|
|
1579
1590
|
default: boolean;
|
|
1580
1591
|
};
|
|
1592
|
+
onlyCheckChildNode: {
|
|
1593
|
+
type: BooleanConstructor;
|
|
1594
|
+
};
|
|
1581
1595
|
itemKey: {
|
|
1582
1596
|
type: PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & import("../../../../shared/types").AnyObject) => string | number>;
|
|
1583
1597
|
default: undefined;
|
|
@@ -1734,6 +1748,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1734
1748
|
node: import("naive-ui").TreeOption | null;
|
|
1735
1749
|
action: "check" | "uncheck";
|
|
1736
1750
|
}) => void;
|
|
1751
|
+
updateTreeSelected: (keys: (string | number)[], _: any, meta: {
|
|
1752
|
+
node: import("naive-ui").TreeOption | null;
|
|
1753
|
+
action: "check" | "uncheck";
|
|
1754
|
+
}) => void;
|
|
1737
1755
|
clearAll: () => void;
|
|
1738
1756
|
updateChecked: (key: string | number, checked: boolean) => void;
|
|
1739
1757
|
notifyCheck: (key: string | number, isChecked?: boolean) => void;
|
|
@@ -2145,6 +2163,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2145
2163
|
type: BooleanConstructor;
|
|
2146
2164
|
default: boolean;
|
|
2147
2165
|
};
|
|
2166
|
+
onlyCheckChildNode: {
|
|
2167
|
+
type: BooleanConstructor;
|
|
2168
|
+
};
|
|
2148
2169
|
itemKey: {
|
|
2149
2170
|
type: PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & import("../../../../shared/types").AnyObject) => string | number>;
|
|
2150
2171
|
default: undefined;
|
|
@@ -2174,6 +2195,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2174
2195
|
forceShowSelectAll: boolean;
|
|
2175
2196
|
onlyForwardCascade: boolean;
|
|
2176
2197
|
hideLeaf: boolean;
|
|
2198
|
+
onlyCheckChildNode: boolean;
|
|
2177
2199
|
itemKey: (node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & import("../../../../shared/types").AnyObject) => string | number;
|
|
2178
2200
|
showTagHover: boolean;
|
|
2179
2201
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
|
@@ -2292,6 +2314,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2292
2314
|
type: BooleanConstructor;
|
|
2293
2315
|
default: boolean;
|
|
2294
2316
|
};
|
|
2317
|
+
onlyCheckChildNode: {
|
|
2318
|
+
type: BooleanConstructor;
|
|
2319
|
+
default: boolean;
|
|
2320
|
+
};
|
|
2295
2321
|
itemKey: {
|
|
2296
2322
|
type: PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & import("../../../../shared/types").AnyObject) => string | number>;
|
|
2297
2323
|
default: undefined;
|
|
@@ -2423,6 +2449,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2423
2449
|
type: BooleanConstructor;
|
|
2424
2450
|
default: boolean;
|
|
2425
2451
|
};
|
|
2452
|
+
onlyCheckChildNode: {
|
|
2453
|
+
type: BooleanConstructor;
|
|
2454
|
+
default: boolean;
|
|
2455
|
+
};
|
|
2426
2456
|
itemKey: {
|
|
2427
2457
|
type: PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & import("../../../../shared/types").AnyObject) => string | number>;
|
|
2428
2458
|
default: undefined;
|
|
@@ -2472,6 +2502,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2472
2502
|
forceShowSelectAll: boolean;
|
|
2473
2503
|
onlyForwardCascade: boolean;
|
|
2474
2504
|
hideLeaf: boolean;
|
|
2505
|
+
onlyCheckChildNode: boolean;
|
|
2475
2506
|
itemKey: (node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & import("../../../../shared/types").AnyObject) => string | number;
|
|
2476
2507
|
showTagHover: boolean;
|
|
2477
2508
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
|
@@ -180,6 +180,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
180
180
|
type: BooleanConstructor;
|
|
181
181
|
default: boolean;
|
|
182
182
|
};
|
|
183
|
+
onlyCheckChildNode: {
|
|
184
|
+
type: BooleanConstructor;
|
|
185
|
+
default: boolean;
|
|
186
|
+
};
|
|
183
187
|
itemKey: {
|
|
184
188
|
type: PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject) => string | number>;
|
|
185
189
|
default: undefined;
|
|
@@ -307,6 +311,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
307
311
|
type: BooleanConstructor;
|
|
308
312
|
default: boolean;
|
|
309
313
|
};
|
|
314
|
+
onlyCheckChildNode: {
|
|
315
|
+
type: BooleanConstructor;
|
|
316
|
+
default: boolean;
|
|
317
|
+
};
|
|
310
318
|
itemKey: {
|
|
311
319
|
type: PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject) => string | number>;
|
|
312
320
|
default: undefined;
|
|
@@ -1451,6 +1459,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1451
1459
|
type: BooleanConstructor;
|
|
1452
1460
|
default: boolean;
|
|
1453
1461
|
};
|
|
1462
|
+
onlyCheckChildNode: {
|
|
1463
|
+
type: BooleanConstructor;
|
|
1464
|
+
};
|
|
1454
1465
|
itemKey: {
|
|
1455
1466
|
type: PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject) => string | number>;
|
|
1456
1467
|
default: undefined;
|
|
@@ -1537,6 +1548,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1537
1548
|
type: BooleanConstructor;
|
|
1538
1549
|
default: boolean;
|
|
1539
1550
|
};
|
|
1551
|
+
onlyCheckChildNode: {
|
|
1552
|
+
type: BooleanConstructor;
|
|
1553
|
+
};
|
|
1540
1554
|
itemKey: {
|
|
1541
1555
|
type: PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject) => string | number>;
|
|
1542
1556
|
default: undefined;
|
|
@@ -1693,6 +1707,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1693
1707
|
node: import("naive-ui").TreeOption | null;
|
|
1694
1708
|
action: "check" | "uncheck";
|
|
1695
1709
|
}) => void;
|
|
1710
|
+
updateTreeSelected: (keys: (string | number)[], _: any, meta: {
|
|
1711
|
+
node: import("naive-ui").TreeOption | null;
|
|
1712
|
+
action: "check" | "uncheck";
|
|
1713
|
+
}) => void;
|
|
1696
1714
|
clearAll: () => void;
|
|
1697
1715
|
updateChecked: (key: string | number, checked: boolean) => void;
|
|
1698
1716
|
notifyCheck: (key: string | number, isChecked?: boolean) => void;
|
|
@@ -2104,6 +2122,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2104
2122
|
type: BooleanConstructor;
|
|
2105
2123
|
default: boolean;
|
|
2106
2124
|
};
|
|
2125
|
+
onlyCheckChildNode: {
|
|
2126
|
+
type: BooleanConstructor;
|
|
2127
|
+
};
|
|
2107
2128
|
itemKey: {
|
|
2108
2129
|
type: PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject) => string | number>;
|
|
2109
2130
|
default: undefined;
|
|
@@ -2133,6 +2154,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2133
2154
|
forceShowSelectAll: boolean;
|
|
2134
2155
|
onlyForwardCascade: boolean;
|
|
2135
2156
|
hideLeaf: boolean;
|
|
2157
|
+
onlyCheckChildNode: boolean;
|
|
2136
2158
|
itemKey: (node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject) => string | number;
|
|
2137
2159
|
showTagHover: boolean;
|
|
2138
2160
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
|
@@ -2251,6 +2273,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2251
2273
|
type: BooleanConstructor;
|
|
2252
2274
|
default: boolean;
|
|
2253
2275
|
};
|
|
2276
|
+
onlyCheckChildNode: {
|
|
2277
|
+
type: BooleanConstructor;
|
|
2278
|
+
default: boolean;
|
|
2279
|
+
};
|
|
2254
2280
|
itemKey: {
|
|
2255
2281
|
type: PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject) => string | number>;
|
|
2256
2282
|
default: undefined;
|
|
@@ -2382,6 +2408,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2382
2408
|
type: BooleanConstructor;
|
|
2383
2409
|
default: boolean;
|
|
2384
2410
|
};
|
|
2411
|
+
onlyCheckChildNode: {
|
|
2412
|
+
type: BooleanConstructor;
|
|
2413
|
+
default: boolean;
|
|
2414
|
+
};
|
|
2385
2415
|
itemKey: {
|
|
2386
2416
|
type: PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject) => string | number>;
|
|
2387
2417
|
default: undefined;
|
|
@@ -2431,6 +2461,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2431
2461
|
forceShowSelectAll: boolean;
|
|
2432
2462
|
onlyForwardCascade: boolean;
|
|
2433
2463
|
hideLeaf: boolean;
|
|
2464
|
+
onlyCheckChildNode: boolean;
|
|
2434
2465
|
itemKey: (node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject) => string | number;
|
|
2435
2466
|
showTagHover: boolean;
|
|
2436
2467
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
|
@@ -585,6 +585,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
585
585
|
type: BooleanConstructor;
|
|
586
586
|
default: boolean;
|
|
587
587
|
};
|
|
588
|
+
onlyCheckChildNode: {
|
|
589
|
+
type: BooleanConstructor;
|
|
590
|
+
default: boolean;
|
|
591
|
+
};
|
|
588
592
|
itemKey: {
|
|
589
593
|
type: import("vue").PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject) => string | number>;
|
|
590
594
|
default: undefined;
|
|
@@ -712,6 +716,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
712
716
|
type: BooleanConstructor;
|
|
713
717
|
default: boolean;
|
|
714
718
|
};
|
|
719
|
+
onlyCheckChildNode: {
|
|
720
|
+
type: BooleanConstructor;
|
|
721
|
+
default: boolean;
|
|
722
|
+
};
|
|
715
723
|
itemKey: {
|
|
716
724
|
type: import("vue").PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject) => string | number>;
|
|
717
725
|
default: undefined;
|
|
@@ -1856,6 +1864,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1856
1864
|
type: BooleanConstructor;
|
|
1857
1865
|
default: boolean;
|
|
1858
1866
|
};
|
|
1867
|
+
onlyCheckChildNode: {
|
|
1868
|
+
type: BooleanConstructor;
|
|
1869
|
+
};
|
|
1859
1870
|
itemKey: {
|
|
1860
1871
|
type: import("vue").PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject) => string | number>;
|
|
1861
1872
|
default: undefined;
|
|
@@ -1942,6 +1953,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1942
1953
|
type: BooleanConstructor;
|
|
1943
1954
|
default: boolean;
|
|
1944
1955
|
};
|
|
1956
|
+
onlyCheckChildNode: {
|
|
1957
|
+
type: BooleanConstructor;
|
|
1958
|
+
};
|
|
1945
1959
|
itemKey: {
|
|
1946
1960
|
type: import("vue").PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject) => string | number>;
|
|
1947
1961
|
default: undefined;
|
|
@@ -2098,6 +2112,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2098
2112
|
node: import("naive-ui").TreeOption | null;
|
|
2099
2113
|
action: "check" | "uncheck";
|
|
2100
2114
|
}) => void;
|
|
2115
|
+
updateTreeSelected: (keys: (string | number)[], _: any, meta: {
|
|
2116
|
+
node: import("naive-ui").TreeOption | null;
|
|
2117
|
+
action: "check" | "uncheck";
|
|
2118
|
+
}) => void;
|
|
2101
2119
|
clearAll: () => void;
|
|
2102
2120
|
updateChecked: (key: string | number, checked: boolean) => void;
|
|
2103
2121
|
notifyCheck: (key: string | number, isChecked?: boolean) => void;
|
|
@@ -2509,6 +2527,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2509
2527
|
type: BooleanConstructor;
|
|
2510
2528
|
default: boolean;
|
|
2511
2529
|
};
|
|
2530
|
+
onlyCheckChildNode: {
|
|
2531
|
+
type: BooleanConstructor;
|
|
2532
|
+
};
|
|
2512
2533
|
itemKey: {
|
|
2513
2534
|
type: import("vue").PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject) => string | number>;
|
|
2514
2535
|
default: undefined;
|
|
@@ -2538,6 +2559,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2538
2559
|
forceShowSelectAll: boolean;
|
|
2539
2560
|
onlyForwardCascade: boolean;
|
|
2540
2561
|
hideLeaf: boolean;
|
|
2562
|
+
onlyCheckChildNode: boolean;
|
|
2541
2563
|
itemKey: (node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject) => string | number;
|
|
2542
2564
|
showTagHover: boolean;
|
|
2543
2565
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
|
@@ -2656,6 +2678,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2656
2678
|
type: BooleanConstructor;
|
|
2657
2679
|
default: boolean;
|
|
2658
2680
|
};
|
|
2681
|
+
onlyCheckChildNode: {
|
|
2682
|
+
type: BooleanConstructor;
|
|
2683
|
+
default: boolean;
|
|
2684
|
+
};
|
|
2659
2685
|
itemKey: {
|
|
2660
2686
|
type: import("vue").PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject) => string | number>;
|
|
2661
2687
|
default: undefined;
|
|
@@ -2787,6 +2813,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2787
2813
|
type: BooleanConstructor;
|
|
2788
2814
|
default: boolean;
|
|
2789
2815
|
};
|
|
2816
|
+
onlyCheckChildNode: {
|
|
2817
|
+
type: BooleanConstructor;
|
|
2818
|
+
default: boolean;
|
|
2819
|
+
};
|
|
2790
2820
|
itemKey: {
|
|
2791
2821
|
type: import("vue").PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject) => string | number>;
|
|
2792
2822
|
default: undefined;
|
|
@@ -2836,6 +2866,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2836
2866
|
forceShowSelectAll: boolean;
|
|
2837
2867
|
onlyForwardCascade: boolean;
|
|
2838
2868
|
hideLeaf: boolean;
|
|
2869
|
+
onlyCheckChildNode: boolean;
|
|
2839
2870
|
itemKey: (node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject) => string | number;
|
|
2840
2871
|
showTagHover: boolean;
|
|
2841
2872
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
|
@@ -645,6 +645,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
645
645
|
type: BooleanConstructor;
|
|
646
646
|
default: boolean;
|
|
647
647
|
};
|
|
648
|
+
onlyCheckChildNode: {
|
|
649
|
+
type: BooleanConstructor;
|
|
650
|
+
default: boolean;
|
|
651
|
+
};
|
|
648
652
|
itemKey: {
|
|
649
653
|
type: PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject) => string | number>;
|
|
650
654
|
default: undefined;
|
|
@@ -772,6 +776,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
772
776
|
type: BooleanConstructor;
|
|
773
777
|
default: boolean;
|
|
774
778
|
};
|
|
779
|
+
onlyCheckChildNode: {
|
|
780
|
+
type: BooleanConstructor;
|
|
781
|
+
default: boolean;
|
|
782
|
+
};
|
|
775
783
|
itemKey: {
|
|
776
784
|
type: PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject) => string | number>;
|
|
777
785
|
default: undefined;
|
|
@@ -1916,6 +1924,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1916
1924
|
type: BooleanConstructor;
|
|
1917
1925
|
default: boolean;
|
|
1918
1926
|
};
|
|
1927
|
+
onlyCheckChildNode: {
|
|
1928
|
+
type: BooleanConstructor;
|
|
1929
|
+
};
|
|
1919
1930
|
itemKey: {
|
|
1920
1931
|
type: PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject) => string | number>;
|
|
1921
1932
|
default: undefined;
|
|
@@ -2002,6 +2013,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2002
2013
|
type: BooleanConstructor;
|
|
2003
2014
|
default: boolean;
|
|
2004
2015
|
};
|
|
2016
|
+
onlyCheckChildNode: {
|
|
2017
|
+
type: BooleanConstructor;
|
|
2018
|
+
};
|
|
2005
2019
|
itemKey: {
|
|
2006
2020
|
type: PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject) => string | number>;
|
|
2007
2021
|
default: undefined;
|
|
@@ -2158,6 +2172,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2158
2172
|
node: import("naive-ui").TreeOption | null;
|
|
2159
2173
|
action: "check" | "uncheck";
|
|
2160
2174
|
}) => void;
|
|
2175
|
+
updateTreeSelected: (keys: (string | number)[], _: any, meta: {
|
|
2176
|
+
node: import("naive-ui").TreeOption | null;
|
|
2177
|
+
action: "check" | "uncheck";
|
|
2178
|
+
}) => void;
|
|
2161
2179
|
clearAll: () => void;
|
|
2162
2180
|
updateChecked: (key: string | number, checked: boolean) => void;
|
|
2163
2181
|
notifyCheck: (key: string | number, isChecked?: boolean) => void;
|
|
@@ -2569,6 +2587,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2569
2587
|
type: BooleanConstructor;
|
|
2570
2588
|
default: boolean;
|
|
2571
2589
|
};
|
|
2590
|
+
onlyCheckChildNode: {
|
|
2591
|
+
type: BooleanConstructor;
|
|
2592
|
+
};
|
|
2572
2593
|
itemKey: {
|
|
2573
2594
|
type: PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject) => string | number>;
|
|
2574
2595
|
default: undefined;
|
|
@@ -2598,6 +2619,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2598
2619
|
forceShowSelectAll: boolean;
|
|
2599
2620
|
onlyForwardCascade: boolean;
|
|
2600
2621
|
hideLeaf: boolean;
|
|
2622
|
+
onlyCheckChildNode: boolean;
|
|
2601
2623
|
itemKey: (node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject) => string | number;
|
|
2602
2624
|
showTagHover: boolean;
|
|
2603
2625
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
|
@@ -2716,6 +2738,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2716
2738
|
type: BooleanConstructor;
|
|
2717
2739
|
default: boolean;
|
|
2718
2740
|
};
|
|
2741
|
+
onlyCheckChildNode: {
|
|
2742
|
+
type: BooleanConstructor;
|
|
2743
|
+
default: boolean;
|
|
2744
|
+
};
|
|
2719
2745
|
itemKey: {
|
|
2720
2746
|
type: PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject) => string | number>;
|
|
2721
2747
|
default: undefined;
|
|
@@ -2847,6 +2873,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2847
2873
|
type: BooleanConstructor;
|
|
2848
2874
|
default: boolean;
|
|
2849
2875
|
};
|
|
2876
|
+
onlyCheckChildNode: {
|
|
2877
|
+
type: BooleanConstructor;
|
|
2878
|
+
default: boolean;
|
|
2879
|
+
};
|
|
2850
2880
|
itemKey: {
|
|
2851
2881
|
type: PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject) => string | number>;
|
|
2852
2882
|
default: undefined;
|
|
@@ -2896,6 +2926,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2896
2926
|
forceShowSelectAll: boolean;
|
|
2897
2927
|
onlyForwardCascade: boolean;
|
|
2898
2928
|
hideLeaf: boolean;
|
|
2929
|
+
onlyCheckChildNode: boolean;
|
|
2899
2930
|
itemKey: (node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject) => string | number;
|
|
2900
2931
|
showTagHover: boolean;
|
|
2901
2932
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
|
@@ -239,7 +239,7 @@ declare const FabricChart: SFCWithInstall<import("vue").DefineComponent<import("
|
|
|
239
239
|
default: boolean;
|
|
240
240
|
};
|
|
241
241
|
list: {
|
|
242
|
-
type:
|
|
242
|
+
type: import("vue").PropType<import("./src/interface").PopupMenuItem[]>;
|
|
243
243
|
default: () => never[];
|
|
244
244
|
};
|
|
245
245
|
point: {
|
|
@@ -257,7 +257,7 @@ declare const FabricChart: SFCWithInstall<import("vue").DefineComponent<import("
|
|
|
257
257
|
default: boolean;
|
|
258
258
|
};
|
|
259
259
|
list: {
|
|
260
|
-
type:
|
|
260
|
+
type: import("vue").PropType<import("./src/interface").PopupMenuItem[]>;
|
|
261
261
|
default: () => never[];
|
|
262
262
|
};
|
|
263
263
|
point: {
|
|
@@ -273,7 +273,7 @@ declare const FabricChart: SFCWithInstall<import("vue").DefineComponent<import("
|
|
|
273
273
|
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
274
274
|
onClickMenu?: ((...args: any[]) => any) | undefined;
|
|
275
275
|
}>, {
|
|
276
|
-
list:
|
|
276
|
+
list: import("./src/interface").PopupMenuItem[];
|
|
277
277
|
show: boolean;
|
|
278
278
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
279
279
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("remove" | "edit" | "error" | "add" | "change" | "ready" | "right-click" | "select" | "add:prevent" | "click:grid" | "event-click")[], "remove" | "edit" | "error" | "add" | "change" | "ready" | "right-click" | "select" | "add:prevent" | "click:grid" | "event-click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -233,7 +233,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
233
233
|
default: boolean;
|
|
234
234
|
};
|
|
235
235
|
list: {
|
|
236
|
-
type:
|
|
236
|
+
type: PropType<import("./interface").PopupMenuItem[]>;
|
|
237
237
|
default: () => never[];
|
|
238
238
|
};
|
|
239
239
|
point: {
|
|
@@ -251,7 +251,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
251
251
|
default: boolean;
|
|
252
252
|
};
|
|
253
253
|
list: {
|
|
254
|
-
type:
|
|
254
|
+
type: PropType<import("./interface").PopupMenuItem[]>;
|
|
255
255
|
default: () => never[];
|
|
256
256
|
};
|
|
257
257
|
point: {
|
|
@@ -267,7 +267,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
267
267
|
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
268
268
|
onClickMenu?: ((...args: any[]) => any) | undefined;
|
|
269
269
|
}>, {
|
|
270
|
-
list:
|
|
270
|
+
list: import("./interface").PopupMenuItem[];
|
|
271
271
|
show: boolean;
|
|
272
272
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
273
273
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("remove" | "edit" | "error" | "add" | "change" | "ready" | "right-click" | "select" | "add:prevent" | "click:grid" | "event-click")[], "remove" | "edit" | "error" | "add" | "change" | "ready" | "right-click" | "select" | "add:prevent" | "click:grid" | "event-click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import { IPropItems, ICoordinateValue } from '../interface';
|
|
2
|
+
import { IPropItems, ICoordinateValue, PopupMenuItem } from '../interface';
|
|
3
3
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
4
|
show: {
|
|
5
5
|
type: BooleanConstructor;
|
|
6
6
|
default: boolean;
|
|
7
7
|
};
|
|
8
8
|
list: {
|
|
9
|
-
type:
|
|
9
|
+
type: PropType<PopupMenuItem[]>;
|
|
10
10
|
default: () => never[];
|
|
11
11
|
};
|
|
12
12
|
point: {
|
|
@@ -24,7 +24,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
24
24
|
default: boolean;
|
|
25
25
|
};
|
|
26
26
|
list: {
|
|
27
|
-
type:
|
|
27
|
+
type: PropType<PopupMenuItem[]>;
|
|
28
28
|
default: () => never[];
|
|
29
29
|
};
|
|
30
30
|
point: {
|
|
@@ -40,7 +40,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
40
40
|
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
41
41
|
onClickMenu?: ((...args: any[]) => any) | undefined;
|
|
42
42
|
}>, {
|
|
43
|
-
list:
|
|
43
|
+
list: PopupMenuItem[];
|
|
44
44
|
show: boolean;
|
|
45
45
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
46
46
|
export default _default;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { i18n } from '../../../../_virtual/_virtual_i18n-methods.js';
|
|
2
2
|
import { defineComponent, ref, watch, withDirectives, createVNode, vShow } from 'vue';
|
|
3
|
-
import { NSpace, NInputNumber } from 'naive-ui';
|
|
3
|
+
import { NIcon, NSpace, NInputNumber } from 'naive-ui';
|
|
4
|
+
import { ChevronForwardOutline } from '@vicons/ionicons5';
|
|
4
5
|
import useStyle from './useStyle.js';
|
|
5
6
|
import { useEventListener, onClickOutside } from '@vueuse/core';
|
|
6
7
|
|
|
@@ -40,51 +41,49 @@ var PopupMenu = /* @__PURE__ */ defineComponent({
|
|
|
40
41
|
onClickOutside(menuRef, (event) => {
|
|
41
42
|
emit("update:show", false);
|
|
42
43
|
});
|
|
43
|
-
props.propItems;
|
|
44
44
|
const pointStyle = useStyle(props);
|
|
45
|
-
function setNoClick(item) {
|
|
46
|
-
if (typeof item === "string" && (item.startsWith(i18n("10010.1.279", "\u65B0\u589E")) || item.startsWith(i18n("10010.1.215", "\u5220\u9664")))) {
|
|
47
|
-
return true;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
45
|
function getItemContent(item) {
|
|
51
|
-
if (typeof item === "string")
|
|
52
|
-
return item;
|
|
53
|
-
if (typeof item.value === "boolean")
|
|
54
|
-
return item.label;
|
|
55
46
|
if (item.renderItem)
|
|
56
47
|
return item.renderItem();
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
48
|
+
if (item.hasInput)
|
|
49
|
+
return createVNode(NSpace, {
|
|
50
|
+
"inline": true,
|
|
51
|
+
"align": "center"
|
|
52
|
+
}, {
|
|
53
|
+
default: () => [createVNode("span", null, [item.label]), createVNode(NInputNumber, {
|
|
54
|
+
"style": "width: 110px",
|
|
55
|
+
"size": "small",
|
|
56
|
+
"value": item.value,
|
|
57
|
+
"onUpdate:value": ($event) => item.value = $event,
|
|
58
|
+
"clearable": true,
|
|
59
|
+
"placeholder": i18n("10010.1.207", "\u8BF7\u8F93\u5165\u6570\u503C"),
|
|
60
|
+
"showButton": false
|
|
61
|
+
}, null)]
|
|
62
|
+
});
|
|
63
|
+
return item.label;
|
|
64
|
+
}
|
|
65
|
+
function hasChildren(item) {
|
|
66
|
+
return Array.isArray(item.children) && item.children.length > 0;
|
|
72
67
|
}
|
|
73
68
|
function clickItem(event, item) {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
emit("clickMenu", {
|
|
79
|
-
item,
|
|
80
|
-
target: props.target
|
|
81
|
-
});
|
|
69
|
+
const target = event.target;
|
|
70
|
+
if (target && target.closest(".n-input-number")) {
|
|
71
|
+
event.stopPropagation();
|
|
72
|
+
return;
|
|
82
73
|
}
|
|
74
|
+
if (item.isTitle || hasChildren(item))
|
|
75
|
+
return;
|
|
76
|
+
emit("update:show", false);
|
|
77
|
+
emit("clickMenu", {
|
|
78
|
+
item,
|
|
79
|
+
target: props.target,
|
|
80
|
+
pointer: props.point
|
|
81
|
+
});
|
|
83
82
|
}
|
|
84
83
|
watch(() => props.show, (value) => {
|
|
85
84
|
if (value) {
|
|
86
85
|
props.list.forEach((item) => {
|
|
87
|
-
if (
|
|
86
|
+
if (Reflect.has(item, "value") && typeof item.value !== "boolean") {
|
|
88
87
|
item.value = void 0;
|
|
89
88
|
}
|
|
90
89
|
});
|
|
@@ -94,14 +93,33 @@ var PopupMenu = /* @__PURE__ */ defineComponent({
|
|
|
94
93
|
"ref": menuRef,
|
|
95
94
|
"class": "c-fabric-chart-popup c-fabric-chart-popup__menu",
|
|
96
95
|
"style": pointStyle.value
|
|
97
|
-
}, [props.list.map((item) => {
|
|
96
|
+
}, [props.list.map((item, index) => {
|
|
97
|
+
var _a;
|
|
98
98
|
return props.show ? createVNode("li", {
|
|
99
99
|
"class": {
|
|
100
|
-
"no-click":
|
|
100
|
+
"no-click": item.isTitle,
|
|
101
|
+
"has-children": hasChildren(item)
|
|
101
102
|
},
|
|
102
103
|
"onClick": (event) => clickItem(event, item),
|
|
103
|
-
"key": item.
|
|
104
|
-
}, [
|
|
104
|
+
"key": item.key
|
|
105
|
+
}, [createVNode("div", {
|
|
106
|
+
"class": "menu-item__content"
|
|
107
|
+
}, [getItemContent(item), hasChildren(item) ? createVNode(NIcon, {
|
|
108
|
+
"class": "submenu-arrow",
|
|
109
|
+
"size": 14,
|
|
110
|
+
"component": ChevronForwardOutline
|
|
111
|
+
}, null) : null]), hasChildren(item) ? createVNode("ul", {
|
|
112
|
+
"class": "c-fabric-chart-popup__submenu"
|
|
113
|
+
}, [(_a = item.children) == null ? void 0 : _a.map((child) => createVNode("li", {
|
|
114
|
+
"class": {
|
|
115
|
+
"no-click": child.isTitle,
|
|
116
|
+
"has-children": hasChildren(child)
|
|
117
|
+
},
|
|
118
|
+
"onClick": (event) => clickItem(event, child),
|
|
119
|
+
"key": child.key
|
|
120
|
+
}, [createVNode("div", {
|
|
121
|
+
"class": "menu-item__content"
|
|
122
|
+
}, [getItemContent(child)])]))]) : null]) : null;
|
|
105
123
|
})]), [[vShow, props.show]]);
|
|
106
124
|
}
|
|
107
125
|
});
|