cnhis-design-vue 3.1.42-release.4 → 3.1.42-release.6
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/big-table/src/BigTable.vue2.js +1 -1
- package/es/components/big-table/src/components/edit-form/edit-select-table.d.ts +1 -1
- package/es/components/big-table/src/components/edit-form/edit-select.js +1 -1
- package/es/components/big-table/src/hooks/useEvent.js +1 -1
- package/es/components/big-table/src/hooks/useFormat.js +1 -1
- package/es/components/big-table/src/hooks/useNestTable.js +1 -1
- package/es/components/big-table/src/hooks/useTableParse.js +1 -1
- package/es/components/big-table/src/utils.d.ts +11 -1
- package/es/components/big-table/src/utils.js +1 -1
- package/es/components/button-print/index.d.ts +28 -3
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +28 -4
- package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
- package/es/components/button-print/src/utils/print.js +1 -1
- package/es/components/form-config/index.d.ts +48 -7
- package/es/components/form-config/src/FormConfig.vue.d.ts +48 -7
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +14 -1
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +26 -4
- package/es/components/form-config/src/constants/index.d.ts +8 -1
- package/es/components/form-config/src/constants/index.js +1 -1
- package/es/components/form-config/src/hooks/useConfigurationField.js +1 -1
- package/es/components/form-render/index.d.ts +14 -1
- package/es/components/form-render/src/FormRender.vue.d.ts +14 -1
- package/es/components/form-render/src/FormRender.vue.js +1 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +14 -1
- package/es/components/form-render/src/components/renderer/date.d.ts +4 -0
- package/es/components/form-render/src/components/renderer/date.js +1 -1
- package/es/components/form-render/src/components/renderer/searchCascade.d.ts +18 -0
- package/es/components/form-render/src/components/renderer/searchCascade.js +1 -1
- package/es/components/form-render/src/hooks/useBusinessBinding.d.ts +1 -0
- package/es/components/form-render/src/hooks/useBusinessBinding.js +1 -1
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
- package/es/components/form-render/src/hooks/useFieldNormalize.js +1 -1
- package/es/components/form-render/src/hooks/useFormEvent.d.ts +1 -1
- package/es/components/form-render/src/hooks/useFormEvent.js +1 -1
- package/es/components/form-render/src/types/fieldItem.d.ts +8 -1
- package/es/components/form-render/src/types/index.d.ts +2 -2
- package/es/components/form-render/style/index.css +1 -1
- package/es/components/iho-table/index.d.ts +17 -3
- package/es/components/iho-table/src/IhoTable.vue.d.ts +17 -3
- package/es/components/iho-table/src/IhoTable.vue.js +1 -1
- package/es/components/iho-table/src/constants/index.d.ts +3 -2
- package/es/components/iho-table/src/constants/index.js +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +2 -2
- package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.d.ts +19 -19
- package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.d.ts +60 -237
- package/es/components/iho-table/src/hooks/tapHooks/useExposeHooks.d.ts +1 -4
- package/es/components/iho-table/src/hooks/tapHooks/useFieldHooks.d.ts +4 -16
- package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.d.ts +2 -2
- package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.js +1 -1
- package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.js +1 -1
- package/es/components/iho-table/src/plugins/anchorPlugin/useAnchor.js +1 -1
- package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +48 -0
- package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.js +1 -0
- package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/index.d.ts +1 -0
- package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/index.js +1 -0
- package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/highLightSetPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/index.js +1 -1
- package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.d.ts +25 -3
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.d.ts +2 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/seqRendererPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/rowDragPlugin/index.d.ts +1 -0
- package/es/components/iho-table/src/plugins/rowDragPlugin/index.js +1 -0
- package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.js +1 -1
- package/es/components/iho-table/src/types/index.d.ts +21 -2
- package/es/components/iho-table/src/types/pluginType.d.ts +13 -26
- package/es/components/iho-table/src/utils/index.d.ts +5 -3
- package/es/components/iho-table/src/utils/index.js +1 -1
- package/es/components/iho-table/style/index.css +1 -1
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +1 -0
- package/es/components/info-header/index.d.ts +29 -2
- package/es/components/info-header/src/InfoHeader.vue.d.ts +29 -2
- package/es/components/info-header/src/InfoHeader.vue.js +1 -1
- package/es/components/info-header/src/components/infoDescription/HiddenContent.vue.js +1 -1
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +14 -1
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +15 -1
- package/es/components/info-header/src/components/patientInfo/index.vue.js +1 -1
- package/es/components/info-header/style/index.css +1 -1
- package/es/components/scale-view/index.d.ts +9 -130
- package/es/components/scale-view/index.js +1 -1
- package/es/components/scale-view/src/ScaleView.vue.d.ts +8 -130
- package/es/components/scale-view/src/ScaleView.vue.js +1 -1
- package/es/components/scale-view/src/components/AnswerParse.vue.d.ts +1 -43
- package/es/components/scale-view/src/components/AnswerParse.vue.js +1 -1
- package/es/components/scale-view/src/components/EvaluateCountdown.vue.d.ts +0 -42
- package/es/components/scale-view/src/components/EvaluateCountdown.vue.js +1 -1
- package/es/components/scale-view/src/components/formitem/r-address.js +1 -1
- package/es/components/scale-view/src/components/formitem/r-checkbox.js +1 -1
- package/es/components/scale-view/src/components/formitem/r-datetime.js +1 -1
- package/es/components/scale-view/src/components/formitem/r-map.js +1 -1
- package/es/components/scale-view/src/components/formitem/r-sign.js +1 -1
- package/es/components/scale-view/src/components/formitem/standard-modal.d.ts +4 -4
- package/es/components/scale-view/src/components/formitem/standard-modal.js +1 -1
- package/es/components/scale-view/src/components/formitem/text-over-tooltip/TextOverTooltip.vue.d.ts +1 -1
- package/es/components/scale-view/src/hooks/scaleview-computed.js +1 -1
- package/es/components/scale-view/src/hooks/scaleview-init.js +1 -1
- package/es/components/scale-view/src/hooks/scaleview-submit.d.ts +5 -1
- package/es/components/scale-view/src/hooks/scaleview-submit.js +1 -1
- package/es/components/scale-view/src/hooks/scaleview-validate.js +1 -1
- package/es/components/scale-view/src/hooks/use-evaluate.js +1 -1
- package/es/components/scale-view/src/hooks/use-event.js +1 -1
- package/es/components/scale-view/src/types/index.d.ts +7 -0
- package/es/components/scale-view/src/types/index.js +1 -0
- package/es/components/scale-view/style/index.css +1 -1
- package/es/components/scale-view/style/scale-view-iconfont.ttf +0 -0
- package/es/components/search-cascader/index.d.ts +12 -1
- package/es/components/search-cascader/src/SearchCascader.vue.d.ts +12 -1
- package/es/components/search-cascader/src/SearchCascader.vue.js +1 -1
- package/es/components/search-cascader/src/components/SearchMenu.d.ts +8 -1
- package/es/components/search-cascader/src/components/SearchMenu.js +1 -1
- package/es/components/search-cascader/src/constants/index.d.ts +1 -0
- package/es/components/search-cascader/src/constants/index.js +1 -1
- package/es/components/select-label/src/LabelFormContent.vue.js +1 -1
- package/es/components/select-label/src/SelectLabel.vue2.js +1 -1
- package/es/components/select-person/index.d.ts +57 -9
- package/es/components/select-person/src/SearchMultiple.vue.d.ts +125 -0
- package/es/components/select-person/src/SelectPerson.vue.d.ts +43 -7
- package/es/components/select-person/src/SelectPerson.vue2.js +1 -1
- package/es/components/select-person/src/utils/index.js +1 -1
- package/es/components/select-person/style/index.css +1 -1
- package/es/components/shortcut-setter/index.d.ts +18 -2
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +18 -2
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.js +1 -1
- package/es/env.d.ts +25 -24
- package/es/shared/components/TextOverTooltip/TextOverTooltip.vue.d.ts +1 -1
- package/es/shared/components/TextOverTooltip/TextOverTooltip.vue.js +1 -1
- package/es/shared/package.json.js +1 -0
- package/es/shared/utils/anime.d.ts +1 -1
- package/es/shared/utils/anime.js +1 -1
- package/es/shared/utils/index.d.ts +3 -14
- package/es/shared/utils/index.js +1 -1
- package/es/shared/utils/vexutils.d.ts +2 -2
- package/es/shared/utils/vexutils.js +1 -1
- package/es/shared/utils/vexutilsExpand.d.ts +254 -0
- package/es/shared/utils/vexutilsExpand.js +1 -0
- package/package.json +2 -2
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
- package/es/components/fabric-chart/src/utils/index.d.ts +0 -6823
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
- package/es/shared/utils/tapable/index.d.ts +0 -139
|
@@ -2,6 +2,7 @@ import { SFCWithInstall } from '../../../es/shared/types';
|
|
|
2
2
|
declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
|
|
3
3
|
defaultList: {
|
|
4
4
|
type: import("vue").PropType<((string | number) | {
|
|
5
|
+
[key: string]: any;
|
|
5
6
|
key: string | number;
|
|
6
7
|
name: string;
|
|
7
8
|
})[]>;
|
|
@@ -48,8 +49,14 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
48
49
|
type: BooleanConstructor;
|
|
49
50
|
default: boolean;
|
|
50
51
|
};
|
|
52
|
+
treeSetting: {
|
|
53
|
+
type: import("vue").PropType<import("naive-ui/es/tree/src/interface").TreeOptionBase & {
|
|
54
|
+
[k: string]: unknown;
|
|
55
|
+
} & import("../../../es/shared/types").AnyObject>;
|
|
56
|
+
default: () => {};
|
|
57
|
+
};
|
|
51
58
|
queryLoadChildData: {
|
|
52
|
-
type: import("vue").PropType<(node: import("naive-ui").TreeOption) => Promise<
|
|
59
|
+
type: import("vue").PropType<(node: import("naive-ui").TreeOption) => Promise<import("../../../es/shared/types").AnyObject>>;
|
|
53
60
|
default: undefined;
|
|
54
61
|
};
|
|
55
62
|
queryTreeSearch: {
|
|
@@ -60,6 +67,7 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
60
67
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
61
68
|
defaultList: {
|
|
62
69
|
type: import("vue").PropType<((string | number) | {
|
|
70
|
+
[key: string]: any;
|
|
63
71
|
key: string | number;
|
|
64
72
|
name: string;
|
|
65
73
|
})[]>;
|
|
@@ -106,8 +114,14 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
106
114
|
type: BooleanConstructor;
|
|
107
115
|
default: boolean;
|
|
108
116
|
};
|
|
117
|
+
treeSetting: {
|
|
118
|
+
type: import("vue").PropType<import("naive-ui/es/tree/src/interface").TreeOptionBase & {
|
|
119
|
+
[k: string]: unknown;
|
|
120
|
+
} & import("../../../es/shared/types").AnyObject>;
|
|
121
|
+
default: () => {};
|
|
122
|
+
};
|
|
109
123
|
queryLoadChildData: {
|
|
110
|
-
type: import("vue").PropType<(node: import("naive-ui").TreeOption) => Promise<
|
|
124
|
+
type: import("vue").PropType<(node: import("naive-ui").TreeOption) => Promise<import("../../../es/shared/types").AnyObject>>;
|
|
111
125
|
default: undefined;
|
|
112
126
|
};
|
|
113
127
|
queryTreeSearch: {
|
|
@@ -116,8 +130,9 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
116
130
|
};
|
|
117
131
|
}>> & {
|
|
118
132
|
onCheck?: ((...args: any[]) => any) | undefined;
|
|
133
|
+
onCheckWithLevel?: ((...args: any[]) => any) | undefined;
|
|
119
134
|
}>>;
|
|
120
|
-
emit: (event: "check", ...args: any[]) => void;
|
|
135
|
+
emit: (event: "check" | "checkWithLevel", ...args: any[]) => void;
|
|
121
136
|
keyword: import("vue").Ref<string>;
|
|
122
137
|
checkedAll: import("vue").Ref<boolean>;
|
|
123
138
|
checkedKeys: import("vue").Ref<(string | number)[]>;
|
|
@@ -134,28 +149,47 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
134
149
|
suffix?: (() => import("vue").VNodeChild) | undefined;
|
|
135
150
|
}[]>;
|
|
136
151
|
tagData: import("vue").Ref<{
|
|
152
|
+
[x: string]: any;
|
|
137
153
|
key: string | number;
|
|
138
154
|
name: string;
|
|
139
155
|
}[]>;
|
|
140
|
-
|
|
141
|
-
[
|
|
142
|
-
|
|
156
|
+
initTagData: import("vue").Ref<{
|
|
157
|
+
[x: string]: any;
|
|
158
|
+
key: string | number;
|
|
159
|
+
name: string;
|
|
160
|
+
}[]>;
|
|
161
|
+
isSearch: import("vue").Ref<boolean>;
|
|
162
|
+
temp: import("naive-ui").TreeOption[];
|
|
143
163
|
allCheckedKeys: (string | number)[];
|
|
144
164
|
isRemote: import("vue").ComputedRef<boolean>;
|
|
165
|
+
checkStrategyResult: import("vue").ComputedRef<any>;
|
|
145
166
|
init: () => void;
|
|
167
|
+
getallCheckedKeysWithChild: (item: import("naive-ui").TreeOption) => void;
|
|
168
|
+
getallCheckedKeysWithParent: (item: import("naive-ui").TreeOption) => void;
|
|
169
|
+
queryLoadChildNode: (node: import("naive-ui").TreeOption) => Promise<import("../../../es/shared/types").AnyObject>;
|
|
146
170
|
setDisabled: (data: import("naive-ui").TreeOption) => void;
|
|
147
171
|
renderLabel: ({ option }: {
|
|
148
172
|
option: import("naive-ui").TreeOption;
|
|
149
173
|
}) => JSX.Element;
|
|
150
174
|
getLabelName: (option: import("naive-ui").TreeOption) => unknown;
|
|
175
|
+
transformData: (trees: import("naive-ui").TreeOption[]) => import("naive-ui").TreeOption[];
|
|
176
|
+
calculateRootItems: (trees: import("naive-ui").TreeOption[], items: import("naive-ui").TreeOption[]) => import("naive-ui").TreeOption[];
|
|
177
|
+
transformParentNodeName: (trees: import("naive-ui").TreeOption[], temp: any) => import("naive-ui").TreeOption[];
|
|
151
178
|
setAllCheckedKeys: (tree: import("naive-ui").TreeOption[]) => void;
|
|
179
|
+
setAllCheckedKeysWithChild: (tree: import("naive-ui").TreeOption[]) => void;
|
|
180
|
+
setAllCheckedKeysWithParent: (tree: import("naive-ui").TreeOption[]) => void;
|
|
152
181
|
onSearch: () => Promise<void>;
|
|
182
|
+
onClear: () => void;
|
|
153
183
|
setTreeCheckd: (tree: import("naive-ui").TreeOption[], checked: boolean) => void;
|
|
184
|
+
setCheckdWithChild: (tree: import("naive-ui").TreeOption[], checked: boolean) => void;
|
|
185
|
+
setCheckdWithParent: (tree: import("naive-ui").TreeOption[], checked: boolean) => void;
|
|
154
186
|
checkedAllChange: (checked: boolean) => void;
|
|
155
187
|
uniq: (arr: {
|
|
188
|
+
[key: string]: any;
|
|
156
189
|
key: string | number;
|
|
157
190
|
name: string;
|
|
158
191
|
}[]) => {
|
|
192
|
+
[key: string]: any;
|
|
159
193
|
key: string | number;
|
|
160
194
|
name: string;
|
|
161
195
|
}[];
|
|
@@ -164,9 +198,11 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
164
198
|
setCheckedAll: () => void;
|
|
165
199
|
clearAll: () => void;
|
|
166
200
|
closeTag: (tag: {
|
|
201
|
+
[key: string]: any;
|
|
167
202
|
key: string | number;
|
|
168
203
|
name: string;
|
|
169
204
|
}) => void;
|
|
205
|
+
notifyCheck: (keys: (string | number)[]) => void;
|
|
170
206
|
NButton: any;
|
|
171
207
|
NInput: any;
|
|
172
208
|
NInputGroup: import("vue").DefineComponent<{
|
|
@@ -236,9 +272,10 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
236
272
|
readonly privateShow: boolean;
|
|
237
273
|
}>;
|
|
238
274
|
CloseCircleSharp: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
239
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "check"[], "check", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
275
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("check" | "checkWithLevel")[], "check" | "checkWithLevel", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
240
276
|
defaultList: {
|
|
241
277
|
type: import("vue").PropType<((string | number) | {
|
|
278
|
+
[key: string]: any;
|
|
242
279
|
key: string | number;
|
|
243
280
|
name: string;
|
|
244
281
|
})[]>;
|
|
@@ -285,8 +322,14 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
285
322
|
type: BooleanConstructor;
|
|
286
323
|
default: boolean;
|
|
287
324
|
};
|
|
325
|
+
treeSetting: {
|
|
326
|
+
type: import("vue").PropType<import("naive-ui/es/tree/src/interface").TreeOptionBase & {
|
|
327
|
+
[k: string]: unknown;
|
|
328
|
+
} & import("../../../es/shared/types").AnyObject>;
|
|
329
|
+
default: () => {};
|
|
330
|
+
};
|
|
288
331
|
queryLoadChildData: {
|
|
289
|
-
type: import("vue").PropType<(node: import("naive-ui").TreeOption) => Promise<
|
|
332
|
+
type: import("vue").PropType<(node: import("naive-ui").TreeOption) => Promise<import("../../../es/shared/types").AnyObject>>;
|
|
290
333
|
default: undefined;
|
|
291
334
|
};
|
|
292
335
|
queryTreeSearch: {
|
|
@@ -295,11 +338,13 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
295
338
|
};
|
|
296
339
|
}>> & {
|
|
297
340
|
onCheck?: ((...args: any[]) => any) | undefined;
|
|
341
|
+
onCheckWithLevel?: ((...args: any[]) => any) | undefined;
|
|
298
342
|
}, {
|
|
299
343
|
data: (import("naive-ui/es/tree/src/interface").TreeOptionBase & {
|
|
300
344
|
[k: string]: unknown;
|
|
301
345
|
} & import("../../../es/shared/types").AnyObject)[];
|
|
302
346
|
defaultList: ((string | number) | {
|
|
347
|
+
[key: string]: any;
|
|
303
348
|
key: string | number;
|
|
304
349
|
name: string;
|
|
305
350
|
})[];
|
|
@@ -317,7 +362,10 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
317
362
|
showCount: boolean;
|
|
318
363
|
showClear: boolean;
|
|
319
364
|
multiple: boolean;
|
|
320
|
-
|
|
365
|
+
treeSetting: import("naive-ui/es/tree/src/interface").TreeOptionBase & {
|
|
366
|
+
[k: string]: unknown;
|
|
367
|
+
} & import("../../../es/shared/types").AnyObject;
|
|
368
|
+
queryLoadChildData: (node: import("naive-ui").TreeOption) => Promise<import("../../../es/shared/types").AnyObject>;
|
|
321
369
|
queryTreeSearch: (keyWork: string) => Promise<import("../../../es/shared/types").AnyObject[]>;
|
|
322
370
|
}>>;
|
|
323
371
|
export default SelectPerson;
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { ref, PropType, CSSProperties } from 'vue';
|
|
2
|
+
declare type IKey = string | number;
|
|
3
|
+
declare type ITreeOption = {
|
|
4
|
+
key: IKey;
|
|
5
|
+
children: ITreeOption[];
|
|
6
|
+
parentNode: ITreeOption;
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
};
|
|
9
|
+
declare const _default: import("vue").DefineComponent<{
|
|
10
|
+
treeData: {
|
|
11
|
+
type: PropType<ITreeOption[]>;
|
|
12
|
+
default: () => never[];
|
|
13
|
+
};
|
|
14
|
+
checkedKeys: {
|
|
15
|
+
type: PropType<IKey[]>;
|
|
16
|
+
default: () => never[];
|
|
17
|
+
};
|
|
18
|
+
}, {
|
|
19
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
20
|
+
treeData: {
|
|
21
|
+
type: PropType<ITreeOption[]>;
|
|
22
|
+
default: () => never[];
|
|
23
|
+
};
|
|
24
|
+
checkedKeys: {
|
|
25
|
+
type: PropType<IKey[]>;
|
|
26
|
+
default: () => never[];
|
|
27
|
+
};
|
|
28
|
+
}>> & {
|
|
29
|
+
onNotifyCheck?: ((...args: any[]) => any) | undefined;
|
|
30
|
+
}>>;
|
|
31
|
+
emit: (event: "notifyCheck", ...args: any[]) => void;
|
|
32
|
+
optionsRef: import("vue").ComputedRef<ITreeOption[]>;
|
|
33
|
+
list: import("vue").Ref<import("@vueuse/core").UseVirtualListItem<ITreeOption>[]>;
|
|
34
|
+
containerProps: {
|
|
35
|
+
ref: import("vue").Ref<any>;
|
|
36
|
+
onScroll: () => void;
|
|
37
|
+
style: Partial<CSSStyleDeclaration>;
|
|
38
|
+
};
|
|
39
|
+
wrapperProps: import("vue").ComputedRef<{
|
|
40
|
+
style: {
|
|
41
|
+
width: string;
|
|
42
|
+
height: string;
|
|
43
|
+
marginTop: string;
|
|
44
|
+
};
|
|
45
|
+
}>;
|
|
46
|
+
containerStyleWithHeight: import("vue").ComputedRef<CSSProperties>;
|
|
47
|
+
searchCheckKeys: import("vue").Ref<IKey[]>;
|
|
48
|
+
showSelectKeys: import("vue").Ref<(string | number)[]>;
|
|
49
|
+
checkedChange: (checkList: (string | number)[], meta: {
|
|
50
|
+
actionType: 'check' | 'uncheck';
|
|
51
|
+
value: string | number;
|
|
52
|
+
}) => void;
|
|
53
|
+
handleCheckKey: (baseKeys: (string | number)[], currentTree: ITreeOption | null, value: string | number) => false | undefined;
|
|
54
|
+
findParent: (baseKeys: (string | number)[], currentTree: ITreeOption) => false | undefined;
|
|
55
|
+
handleUnCheckKey: (baseKeys: (string | number)[], currentTree: ITreeOption, value: string | number) => false | undefined;
|
|
56
|
+
findChild: (baseKeys: (string | number)[], children: ITreeOption[], value: string | number) => false | undefined;
|
|
57
|
+
checkInitTree: (tree: ITreeOption, baseKey: string | number) => false | undefined;
|
|
58
|
+
ref: typeof ref;
|
|
59
|
+
NCheckboxGroup: import("vue").DefineComponent<{
|
|
60
|
+
readonly min: NumberConstructor;
|
|
61
|
+
readonly max: NumberConstructor;
|
|
62
|
+
readonly size: PropType<"small" | "medium" | "large">;
|
|
63
|
+
readonly value: PropType<(string | number)[] | null>;
|
|
64
|
+
readonly defaultValue: {
|
|
65
|
+
readonly type: PropType<(string | number)[] | null>;
|
|
66
|
+
readonly default: null;
|
|
67
|
+
};
|
|
68
|
+
readonly disabled: {
|
|
69
|
+
readonly type: PropType<boolean | undefined>;
|
|
70
|
+
readonly default: undefined;
|
|
71
|
+
};
|
|
72
|
+
readonly 'onUpdate:value': PropType<import("naive-ui/es/_utils").MaybeArray<(value: (string | number)[], meta: {
|
|
73
|
+
actionType: "check" | "uncheck";
|
|
74
|
+
value: string | number;
|
|
75
|
+
}) => void>>;
|
|
76
|
+
readonly onUpdateValue: PropType<import("naive-ui/es/_utils").MaybeArray<(value: (string | number)[], meta: {
|
|
77
|
+
actionType: "check" | "uncheck";
|
|
78
|
+
value: string | number;
|
|
79
|
+
}) => void>>;
|
|
80
|
+
readonly onChange: PropType<import("naive-ui/es/_utils").MaybeArray<(value: (string | number)[]) => void> | undefined>;
|
|
81
|
+
}, {
|
|
82
|
+
mergedClsPrefix: import("vue").ComputedRef<string>;
|
|
83
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
84
|
+
readonly min: NumberConstructor;
|
|
85
|
+
readonly max: NumberConstructor;
|
|
86
|
+
readonly size: PropType<"small" | "medium" | "large">;
|
|
87
|
+
readonly value: PropType<(string | number)[] | null>;
|
|
88
|
+
readonly defaultValue: {
|
|
89
|
+
readonly type: PropType<(string | number)[] | null>;
|
|
90
|
+
readonly default: null;
|
|
91
|
+
};
|
|
92
|
+
readonly disabled: {
|
|
93
|
+
readonly type: PropType<boolean | undefined>;
|
|
94
|
+
readonly default: undefined;
|
|
95
|
+
};
|
|
96
|
+
readonly 'onUpdate:value': PropType<import("naive-ui/es/_utils").MaybeArray<(value: (string | number)[], meta: {
|
|
97
|
+
actionType: "check" | "uncheck";
|
|
98
|
+
value: string | number;
|
|
99
|
+
}) => void>>;
|
|
100
|
+
readonly onUpdateValue: PropType<import("naive-ui/es/_utils").MaybeArray<(value: (string | number)[], meta: {
|
|
101
|
+
actionType: "check" | "uncheck";
|
|
102
|
+
value: string | number;
|
|
103
|
+
}) => void>>;
|
|
104
|
+
readonly onChange: PropType<import("naive-ui/es/_utils").MaybeArray<(value: (string | number)[]) => void> | undefined>;
|
|
105
|
+
}>>, {
|
|
106
|
+
readonly disabled: boolean | undefined;
|
|
107
|
+
readonly defaultValue: (string | number)[] | null;
|
|
108
|
+
}>;
|
|
109
|
+
NCheckbox: any;
|
|
110
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "notifyCheck"[], "notifyCheck", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
111
|
+
treeData: {
|
|
112
|
+
type: PropType<ITreeOption[]>;
|
|
113
|
+
default: () => never[];
|
|
114
|
+
};
|
|
115
|
+
checkedKeys: {
|
|
116
|
+
type: PropType<IKey[]>;
|
|
117
|
+
default: () => never[];
|
|
118
|
+
};
|
|
119
|
+
}>> & {
|
|
120
|
+
onNotifyCheck?: ((...args: any[]) => any) | undefined;
|
|
121
|
+
}, {
|
|
122
|
+
treeData: ITreeOption[];
|
|
123
|
+
checkedKeys: IKey[];
|
|
124
|
+
}>;
|
|
125
|
+
export default _default;
|
|
@@ -15,6 +15,7 @@ declare type IWordBookChild<T> = {
|
|
|
15
15
|
declare type ITag = {
|
|
16
16
|
key: IKey;
|
|
17
17
|
name: string;
|
|
18
|
+
[key: string]: any;
|
|
18
19
|
};
|
|
19
20
|
declare const _default: import("vue").DefineComponent<{
|
|
20
21
|
defaultList: {
|
|
@@ -53,8 +54,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
53
54
|
type: BooleanConstructor;
|
|
54
55
|
default: boolean;
|
|
55
56
|
};
|
|
57
|
+
treeSetting: {
|
|
58
|
+
type: PropType<ITreeOption>;
|
|
59
|
+
default: () => {};
|
|
60
|
+
};
|
|
56
61
|
queryLoadChildData: {
|
|
57
|
-
type: PropType<(node: TreeOption) => Promise<
|
|
62
|
+
type: PropType<(node: TreeOption) => Promise<AnyObject>>;
|
|
58
63
|
default: undefined;
|
|
59
64
|
};
|
|
60
65
|
queryTreeSearch: {
|
|
@@ -99,8 +104,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
99
104
|
type: BooleanConstructor;
|
|
100
105
|
default: boolean;
|
|
101
106
|
};
|
|
107
|
+
treeSetting: {
|
|
108
|
+
type: PropType<ITreeOption>;
|
|
109
|
+
default: () => {};
|
|
110
|
+
};
|
|
102
111
|
queryLoadChildData: {
|
|
103
|
-
type: PropType<(node: TreeOption) => Promise<
|
|
112
|
+
type: PropType<(node: TreeOption) => Promise<AnyObject>>;
|
|
104
113
|
default: undefined;
|
|
105
114
|
};
|
|
106
115
|
queryTreeSearch: {
|
|
@@ -109,8 +118,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
109
118
|
};
|
|
110
119
|
}>> & {
|
|
111
120
|
onCheck?: ((...args: any[]) => any) | undefined;
|
|
121
|
+
onCheckWithLevel?: ((...args: any[]) => any) | undefined;
|
|
112
122
|
}>>;
|
|
113
|
-
emit: (event: "check", ...args: any[]) => void;
|
|
123
|
+
emit: (event: "check" | "checkWithLevel", ...args: any[]) => void;
|
|
114
124
|
keyword: import("vue").Ref<string>;
|
|
115
125
|
checkedAll: import("vue").Ref<boolean>;
|
|
116
126
|
checkedKeys: import("vue").Ref<IKey[]>;
|
|
@@ -127,21 +137,40 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
127
137
|
suffix?: (() => import("vue").VNodeChild) | undefined;
|
|
128
138
|
}[]>;
|
|
129
139
|
tagData: import("vue").Ref<{
|
|
140
|
+
[x: string]: any;
|
|
130
141
|
key: IKey;
|
|
131
142
|
name: string;
|
|
132
143
|
}[]>;
|
|
133
|
-
|
|
144
|
+
initTagData: import("vue").Ref<{
|
|
145
|
+
[x: string]: any;
|
|
146
|
+
key: IKey;
|
|
147
|
+
name: string;
|
|
148
|
+
}[]>;
|
|
149
|
+
isSearch: import("vue").Ref<boolean>;
|
|
150
|
+
temp: TreeOption[];
|
|
134
151
|
allCheckedKeys: IKey[];
|
|
135
152
|
isRemote: import("vue").ComputedRef<boolean>;
|
|
153
|
+
checkStrategyResult: import("vue").ComputedRef<any>;
|
|
136
154
|
init: () => void;
|
|
155
|
+
getallCheckedKeysWithChild: (item: TreeOption) => void;
|
|
156
|
+
getallCheckedKeysWithParent: (item: TreeOption) => void;
|
|
157
|
+
queryLoadChildNode: (node: TreeOption) => Promise<AnyObject>;
|
|
137
158
|
setDisabled: (data: TreeOption) => void;
|
|
138
159
|
renderLabel: ({ option }: {
|
|
139
160
|
option: TreeOption;
|
|
140
161
|
}) => JSX.Element;
|
|
141
162
|
getLabelName: (option: TreeOption) => unknown;
|
|
163
|
+
transformData: (trees: TreeOption[]) => TreeOption[];
|
|
164
|
+
calculateRootItems: (trees: TreeOption[], items: TreeOption[]) => TreeOption[];
|
|
165
|
+
transformParentNodeName: (trees: TreeOption[], temp: any) => TreeOption[];
|
|
142
166
|
setAllCheckedKeys: (tree: TreeOption[]) => void;
|
|
167
|
+
setAllCheckedKeysWithChild: (tree: TreeOption[]) => void;
|
|
168
|
+
setAllCheckedKeysWithParent: (tree: TreeOption[]) => void;
|
|
143
169
|
onSearch: () => Promise<void>;
|
|
170
|
+
onClear: () => void;
|
|
144
171
|
setTreeCheckd: (tree: TreeOption[], checked: boolean) => void;
|
|
172
|
+
setCheckdWithChild: (tree: TreeOption[], checked: boolean) => void;
|
|
173
|
+
setCheckdWithParent: (tree: TreeOption[], checked: boolean) => void;
|
|
145
174
|
checkedAllChange: (checked: boolean) => void;
|
|
146
175
|
uniq: (arr: ITag[]) => ITag[];
|
|
147
176
|
setTagData: (tree: TreeOption[]) => void;
|
|
@@ -149,6 +178,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
149
178
|
setCheckedAll: () => void;
|
|
150
179
|
clearAll: () => void;
|
|
151
180
|
closeTag: (tag: ITag) => void;
|
|
181
|
+
notifyCheck: (keys: Array<IKey>) => void;
|
|
152
182
|
NButton: any;
|
|
153
183
|
NInput: any;
|
|
154
184
|
NInputGroup: import("vue").DefineComponent<{
|
|
@@ -218,7 +248,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
218
248
|
readonly privateShow: boolean;
|
|
219
249
|
}>;
|
|
220
250
|
CloseCircleSharp: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
221
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "check"[], "check", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
251
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("check" | "checkWithLevel")[], "check" | "checkWithLevel", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
222
252
|
defaultList: {
|
|
223
253
|
type: PropType<(IKey | ITag)[]>;
|
|
224
254
|
default: () => never[];
|
|
@@ -255,8 +285,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
255
285
|
type: BooleanConstructor;
|
|
256
286
|
default: boolean;
|
|
257
287
|
};
|
|
288
|
+
treeSetting: {
|
|
289
|
+
type: PropType<ITreeOption>;
|
|
290
|
+
default: () => {};
|
|
291
|
+
};
|
|
258
292
|
queryLoadChildData: {
|
|
259
|
-
type: PropType<(node: TreeOption) => Promise<
|
|
293
|
+
type: PropType<(node: TreeOption) => Promise<AnyObject>>;
|
|
260
294
|
default: undefined;
|
|
261
295
|
};
|
|
262
296
|
queryTreeSearch: {
|
|
@@ -265,6 +299,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
265
299
|
};
|
|
266
300
|
}>> & {
|
|
267
301
|
onCheck?: ((...args: any[]) => any) | undefined;
|
|
302
|
+
onCheckWithLevel?: ((...args: any[]) => any) | undefined;
|
|
268
303
|
}, {
|
|
269
304
|
data: ITreeOption[];
|
|
270
305
|
defaultList: (IKey | ITag)[];
|
|
@@ -275,7 +310,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
275
310
|
showCount: boolean;
|
|
276
311
|
showClear: boolean;
|
|
277
312
|
multiple: boolean;
|
|
278
|
-
|
|
313
|
+
treeSetting: ITreeOption;
|
|
314
|
+
queryLoadChildData: (node: TreeOption) => Promise<AnyObject>;
|
|
279
315
|
queryTreeSearch: (keyWork: string) => Promise<Array<AnyObject>>;
|
|
280
316
|
}>;
|
|
281
317
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,ref as l,computed as t,watch as
|
|
1
|
+
import{defineComponent as e,ref as l,computed as t,watch as n,openBlock as a,createBlock as u,unref as i,withCtx as r,createVNode as c,withKeys as o,createTextVNode as d,toDisplayString as s,withDirectives as h,vShow as v,createCommentVNode as p,mergeProps as f,createElementBlock as y,createElementVNode as k,Fragment as m,renderList as g}from"vue";import{NGrid as b,NGi as _,NSpace as w,NInputGroup as C,NInput as x,NButton as S,NCheckbox as L,NTree as T,NIcon as j,NTooltip as N}from"naive-ui";import{CloseCircleSharp as $}from"@vicons/ionicons5";import{filterTree as I,getExpandedKeys as D}from"./utils/index.js";import{cloneDeep as q}from"lodash-es";const B={key:0},K={class:"c-select-person__scroll",style:{height:"342px"}};var P=e({__name:"SelectPerson",props:{defaultList:{type:Array,default:()=>[]},data:{type:Array,default:()=>[]},searchPlaceholder:{type:String,default:"输入关键字搜索"},searchButtonText:{type:String,default:"搜索"},wordbook:{type:Object,default:()=>({})},wordbookChild:{type:Object,default:()=>({})},showCount:{type:Boolean,default:!0},showClear:{type:Boolean,default:!0},multiple:{type:Boolean,default:!0},treeSetting:{type:Object,default:()=>({})},queryLoadChildData:{type:Function,default:void 0},queryTreeSearch:{type:Function,default:()=>Promise.resolve([])}},emits:["check","checkWithLevel"],setup(e,{emit:P}){const U=e,E=l(""),O=l(!1),A=l([]),F=l([]),R=l([]),W=l([]),M=l([]),z=l(!1),G=q(((H=U.data).forEach((e=>{var l;if(null==(l=e.children)?void 0:l.length){const l=te(e.children,[]);e.innerItemsNum=l.length}})),ne(H,"")));var H;let J=[];const Q=t((()=>!!U.queryLoadChildData));function V(e){e.disabled||e.children||!e.key||J.push(e.key)}function X(e){e.disabled||e.tempTitle||!e.key||J.push(e.key)}async function Y(e){if(U.queryLoadChildData){const l=await U.queryLoadChildData(e);return l.children&&(l.children=l.children.map((e=>({...e,tempTitle:l.tempTitle?`${l.title}/${l.tempTitle}`:l.title})))),l}return e}function Z(e){var l;(null==(l=e.children)?void 0:l.every((e=>e.disabled)))&&(e.disabled=!0)}function ee({option:e}){var l;if((null==(l=e.children)?void 0:l.length)||Q.value&&!(null==e?void 0:e.isLeaf)){const l=U.wordbook.user_count_obj&&e[U.wordbook.user_count_obj]||"",t=l?`(${l})`:"";return c("span",null,[`${e.title}${t}`])}return c(N,{trigger:"hover"},{default:()=>c("span",null,[e.title]),trigger:()=>c("span",null,[e.title])})}function le(e){return e[U.wordbookChild.user_name_obj]||e[U.wordbook.parent_name_obj]||e.orgName||e.title||""}function te(e,l){return e.forEach((e=>{var t;(null==(t=e.children)?void 0:t.length)?te(e.children,l):l.push(e)})),l}function ne(e,l){return e&&0!==e.length?e.map((e=>{var t;const n=le(e),a=l?`${n}/${l}`:n;return{...e,tempTitle:l,children:(null==(t=e.children)?void 0:t.length)?ne(null==e?void 0:e.children,a):[]}})):[]}async function ae(){z.value=!!E.value.trim(),Q.value?R.value=await U.queryTreeSearch(E.value):R.value=I(G,E.value),F.value=R.value.length&&E.value?D(R.value):[]}function ue(){setTimeout((()=>{ae()}))}function ie(e,l){var t,n;switch(null!=(n=null==(t=null==U?void 0:U.treeSetting)?void 0:t.checkStrategy)?n:"child"){case"child":!function(e,l){for(let t=0,n=e.length;t<n;t++){const n=e[t];if(!n.disabled&&(!n.children||n.isLeaf)&&(l&&!A.value.includes(n.key)&&A.value.push(n.key),!l)){const e=A.value.findIndex((e=>e===n.key));A.value.splice(e,1)}n.children&&ie(n.children,l)}}(e,l);break;case"parent":!function(e,l){A.value=[];for(let t=0,n=e.length;t<n;t++){const n=e[t];if(!n.disabled&&!n.tempTitle&&(l&&!A.value.includes(n.key)&&A.value.push(n.key),!l)){const e=A.value.findIndex((e=>e===n.key));A.value.splice(e,1)}}}(e,l)}}function re(e){ie(R.value,e)}function ce(e){var l;for(let t=0,n=e.length;t<n;t++){const n=e[t],a=M.value.map((e=>e.key));A.value.includes(n.key)&&!a.includes(n.key)&&W.value.push({key:n.key,name:n.title,parentName:n.tempTitle,innerItemsNum:n.innerItemsNum}),(null==(l=n.children)?void 0:l.length)&&ce(n.children)}}function oe(e){A.value=e}function de(){A.value=[]}return t((()=>{var e,l;return null!=(l=null==(e=null==U?void 0:U.treeSetting)?void 0:e.checkStrategy)?l:"child"})),function e(l,t){var n,a,u,i;for(let r=0,c=l.length;r<c;r++){const c=l[r];switch(c.title=le(c),c.parentNode=t,c.key||(c.key=c[U.wordbookChild.user_id_obj]||c[U.wordbook.parent_id_obj]||Date.now()),(null==(n=c.children)?void 0:n.length)?(e(c.children,c),Z(c)):0===(null==(a=c.children)?void 0:a.length)&&Reflect.deleteProperty(c,"children"),null!=(i=null==(u=null==U?void 0:U.treeSetting)?void 0:u.checkStrategy)?i:"child"){case"child":V(c);break;case"parent":X(c)}}}(G,null),R.value=G,U.defaultList.length>0&&(Q.value?(U.defaultList.forEach((e=>A.value.push(e.key))),W.value=q(U.defaultList),M.value=q(U.defaultList)):(U.defaultList.forEach((e=>A.value.push(e))),ce(G))),n((()=>A),(e=>{W.value=M.value.filter((l=>e.value.includes(l.key))),e.value.length&&ce(Q.value?R.value:G),O.value=J.every((e=>W.value.findIndex((l=>l.key===e))>-1));const l=W.value.filter((l=>e.value.includes(l.key)));P("check",e.value),P("checkWithLevel",l)}),{deep:!0}),(l,t)=>(a(),u(i(b),{cols:2,class:"c-select-person"},{default:r((()=>[c(i(_),null,{default:r((()=>[c(i(w),{vertical:"",style:{"padding-right":"12px","border-right":"1px solid #e8e8e8"}},{default:r((()=>[c(i(C),{style:{"margin-bottom":"12px"}},{default:r((()=>[c(i(x),{clearable:"",value:E.value,"onUpdate:value":t[0]||(t[0]=e=>E.value=e),placeholder:e.searchPlaceholder,onClear:ue,onKeyup:o(ae,["enter"])},null,8,["value","placeholder","onKeyup"]),c(i(S),{type:"primary",onClick:ae},{default:r((()=>[d(s(e.searchButtonText),1)])),_:1})])),_:1}),e.multiple&&!z.value?h((a(),u(i(L),{key:0,checked:O.value,"onUpdate:checked":[t[1]||(t[1]=e=>O.value=e),re]},{default:r((()=>[d(" 全选 ")])),_:1},8,["checked"])),[[v,i(J).length<1e3]]):p("v-if",!0),p(' <SearchMultiple\r\n\t\t\t\t\tv-if="multiple && isSearch && checkStrategyResult === \'parent\'"\r\n\t\t\t\t\t:treeData="treeData"\r\n\t\t\t\t\t:checkedKeys="checkedKeys"\r\n\t\t\t\t\t@notifyCheck="notifyCheck"\r\n\t\t\t\t/> v-else '),c(i(T),f({"virtual-scroll":"",class:"c-select-person__scroll","checked-keys":A.value,"expanded-keys":F.value,"onUpdate:expanded-keys":t[2]||(t[2]=e=>F.value=e),checkable:e.multiple,cascade:"","allow-checking-not-loaded":"",selectable:!e.multiple,"selected-keys":A.value,"onUpdate:selected-keys":t[3]||(t[3]=e=>A.value=e),data:R.value,"check-strategy":"child","render-label":ee},e.treeSetting,{"onUpdate:checkedKeys":oe,onLoad:Y}),null,16,["checked-keys","expanded-keys","checkable","selectable","selected-keys","data"])])),_:1})])),_:1}),c(i(_),null,{default:r((()=>[c(i(w),{vertical:"",style:{"padding-left":"12px"}},{default:r((()=>[c(i(w),{justify:"space-between",style:{"margin-bottom":"20px"}},{default:r((()=>[e.showCount?(a(),y("span",B,"已选择:"+s(W.value.length),1)):p("v-if",!0),e.showClear?(a(),y("span",{key:1,class:"c-select-person__clear-btn",onClick:de},"清空")):p("v-if",!0)])),_:1}),k("div",K,[(a(!0),y(m,null,g(W.value,(e=>(a(),y("span",{class:"c-select-person__tag-item",key:e.key},[d(s(e.name)+" "+s(e.parentName?`(${e.parentName})`:e.innerItemsNum?`(${e.innerItemsNum})`:"")+" ",1),c(i(j),{class:"tag-close",component:i($),onClick:l=>function(e){A.value=A.value.filter((l=>l!==e.key))}(e)},null,8,["component","onClick"])])))),128))])])),_:1})])),_:1})])),_:1}))}});export{P as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{cloneDeep as
|
|
1
|
+
import{cloneDeep as n}from"lodash-es";function i(i,r){const c=n(i);return r.trim()?function(n,i){return e(n,[]).filter((n=>{var l;return null==(l=n.title)?void 0:l.includes(i.trim())}))}(c,r):(l(c,r),t(c))}function l(n,i){n.forEach((n=>{var e,t;if(n.visible=null==(e=n.title)?void 0:e.includes(i.trim()),null==(t=n.children)?void 0:t.length)if(l(n.children,i),n.visible)r(n.children);else{n.children.some((n=>n.visible))&&(n.visible=!0)}}))}function e(n,i){return n.forEach((n=>{var l;(null==(l=n.children)?void 0:l.length)?e(n.children,i):i.push(n)})),i}function r(n){n.forEach((n=>{var i;n.visible=!0,(null==(i=n.children)?void 0:i.length)&&r(n.children)}))}function t(n){return n.filter((n=>{var i;return!!n.visible&&((null==(i=n.children)?void 0:i.length)&&(n.children=t(n.children)),!0)}))}function c(n){const i=[];return function n(l){for(let e=0,r=l.length;e<r;e++){const r=l[e];r.children&&(i.push(r.key),n(r.children))}}(n),i}export{i as filterTree,c as getExpandedKeys};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.c-select-person{padding:0 12px}.c-select-person__scroll{height:308px;overflow-y:auto}.c-select-person__clear-btn{color:#5585f5;cursor:pointer}.c-select-person__tag-item{align-items:center;background:rgba(85,133,245,.08);border:1px solid rgba(85,133,245,.5);border-radius:4px;box-sizing:border-box;color:#5585f5;display:inline-flex;font-size:14px;height:24px;line-height:24px;list-style:none;margin:0 8px 4px 0;padding:0 6px;transition:all .3s cubic-bezier(.215,.61,.355,1);white-space:nowrap}.c-select-person__tag-item .tag-close{color:#5585f5;cursor:pointer;display:inline-block;font-size:14px;font-weight:700;margin-left:3px;transition:all .3s}.c-select-person__tag-item .tag-close:hover{color:rgba(85,133,245,.6)}.c-select-person__tag-item .tag-close:active{color:#fff}
|
|
1
|
+
.c-select-person{padding:0 12px}.c-select-person__scroll{height:308px;overflow-y:auto}.c-select-person__clear-btn{color:#5585f5;cursor:pointer}.c-select-person__tag-item{align-items:center;background:rgba(85,133,245,.08);border:1px solid rgba(85,133,245,.5);border-radius:4px;box-sizing:border-box;color:#5585f5;display:inline-flex;font-size:14px;height:24px;line-height:24px;list-style:none;margin:0 8px 4px 0;padding:0 6px;transition:all .3s cubic-bezier(.215,.61,.355,1);white-space:nowrap}.c-select-person__tag-item .tag-close{color:#5585f5;cursor:pointer;display:inline-block;font-size:14px;font-weight:700;margin-left:3px;transition:all .3s}.c-select-person__tag-item .tag-close:hover{color:rgba(85,133,245,.6)}.c-select-person__tag-item .tag-close:active{color:#fff}.c-select-person .select-person__multiple-search{display:flex;flex-direction:column}.c-select-person .select-person__multiple-search .n-checkbox{height:30px;overflow:hidden}
|
|
@@ -38,7 +38,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
38
38
|
fieldList: import("vue").Ref<{
|
|
39
39
|
[x: string]: any;
|
|
40
40
|
val_key: string;
|
|
41
|
-
html_type: "LINEBAR" | ({} & string) | "INPUT" | "SELECT" | "LINE_BREAKS" | "INPUT_NUMBER" | "REMOTE_SEARCH" | "DATE" | "LEVEL_SEARCH_CASCADER" | "SEARCH_CASCADER" | "COMBINATION" | "RADIO" | "CHECKBOX" | "SWITCH" | "SLIDER" | "COMPLEX" | "SEARCH" | "PHONE_TYPE" | "IDCARD_TYPE" | "SEARCH_MORE" | "DIGITAL" | "CHECKBOX_BLOCK" | "RADIO_BLOCK" | "DATE-INPUT" | "DATETIME-INPUT" | "SWITCH_COMPONENT" | "SLIDER_COMPONENT" | "LEVEL_SEARCH_CASCADE" | "SEARCH_CASCADE";
|
|
41
|
+
html_type: "LINEBAR" | ({} & string) | "INPUT" | "TEXTAREA" | "SELECT" | "LINE_BREAKS" | "INPUT_NUMBER" | "REMOTE_SEARCH" | "DATE" | "LEVEL_SEARCH_CASCADER" | "SEARCH_CASCADER" | "COMBINATION" | "RADIO" | "CHECKBOX" | "SWITCH" | "SLIDER" | "COMPLEX" | "SEARCH" | "PHONE_TYPE" | "IDCARD_TYPE" | "SEARCH_MORE" | "DIGITAL" | "CHECKBOX_BLOCK" | "RADIO_BLOCK" | "DATE-INPUT" | "DATETIME-INPUT" | "SWITCH_COMPONENT" | "SLIDER_COMPONENT" | "LEVEL_SEARCH_CASCADE" | "SEARCH_CASCADE";
|
|
42
42
|
annotation?: boolean | undefined;
|
|
43
43
|
val_key_unit?: string | undefined;
|
|
44
44
|
is_edit?: import("..").FormCommonState | undefined;
|
|
@@ -57,6 +57,8 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
57
57
|
vali_obj?: string | undefined;
|
|
58
58
|
max_value?: string | number | undefined;
|
|
59
59
|
min_value?: string | number | undefined;
|
|
60
|
+
min_date?: string | undefined;
|
|
61
|
+
max_date?: string | undefined;
|
|
60
62
|
min_length?: string | number | undefined;
|
|
61
63
|
max_length?: string | number | undefined;
|
|
62
64
|
decimal_length?: string | number | undefined;
|
|
@@ -139,6 +141,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
139
141
|
is_not_fold?: string | undefined;
|
|
140
142
|
remark?: string | undefined;
|
|
141
143
|
free_entry?: import("..").FormCommonState | undefined;
|
|
144
|
+
initialize_high?: number | undefined;
|
|
142
145
|
fieldType?: import("@formily/json-schema").SchemaTypes | undefined;
|
|
143
146
|
content?: string | import("..").FormRenderer | Record<string, import("..").FormRenderer> | undefined;
|
|
144
147
|
lazyRequest?: boolean | undefined;
|
|
@@ -1850,6 +1853,10 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1850
1853
|
linebarAutoHidden: {
|
|
1851
1854
|
type: BooleanConstructor;
|
|
1852
1855
|
};
|
|
1856
|
+
bordered: {
|
|
1857
|
+
type: BooleanConstructor;
|
|
1858
|
+
default: boolean;
|
|
1859
|
+
};
|
|
1853
1860
|
}, {
|
|
1854
1861
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
1855
1862
|
fieldList: {
|
|
@@ -1978,6 +1985,10 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1978
1985
|
linebarAutoHidden: {
|
|
1979
1986
|
type: BooleanConstructor;
|
|
1980
1987
|
};
|
|
1988
|
+
bordered: {
|
|
1989
|
+
type: BooleanConstructor;
|
|
1990
|
+
default: boolean;
|
|
1991
|
+
};
|
|
1981
1992
|
}>> & {
|
|
1982
1993
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
1983
1994
|
onScroll?: ((...args: any[]) => any) | undefined;
|
|
@@ -2133,7 +2144,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2133
2144
|
exposeEvent: {
|
|
2134
2145
|
validate(path?: string): Promise<void>;
|
|
2135
2146
|
getFormValues(needCombineExtendKey?: boolean): any;
|
|
2136
|
-
setFormValues(values: import("../../../es/shared/types").AnyObject, needSplitExtendKey?: boolean): void;
|
|
2147
|
+
setFormValues(values: import("../../../es/shared/types").AnyObject, needSplitExtendKey?: boolean, overwrite?: boolean): void;
|
|
2137
2148
|
setFieldState(path: string, handler: (field: Partial<Pick<import("@formily/core").Field<any, any, any, any>, import("@formily/core").NonFunctionPropertyNames<{
|
|
2138
2149
|
match: (pattern: import("@formily/path").Pattern) => boolean;
|
|
2139
2150
|
validate: (triggerType?: import("@formily/validator").ValidatorTriggerType | undefined) => any;
|
|
@@ -2421,6 +2432,10 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2421
2432
|
linebarAutoHidden: {
|
|
2422
2433
|
type: BooleanConstructor;
|
|
2423
2434
|
};
|
|
2435
|
+
bordered: {
|
|
2436
|
+
type: BooleanConstructor;
|
|
2437
|
+
default: boolean;
|
|
2438
|
+
};
|
|
2424
2439
|
}>> & {
|
|
2425
2440
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
2426
2441
|
onScroll?: ((...args: any[]) => any) | undefined;
|
|
@@ -2436,6 +2451,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2436
2451
|
consumer: boolean;
|
|
2437
2452
|
enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
|
|
2438
2453
|
linebarAutoHidden: boolean;
|
|
2454
|
+
bordered: boolean;
|
|
2439
2455
|
}>;
|
|
2440
2456
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
|
|
2441
2457
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("error" | "update")[], "error" | "update", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|