cnhis-design-vue 3.1.51-beta.17 → 3.1.51-beta.19
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/components/fabric-chart/index.d.ts +5 -6
- package/es/components/fabric-chart/src/FabricChart.vue.d.ts +5 -6
- 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/components/PopupTip.vue.d.ts +0 -6
- package/es/components/fabric-chart/src/components/PopupTip.vue2.js +1 -1
- package/es/components/fabric-chart/style/index.css +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/types/index.d.ts +1 -1
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +2 -1
- package/es/components/index.js +1 -1
- package/es/components/slider-tree/index.d.ts +153 -0
- package/es/components/slider-tree/index.js +1 -0
- package/es/components/slider-tree/src/hooks/useAsyncData.d.ts +6 -0
- package/es/components/slider-tree/src/hooks/useAsyncData.js +1 -0
- package/es/components/slider-tree/src/index.vue.d.ts +152 -0
- package/es/components/slider-tree/src/index.vue.js +1 -0
- package/es/components/slider-tree/src/index.vue2.js +1 -0
- package/es/components/slider-tree/src/utils/index.d.ts +1 -0
- package/es/components/slider-tree/src/utils/index.js +1 -0
- package/es/components/slider-tree/style/index.css +1 -0
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
package/es/components/index.d.ts
CHANGED
|
@@ -33,6 +33,7 @@ import CTableExportField from './table-export-field';
|
|
|
33
33
|
import CExpandField from './expand-field';
|
|
34
34
|
import CMultiChat from './multi-chat';
|
|
35
35
|
import CCallback from './callback';
|
|
36
|
+
import CSliderTree from './slider-tree';
|
|
36
37
|
export * from './form-render';
|
|
37
38
|
export * from './shortcut-provider';
|
|
38
39
|
export * from './shortcut-setter';
|
|
@@ -50,7 +51,7 @@ export * from './guide';
|
|
|
50
51
|
export * from './select-label';
|
|
51
52
|
export * from './card-reader-sdk';
|
|
52
53
|
declare function install(app: App): void;
|
|
53
|
-
export { CGrid, CBigTable, CFieldSet, CButtonPrint, CSelectPerson, CSelectLabel, CLabelFormContent, CScaleView, CMap, CVodChunkUpload, CRadio, CCheckbox, CSelect, CDatetime, CInfoHeader, CTimeLine, CBaseSearch, CQuickSearch, CClassification, CBpmnWorkflow, CStepsWheel, CEditor, CFormRender, CFabricChart, CShortcutProvider, CShortcutSetter, CFormConfig, CIhoTable, CKeyboard, CSearchCascader, CRecommendSearch, CDatePicker, CTimePicker, CConfigProvider, CPictureClipper, CTableExportField, CExpandField, CMultiChat, CCallback };
|
|
54
|
+
export { CGrid, CBigTable, CFieldSet, CButtonPrint, CSelectPerson, CSelectLabel, CLabelFormContent, CScaleView, CMap, CVodChunkUpload, CRadio, CCheckbox, CSelect, CDatetime, CInfoHeader, CTimeLine, CBaseSearch, CQuickSearch, CClassification, CBpmnWorkflow, CStepsWheel, CEditor, CFormRender, CFabricChart, CShortcutProvider, CShortcutSetter, CFormConfig, CIhoTable, CKeyboard, CSearchCascader, CRecommendSearch, CDatePicker, CTimePicker, CConfigProvider, CPictureClipper, CTableExportField, CExpandField, CMultiChat, CCallback, CSliderTree };
|
|
54
55
|
declare const _default: {
|
|
55
56
|
install: typeof install;
|
|
56
57
|
};
|
package/es/components/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"./grid/index.js";export{default as CGrid}from"./grid/index.js";import r from"./big-table/index.js";export{default as CBigTable}from"./big-table/index.js";import o from"./field-set/index.js";export{default as CFieldSet}from"./field-set/index.js";import t from"./button-print/index.js";export{default as CButtonPrint}from"./button-print/index.js";import s from"./select-person/index.js";export{default as CSelectPerson}from"./select-person/index.js";import i,{CLabelFormContent as a}from"./select-label/index.js";export{CLabelFormContent,default as CSelectLabel}from"./select-label/index.js";import d from"./map/index.js";export{default as CMap}from"./map/index.js";import n from"./vod-chunk-upload/index.js";export{default as CVodChunkUpload}from"./vod-chunk-upload/index.js";import{CScaleView as m,CRadio as f,CCheckbox as
|
|
1
|
+
import e from"./grid/index.js";export{default as CGrid}from"./grid/index.js";import r from"./big-table/index.js";export{default as CBigTable}from"./big-table/index.js";import o from"./field-set/index.js";export{default as CFieldSet}from"./field-set/index.js";import t from"./button-print/index.js";export{default as CButtonPrint}from"./button-print/index.js";import s from"./select-person/index.js";export{default as CSelectPerson}from"./select-person/index.js";import i,{CLabelFormContent as a}from"./select-label/index.js";export{CLabelFormContent,default as CSelectLabel}from"./select-label/index.js";import d from"./map/index.js";export{default as CMap}from"./map/index.js";import n from"./vod-chunk-upload/index.js";export{default as CVodChunkUpload}from"./vod-chunk-upload/index.js";import{CScaleView as m,CRadio as f,CCheckbox as l,CSelect as p,CDatetime as c}from"./scale-view/index.js";export{CCheckbox,CDatetime,CRadio,CScaleView,CSelect}from"./scale-view/index.js";import u from"./info-header/index.js";export{default as CInfoHeader}from"./info-header/index.js";import x from"./time-line/index.js";export{default as CTimeLine}from"./time-line/index.js";import C from"./base-search/index.js";export{default as CBaseSearch}from"./base-search/index.js";import j from"./quick-search/index.js";export{default as CQuickSearch}from"./quick-search/index.js";import h from"./classification/index.js";export{default as CClassification}from"./classification/index.js";import b from"./bpmn-workflow/index.js";export{default as CBpmnWorkflow}from"./bpmn-workflow/index.js";import k from"./steps-wheel/index.js";export{default as CStepsWheel}from"./steps-wheel/index.js";import g from"./editor/index.js";export{default as CEditor}from"./editor/index.js";import S from"./form-render/index.js";export{default as CFormRender}from"./form-render/index.js";import F from"./fabric-chart/index.js";export{default as CFabricChart}from"./fabric-chart/index.js";import P from"./shortcut-provider/index.js";export{default as CShortcutProvider}from"./shortcut-provider/index.js";import v from"./shortcut-setter/index.js";export{default as CShortcutSetter}from"./shortcut-setter/index.js";import y from"./form-config/index.js";export{default as CFormConfig}from"./form-config/index.js";import B from"./iho-table/index.js";export{default as CIhoTable,useIhoTablePresetPlugins}from"./iho-table/index.js";import D from"./keyboard/index.js";export{default as CKeyboard}from"./keyboard/index.js";import A from"./search-cascader/index.js";export{default as CSearchCascader}from"./search-cascader/index.js";import T from"./recommend-search/index.js";export{default as CRecommendSearch}from"./recommend-search/index.js";import I from"./date-picker/index.js";export{default as CDatePicker}from"./date-picker/index.js";import R from"./time-picker/index.js";export{default as CTimePicker}from"./time-picker/index.js";import L from"./config-provider/index.js";export{default as CConfigProvider}from"./config-provider/index.js";import w from"./picture-clipper/index.js";export{default as CPictureClipper}from"./picture-clipper/index.js";import E from"./table-export-field/index.js";export{default as CTableExportField}from"./table-export-field/index.js";import K from"./expand-field/index.js";export{default as CExpandField}from"./expand-field/index.js";import V from"./multi-chat/index.js";export{default as CMultiChat}from"./multi-chat/index.js";import H from"./callback/index.js";export{default as CCallback}from"./callback/index.js";import M from"./slider-tree/index.js";export{default as CSliderTree}from"./slider-tree/index.js";export{default as CInsuranceSDK}from"./card-reader-sdk/src/insuranceSDK.js";export{default as CCardReaderSDK}from"./card-reader-sdk/src/cardReaderSDK.js";export{vFlexibleResize}from"../shared/directive/flexibleResize.js";export{useGuide}from"./guide/src/useGuide.js";export{useFieldListAdaptor}from"./form-render/src/hooks/useFieldListAdaptor.js";export{useFormRequest}from"./form-render/src/hooks/useFormRequest.js";export{useCommonLog}from"./form-render/src/hooks/useCommonLog.js";export{useFormField}from"./form-render/src/hooks/useFormField.js";export{useFormAsyncQueue}from"./form-render/src/hooks/useFormAsyncQueue.js";export{useFieldVisitor}from"./form-render/src/hooks/useFieldVisitor.js";export{useFieldNormalize}from"./form-render/src/hooks/useFieldNormalize.js";export{useFormValidator,validateMessageLocale}from"./form-render/src/hooks/useFormValidator.js";export{BusinessCollector,useBusinessBinding}from"./form-render/src/hooks/useBusinessBinding.js";export{ContextCollector,useChangeContext}from"./form-render/src/hooks/useChangeContext.js";export{FormItemDepsCollector,useFormItemDeps}from"./form-render/src/hooks/useFormItemDeps.js";export{useAnchor}from"./form-render/src/hooks/useAnchor.js";export{useFormContext}from"./form-render/src/hooks/useFormContext.js";export{useCommonInjection,useSelectOptionProps}from"./form-render/src/hooks/useCommonInjection.js";export{searchContentMatcher,useAutographOptions,useRecommendOptions,useUrlConfigOptions}from"./form-render/src/hooks/useFormRenderOptions.js";export{businessDateParser,isIdCard,isMobile,parseAge2Birthday,parseAgeFromContext,parseBirthday,parseIdCard,transformDateFormat}from"./form-render/src/utils/business.js";export{findNextWidget,queryDecoratorByAddress,queryDecoratorByFieldKey,queryInput}from"./form-render/src/utils/dom.js";export{assignClearBindVisited,assignUpdateValue,assignValueBindKey,createLinebarId,createObjSchema,createVisitedSetter,dotEscape,fieldKeyEscape,getParentLinebar,traverseDependKey,traverseSchema}from"./form-render/src/utils/schema.js";export{combineExtendKey,createInputSlot,createSlot,createUrlConfigParams,formRenderLog,injectOrProvide,isNestedFieldType,isNestedType,mergeDeepProperties,parseNumberFromMaybeString,presetRequestHandler,renderDescOption,splitExtendKey,validateMessageParser}from"./form-render/src/utils/index.js";export*from"@formily/core";export{GlobalShortcutProvider,ShortcutManager,useShortcuts}from"./shortcut-provider/src/hooks/useShortcuts.js";export{useShortcutSignature}from"./shortcut-provider/src/hooks/useShortcutSignature.js";export{defineTablePlugin,useTablePlugin}from"./iho-table/src/hooks/useTablePlugin.js";export{useColumnConfigAdaptor}from"./iho-table/src/hooks/useColumnConfigAdaptor.js";export{AbstractConfigHooks,AbstractDataHooks,AbstractDomInsertHooks,AbstractEventHooks,AbstractExposeHooks,AbstractFieldHooks,AbstractSetupHooks}from"./iho-table/src/types/pluginType.js";export{Print}from"./button-print/src/utils/print.js";export{getFileUrl,isIReport,useBrowserPrint}from"./button-print/src/utils/browserPrint.js";const O={CGrid:e,CBigTable:r,CFieldSet:o,CButtonPrint:t,CSelectPerson:s,CSelectLabel:i,CLabelFormContent:a,CScaleView:m,CMap:d,CVodChunkUpload:n,CRadio:f,CCheckbox:l,CSelect:p,CDatetime:c,CInfoHeader:u,CTimeLine:x,CBaseSearch:C,CQuickSearch:j,CClassification:h,CBpmnWorkflow:b,CStepsWheel:k,CEditor:g,CFormRender:S,CFabricChart:F,CShortcutProvider:P,CShortcutSetter:v,CFormConfig:y,CIhoTable:B,CKeyboard:D,CSearchCascader:A,CRecommendSearch:T,CDatePicker:I,CTimePicker:R,CConfigProvider:L,CPictureClipper:w,CTableExportField:E,CExpandField:K,CMultiChat:V,CCallback:H,CSliderTree:M};var q={install:function(e){Object.values(O).forEach((r=>{r.install(e)}))},...O};export{q as default};
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import { SFCWithInstall } from '../../../es/shared/types';
|
|
2
|
+
declare const CSliderTree: SFCWithInstall<import("vue").DefineComponent<{
|
|
3
|
+
sliderInitialWidth: {
|
|
4
|
+
type: NumberConstructor;
|
|
5
|
+
default: number;
|
|
6
|
+
};
|
|
7
|
+
treeSearchApiConfig: {
|
|
8
|
+
type: ObjectConstructor;
|
|
9
|
+
default: () => {};
|
|
10
|
+
};
|
|
11
|
+
treeRenderConfig: {
|
|
12
|
+
type: ObjectConstructor;
|
|
13
|
+
default: () => {
|
|
14
|
+
replaceFields: {
|
|
15
|
+
children: string;
|
|
16
|
+
title: string;
|
|
17
|
+
key: string;
|
|
18
|
+
};
|
|
19
|
+
title: string;
|
|
20
|
+
key: string;
|
|
21
|
+
parentId: string;
|
|
22
|
+
uniqId: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
isDraggable: {
|
|
26
|
+
type: BooleanConstructor;
|
|
27
|
+
default: boolean;
|
|
28
|
+
};
|
|
29
|
+
treePrefix: {
|
|
30
|
+
type: FunctionConstructor;
|
|
31
|
+
};
|
|
32
|
+
treeSuffix: {
|
|
33
|
+
type: FunctionConstructor;
|
|
34
|
+
};
|
|
35
|
+
}, {
|
|
36
|
+
$message: import("naive-ui").MessageApi;
|
|
37
|
+
getChildrenByOrgPartenId: (params: any, filterApiConfig: any) => Promise<any>;
|
|
38
|
+
searchEmpTreeData: (params: any, filterApiConfig: any) => Promise<any>;
|
|
39
|
+
updateDeptSort: (params: any, filterApiConfig: any) => Promise<any>;
|
|
40
|
+
getDeptList: (params: any, filterApiConfig: any) => Promise<any>;
|
|
41
|
+
isMatchFn: (node: any, keyword: string) => boolean;
|
|
42
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
43
|
+
sliderInitialWidth: {
|
|
44
|
+
type: NumberConstructor;
|
|
45
|
+
default: number;
|
|
46
|
+
};
|
|
47
|
+
treeSearchApiConfig: {
|
|
48
|
+
type: ObjectConstructor;
|
|
49
|
+
default: () => {};
|
|
50
|
+
};
|
|
51
|
+
treeRenderConfig: {
|
|
52
|
+
type: ObjectConstructor;
|
|
53
|
+
default: () => {
|
|
54
|
+
replaceFields: {
|
|
55
|
+
children: string;
|
|
56
|
+
title: string;
|
|
57
|
+
key: string;
|
|
58
|
+
};
|
|
59
|
+
title: string;
|
|
60
|
+
key: string;
|
|
61
|
+
parentId: string;
|
|
62
|
+
uniqId: string;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
isDraggable: {
|
|
66
|
+
type: BooleanConstructor;
|
|
67
|
+
default: boolean;
|
|
68
|
+
};
|
|
69
|
+
treePrefix: {
|
|
70
|
+
type: FunctionConstructor;
|
|
71
|
+
};
|
|
72
|
+
treeSuffix: {
|
|
73
|
+
type: FunctionConstructor;
|
|
74
|
+
};
|
|
75
|
+
}>> & {
|
|
76
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
|
77
|
+
onSaveWidth?: ((...args: any[]) => any) | undefined;
|
|
78
|
+
}>>;
|
|
79
|
+
emit: (event: "select" | "saveWidth", ...args: any[]) => void;
|
|
80
|
+
flexWidth: import("vue").Ref<number>;
|
|
81
|
+
searchValue: import("vue").Ref<string>;
|
|
82
|
+
treeData: import("vue").Ref<any[]>;
|
|
83
|
+
expandedKeys: import("vue").Ref<string[]>;
|
|
84
|
+
selectedKeys: import("vue").Ref<string[]>;
|
|
85
|
+
selectNode: import("vue").Ref<{}>;
|
|
86
|
+
loadedKeys: import("vue").Ref<never[]>;
|
|
87
|
+
dragData: import("vue").Ref<{}>;
|
|
88
|
+
handleRenderLabel: ({ option }: any) => any;
|
|
89
|
+
handleRenderPrefix: ({ option }: any) => any;
|
|
90
|
+
handleRenderSuffix: ({ option }: any) => any;
|
|
91
|
+
init: () => Promise<void>;
|
|
92
|
+
onExpand: (expandedKeyVals: string[]) => void;
|
|
93
|
+
onNodeSelect: (selectedKeyVals: never[] | undefined, [node]: any[]) => void;
|
|
94
|
+
onSearch: () => Promise<void>;
|
|
95
|
+
reset: (flag: boolean, selectOrgId?: string | undefined) => Promise<void>;
|
|
96
|
+
onDrop: (info: any) => Promise<void>;
|
|
97
|
+
getDeptData: (orgId: string) => Promise<any>;
|
|
98
|
+
handleDeptData: (data: any) => any;
|
|
99
|
+
getChildrenByOrgPartenIdFn: () => Promise<void>;
|
|
100
|
+
onLoadData: (treeNode: any) => any;
|
|
101
|
+
getExpandKeys: (data: any) => never[];
|
|
102
|
+
changeWidth: ({ distance }: any) => void;
|
|
103
|
+
saveWidth: () => void;
|
|
104
|
+
NInput: any;
|
|
105
|
+
NTree: any;
|
|
106
|
+
NEmpty: any;
|
|
107
|
+
vFlexibleResize: {
|
|
108
|
+
mounted(el: any, { value }: any): void;
|
|
109
|
+
beforeUnmount(el: any): void;
|
|
110
|
+
};
|
|
111
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "saveWidth")[], "select" | "saveWidth", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
112
|
+
sliderInitialWidth: {
|
|
113
|
+
type: NumberConstructor;
|
|
114
|
+
default: number;
|
|
115
|
+
};
|
|
116
|
+
treeSearchApiConfig: {
|
|
117
|
+
type: ObjectConstructor;
|
|
118
|
+
default: () => {};
|
|
119
|
+
};
|
|
120
|
+
treeRenderConfig: {
|
|
121
|
+
type: ObjectConstructor;
|
|
122
|
+
default: () => {
|
|
123
|
+
replaceFields: {
|
|
124
|
+
children: string;
|
|
125
|
+
title: string;
|
|
126
|
+
key: string;
|
|
127
|
+
};
|
|
128
|
+
title: string;
|
|
129
|
+
key: string;
|
|
130
|
+
parentId: string;
|
|
131
|
+
uniqId: string;
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
isDraggable: {
|
|
135
|
+
type: BooleanConstructor;
|
|
136
|
+
default: boolean;
|
|
137
|
+
};
|
|
138
|
+
treePrefix: {
|
|
139
|
+
type: FunctionConstructor;
|
|
140
|
+
};
|
|
141
|
+
treeSuffix: {
|
|
142
|
+
type: FunctionConstructor;
|
|
143
|
+
};
|
|
144
|
+
}>> & {
|
|
145
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
|
146
|
+
onSaveWidth?: ((...args: any[]) => any) | undefined;
|
|
147
|
+
}, {
|
|
148
|
+
sliderInitialWidth: number;
|
|
149
|
+
treeSearchApiConfig: Record<string, any>;
|
|
150
|
+
treeRenderConfig: Record<string, any>;
|
|
151
|
+
isDraggable: boolean;
|
|
152
|
+
}>>;
|
|
153
|
+
export default CSliderTree;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{COMPONENT_NAMESPACE as r}from"../../shared/global/variable.js";import{safeComponentRegister as e}from"../../shared/utils/index.js";import i from"./src/index.vue.js";const o=i;o.install=function(i){e(i,o,r+"SliderTree")};export{o as default};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export default function useAsyncData(): {
|
|
2
|
+
getChildrenByOrgPartenId: (params: any, filterApiConfig: any) => Promise<any>;
|
|
3
|
+
searchEmpTreeData: (params: any, filterApiConfig: any) => Promise<any>;
|
|
4
|
+
updateDeptSort: (params: any, filterApiConfig: any) => Promise<any>;
|
|
5
|
+
getDeptList: (params: any, filterApiConfig: any) => Promise<any>;
|
|
6
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function t(){async function t(t,e,r){try{const n=r[e]||null;if("function"==typeof n){const e=await n(t);return Promise.resolve(e)}return Promise.reject(new Error(`${e} Is not a function`))}catch(t){return Promise.reject(t)}}return{getChildrenByOrgPartenId:async function(e,r){return await t(e,"getChildrenByOrgPartenId",r)},searchEmpTreeData:async function(e,r){return await t(e,"searchEmpTreeData",r)},updateDeptSort:async function(e,r){return await t(e,"updateDeptSort",r)},getDeptList:async function(e,r){return await t(e,"getDeptList",r)}}}export{t as default};
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
sliderInitialWidth: {
|
|
3
|
+
type: NumberConstructor;
|
|
4
|
+
default: number;
|
|
5
|
+
};
|
|
6
|
+
treeSearchApiConfig: {
|
|
7
|
+
type: ObjectConstructor;
|
|
8
|
+
default: () => {};
|
|
9
|
+
};
|
|
10
|
+
treeRenderConfig: {
|
|
11
|
+
type: ObjectConstructor;
|
|
12
|
+
default: () => {
|
|
13
|
+
replaceFields: {
|
|
14
|
+
children: string;
|
|
15
|
+
title: string;
|
|
16
|
+
key: string;
|
|
17
|
+
};
|
|
18
|
+
title: string;
|
|
19
|
+
key: string;
|
|
20
|
+
parentId: string;
|
|
21
|
+
uniqId: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
isDraggable: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
28
|
+
treePrefix: {
|
|
29
|
+
type: FunctionConstructor;
|
|
30
|
+
};
|
|
31
|
+
treeSuffix: {
|
|
32
|
+
type: FunctionConstructor;
|
|
33
|
+
};
|
|
34
|
+
}, {
|
|
35
|
+
$message: import("naive-ui").MessageApi;
|
|
36
|
+
getChildrenByOrgPartenId: (params: any, filterApiConfig: any) => Promise<any>;
|
|
37
|
+
searchEmpTreeData: (params: any, filterApiConfig: any) => Promise<any>;
|
|
38
|
+
updateDeptSort: (params: any, filterApiConfig: any) => Promise<any>;
|
|
39
|
+
getDeptList: (params: any, filterApiConfig: any) => Promise<any>;
|
|
40
|
+
isMatchFn: (node: any, keyword: string) => boolean;
|
|
41
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
42
|
+
sliderInitialWidth: {
|
|
43
|
+
type: NumberConstructor;
|
|
44
|
+
default: number;
|
|
45
|
+
};
|
|
46
|
+
treeSearchApiConfig: {
|
|
47
|
+
type: ObjectConstructor;
|
|
48
|
+
default: () => {};
|
|
49
|
+
};
|
|
50
|
+
treeRenderConfig: {
|
|
51
|
+
type: ObjectConstructor;
|
|
52
|
+
default: () => {
|
|
53
|
+
replaceFields: {
|
|
54
|
+
children: string;
|
|
55
|
+
title: string;
|
|
56
|
+
key: string;
|
|
57
|
+
};
|
|
58
|
+
title: string;
|
|
59
|
+
key: string;
|
|
60
|
+
parentId: string;
|
|
61
|
+
uniqId: string;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
isDraggable: {
|
|
65
|
+
type: BooleanConstructor;
|
|
66
|
+
default: boolean;
|
|
67
|
+
};
|
|
68
|
+
treePrefix: {
|
|
69
|
+
type: FunctionConstructor;
|
|
70
|
+
};
|
|
71
|
+
treeSuffix: {
|
|
72
|
+
type: FunctionConstructor;
|
|
73
|
+
};
|
|
74
|
+
}>> & {
|
|
75
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
|
76
|
+
onSaveWidth?: ((...args: any[]) => any) | undefined;
|
|
77
|
+
}>>;
|
|
78
|
+
emit: (event: "select" | "saveWidth", ...args: any[]) => void;
|
|
79
|
+
flexWidth: import("vue").Ref<number>;
|
|
80
|
+
searchValue: import("vue").Ref<string>;
|
|
81
|
+
treeData: import("vue").Ref<any[]>;
|
|
82
|
+
expandedKeys: import("vue").Ref<string[]>;
|
|
83
|
+
selectedKeys: import("vue").Ref<string[]>;
|
|
84
|
+
selectNode: import("vue").Ref<{}>;
|
|
85
|
+
loadedKeys: import("vue").Ref<never[]>;
|
|
86
|
+
dragData: import("vue").Ref<{}>;
|
|
87
|
+
handleRenderLabel: ({ option }: any) => any;
|
|
88
|
+
handleRenderPrefix: ({ option }: any) => any;
|
|
89
|
+
handleRenderSuffix: ({ option }: any) => any;
|
|
90
|
+
init: () => Promise<void>;
|
|
91
|
+
onExpand: (expandedKeyVals: string[]) => void;
|
|
92
|
+
onNodeSelect: (selectedKeyVals: never[] | undefined, [node]: any[]) => void;
|
|
93
|
+
onSearch: () => Promise<void>;
|
|
94
|
+
reset: (flag: boolean, selectOrgId?: string) => Promise<void>;
|
|
95
|
+
onDrop: (info: any) => Promise<void>;
|
|
96
|
+
getDeptData: (orgId: string) => Promise<any>;
|
|
97
|
+
handleDeptData: (data: any) => any;
|
|
98
|
+
getChildrenByOrgPartenIdFn: () => Promise<void>;
|
|
99
|
+
onLoadData: (treeNode: any) => any;
|
|
100
|
+
getExpandKeys: (data: any) => never[];
|
|
101
|
+
changeWidth: ({ distance }: any) => void;
|
|
102
|
+
saveWidth: () => void;
|
|
103
|
+
NInput: any;
|
|
104
|
+
NTree: any;
|
|
105
|
+
NEmpty: any;
|
|
106
|
+
vFlexibleResize: {
|
|
107
|
+
mounted(el: any, { value }: any): void;
|
|
108
|
+
beforeUnmount(el: any): void;
|
|
109
|
+
};
|
|
110
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "saveWidth")[], "select" | "saveWidth", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
111
|
+
sliderInitialWidth: {
|
|
112
|
+
type: NumberConstructor;
|
|
113
|
+
default: number;
|
|
114
|
+
};
|
|
115
|
+
treeSearchApiConfig: {
|
|
116
|
+
type: ObjectConstructor;
|
|
117
|
+
default: () => {};
|
|
118
|
+
};
|
|
119
|
+
treeRenderConfig: {
|
|
120
|
+
type: ObjectConstructor;
|
|
121
|
+
default: () => {
|
|
122
|
+
replaceFields: {
|
|
123
|
+
children: string;
|
|
124
|
+
title: string;
|
|
125
|
+
key: string;
|
|
126
|
+
};
|
|
127
|
+
title: string;
|
|
128
|
+
key: string;
|
|
129
|
+
parentId: string;
|
|
130
|
+
uniqId: string;
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
isDraggable: {
|
|
134
|
+
type: BooleanConstructor;
|
|
135
|
+
default: boolean;
|
|
136
|
+
};
|
|
137
|
+
treePrefix: {
|
|
138
|
+
type: FunctionConstructor;
|
|
139
|
+
};
|
|
140
|
+
treeSuffix: {
|
|
141
|
+
type: FunctionConstructor;
|
|
142
|
+
};
|
|
143
|
+
}>> & {
|
|
144
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
|
145
|
+
onSaveWidth?: ((...args: any[]) => any) | undefined;
|
|
146
|
+
}, {
|
|
147
|
+
sliderInitialWidth: number;
|
|
148
|
+
treeSearchApiConfig: Record<string, any>;
|
|
149
|
+
treeRenderConfig: Record<string, any>;
|
|
150
|
+
isDraggable: boolean;
|
|
151
|
+
}>;
|
|
152
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"./index.vue2.js";import r from"../../../_virtual/_plugin-vue_export-helper.js";var i=r(e,[["__file","index.vue"]]);export{i as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{defineComponent as e,ref as t,onMounted as r,withDirectives as n,openBlock as i,createElementBlock as a,normalizeStyle as l,createElementVNode as o,createVNode as s,unref as d,createCommentVNode as c,renderSlot as u,createBlock as f,h as v}from"vue";import{useMessage as p,NInput as g,NTree as h,NEmpty as y}from"naive-ui";import{vFlexibleResize as m}from"../../../shared/directive/flexibleResize.js";import b from"./hooks/useAsyncData.js";import{traversalData as x}from"./utils/index.js";const C={class:"search-groups"},w={class:"tree-wrap"},I={key:1,class:"empty-container"},k={class:"table-footer-wrap"};var O=e({__name:"index",props:{sliderInitialWidth:{type:Number,default:300},treeSearchApiConfig:{type:Object,default:()=>({})},treeRenderConfig:{type:Object,default:()=>({replaceFields:{children:"childrenList",title:"name",key:"code"},title:"bck03",key:"bck02",parentId:"bck01a",uniqId:"bck01"})},isDraggable:{type:Boolean,default:!0},treePrefix:{type:Function},treeSuffix:{type:Function}},emits:["select","saveWidth"],setup(e,{emit:O}){const R=e,F=p(),{getChildrenByOrgPartenId:L,searchEmpTreeData:S,updateDeptSort:D,getDeptList:A}=b(),K=(e,t)=>{var r,n,i,a;t=null==t?void 0:t.toLowerCase();let{name:l="",abbrp:o="",abbrw:s="",code:d}=e;const c=(null==(r=null==l?void 0:l.toLowerCase())?void 0:r.indexOf(t))>-1,u=(null==(n=null==d?void 0:d.toLowerCase())?void 0:n.indexOf(t))>-1,f=(null==(i=null==o?void 0:o.toLowerCase())?void 0:i.indexOf(t))>-1,v=(null==(a=null==s?void 0:s.toLowerCase())?void 0:a.indexOf(t))>-1;return!!(c||f||v||u)},j=t(R.sliderInitialWidth),P=t(""),q=t([]),E=t([]),M=t([]),N=t({}),T=t([]),U=t({});function W({option:e}){const t=e[R.treeRenderConfig.replaceFields.title];if(t.includes(P.value.trim())){const e=t.substr(0,t.indexOf(P.value.trim())),r=t.substr(t.indexOf(P.value.trim())+P.value.trim().length);return v("div",[v("span",{style:{marginRight:e?"2px":"0px"}},e),v("span",{style:{color:"#2563F4"}},P.value.trim()),v("span",{style:{marginLeft:r?"2px":"0px"}},r)])}return t}function B({option:e}){return R.treePrefix?R.treePrefix(e):""}function $({option:e}){return R.treeSuffix?R.treeSuffix(e):""}function J(e){E.value=e}function _(e=[],[t]){M.value=e,O("select",t),N.value=t}async function z(){const e=P.value.trim();if(e){const{data:t,success:r}=await S({search:e},R.treeSearchApiConfig);if(r){const e=R.treeRenderConfig.replaceFields.children;t.forEach((t=>{t[e]=Q(t.bck1TreeManageRespDTO||[]),t.isLeaf=!t[e].length,t.isOrg=!0})),q.value=t,E.value=function(e){const t=[],r=R.treeRenderConfig.replaceFields.children;for(const n of x(e,r)){let e=!1;for(const t of x(n[r],r))K(t,P.value)&&(e=!0);e&&t.push(n.code)}return t}(t)}}else V(!1)}async function V(e,t){await X();let r=q.value[0].orgId;e&&(r=t);const n=await H(r);if(n){const e=q.value.map((e=>e.orgId===r?n:e));q.value=e}}async function G(e){const{dragNode:t,node:r}=e,{parentId:n,uniqId:i}=R.treeRenderConfig;if(t.isOrg)return void F.error("机构不能拖动排序");if(t.orgId!==r.orgId)return void F.error("不能跨机构移动科室");if(t[n]!==r[n])return void F.error("仅允许同层级科室排序");U.value=t;const a={uniqId:t[i],moveToUniqId:r[i],orgId:t.orgId},{success:l}=await D(a,R.treeSearchApiConfig);l&&(F.success("排序成功"),V(!0,t.orgId))}async function H(e){const{data:t,success:r}=await A({orgId:e},R.treeSearchApiConfig);if(r){const r=R.treeRenderConfig.replaceFields.children,n=q.value.find((t=>t.orgId===e));return n[r]=Q(t),n}}function Q(e){const t=R.treeRenderConfig.replaceFields.children;for(const r of x(e,t))r.name=r[R.treeRenderConfig.title],r.code=r[R.treeRenderConfig.key],r.isLeaf=!r[t]||!r[t].length;return e}async function X(){const{success:e,data:t}=await L(null,R.treeSearchApiConfig);e&&(t.forEach((e=>{e.isOrg=!0,e.isLeaf=!e.existBck1})),q.value=t)}function Y(e){return new Promise((async t=>{if(e.isOrg&&!e.children){const r=await H(e.orgId);return r&&(e.children=r),void t(!0)}t(!0)}))}function Z({distance:e}){const t=j.value+e;j.value=Math.min(Math.max(t,50),1e3)}function ee(){O("saveWidth",j.value)}return r((()=>{!async function(){await X(),q.value.length>0&&(E.value=[q.value[0].code],M.value=[q.value[0].code],N.value=q.value[0],O("select",JSON.parse(JSON.stringify(q.value[0]))))}()})),(t,r)=>n((i(),a("div",{class:"left-tree-wrap",ref:"left",style:l({width:j.value+"px"})},[o("div",C,[s(d(g),{clearable:"",placeholder:"搜索关键字",value:P.value,"onUpdate:value":[r[0]||(r[0]=e=>P.value=e),z]},null,8,["value"]),c(" 按钮插槽 "),u(t.$slots,"buttons")]),c(" 标签tab插槽 "),u(t.$slots,"tabs"),o("div",w,[q.value.length>0?(i(),f(d(h),{key:0,"virtual-scroll":"","children-field":e.treeRenderConfig.replaceFields.children,"key-field":e.treeRenderConfig.replaceFields.key,"label-field":e.treeRenderConfig.replaceFields.title,selectable:!0,data:q.value,"expanded-keys":E.value,selectedKeys:M.value,draggable:e.isDraggable,loadedKeys:T.value,"render-label":W,"render-prefix":B,"render-suffix":$,"onUpdate:expandedKeys":J,"onUpdate:selectedKeys":_,onLoad:Y,onDrop:G},null,8,["children-field","key-field","label-field","data","expanded-keys","selectedKeys","draggable","loadedKeys"])):(i(),a("div",I,[s(d(y),{description:"暂无数据"})]))]),o("div",k,[c(" 导出数据插槽 "),u(t.$slots,"output")])],4)),[[d(m),{mode:"VR",onMove:Z,onEnd:ee}]])}});export{O as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function traversalData(data: any[], children?: string): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function*r(e,i="children"){if(e&&Array.isArray(e))for(let l=0;l<e.length;l++)yield e[l],e[l][i]&&(yield*r(e[l][i],i))}export{r as traversalData};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.left-tree-wrap{background:#fff;border-right:1px solid rgba(0,0,0,.1);box-sizing:border-box;display:flex;flex-direction:column;height:100%;padding:8px;position:relative}.left-tree-wrap .search-groups{align-items:center;display:flex}.left-tree-wrap .search-groups .ant-input-search{flex:1}.left-tree-wrap .tree-wrap{flex:1;margin-top:12px;overflow-y:auto}.left-tree-wrap .tree-wrap .n-tree .n-tree-node-content{width:100%}.left-tree-wrap .tree-wrap .empty-container{align-items:center;display:flex;height:100%;justify-content:center}.left-tree-wrap .table-footer-wrap{margin-top:8px}.left-tree-wrap .resizable{bottom:0;cursor:col-resize;height:100%;position:absolute;right:-7px;text-align:center;width:14px;z-index:1}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e="@cnhis-design-vue/shared",i="3.1.51-beta.
|
|
1
|
+
var e="@cnhis-design-vue/shared",i="3.1.51-beta.19",s="index.ts",n={"naive-ui":"^2.30.0",vue:"^3.2.0"},a={"@vicons/ionicons5":"^0.12.0","lodash-es":"^4.17.21",moment:"^2.29.1","video.js":"^7.19.2","videojs-contrib-hls":"^5.15.0",viewerjs:"^1.10.5","xe-utils":"^3.5.4"},d={name:e,version:"3.1.51-beta.19",private:!0,main:"index.ts",peerDependencies:n,dependencies:a};export{d as default,a as dependencies,s as main,e as name,n as peerDependencies,i as version};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cnhis-design-vue",
|
|
3
|
-
"version": "3.1.51-beta.
|
|
3
|
+
"version": "3.1.51-beta.19",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"module": "./es/components/index.js",
|
|
6
6
|
"main": "./es/components/index.js",
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"iOS 7",
|
|
64
64
|
"last 3 iOS versions"
|
|
65
65
|
],
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "1c7dd4b7cb0f25dea298d1bafb04a9686136c565"
|
|
67
67
|
}
|