cnhis-design-vue 3.2.4-release.3 → 3.2.4-release.4
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/biunique-chat/src/api/index.js +1 -1
- package/es/components/callback/src/components/render/popupMaps.d.ts +15 -0
- package/es/components/form-config/index.d.ts +36 -0
- package/es/components/form-config/src/FormConfig.vue.d.ts +36 -0
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +15 -0
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +18 -0
- package/es/components/form-render/index.d.ts +15 -0
- package/es/components/form-render/src/FormRender.vue.d.ts +15 -0
- package/es/components/form-render/src/FormRender.vue2.js +1 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +15 -0
- package/es/components/form-render/src/components/renderer/formItem.js +1 -1
- 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/constants/index.d.ts +2 -1
- package/es/components/form-render/src/constants/index.js +1 -1
- package/es/components/form-render/src/hooks/useComplexOptions.js +1 -1
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
- package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +2 -0
- package/es/components/form-render/src/hooks/useFieldNormalize.js +1 -1
- package/es/components/form-render/src/types/index.d.ts +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue2.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/separateUtils.js +1 -1
- package/es/components/iho-table/src/types/index.d.ts +1 -0
- package/es/components/info-header/index.d.ts +35 -0
- package/es/components/info-header/src/InfoHeader.vue.d.ts +35 -0
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +1 -0
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +1 -0
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +16 -0
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +15 -0
- package/es/components/shortcut-setter/index.d.ts +15 -0
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +15 -0
- package/es/components/tooth-bitmap/index.d.ts +4 -7
- package/es/components/tooth-bitmap/src/ToothBitmap.vue.d.ts +4 -7
- package/es/components/tooth-bitmap/src/ToothBitmap.vue2.js +1 -1
- package/es/shared/hooks/useAsyncQueue/index.d.ts +1 -1
- package/es/shared/hooks/useFormRequest/index.d.ts +1 -0
- package/es/shared/hooks/useFormRequest/index.js +1 -1
- package/es/shared/hooks/useFormRequest/types.d.ts +2 -0
- package/es/shared/hooks/useLevelSearchCascader.js +1 -1
- package/es/shared/package.json.js +1 -1
- package/es/shared/utils/index.d.ts +1 -0
- package/es/shared/utils/index.js +1 -1
- package/package.json +2 -2
|
@@ -174,6 +174,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
174
174
|
linebarWidth: string | number;
|
|
175
175
|
linebarDirection: "horizontal" | "vertical";
|
|
176
176
|
linebarTextDirection: "horizontal" | "vertical";
|
|
177
|
+
autoWidth: number | boolean;
|
|
177
178
|
}>>>;
|
|
178
179
|
};
|
|
179
180
|
}, {
|
|
@@ -349,6 +350,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
349
350
|
linebarWidth: string | number;
|
|
350
351
|
linebarDirection: "horizontal" | "vertical";
|
|
351
352
|
linebarTextDirection: "horizontal" | "vertical";
|
|
353
|
+
autoWidth: number | boolean;
|
|
352
354
|
}>>>;
|
|
353
355
|
};
|
|
354
356
|
}>> & {
|
|
@@ -529,6 +531,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
529
531
|
linebarWidth: string | number;
|
|
530
532
|
linebarDirection: "horizontal" | "vertical";
|
|
531
533
|
linebarTextDirection: "horizontal" | "vertical";
|
|
534
|
+
autoWidth: number | boolean;
|
|
532
535
|
}>>;
|
|
533
536
|
};
|
|
534
537
|
themeOverrides: import("naive-ui").GlobalThemeOverrides;
|
|
@@ -786,6 +789,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
786
789
|
linebarWidth: string | number;
|
|
787
790
|
linebarDirection: "horizontal" | "vertical";
|
|
788
791
|
linebarTextDirection: "horizontal" | "vertical";
|
|
792
|
+
autoWidth: number | boolean;
|
|
789
793
|
}>) => Record<string, import("@formily/json-schema").Stringify<{
|
|
790
794
|
[key: symbol]: any;
|
|
791
795
|
[key: `x-${string}`]: any;
|
|
@@ -2821,6 +2825,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2821
2825
|
type: (NumberConstructor | StringConstructor)[];
|
|
2822
2826
|
default: number;
|
|
2823
2827
|
};
|
|
2828
|
+
autoWidth: {
|
|
2829
|
+
type: (BooleanConstructor | NumberConstructor)[];
|
|
2830
|
+
default: boolean;
|
|
2831
|
+
};
|
|
2824
2832
|
}, {
|
|
2825
2833
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
2826
2834
|
fieldList: {
|
|
@@ -3008,6 +3016,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3008
3016
|
type: (NumberConstructor | StringConstructor)[];
|
|
3009
3017
|
default: number;
|
|
3010
3018
|
};
|
|
3019
|
+
autoWidth: {
|
|
3020
|
+
type: (BooleanConstructor | NumberConstructor)[];
|
|
3021
|
+
default: boolean;
|
|
3022
|
+
};
|
|
3011
3023
|
}>> & {
|
|
3012
3024
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
3013
3025
|
onScroll?: ((...args: any[]) => any) | undefined;
|
|
@@ -3018,6 +3030,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3018
3030
|
cssVars: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
3019
3031
|
nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
|
|
3020
3032
|
formRenderRef: import("vue").Ref<HTMLElement | undefined>;
|
|
3033
|
+
formWidth: import("vue").Ref<number>;
|
|
3021
3034
|
formHeight: import("vue").ComputedRef<string>;
|
|
3022
3035
|
SchemaField: import("vue").DefineComponent<Record<keyof import("@formily/vue").ISchemaFieldProps, any>, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<Record<keyof import("@formily/vue").ISchemaFieldProps, any>>>, {
|
|
3023
3036
|
name: any;
|
|
@@ -3181,6 +3194,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3181
3194
|
linebarWidth: string | number;
|
|
3182
3195
|
linebarDirection: "horizontal" | "vertical";
|
|
3183
3196
|
linebarTextDirection: "horizontal" | "vertical";
|
|
3197
|
+
autoWidth: number | boolean;
|
|
3184
3198
|
}>) => Record<string, import("@formily/json-schema").Stringify<{
|
|
3185
3199
|
[key: symbol]: any;
|
|
3186
3200
|
[key: `x-${string}`]: any;
|
|
@@ -3544,6 +3558,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3544
3558
|
type: (NumberConstructor | StringConstructor)[];
|
|
3545
3559
|
default: number;
|
|
3546
3560
|
};
|
|
3561
|
+
autoWidth: {
|
|
3562
|
+
type: (BooleanConstructor | NumberConstructor)[];
|
|
3563
|
+
default: boolean;
|
|
3564
|
+
};
|
|
3547
3565
|
}>> & {
|
|
3548
3566
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
3549
3567
|
onScroll?: ((...args: any[]) => any) | undefined;
|
|
@@ -3571,6 +3589,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3571
3589
|
linebarWidth: string | number;
|
|
3572
3590
|
linebarDirection: "horizontal" | "vertical";
|
|
3573
3591
|
linebarTextDirection: "horizontal" | "vertical";
|
|
3592
|
+
autoWidth: number | boolean;
|
|
3574
3593
|
operationalFormInit: boolean;
|
|
3575
3594
|
}>;
|
|
3576
3595
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
|
|
@@ -3881,6 +3900,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3881
3900
|
type: (NumberConstructor | StringConstructor)[];
|
|
3882
3901
|
default: number;
|
|
3883
3902
|
};
|
|
3903
|
+
autoWidth: {
|
|
3904
|
+
type: (BooleanConstructor | NumberConstructor)[];
|
|
3905
|
+
default: boolean;
|
|
3906
|
+
};
|
|
3884
3907
|
}, {
|
|
3885
3908
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
3886
3909
|
fieldList: {
|
|
@@ -4068,6 +4091,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4068
4091
|
type: (NumberConstructor | StringConstructor)[];
|
|
4069
4092
|
default: number;
|
|
4070
4093
|
};
|
|
4094
|
+
autoWidth: {
|
|
4095
|
+
type: (BooleanConstructor | NumberConstructor)[];
|
|
4096
|
+
default: boolean;
|
|
4097
|
+
};
|
|
4071
4098
|
}>> & {
|
|
4072
4099
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
4073
4100
|
onScroll?: ((...args: any[]) => any) | undefined;
|
|
@@ -4078,6 +4105,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4078
4105
|
cssVars: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
4079
4106
|
nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
|
|
4080
4107
|
formRenderRef: import("vue").Ref<HTMLElement | undefined>;
|
|
4108
|
+
formWidth: import("vue").Ref<number>;
|
|
4081
4109
|
formHeight: import("vue").ComputedRef<string>;
|
|
4082
4110
|
SchemaField: import("vue").DefineComponent<Record<keyof import("@formily/vue").ISchemaFieldProps, any>, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<Record<keyof import("@formily/vue").ISchemaFieldProps, any>>>, {
|
|
4083
4111
|
name: any;
|
|
@@ -4241,6 +4269,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4241
4269
|
linebarWidth: string | number;
|
|
4242
4270
|
linebarDirection: "horizontal" | "vertical";
|
|
4243
4271
|
linebarTextDirection: "horizontal" | "vertical";
|
|
4272
|
+
autoWidth: number | boolean;
|
|
4244
4273
|
}>) => Record<string, import("@formily/json-schema").Stringify<{
|
|
4245
4274
|
[key: symbol]: any;
|
|
4246
4275
|
[key: `x-${string}`]: any;
|
|
@@ -4604,6 +4633,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4604
4633
|
type: (NumberConstructor | StringConstructor)[];
|
|
4605
4634
|
default: number;
|
|
4606
4635
|
};
|
|
4636
|
+
autoWidth: {
|
|
4637
|
+
type: (BooleanConstructor | NumberConstructor)[];
|
|
4638
|
+
default: boolean;
|
|
4639
|
+
};
|
|
4607
4640
|
}>> & {
|
|
4608
4641
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
4609
4642
|
onScroll?: ((...args: any[]) => any) | undefined;
|
|
@@ -4631,6 +4664,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4631
4664
|
linebarWidth: string | number;
|
|
4632
4665
|
linebarDirection: "horizontal" | "vertical";
|
|
4633
4666
|
linebarTextDirection: "horizontal" | "vertical";
|
|
4667
|
+
autoWidth: number | boolean;
|
|
4634
4668
|
operationalFormInit: boolean;
|
|
4635
4669
|
}>;
|
|
4636
4670
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
|
|
@@ -4819,6 +4853,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4819
4853
|
linebarWidth: string | number;
|
|
4820
4854
|
linebarDirection: "horizontal" | "vertical";
|
|
4821
4855
|
linebarTextDirection: "horizontal" | "vertical";
|
|
4856
|
+
autoWidth: number | boolean;
|
|
4822
4857
|
}>>>;
|
|
4823
4858
|
};
|
|
4824
4859
|
}>> & {
|
|
@@ -140,6 +140,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
140
140
|
linebarWidth: string | number;
|
|
141
141
|
linebarDirection: "horizontal" | "vertical";
|
|
142
142
|
linebarTextDirection: "horizontal" | "vertical";
|
|
143
|
+
autoWidth: number | boolean;
|
|
143
144
|
}>) => Record<string, import("@formily/vue").Stringify<{
|
|
144
145
|
[key: symbol]: any;
|
|
145
146
|
[key: `x-${string}`]: any;
|
|
@@ -228,6 +228,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
228
228
|
linebarWidth: string | number;
|
|
229
229
|
linebarDirection: "horizontal" | "vertical";
|
|
230
230
|
linebarTextDirection: "horizontal" | "vertical";
|
|
231
|
+
autoWidth: number | boolean;
|
|
231
232
|
}>) => Record<string, import("@formily/json-schema").Stringify<{
|
|
232
233
|
[key: symbol]: any;
|
|
233
234
|
[key: `x-${string}`]: any;
|
|
@@ -295,6 +295,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
295
295
|
linebarWidth: string | number;
|
|
296
296
|
linebarDirection: "horizontal" | "vertical";
|
|
297
297
|
linebarTextDirection: "horizontal" | "vertical";
|
|
298
|
+
autoWidth: number | boolean;
|
|
298
299
|
}>) => Record<string, import("@formily/json-schema").Stringify<{
|
|
299
300
|
[key: symbol]: any;
|
|
300
301
|
[key: `x-${string}`]: any;
|
|
@@ -2330,6 +2331,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2330
2331
|
type: (NumberConstructor | StringConstructor)[];
|
|
2331
2332
|
default: number;
|
|
2332
2333
|
};
|
|
2334
|
+
autoWidth: {
|
|
2335
|
+
type: (BooleanConstructor | NumberConstructor)[];
|
|
2336
|
+
default: boolean;
|
|
2337
|
+
};
|
|
2333
2338
|
}, {
|
|
2334
2339
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
2335
2340
|
fieldList: {
|
|
@@ -2517,6 +2522,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2517
2522
|
type: (NumberConstructor | StringConstructor)[];
|
|
2518
2523
|
default: number;
|
|
2519
2524
|
};
|
|
2525
|
+
autoWidth: {
|
|
2526
|
+
type: (BooleanConstructor | NumberConstructor)[];
|
|
2527
|
+
default: boolean;
|
|
2528
|
+
};
|
|
2520
2529
|
}>> & {
|
|
2521
2530
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
2522
2531
|
onScroll?: ((...args: any[]) => any) | undefined;
|
|
@@ -2527,6 +2536,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2527
2536
|
cssVars: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
2528
2537
|
nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
|
|
2529
2538
|
formRenderRef: import("vue").Ref<HTMLElement | undefined>;
|
|
2539
|
+
formWidth: import("vue").Ref<number>;
|
|
2530
2540
|
formHeight: import("vue").ComputedRef<string>;
|
|
2531
2541
|
SchemaField: import("vue").DefineComponent<Record<keyof import("@formily/vue").ISchemaFieldProps, any>, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<Record<keyof import("@formily/vue").ISchemaFieldProps, any>>>, {
|
|
2532
2542
|
name: any;
|
|
@@ -2690,6 +2700,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2690
2700
|
linebarWidth: string | number;
|
|
2691
2701
|
linebarDirection: "horizontal" | "vertical";
|
|
2692
2702
|
linebarTextDirection: "horizontal" | "vertical";
|
|
2703
|
+
autoWidth: number | boolean;
|
|
2693
2704
|
}>) => Record<string, import("@formily/json-schema").Stringify<{
|
|
2694
2705
|
[key: symbol]: any;
|
|
2695
2706
|
[key: `x-${string}`]: any;
|
|
@@ -3053,6 +3064,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3053
3064
|
type: (NumberConstructor | StringConstructor)[];
|
|
3054
3065
|
default: number;
|
|
3055
3066
|
};
|
|
3067
|
+
autoWidth: {
|
|
3068
|
+
type: (BooleanConstructor | NumberConstructor)[];
|
|
3069
|
+
default: boolean;
|
|
3070
|
+
};
|
|
3056
3071
|
}>> & {
|
|
3057
3072
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
3058
3073
|
onScroll?: ((...args: any[]) => any) | undefined;
|
|
@@ -3080,6 +3095,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3080
3095
|
linebarWidth: string | number;
|
|
3081
3096
|
linebarDirection: "horizontal" | "vertical";
|
|
3082
3097
|
linebarTextDirection: "horizontal" | "vertical";
|
|
3098
|
+
autoWidth: number | boolean;
|
|
3083
3099
|
operationalFormInit: boolean;
|
|
3084
3100
|
}>;
|
|
3085
3101
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
|
|
@@ -240,6 +240,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
240
240
|
type: (NumberConstructor | StringConstructor)[];
|
|
241
241
|
default: number;
|
|
242
242
|
};
|
|
243
|
+
autoWidth: {
|
|
244
|
+
type: (BooleanConstructor | NumberConstructor)[];
|
|
245
|
+
default: boolean;
|
|
246
|
+
};
|
|
243
247
|
}, {
|
|
244
248
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
245
249
|
fieldList: {
|
|
@@ -427,6 +431,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
427
431
|
type: (NumberConstructor | StringConstructor)[];
|
|
428
432
|
default: number;
|
|
429
433
|
};
|
|
434
|
+
autoWidth: {
|
|
435
|
+
type: (BooleanConstructor | NumberConstructor)[];
|
|
436
|
+
default: boolean;
|
|
437
|
+
};
|
|
430
438
|
}>> & {
|
|
431
439
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
432
440
|
onScroll?: ((...args: any[]) => any) | undefined;
|
|
@@ -437,6 +445,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
437
445
|
cssVars: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
438
446
|
nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
|
|
439
447
|
formRenderRef: import("vue").Ref<HTMLElement | undefined>;
|
|
448
|
+
formWidth: import("vue").Ref<number>;
|
|
440
449
|
formHeight: import("vue").ComputedRef<string>;
|
|
441
450
|
SchemaField: import("vue").DefineComponent<Record<keyof import("@formily/vue").ISchemaFieldProps, any>, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<Record<keyof import("@formily/vue").ISchemaFieldProps, any>>>, {
|
|
442
451
|
name: any;
|
|
@@ -600,6 +609,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
600
609
|
linebarWidth: string | number;
|
|
601
610
|
linebarDirection: "horizontal" | "vertical";
|
|
602
611
|
linebarTextDirection: "horizontal" | "vertical";
|
|
612
|
+
autoWidth: number | boolean;
|
|
603
613
|
}>) => Record<string, import("@formily/json-schema").Stringify<{
|
|
604
614
|
[key: symbol]: any;
|
|
605
615
|
[key: `x-${string}`]: any;
|
|
@@ -963,6 +973,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
963
973
|
type: (NumberConstructor | StringConstructor)[];
|
|
964
974
|
default: number;
|
|
965
975
|
};
|
|
976
|
+
autoWidth: {
|
|
977
|
+
type: (BooleanConstructor | NumberConstructor)[];
|
|
978
|
+
default: boolean;
|
|
979
|
+
};
|
|
966
980
|
}>> & {
|
|
967
981
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
968
982
|
onScroll?: ((...args: any[]) => any) | undefined;
|
|
@@ -990,6 +1004,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
990
1004
|
linebarWidth: string | number;
|
|
991
1005
|
linebarDirection: "horizontal" | "vertical";
|
|
992
1006
|
linebarTextDirection: "horizontal" | "vertical";
|
|
1007
|
+
autoWidth: number | boolean;
|
|
993
1008
|
operationalFormInit: boolean;
|
|
994
1009
|
}>;
|
|
995
1010
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
|
|
@@ -1973,6 +1973,10 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1973
1973
|
type: (NumberConstructor | StringConstructor)[];
|
|
1974
1974
|
default: number;
|
|
1975
1975
|
};
|
|
1976
|
+
autoWidth: {
|
|
1977
|
+
type: (BooleanConstructor | NumberConstructor)[];
|
|
1978
|
+
default: boolean;
|
|
1979
|
+
};
|
|
1976
1980
|
}, {
|
|
1977
1981
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
1978
1982
|
fieldList: {
|
|
@@ -2160,6 +2164,10 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2160
2164
|
type: (NumberConstructor | StringConstructor)[];
|
|
2161
2165
|
default: number;
|
|
2162
2166
|
};
|
|
2167
|
+
autoWidth: {
|
|
2168
|
+
type: (BooleanConstructor | NumberConstructor)[];
|
|
2169
|
+
default: boolean;
|
|
2170
|
+
};
|
|
2163
2171
|
}>> & {
|
|
2164
2172
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
2165
2173
|
onScroll?: ((...args: any[]) => any) | undefined;
|
|
@@ -2170,6 +2178,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2170
2178
|
cssVars: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
2171
2179
|
nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
|
|
2172
2180
|
formRenderRef: import("vue").Ref<HTMLElement | undefined>;
|
|
2181
|
+
formWidth: import("vue").Ref<number>;
|
|
2173
2182
|
formHeight: import("vue").ComputedRef<string>;
|
|
2174
2183
|
SchemaField: import("vue").DefineComponent<Record<keyof import("@formily/vue").ISchemaFieldProps, any>, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<Record<keyof import("@formily/vue").ISchemaFieldProps, any>>>, {
|
|
2175
2184
|
name: any;
|
|
@@ -2333,6 +2342,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2333
2342
|
linebarWidth: string | number;
|
|
2334
2343
|
linebarDirection: "horizontal" | "vertical";
|
|
2335
2344
|
linebarTextDirection: "horizontal" | "vertical";
|
|
2345
|
+
autoWidth: number | boolean;
|
|
2336
2346
|
}>) => Record<string, import("@formily/json-schema").Stringify<{
|
|
2337
2347
|
[key: symbol]: any;
|
|
2338
2348
|
[key: `x-${string}`]: any;
|
|
@@ -2696,6 +2706,10 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2696
2706
|
type: (NumberConstructor | StringConstructor)[];
|
|
2697
2707
|
default: number;
|
|
2698
2708
|
};
|
|
2709
|
+
autoWidth: {
|
|
2710
|
+
type: (BooleanConstructor | NumberConstructor)[];
|
|
2711
|
+
default: boolean;
|
|
2712
|
+
};
|
|
2699
2713
|
}>> & {
|
|
2700
2714
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
2701
2715
|
onScroll?: ((...args: any[]) => any) | undefined;
|
|
@@ -2723,6 +2737,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2723
2737
|
linebarWidth: string | number;
|
|
2724
2738
|
linebarDirection: "horizontal" | "vertical";
|
|
2725
2739
|
linebarTextDirection: "horizontal" | "vertical";
|
|
2740
|
+
autoWidth: number | boolean;
|
|
2726
2741
|
operationalFormInit: boolean;
|
|
2727
2742
|
}>;
|
|
2728
2743
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
|
|
@@ -1976,6 +1976,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1976
1976
|
type: (NumberConstructor | StringConstructor)[];
|
|
1977
1977
|
default: number;
|
|
1978
1978
|
};
|
|
1979
|
+
autoWidth: {
|
|
1980
|
+
type: (BooleanConstructor | NumberConstructor)[];
|
|
1981
|
+
default: boolean;
|
|
1982
|
+
};
|
|
1979
1983
|
}, {
|
|
1980
1984
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
1981
1985
|
fieldList: {
|
|
@@ -2163,6 +2167,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2163
2167
|
type: (NumberConstructor | StringConstructor)[];
|
|
2164
2168
|
default: number;
|
|
2165
2169
|
};
|
|
2170
|
+
autoWidth: {
|
|
2171
|
+
type: (BooleanConstructor | NumberConstructor)[];
|
|
2172
|
+
default: boolean;
|
|
2173
|
+
};
|
|
2166
2174
|
}>> & {
|
|
2167
2175
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
2168
2176
|
onScroll?: ((...args: any[]) => any) | undefined;
|
|
@@ -2173,6 +2181,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2173
2181
|
cssVars: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
2174
2182
|
nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
|
|
2175
2183
|
formRenderRef: import("vue").Ref<HTMLElement | undefined>;
|
|
2184
|
+
formWidth: import("vue").Ref<number>;
|
|
2176
2185
|
formHeight: import("vue").ComputedRef<string>;
|
|
2177
2186
|
SchemaField: import("vue").DefineComponent<Record<keyof import("@formily/vue").ISchemaFieldProps, any>, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<Record<keyof import("@formily/vue").ISchemaFieldProps, any>>>, {
|
|
2178
2187
|
name: any;
|
|
@@ -2336,6 +2345,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2336
2345
|
linebarWidth: string | number;
|
|
2337
2346
|
linebarDirection: "horizontal" | "vertical";
|
|
2338
2347
|
linebarTextDirection: "horizontal" | "vertical";
|
|
2348
|
+
autoWidth: number | boolean;
|
|
2339
2349
|
}>) => Record<string, import("@formily/json-schema").Stringify<{
|
|
2340
2350
|
[key: symbol]: any;
|
|
2341
2351
|
[key: `x-${string}`]: any;
|
|
@@ -2699,6 +2709,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2699
2709
|
type: (NumberConstructor | StringConstructor)[];
|
|
2700
2710
|
default: number;
|
|
2701
2711
|
};
|
|
2712
|
+
autoWidth: {
|
|
2713
|
+
type: (BooleanConstructor | NumberConstructor)[];
|
|
2714
|
+
default: boolean;
|
|
2715
|
+
};
|
|
2702
2716
|
}>> & {
|
|
2703
2717
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
2704
2718
|
onScroll?: ((...args: any[]) => any) | undefined;
|
|
@@ -2726,6 +2740,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2726
2740
|
linebarWidth: string | number;
|
|
2727
2741
|
linebarDirection: "horizontal" | "vertical";
|
|
2728
2742
|
linebarTextDirection: "horizontal" | "vertical";
|
|
2743
|
+
autoWidth: number | boolean;
|
|
2729
2744
|
operationalFormInit: boolean;
|
|
2730
2745
|
}>;
|
|
2731
2746
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
|
|
@@ -17,16 +17,13 @@ declare const ToothBitmap: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
17
17
|
cssVars: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
18
18
|
images: import("vue").Ref<any[]>;
|
|
19
19
|
importImages: Record<string, () => Promise<unknown>>;
|
|
20
|
-
quadrants:
|
|
20
|
+
quadrants: string[];
|
|
21
21
|
numbers: number[];
|
|
22
22
|
keys: import("vue").Ref<string[]>;
|
|
23
|
-
getImg: (
|
|
24
|
-
name: string;
|
|
25
|
-
src: string;
|
|
26
|
-
};
|
|
23
|
+
getImg: (position: string, num: number) => string;
|
|
27
24
|
getLetter: (num: number) => "B" | "D" | "C" | "" | "A" | "E";
|
|
28
|
-
hasBorder: (
|
|
29
|
-
handleSelect: (
|
|
25
|
+
hasBorder: (position: string, num: number, type: "img" | "num" | "letter") => boolean;
|
|
26
|
+
handleSelect: (position: string, num: number, type: "num" | "letter") => void;
|
|
30
27
|
confirm: () => void;
|
|
31
28
|
reset: () => void;
|
|
32
29
|
selectAll: () => void;
|
|
@@ -17,16 +17,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
17
17
|
cssVars: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
18
18
|
images: import("vue").Ref<any[]>;
|
|
19
19
|
importImages: Record<string, () => Promise<unknown>>;
|
|
20
|
-
quadrants:
|
|
20
|
+
quadrants: string[];
|
|
21
21
|
numbers: number[];
|
|
22
22
|
keys: import("vue").Ref<string[]>;
|
|
23
|
-
getImg: (
|
|
24
|
-
name: string;
|
|
25
|
-
src: string;
|
|
26
|
-
};
|
|
23
|
+
getImg: (position: string, num: number) => string;
|
|
27
24
|
getLetter: (num: number) => "B" | "D" | "C" | "" | "A" | "E";
|
|
28
|
-
hasBorder: (
|
|
29
|
-
handleSelect: (
|
|
25
|
+
hasBorder: (position: string, num: number, type: 'img' | 'num' | 'letter') => boolean;
|
|
26
|
+
handleSelect: (position: string, num: number, type: 'num' | 'letter') => void;
|
|
30
27
|
confirm: () => void;
|
|
31
28
|
reset: () => void;
|
|
32
29
|
selectAll: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as s,ref as t,watch as e,openBlock as o,createElementBlock as a,normalizeStyle as r,unref as i,
|
|
1
|
+
import{defineComponent as s,ref as t,watch as e,openBlock as o,createElementBlock as a,normalizeStyle as r,unref as i,Fragment as n,renderList as h,createElementVNode as m,normalizeClass as g,toDisplayString as p,createCommentVNode as l,renderSlot as d,createVNode as u,withCtx as c,createTextVNode as b}from"vue";import{NButton as j}from"naive-ui";import{range as v}from"lodash-es";import{useTheme as f}from"../../../shared/hooks/useTheme.js";import"@vueuse/core";import"date-fns";import"@vue/shared";import"../../../shared/utils/index.js";import"@vueuse/shared";import"../../../shared/hooks/selectHooks/useSearchContent.js";import"@vicons/ionicons5";const k={key:0,class:"quadrant-wrapper"},$=["src"],C=["onClick"],y=["onClick"],_={class:"btn-wrapper"};var x=s({__name:"ToothBitmap",props:{value:{type:Array,default:()=>[]}},emits:["update:value"],setup(s,{expose:x,emit:w}){const z=s,q=f(),S=t([]),A=Object.assign({"../../../shared/assets/img/tooth/l-b-1.png":()=>import("../../../shared/assets/img/tooth/l-b-1.png.js"),"../../../shared/assets/img/tooth/l-b-2.png":()=>import("../../../shared/assets/img/tooth/l-b-2.png.js"),"../../../shared/assets/img/tooth/l-b-3.png":()=>import("../../../shared/assets/img/tooth/l-b-3.png.js"),"../../../shared/assets/img/tooth/l-b-4.png":()=>import("../../../shared/assets/img/tooth/l-b-4.png.js"),"../../../shared/assets/img/tooth/l-b-5.png":()=>import("../../../shared/assets/img/tooth/l-b-5.png.js"),"../../../shared/assets/img/tooth/l-b-6.png":()=>import("../../../shared/assets/img/tooth/l-b-6.png.js"),"../../../shared/assets/img/tooth/l-b-7.png":()=>import("../../../shared/assets/img/tooth/l-b-7.png.js"),"../../../shared/assets/img/tooth/l-b-8.png":()=>import("../../../shared/assets/img/tooth/l-b-8.png.js"),"../../../shared/assets/img/tooth/l-t-1.png":()=>import("../../../shared/assets/img/tooth/l-t-1.png.js"),"../../../shared/assets/img/tooth/l-t-2.png":()=>import("../../../shared/assets/img/tooth/l-t-2.png.js"),"../../../shared/assets/img/tooth/l-t-3.png":()=>import("../../../shared/assets/img/tooth/l-t-3.png.js"),"../../../shared/assets/img/tooth/l-t-4.png":()=>import("../../../shared/assets/img/tooth/l-t-4.png.js"),"../../../shared/assets/img/tooth/l-t-5.png":()=>import("../../../shared/assets/img/tooth/l-t-5.png.js"),"../../../shared/assets/img/tooth/l-t-6.png":()=>import("../../../shared/assets/img/tooth/l-t-6.png.js"),"../../../shared/assets/img/tooth/l-t-7.png":()=>import("../../../shared/assets/img/tooth/l-t-7.png.js"),"../../../shared/assets/img/tooth/l-t-8.png":()=>import("../../../shared/assets/img/tooth/l-t-8.png.js"),"../../../shared/assets/img/tooth/r-b-1.png":()=>import("../../../shared/assets/img/tooth/r-b-1.png.js"),"../../../shared/assets/img/tooth/r-b-2.png":()=>import("../../../shared/assets/img/tooth/r-b-2.png.js"),"../../../shared/assets/img/tooth/r-b-3.png":()=>import("../../../shared/assets/img/tooth/r-b-3.png.js"),"../../../shared/assets/img/tooth/r-b-4.png":()=>import("../../../shared/assets/img/tooth/r-b-4.png.js"),"../../../shared/assets/img/tooth/r-b-5.png":()=>import("../../../shared/assets/img/tooth/r-b-5.png.js"),"../../../shared/assets/img/tooth/r-b-6.png":()=>import("../../../shared/assets/img/tooth/r-b-6.png.js"),"../../../shared/assets/img/tooth/r-b-7.png":()=>import("../../../shared/assets/img/tooth/r-b-7.png.js"),"../../../shared/assets/img/tooth/r-b-8.png":()=>import("../../../shared/assets/img/tooth/r-b-8.png.js"),"../../../shared/assets/img/tooth/r-t-1.png":()=>import("../../../shared/assets/img/tooth/r-t-1.png.js"),"../../../shared/assets/img/tooth/r-t-2.png":()=>import("../../../shared/assets/img/tooth/r-t-2.png.js"),"../../../shared/assets/img/tooth/r-t-3.png":()=>import("../../../shared/assets/img/tooth/r-t-3.png.js"),"../../../shared/assets/img/tooth/r-t-4.png":()=>import("../../../shared/assets/img/tooth/r-t-4.png.js"),"../../../shared/assets/img/tooth/r-t-5.png":()=>import("../../../shared/assets/img/tooth/r-t-5.png.js"),"../../../shared/assets/img/tooth/r-t-6.png":()=>import("../../../shared/assets/img/tooth/r-t-6.png.js"),"../../../shared/assets/img/tooth/r-t-7.png":()=>import("../../../shared/assets/img/tooth/r-t-7.png.js"),"../../../shared/assets/img/tooth/r-t-8.png":()=>import("../../../shared/assets/img/tooth/r-t-8.png.js")});for(const s in A){const t=s.replace(/^\.\/(.*)\.\w+$/,"$1").match(/\/([^/]+)\.png$/)[1];A[s]().then((s=>{S.value.push({name:t,src:s.default})}))}const B=["r-t","l-t","r-b","l-b"],D=v(1,9),O=t([]);function T(s,t){var e;const o={name:"",src:""};return null==(e=S.value)||e.some((e=>{const{name:a}=e,[r,i,n]=a.split("-");return s===`${r}-${i}`&&n==t&&Object.assign(o,e),o.src})),o.src}function E(s){switch(s){case 1:return"A";case 2:return"B";case 3:return"C";case 4:return"D";case 5:return"E";default:return""}}function H(s,t,e){return O.value.some((o=>{const[a,r,i]=o.split("-"),n=s===`${a}-${r}`,h=n&&t===+i,m=E(t),g=m&&n&&m==i;return"num"===e&&h||"letter"===e&&g||"img"===e&&(h||g)}))}function I(s,t,e){if(t>5&&"letter"===e)return;let o;const a=E(t),r=O.value.findIndex((e=>{const[r,i,n]=e.split("-");return o=n,s===`${r}-${i}`&&[t.toString(),a].includes(n)})),i=`${s}-${"letter"===e?a:t}`;r>-1?"letter"===e&&a==o||"num"===e&&t==o?O.value.splice(r,1):"letter"===e&&t==o||"num"===e&&a==o?O.value.splice(r,1,i):O.value.push(i):O.value.push(i)}function F(){w("update:value",O.value)}function G(){O.value=[]}function J(){O.value=S.value.map((s=>s.name))}function K(){O.value=z.value.slice()}return e((()=>z.value),(s=>{O.value=s.slice()}),{immediate:!0}),x({getSelectedData:()=>O.value}),(s,t)=>(o(),a("div",{class:"c-tooth-bitmap",style:r(i(q))},[S.value.length>0?(o(),a("div",k,[(o(),a(n,null,h(B,(s=>m("div",{class:"quadrant-box",key:s},[(o(!0),a(n,null,h(i(D),(t=>(o(),a("div",{class:"quadrant-box__col",key:t},[m("div",{class:g({img:!0,border:H(s,t,"img")})},[m("img",{src:T(s,t),alt:""},null,8,$)],2),m("span",{class:g({border:H(s,t,"num")}),onClick:()=>I(s,t,"num")},p(t),11,C),m("span",{class:g({border:H(s,t,"letter")}),onClick:()=>I(s,t,"letter")},p(E(t)),11,y)])))),128))]))),64))])):l("v-if",!0),m("div",_,[d(s.$slots,"footer",{},(()=>[u(i(j),{size:"small",type:"primary",onClick:F},{default:c((()=>[b("确定")])),_:1}),u(i(j),{size:"small",onClick:G},{default:c((()=>[b("重置")])),_:1}),u(i(j),{size:"small",onClick:J},{default:c((()=>[b("全选")])),_:1}),u(i(j),{size:"small",onClick:K},{default:c((()=>[b("取消")])),_:1})]))])],4))}});export{x as default};
|
|
@@ -11,7 +11,7 @@ export declare class AsyncQueue<T = any, K = any, R = any> {
|
|
|
11
11
|
readonly name: string;
|
|
12
12
|
private readonly processor;
|
|
13
13
|
private readonly getKey;
|
|
14
|
-
|
|
14
|
+
parallelism: number;
|
|
15
15
|
private readonly _queued;
|
|
16
16
|
private readonly _entries;
|
|
17
17
|
private _activeTasks;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{isObject as e}from"@vue/shared";import{uuidGenerator as t}from"../../utils/index.js";import{unref as r}from"vue";import{cloneDeep as n,isFunction as
|
|
1
|
+
import{isObject as e}from"@vue/shared";import{uuidGenerator as t}from"../../utils/index.js";import{unref as r}from"vue";import{cloneDeep as n,isFunction as s}from"lodash-es";import"naive-ui";import"@vueuse/core";import"date-fns";import{AsyncQueue as o}from"../useAsyncQueue/index.js";import"@vueuse/shared";import"../selectHooks/useSearchContent.js";import"@vicons/ionicons5";let a=null;const u={method:"post",url:"",primaryKeyUrl:"",mergeUrl:""},i={url:{get:"/fdp-api/fdp/aiRec/search",post:"/fdp-api/fdp/aiRec/sendBehaviorData",delete:"/fdp-api/fdp/aiRec/delete"},getRecommendIds:()=>({})};function c(){return{getHttpInstance:function(){return a},registGlobHttpInstance:function(e){a=e},registGlobRecommendInfo:function(e){Object.assign(i,e)},registGlobSearchInfo:function(e){Object.assign(u,e)},getSearchRequestInfo:function(){return{...u}},getRecommendRequestInfo:function(){return n(i)}}}function l(n,a){const{getHttpInstance:u}=c();let i=null;return{create:function(c=3,l){const f=new o({name:"FormRenderAsyncQueue",uniqueData:a.value,parallelism:c,async processor({key:t,mergeUrl:o,method:a="post",cache:m,params:p,url:d,payload:h},R,g){var y,w,b,q;const v=null!=(y=r(n))?y:u();if(!v)return console.log("before use http feature, you should regist http instance by useFormRequest.registGlobHttpInstance()"),R(),void g();try{let r;if(l&&s(l.beforeRequest)&&(p=null!=(w=l.beforeRequest(t,p,h))?w:{}),o){(!i||Object.keys(i.waitingRequestParams).length>=10)&&(i=function(e,t,r,n,s){const o=new Promise(((s,a)=>{n.parallelism=1e3,setTimeout((async()=>{try{s(await e[r](t,o.waitingRequestParams))}catch(e){a(e)}}),10)})).finally((()=>{i=null,n.parallelism=s}));return o.waitingRequestParams={},o}(v,o,a,f,c)),i.waitingRequestParams[t]=p;const n=await i;r=e(n)?{...n,map:null!=(q=null==(b=n.map)?void 0:b[t])?q:{rows:[]}}:{}}else r=await v[a](d,p);l&&s(l.afterRequest)&&(r=l.afterRequest(t,r,h)),R(void 0,Array.isArray(r)?r:[]),!m&&g()}catch(e){R(new Error(`Request error => ${e}`)),g()}},getKey:({url:e,method:r="post",cache:n,params:s})=>n?e+r+JSON.stringify(s||{}):t()});return f}}}function f(t){if(!e(t))throw t;return r=t,Reflect.has(r,"map")&&Reflect.has(r,"result")?function(e){const{result:t,map:r}=e;if("SUCCESS"!==t)throw e;return r.rows}(t):function(e){return Reflect.has(e,"result")&&Reflect.has(e,"obj")}(t)?function(t){const{obj:r,result:n}=t;if("SUCCESS"!==n||!e(r))throw t;return Object.entries(r).reduce(((e,[t,r])=>(r.forEach((r=>e.push({...r,type:t}))),e)),[])}(t):function(e){return Reflect.has(e,"data")&&Reflect.has(e,"success")}(t)?function(e){const{data:t,success:r}=e;if(!r)throw e;return t}(t):[];var r}export{f as presetRequestHandler,l as useFormAsyncQueue,c as useFormRequest};
|
|
@@ -6,6 +6,7 @@ export declare namespace FormRequestDefine {
|
|
|
6
6
|
key: any;
|
|
7
7
|
cache?: boolean;
|
|
8
8
|
url: string;
|
|
9
|
+
mergeUrl?: string;
|
|
9
10
|
method?: RequestType;
|
|
10
11
|
params?: AnyObject;
|
|
11
12
|
payload?: AnyObject;
|
|
@@ -16,6 +17,7 @@ export declare namespace FormRequestDefine {
|
|
|
16
17
|
method: RequestType;
|
|
17
18
|
url: string;
|
|
18
19
|
primaryKeyUrl?: string;
|
|
20
|
+
mergeUrl?: string;
|
|
19
21
|
};
|
|
20
22
|
type RecommendIds = Partial<Record<'businessId' | 'componentId' | 'deptId' | 'userId', string>>;
|
|
21
23
|
type RecommendInfo = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../utils/index.js";import{isEqual as e,noop as
|
|
1
|
+
import"../utils/index.js";import{isEqual as e,noop as t,isString as r,isNumber as n,isEmpty as i,isFunction as o,cloneDeep as a,omit as l,isArray as u}from"lodash-es";import"naive-ui";import{computed as s,ref as c,watch as d,unref as v}from"vue";import"@vueuse/core";import"date-fns";import{useFormRequest as p}from"./useFormRequest/index.js";import"@vueuse/shared";import"./selectHooks/useSearchContent.js";import"@vicons/ionicons5";function h(h,y,{asyncQueue:f,fieldKey:m,getRequestPayload:k=t}){const g=s({get:()=>h.value,set(t){e(t,h.value)||y("update:value",t)}}),w=c(!1),_=c([]),b=s((()=>{var e,t,r;return null!=(r=null==(t=null==(e=h.wordbook)?void 0:e.show_key)?void 0:t[0])?r:h.labelField})),O=s((()=>{var e,t;return null!=(t=null==(e=h.wordbook)?void 0:e.value_key)?t:h.valueField})),L=s((()=>{var e,t;return null==(t=null==(e=h.wordbook)?void 0:e.render_key)?void 0:t[0]})),j=s((()=>{var e;return(null==(e=h.wordbook)?void 0:e.level_num)||1/0})),C=function(e,t,r){return{transformListToChildren(e){if(!e.length)return[];const t=[(e=a(e))[0]];let r=e[0];for(let t=1;t<e.length;t++){const n=e[t];n&&(r.children=[n],n.parent=r,r=n)}return[e,t]},getNodeDepth(e){let t=1,r=e.parent;for(;r;)t++,r=r.parent;return t},enrichChildOption(e,t,r){return{...e,parent:t,isLeaf:this.getNodeDepth(t)+1>=r}},enrichKeywordOption:(e,n)=>(e.__keyword=!!n,e.isLeaf=!!n,n&&r.value&&e[r.value]&&(e[t.value]=e[r.value]),e),sortOptionWithIdList:(t,r)=>r.map((r=>t.find((t=>t[e.value]===r)))),generateOptionWithIdList(t,r,n){let i=t[0];return{options:r.reduce(((e,r,a)=>{const l=o(t,r);return 0===a?(i=l,[l]):(Object.assign(l,{parent:i,isLeaf:a+1>=n}),i.children=[l],i=l,e)}),[]),lastOption:i};function o(t,r){return t.find((t=>t[e.value]===r))}},parseLinkFromString2List:e=>e.split("_").filter((e=>e)),isClickNodeCheckbox:e=>e&&!e.__keyword&&e.isLeaf,createConfigObject:(t,r,n)=>r?t.conObj||[]:n?[{con:"EQ",is_compare_field:!1,field_key:t.level_key,value:n[e.value]}]:t.conObjFirstLevel||[],createOptionValue(e){const t=[];let r=e;for(;r;)t.unshift(l(r,["parent","isLeaf","__keyword","children"])),r=r.parent;return t},shouldInitOptionList:(t,r,n)=>u(t)&&!i(t)&&t.every((t=>t[e.value]))&&!r&&!n}}(O,b,L),{getSearchRequestInfo:K}=p(),I=c(150),R=c();async function x(e,t,a=!0){var l,u;if(I.value=t&&(null==(l=R.value)?void 0:l.getWidth())||150,C.shouldInitOptionList(g.value,e,t)){const[e,t]=C.transformListToChildren(g.value),r=e[Math.max(0,e.length-2)];if(g.value.length>1){_.value=t;const r=e[Math.max(0,e.length-2)];return await x(r,void 0,!1),r}if(null==(u=_.value)?void 0:u.length)return r}try{return C.isClickNodeCheckbox(e)?s(e):e?e.__keyword?async function(){var t;if(!r(e.id_link))return Promise.reject(`id_link isn't string "${e.id_link}"`);const o=C.parseLinkFromString2List(e.id_link);n(j.value)&&j.value!==1/0&&o.splice(j.value);const a=await async function(e){if(!K().primaryKeyUrl)return[];try{return await f.addAsync(t(h.wordbook,h.autograph,e,v(m)))}catch(e){r(e)&&console.error(e)}function t(e,t,r,n){const i=K();return{key:n,params:{autograph:t,tableId:e.id,primaryKeyValue:r.join(","),page:1},...i,url:i.primaryKeyUrl,cache:h.requestCache,payload:{field:{},labelKey:b.value,valueKey:O.value}}}}(o);if(!a)return Promise.reject("fetchPrimaryKeyValue failed");const{lastOption:l,options:u}=C.generateOptionWithIdList(a,o,j.value);if(u.length<j.value&&(await x(l),i(l.children)))return g.value=C.sortOptionWithIdList(a,o),w.value=!1,Promise.reject("lastOption.children is empty");return _.value=u,null==(t=R.value)||t.setCursor(l),l}():async function(){const t=await f.addAsync(c(h.wordbook,h.autograph,e,v(m)));if(!t.length)return a?s(e):Promise.reject("childrenList is empty");e.children=t.map((t=>C.enrichChildOption(t,e,j.value)))}():async function(){var r;const n=await f.addAsync(c(h.wordbook,h.autograph,e,v(m)));_.value=n.map((e=>C.enrichKeywordOption(e,t))),t&&(null==(r=R.value)||r.setCursor(_.value[0]))}()}catch(e){r(e)&&console.error(e)}function s(e){return g.value=C.createOptionValue(e),w.value=!1,Promise.reject("update value success, no need to continue")}function c(e,n,i,a){const l={autograph:()=>n,wordbookId:"id",wordbookType:"type",fieldKeys:()=>e.search_key?JSON.stringify(e.search_key):void 0,conObj:()=>JSON.stringify(C.createConfigObject(e,t,i)),primaryKey:"primary_key",levelKey:"level_key",keyword:()=>t,page:()=>1},u=Object.entries(l).reduce(((t,[n,i])=>(t[n]=r(i)?e[i]:o(i)?i():void 0,t)),{});return{...K(),params:u,key:a,cache:h.requestCache,payload:{...k(),labelKey:b.value,valueKey:O.value}}}}return d((()=>h.wordbook),((t,r)=>{e(t,r)||(_.value=[],t&&(g.value||!h.lazyRequest)&&x())}),{immediate:!0}),{valueRef:g,labelKey:b,valueKey:O,optionsRef:_,showRef:w,fetchData:x,menuWidth:I,searchCascaderRef:R}}export{h as useLevelSearchCascader};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e="@cnhis-design-vue/shared",s="3.2.4-release.
|
|
1
|
+
var e="@cnhis-design-vue/shared",s="3.2.4-release.4",i="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.2.4-release.4",private:!0,main:"index.ts",peerDependencies:n,dependencies:a};export{d as default,a as dependencies,i as main,e as name,n as peerDependencies,s as version};
|
|
@@ -6,6 +6,7 @@ export declare function safeComponentRegister(app: App, component: Component, cN
|
|
|
6
6
|
export declare function generateTimeFormat(format: string): string | undefined;
|
|
7
7
|
export declare function arrayed<T>(maybeArray: T): T extends Array<any> ? T : [T];
|
|
8
8
|
export declare function uuidGenerator(): string;
|
|
9
|
+
export declare function getCharWidth(char: string): any;
|
|
9
10
|
export declare const getStringWidth: import("@vueuse/core").UseMemoizedFn<number, [str: string]>;
|
|
10
11
|
export declare const DMZ: AnyObject;
|
|
11
12
|
export declare function deepOmit<T extends AnyObject>(target: T, keys: Array<keyof T>): any;
|