cnhis-design-vue 3.1.42-beta.3 → 3.1.42-beta.30
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/annotation-edit/src/AnnotationEdit.js +1 -1
- package/es/components/base-search/index.d.ts +2 -2
- package/es/components/base-search/src/index.vue.d.ts +2 -2
- package/es/components/base-search/src/index.vue.js +1 -1
- package/es/components/base-search/style/index.css +1 -1
- package/es/components/big-table/index.d.ts +3 -4
- package/es/components/big-table/src/BigTable.vue.d.ts +3 -4
- package/es/components/big-table/src/BigTable.vue2.js +1 -1
- package/es/components/big-table/style/index.css +1 -1
- package/es/components/bpmn-workflow/index.d.ts +12 -0
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/src/BpmnWorkflow.vue.d.ts +12 -0
- package/es/components/bpmn-workflow/src/BpmnWorkflow.vue.js +1 -1
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +1 -0
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
- package/es/components/button-print/index.d.ts +4 -4
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +4 -4
- package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
- package/es/components/button-print/src/components/EditFormat.vue.d.ts +4 -4
- package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +4 -4
- package/es/components/button-print/src/utils/print.js +1 -1
- package/es/components/classification/style/index.css +1 -1
- package/es/components/config-provider/src/ConfigProvider.js +1 -1
- package/es/components/config-provider/src/interface.d.ts +4 -4
- package/es/components/date-picker/index.d.ts +4 -0
- package/es/components/date-picker/src/DatePicker.vue.d.ts +4 -0
- package/es/components/date-picker/src/DatePicker.vue.js +1 -1
- package/es/components/fabric-chart/index.d.ts +2 -2
- package/es/components/fabric-chart/src/FabricChart.vue.d.ts +2 -2
- package/es/components/fabric-chart/src/hooks/useBirthProcess.d.ts +1 -0
- package/es/components/fabric-chart/src/hooks/useBirthProcess.js +1 -1
- package/es/components/fabric-chart/src/hooks/useBirthProcessChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/useCenter.js +1 -1
- package/es/components/fabric-chart/src/hooks/useLeft.js +1 -1
- package/es/components/fabric-chart/src/hooks/useScaleColumn.d.ts +16 -0
- package/es/components/fabric-chart/src/hooks/useScaleColumn.js +1 -0
- package/es/components/fabric-chart/src/utils/index.d.ts +6823 -0
- package/es/components/field-set/index.d.ts +84 -15
- package/es/components/field-set/src/FieldSet.vue.d.ts +80 -29
- package/es/components/field-set/src/FieldSet.vue.js +1 -1
- package/es/components/field-set/src/types/index.d.ts +18 -0
- package/es/components/field-set/src/types/index.js +1 -0
- package/es/components/form-config/index.d.ts +35 -35
- package/es/components/form-config/src/FormConfig.vue.d.ts +35 -35
- package/es/components/form-config/src/FormConfig.vue.js +1 -1
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +13 -12
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +18 -19
- package/es/components/form-config/src/components/FormConfigEdit.vue.js +1 -1
- package/es/components/form-config/src/components/renderer/DefaultNode.vue.js +1 -1
- package/es/components/form-config/src/constants/index.d.ts +12 -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-config/src/types/index.d.ts +1 -0
- package/es/components/form-render/index.d.ts +13 -12
- package/es/components/form-render/index.js +1 -1
- package/es/components/form-render/src/FormRender.vue.d.ts +13 -12
- package/es/components/form-render/src/FormRender.vue.js +1 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +13 -12
- package/es/components/form-render/src/components/renderer/combination.js +1 -1
- package/es/components/form-render/src/components/renderer/complex.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/date.js +1 -1
- package/es/components/form-render/src/components/renderer/jsonCombination/index.js +1 -1
- package/es/components/form-render/src/components/renderer/levelSearchCascader.d.ts +18 -0
- package/es/components/form-render/src/components/renderer/levelSearchCascader.js +1 -1
- package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/lineBar/index.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/radio&checkbox.d.ts +38 -2
- package/es/components/form-render/src/components/renderer/radio_checkbox.js +1 -1
- package/es/components/form-render/src/components/renderer/remoteSearch.d.ts +18 -0
- package/es/components/form-render/src/components/renderer/remoteSearch.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/components/renderer/select.d.ts +30 -3
- package/es/components/form-render/src/components/renderer/select.js +1 -1
- package/es/components/form-render/src/hooks/index.d.ts +1 -1
- package/es/components/form-render/src/hooks/index.js +1 -1
- package/es/components/form-render/src/hooks/useFormAsyncQueue.d.ts +16 -0
- package/es/components/form-render/src/hooks/useFormAsyncQueue.js +1 -0
- package/es/components/form-render/src/hooks/useFormContext.js +1 -1
- package/es/components/form-render/src/hooks/useFormRenderOptions.d.ts +13 -8
- package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
- package/es/components/form-render/src/types/fieldItem.d.ts +3 -4
- package/es/components/form-render/src/types/index.d.ts +2 -1
- package/es/components/iho-table/index.d.ts +7 -2
- package/es/components/iho-table/src/IhoTable.vue.d.ts +7 -2
- package/es/components/iho-table/src/IhoTable.vue.js +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +4 -4
- package/es/components/iho-table/src/hooks/tapHooks/index.js +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.d.ts +22 -21
- package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.js +1 -1
- package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/highLightSetPlugin.d.ts +1 -0
- package/es/components/iho-table/src/plugins/highLightSetPlugin.js +1 -0
- package/es/components/iho-table/src/plugins/index.js +1 -1
- package/es/components/iho-table/src/plugins/keyboardEventPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/maxCheckSizePlugin.d.ts +1 -0
- package/es/components/iho-table/src/plugins/maxCheckSizePlugin.js +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +4 -0
- 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 +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/{rendererPlugins/widgets/variableHeightRendererPlugin.d.ts → varialbleHeightPlugin/index.d.ts} +1 -1
- package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.js +1 -0
- package/es/components/iho-table/src/types/index.d.ts +3 -1
- package/es/components/iho-table/src/types/pluginType.d.ts +6 -3
- package/es/components/iho-table/src/utils/index.d.ts +2 -0
- package/es/components/iho-table/src/utils/index.js +1 -1
- package/es/components/iho-table/style/iconfont.ttf +0 -0
- 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/index.js +1 -1
- package/es/components/info-header/index.d.ts +30 -28
- package/es/components/info-header/src/InfoHeader.vue.d.ts +30 -28
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +3 -3
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +3 -3
- package/es/components/info-header/src/components/infoDescription/HiddenContent.vue.d.ts +2 -2
- package/es/components/info-header/src/components/infoDescription/HiddenContent.vue.js +1 -1
- package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue.d.ts +1 -1
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +16 -15
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +13 -12
- package/es/components/info-header/style/index.css +1 -1
- package/es/components/keyboard/index.d.ts +1 -1
- package/es/components/keyboard/src/Keyboard.vue.d.ts +1 -1
- package/es/components/keyboard/src/Keyboard.vue.js +1 -1
- package/es/components/keyboard/src/constants/index.js +1 -1
- package/es/components/keyboard/style/index.css +1 -1
- package/es/components/map/index.d.ts +2 -14
- package/es/components/map/src/Map.vue.d.ts +1 -14
- package/es/components/map/src/types/index.d.ts +19 -0
- package/es/components/map/src/types/index.js +1 -0
- package/es/components/recommend-search/index.d.ts +8 -121
- package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +11 -124
- package/es/components/recommend-search/src/RecommendSearch.vue.js +1 -1
- package/es/components/recommend-search/src/components/BaseSearch.d.ts +84 -0
- package/es/components/recommend-search/src/components/BaseSearch.js +1 -0
- package/es/components/recommend-search/src/components/RecommendInput.vue.d.ts +2 -60
- package/es/components/recommend-search/src/components/RecommendInput.vue.js +1 -1
- package/es/components/recommend-search/src/components/RecommendSelect.vue.d.ts +4 -62
- package/es/components/recommend-search/src/components/RecommendSelect.vue.js +1 -1
- package/es/components/recommend-search/src/constant/index.d.ts +3 -0
- package/es/components/recommend-search/src/constant/index.js +1 -1
- package/es/components/scale-view/index.d.ts +25 -66
- package/es/components/scale-view/src/ScaleView.vue.d.ts +25 -66
- package/es/components/scale-view/src/ScaleView.vue.js +1 -1
- package/es/components/scale-view/src/components/formitem/standard-modal.d.ts +1 -1
- package/es/components/scale-view/src/hooks/use-component.d.ts +73 -3
- package/es/components/scale-view/style/index.css +1 -1
- package/es/components/select-label/src/LabelFormContent.vue.js +1 -1
- package/es/components/select-label/style/index.css +1 -1
- package/es/components/select-person/index.d.ts +1 -1
- package/es/components/select-person/src/SelectPerson.vue.d.ts +1 -1
- package/es/components/shortcut-setter/index.d.ts +14 -14
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +14 -14
- package/es/components/steps-wheel/src/StepsWheel.vue.js +1 -1
- package/es/components/steps-wheel/src/constants/index.js +1 -1
- package/es/components/steps-wheel/style/index.css +1 -1
- package/es/components/table-filter/index.d.ts +0 -1
- package/es/components/table-filter/index.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
- package/es/components/table-filter/src/hooks/useMixins.js +1 -1
- package/es/components/table-filter/src/tool/baseOptions.d.ts +0 -10
- package/es/components/table-filter/src/tool/baseOptions.js +1 -1
- package/es/components/table-filter/src/tool/generateDefOptions.d.ts +0 -7
- package/es/components/table-filter/src/tool/generateDefOptions.js +1 -1
- package/es/components/table-filter/src/types/index.d.ts +2 -76
- package/es/components/time-picker/src/TimePicker.vue.js +1 -1
- package/es/components/vod-chunk-upload/index.d.ts +73 -3
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.d.ts +73 -3
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.js +1 -1
- package/es/env.d.ts +24 -24
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +86 -0
- package/es/shared/{mixins → hooks}/index.d.ts +1 -0
- package/es/shared/{mixins → hooks}/index.js +1 -1
- package/es/{components/form-render/src → shared}/hooks/useAsyncQueue.d.ts +0 -14
- package/es/shared/hooks/useAsyncQueue.js +1 -0
- package/es/shared/{mixins → hooks}/useDateTime.d.ts +2 -2
- package/es/shared/hooks/useDateTime.js +1 -0
- package/es/shared/utils/tapable/index.d.ts +139 -0
- package/package.json +2 -2
- package/es/components/form-render/src/hooks/useAsyncQueue.js +0 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/variableHeightRendererPlugin.js +0 -1
- package/es/components/recommend-search/src/components/BaseSearch.vue.d.ts +0 -143
- package/es/components/recommend-search/src/components/BaseSearch.vue.js +0 -1
- package/es/components/scale-view/src/hooks/scaleview-props.d.ts +0 -115
- package/es/components/scale-view/src/hooks/scaleview-props.js +0 -1
- package/es/components/table-filter/src/hooks/export.d.ts +0 -1
- package/es/components/table-filter/src/hooks/export.js +0 -1
- package/es/components/table-filter/src/tool/getWidgetType.d.ts +0 -1
- package/es/components/table-filter/src/tool/getWidgetType.js +0 -1
- package/es/shared/mixins/useDateTime.js +0 -1
- package/es/shared/utils/colorLog.d.ts +0 -31
- package/es/shared/utils/colorLog.js +0 -1
- /package/es/components/base-search/style/{iconfont.ttf → base-search-iconfont.ttf} +0 -0
- /package/es/components/classification/style/{iconfont.ttf → classification-iconfont.ttf} +0 -0
- /package/es/components/info-header/style/{iconfont.ttf → info-header-font.ttf} +0 -0
- /package/es/components/select-label/style/{iconfont.ttf → select-label-iconfont.ttf} +0 -0
- /package/es/shared/{mixins → hooks}/useTheme.d.ts +0 -0
- /package/es/shared/{mixins → hooks}/useTheme.js +0 -0
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
type FixedSizeArray<T extends number, U> = T extends 0
|
|
2
|
+
? void[]
|
|
3
|
+
: ReadonlyArray<U> & {
|
|
4
|
+
0: U;
|
|
5
|
+
length: T;
|
|
6
|
+
};
|
|
7
|
+
type Measure<T extends number> = T extends 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 ? T : never;
|
|
8
|
+
type Append<T extends any[], U> = {
|
|
9
|
+
0: [U];
|
|
10
|
+
1: [T[0], U];
|
|
11
|
+
2: [T[0], T[1], U];
|
|
12
|
+
3: [T[0], T[1], T[2], U];
|
|
13
|
+
4: [T[0], T[1], T[2], T[3], U];
|
|
14
|
+
5: [T[0], T[1], T[2], T[3], T[4], U];
|
|
15
|
+
6: [T[0], T[1], T[2], T[3], T[4], T[5], U];
|
|
16
|
+
7: [T[0], T[1], T[2], T[3], T[4], T[5], T[6], U];
|
|
17
|
+
8: [T[0], T[1], T[2], T[3], T[4], T[5], T[6], T[7], U];
|
|
18
|
+
}[Measure<T['length']>];
|
|
19
|
+
type AsArray<T> = T extends any[] ? T : [T];
|
|
20
|
+
|
|
21
|
+
declare class UnsetAdditionalOptions {
|
|
22
|
+
_UnsetAdditionalOptions: true;
|
|
23
|
+
}
|
|
24
|
+
type IfSet<X> = X extends UnsetAdditionalOptions ? {} : X;
|
|
25
|
+
|
|
26
|
+
type Callback<E, T> = (error: E | null, result?: T) => void;
|
|
27
|
+
type InnerCallback<E, T> = (error?: E | null | false, result?: T) => void;
|
|
28
|
+
|
|
29
|
+
type FullTap = Tap & {
|
|
30
|
+
type: 'sync' | 'async' | 'promise';
|
|
31
|
+
fn: Function;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
type Tap = TapOptions & {
|
|
35
|
+
name: string;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
type TapOptions = {
|
|
39
|
+
before?: string;
|
|
40
|
+
stage?: number;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
interface HookInterceptor<T, R, AdditionalOptions = UnsetAdditionalOptions> {
|
|
44
|
+
name?: string;
|
|
45
|
+
tap?: (tap: FullTap & IfSet<AdditionalOptions>) => void;
|
|
46
|
+
call?: (...args: any[]) => void;
|
|
47
|
+
loop?: (...args: any[]) => void;
|
|
48
|
+
error?: (err: Error) => void;
|
|
49
|
+
result?: (result: R) => void;
|
|
50
|
+
done?: () => void;
|
|
51
|
+
register?: (tap: FullTap & IfSet<AdditionalOptions>) => FullTap & IfSet<AdditionalOptions>;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
type ArgumentNames<T extends any[]> = FixedSizeArray<T['length'], string>;
|
|
55
|
+
|
|
56
|
+
declare class Hook<T, R, AdditionalOptions = UnsetAdditionalOptions> {
|
|
57
|
+
constructor(args?: ArgumentNames<AsArray<T>>, name?: string);
|
|
58
|
+
name: string | undefined;
|
|
59
|
+
taps: FullTap[];
|
|
60
|
+
intercept(interceptor: HookInterceptor<T, R, AdditionalOptions>): void;
|
|
61
|
+
isUsed(): boolean;
|
|
62
|
+
callAsync(...args: Append<AsArray<T>, Callback<Error, R>>): void;
|
|
63
|
+
promise(...args: AsArray<T>): Promise<R>;
|
|
64
|
+
tap(options: string | (Tap & IfSet<AdditionalOptions>), fn: (...args: AsArray<T>) => R): void;
|
|
65
|
+
withOptions(options: TapOptions & IfSet<AdditionalOptions>): Omit<this, 'call' | 'callAsync' | 'promise'>;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export class SyncHook<T, R = void, AdditionalOptions = UnsetAdditionalOptions> extends Hook<T, R, AdditionalOptions> {
|
|
69
|
+
call(...args: AsArray<T>): R;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export class SyncBailHook<T, R, AdditionalOptions = UnsetAdditionalOptions> extends SyncHook<T, R, AdditionalOptions> {}
|
|
73
|
+
export class SyncLoopHook<T, AdditionalOptions = UnsetAdditionalOptions> extends SyncHook<T, void, AdditionalOptions> {}
|
|
74
|
+
export class SyncWaterfallHook<T, AdditionalOptions = UnsetAdditionalOptions> extends SyncHook<
|
|
75
|
+
T,
|
|
76
|
+
AsArray<T>[0],
|
|
77
|
+
AdditionalOptions
|
|
78
|
+
> {}
|
|
79
|
+
|
|
80
|
+
declare class AsyncHook<T, R, AdditionalOptions = UnsetAdditionalOptions> extends Hook<T, R, AdditionalOptions> {
|
|
81
|
+
tapAsync(
|
|
82
|
+
options: string | (Tap & IfSet<AdditionalOptions>),
|
|
83
|
+
fn: (...args: Append<AsArray<T>, InnerCallback<Error, R>>) => void
|
|
84
|
+
): void;
|
|
85
|
+
tapPromise(options: string | (Tap & IfSet<AdditionalOptions>), fn: (...args: AsArray<T>) => Promise<R>): void;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export class AsyncParallelHook<T, AdditionalOptions = UnsetAdditionalOptions> extends AsyncHook<
|
|
89
|
+
T,
|
|
90
|
+
void,
|
|
91
|
+
AdditionalOptions
|
|
92
|
+
> {}
|
|
93
|
+
export class AsyncParallelBailHook<T, R, AdditionalOptions = UnsetAdditionalOptions> extends AsyncHook<
|
|
94
|
+
T,
|
|
95
|
+
R,
|
|
96
|
+
AdditionalOptions
|
|
97
|
+
> {}
|
|
98
|
+
export class AsyncSeriesHook<T, AdditionalOptions = UnsetAdditionalOptions> extends AsyncHook<
|
|
99
|
+
T,
|
|
100
|
+
void,
|
|
101
|
+
AdditionalOptions
|
|
102
|
+
> {}
|
|
103
|
+
export class AsyncSeriesBailHook<T, R, AdditionalOptions = UnsetAdditionalOptions> extends AsyncHook<
|
|
104
|
+
T,
|
|
105
|
+
R,
|
|
106
|
+
AdditionalOptions
|
|
107
|
+
> {}
|
|
108
|
+
export class AsyncSeriesLoopHook<T, AdditionalOptions = UnsetAdditionalOptions> extends AsyncHook<
|
|
109
|
+
T,
|
|
110
|
+
void,
|
|
111
|
+
AdditionalOptions
|
|
112
|
+
> {}
|
|
113
|
+
export class AsyncSeriesWaterfallHook<T, AdditionalOptions = UnsetAdditionalOptions> extends AsyncHook<
|
|
114
|
+
T,
|
|
115
|
+
AsArray<T>[0],
|
|
116
|
+
AdditionalOptions
|
|
117
|
+
> {}
|
|
118
|
+
|
|
119
|
+
type HookFactory<H> = (key: any, hook?: H) => H;
|
|
120
|
+
|
|
121
|
+
interface HookMapInterceptor<H> {
|
|
122
|
+
factory?: HookFactory<H>;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export class HookMap<H> {
|
|
126
|
+
constructor(factory: HookFactory<H>, name?: string);
|
|
127
|
+
name: string | undefined;
|
|
128
|
+
get(key: any): H | undefined;
|
|
129
|
+
for(key: any): H;
|
|
130
|
+
intercept(interceptor: HookMapInterceptor<H>): void;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export class MultiHook<H> {
|
|
134
|
+
constructor(hooks: H[], name?: string);
|
|
135
|
+
name: string | undefined;
|
|
136
|
+
tap(options: string | Tap, fn?: Function): void;
|
|
137
|
+
tapAsync(options: string | Tap, fn?: Function): void;
|
|
138
|
+
tapPromise(options: string | Tap, fn?: Function): void;
|
|
139
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cnhis-design-vue",
|
|
3
|
-
"version": "3.1.42-beta.
|
|
3
|
+
"version": "3.1.42-beta.30",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"module": "./es/components/index.js",
|
|
6
6
|
"main": "./es/components/index.js",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"iOS 7",
|
|
62
62
|
"last 3 iOS versions"
|
|
63
63
|
],
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "74d427aea5c24738f7167350f0c3c203b6426af7"
|
|
65
65
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{uuidGenerator as s}from"../../../../shared/utils/index.js";import{cloneDeep as e,isFunction as t}from"lodash-es";import{unref as r}from"vue";import"../../index.js";import{useCommonLog as i}from"./useCommonLog.js";import{useFormRequest as o}from"./useFormRequest.js";class a{constructor(s,e,t){this.item=s,this.key=e,this.state=0,this.callback=t}}class c{constructor(s){this._list=s?Array.from(s):[]}enqueue(s){this._list.push(s)}dequeue(){return this._list.shift()}}class n{constructor({name:s,processor:e,getKey:t,parallelism:r}){this._queued=new c,this._entries=new Map,this._activeTasks=0,this._processingLock=!1,this._stopped=!1,this.name=s,this.processor=e,this.getKey=t,this.parallelism=r||100}add(s,t){if(this._stopped)return t(new Error("Queue was stopped"));const r=this.getKey(s);if(this._entries.has(r)){const s=this._entries.get(r);return void(1===s.state?setTimeout((()=>{t&&t(e(s.error),e(s.result))})):s.callbacks?s.callbacks.push(t):s.callbacks=[t])}const i=new a(s,r,t);this._entries.set(r,i),this._queued.enqueue(i),this._processingLock||(this._processingLock=!0,Promise.resolve().then(this._ensureProcessing.bind(this)))}addAsync(s){return new Promise(((e,t)=>{this.add(s,((s,r)=>{s&&t(s),e(r)}))}))}_ensureProcessing(){for(;this._activeTasks<this.parallelism;){const s=this._queued.dequeue();if(!s)break;this._activeTasks++,s.state=0,this._startProcess(s)}this._processingLock=!1}_startProcess(s){this.processor(s.item,((e,t)=>{e?this._handlerResult(s,e):this._handlerResult(s,e,t)}),(()=>this._entries.delete(s.key)))}_handlerResult(s,t,r){const i=s.callback;s.state=1,s.callback=void 0,s.result=e(r),s.error=e(t),this._activeTasks--,i&&i(t,r),s.callbacks&&s.callbacks.forEach((s=>s(t,r))),this._processingLock||(this._processingLock=!0,Promise.resolve().then(this._ensureProcessing.bind(this)))}}function h(e){const{getHttpInstance:a}=o();return{create:function(o=3,c){return new n({name:"FormRenderAsyncQueue",parallelism:o,async processor({key:s,method:o="post",cache:n,params:h,url:l},u,p){var m,d;const _=null!=(m=r(e))?m:a();if(!_)return i().invalidHttpInstanceLog(),u(),void p();try{c&&t(c.beforeRequest)&&(h=null!=(d=c.beforeRequest(s,h))?d:{});let e=await _[o](l,h);c&&t(c.afterRequest)&&(e=c.afterRequest(s,e)),u(void 0,Array.isArray(e)?e:[]),!n&&p()}catch(s){u(new Error(`Request error => ${s}`)),p()}},getKey:({url:e,method:t="post",cache:r,params:i})=>r?e+t+JSON.stringify(i||{}):s()})}}}export{n as AsyncQueue,h as useAsyncQueue};
|
package/es/components/iho-table/src/plugins/rendererPlugins/widgets/variableHeightRendererPlugin.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{defineComponent as e,inject as t,ref as n,watch as o,nextTick as r,onMounted as l,createVNode as i,onBeforeUnmount as a,unref as u}from"vue";import{traverse as s}from"../../../../../../shared/utils/index.js";import{useThrottleFn as d}from"@vueuse/core";import{promiseTimeout as c}from"@vueuse/shared";import{isNumber as m,isFunction as f,isString as h,range as p,last as g}from"lodash-es";import"../../../../index.js";import{InjectionIhoTableUUID as I,InjectionIhoTableConfig as x,WIDGET_TYPE as v}from"../../../constants/index.js";import{useUUIDMap as D}from"../../../utils/index.js";import{defineTablePlugin as U}from"../../../hooks/useTablePlugin.js";const{getItemFromUUID:b,removeItemFromUUID:H}=D((()=>new Map),!0),{getItemFromUUID:w,removeItemFromUUID:y,setItemFromUUID:T}=D((()=>null)),{getItemFromUUID:E,removeItemFromUUID:F,setItemFromUUID:j}=D((()=>{})),R=e({props:{index:Number,content:{},renderWidth:{}},setup(e){const a=t(I),u=t("$xetable"),s=t(x),d=n(),c=b(a);return o([()=>e.index,()=>e.content,()=>e.renderWidth],(async()=>{var t,n;if(await r(),!c||!m(e.index)||!d.value)return;const o=(null==(t=null==s?void 0:s.value.rowConfig)?void 0:t.height)||36,l=Math.max(o,d.value.clientHeight,null!=(n=c.get(e.index))?n:0);c.set(e.index,l)}),{immediate:!0}),l((()=>{u&&!w(a)&&T(a,u)})),()=>i("div",{ref:d},[e.content])}});function S(e,t,{scrollTop:n=0}){var o,r;const{uuid:l,rowConfig:i={}}=t;if(!l)return;const a=b(l),{oSize:s=0,gt:d=100}=null!=(o=E(l))?o:{},{internalData:c,reactData:m}=e,{scrollYStore:f,elemStore:h,afterFullData:I,fullDataRowIdData:x}=c;if(d>I.length)return;const v=null!=(r=i.height)?r:36,D=h["main-body-wrapper"],U=D?u(D):null,H=U?Math.max(8,Math.ceil(U.clientHeight/v)+2+2*s):8,w=[0];let y=0;n&&p(0,I.length).find((e=>{const t=(g(w)||0)+(a.get(e)||36);if(w.push(t),t>n)return y=Math.max(0,e-s),!0})),Object.assign(f,{startIndex:y,endIndex:y+H});const T=`${w[y]}px`,F=`${p(0,I.length).reduce(((e,t)=>e+(a.get(t)||36)),0)}px`;["main","left","right"].forEach((e=>{const t=h[`${e}-body-table`],n=t?u(t):null;n&&(n.style.marginTop=T),["header","body","footer"].forEach((t=>{const n=h[`${e}-${t}-ySpace`],o=n?u(n):null;o&&(o.style.height=F)}))}));const j=I.slice(f.startIndex,f.endIndex);j.forEach(((t,n)=>{const o=e.getRowid(t),r=x[o];r&&(r.$index=n)})),m.tableData=j}function $(){const e="variableHeightRendererPlugin";return U({name:e,vxe(e){e.renderer.add(v.VARIABLE_HEIGHT,{renderCell:(e,{row:t,column:n,rowIndex:o})=>i(R,{index:o,content:t[n.field],renderWidth:n.renderWidth},null)})},apply(t){t.dataHooks.dataStart.tap(e,(e=>{if(!e.uuid)return;const t=E(e.uuid);t&&(e.scrollY=t),setTimeout((()=>{e.scrollY={enabled:!1};const t=w(e.uuid);t&&(t.reactData.scrollYLoad=!1,S(t,e,{scrollTop:0}))}),300)})),t.fieldHooks.fieldList.tap(e,((e,t)=>(t.uuid&&s(e,((e,n)=>{var o;if((null==(o=e.editRender)?void 0:o.name)===v.VARIABLE_HEIGHT){j(t.uuid,t.scrollY),t.scrollY={enabled:!1};const e=b(t.uuid),o=t.cellStyle;t.cellStyle=function(t){const n={};if(t.column.fixed){const o=e.get(t.rowIndex);o&&(n.height=`${o}px`)}return Object.assign(n,o?f(o)?o(t):o:null)};const r=t.cellClassName;t.cellClassName=function(e){var t;const n=f(r)?r(e):r,o=n?h(n)?{[n]:!0}:n:{};return Object.assign({"virtual-height":(null==(t=e.column.editRender)?void 0:t.name)===v.VARIABLE_HEIGHT},o)},setTimeout((()=>{const e=w(t.uuid);e&&(e.reactData.scrollYLoad=!1,S(e,t,{scrollTop:0}))}),300),n()}})),e))),t.setupHooks.setup.tap(e,(e=>{a((()=>{e.value.uuid&&(H(e.value.uuid),y(e.value.uuid),F(e.value.uuid))}))})),t.eventHooks.onScroll.tap(e,d((async(e,t)=>{const{uuid:n}=t;if(!n)return;const o=w(n);o&&(await c(0),S(o,t,e))}),200))}})}export{$ as variableHeightRendererPlugin};
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
import { Func } from '../../../../../es/shared/types';
|
|
2
|
-
import { PropType } from 'vue';
|
|
3
|
-
declare const _default: import("vue").DefineComponent<{
|
|
4
|
-
displayValue: {
|
|
5
|
-
type: StringConstructor;
|
|
6
|
-
};
|
|
7
|
-
valueFormatter: {
|
|
8
|
-
type: PropType<(value: undefined | number | string | Array<any>) => string>;
|
|
9
|
-
};
|
|
10
|
-
show: {
|
|
11
|
-
type: BooleanConstructor;
|
|
12
|
-
};
|
|
13
|
-
loading: {
|
|
14
|
-
type: BooleanConstructor;
|
|
15
|
-
};
|
|
16
|
-
placeholder: {
|
|
17
|
-
type: StringConstructor;
|
|
18
|
-
default: string;
|
|
19
|
-
};
|
|
20
|
-
clearable: {
|
|
21
|
-
type: BooleanConstructor;
|
|
22
|
-
default: boolean;
|
|
23
|
-
};
|
|
24
|
-
inputProps: {
|
|
25
|
-
type: ObjectConstructor;
|
|
26
|
-
default: () => {};
|
|
27
|
-
};
|
|
28
|
-
popProps: {
|
|
29
|
-
type: ObjectConstructor;
|
|
30
|
-
default: () => {};
|
|
31
|
-
};
|
|
32
|
-
clearPatternOnOpenMenu: {
|
|
33
|
-
type: BooleanConstructor;
|
|
34
|
-
default: boolean;
|
|
35
|
-
};
|
|
36
|
-
}, {
|
|
37
|
-
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
38
|
-
displayValue: {
|
|
39
|
-
type: StringConstructor;
|
|
40
|
-
};
|
|
41
|
-
valueFormatter: {
|
|
42
|
-
type: PropType<(value: undefined | number | string | Array<any>) => string>;
|
|
43
|
-
};
|
|
44
|
-
show: {
|
|
45
|
-
type: BooleanConstructor;
|
|
46
|
-
};
|
|
47
|
-
loading: {
|
|
48
|
-
type: BooleanConstructor;
|
|
49
|
-
};
|
|
50
|
-
placeholder: {
|
|
51
|
-
type: StringConstructor;
|
|
52
|
-
default: string;
|
|
53
|
-
};
|
|
54
|
-
clearable: {
|
|
55
|
-
type: BooleanConstructor;
|
|
56
|
-
default: boolean;
|
|
57
|
-
};
|
|
58
|
-
inputProps: {
|
|
59
|
-
type: ObjectConstructor;
|
|
60
|
-
default: () => {};
|
|
61
|
-
};
|
|
62
|
-
popProps: {
|
|
63
|
-
type: ObjectConstructor;
|
|
64
|
-
default: () => {};
|
|
65
|
-
};
|
|
66
|
-
clearPatternOnOpenMenu: {
|
|
67
|
-
type: BooleanConstructor;
|
|
68
|
-
default: boolean;
|
|
69
|
-
};
|
|
70
|
-
}>> & {
|
|
71
|
-
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
72
|
-
onClear?: ((...args: any[]) => any) | undefined;
|
|
73
|
-
onSearch?: ((...args: any[]) => any) | undefined;
|
|
74
|
-
onOpenMenu?: ((...args: any[]) => any) | undefined;
|
|
75
|
-
onCloseMenu?: ((...args: any[]) => any) | undefined;
|
|
76
|
-
}>>;
|
|
77
|
-
uuid: string;
|
|
78
|
-
emits: (event: "clear" | "update:show" | "search" | "openMenu" | "closeMenu", ...args: any[]) => void;
|
|
79
|
-
search: (content?: any) => void;
|
|
80
|
-
popoverRef: import("vue").Ref<{
|
|
81
|
-
syncPosition: Func;
|
|
82
|
-
} | undefined>;
|
|
83
|
-
_show: import("vue").Ref<boolean>;
|
|
84
|
-
show: import("vue").WritableComputedRef<boolean>;
|
|
85
|
-
inputRef: import("vue").Ref<HTMLElement | undefined>;
|
|
86
|
-
patternContent: import("vue").Ref<string>;
|
|
87
|
-
displayValueRef: import("vue").WritableComputedRef<string | undefined>;
|
|
88
|
-
openMenuAtInput: (evt: PointerEvent) => void;
|
|
89
|
-
openMenu: () => void;
|
|
90
|
-
closeMenu: () => void;
|
|
91
|
-
onClear: () => void;
|
|
92
|
-
NInput: any;
|
|
93
|
-
NPopover: any;
|
|
94
|
-
NSpin: any;
|
|
95
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "update:show" | "search" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "clear" | "update:show" | "openMenu", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
96
|
-
displayValue: {
|
|
97
|
-
type: StringConstructor;
|
|
98
|
-
};
|
|
99
|
-
valueFormatter: {
|
|
100
|
-
type: PropType<(value: undefined | number | string | Array<any>) => string>;
|
|
101
|
-
};
|
|
102
|
-
show: {
|
|
103
|
-
type: BooleanConstructor;
|
|
104
|
-
};
|
|
105
|
-
loading: {
|
|
106
|
-
type: BooleanConstructor;
|
|
107
|
-
};
|
|
108
|
-
placeholder: {
|
|
109
|
-
type: StringConstructor;
|
|
110
|
-
default: string;
|
|
111
|
-
};
|
|
112
|
-
clearable: {
|
|
113
|
-
type: BooleanConstructor;
|
|
114
|
-
default: boolean;
|
|
115
|
-
};
|
|
116
|
-
inputProps: {
|
|
117
|
-
type: ObjectConstructor;
|
|
118
|
-
default: () => {};
|
|
119
|
-
};
|
|
120
|
-
popProps: {
|
|
121
|
-
type: ObjectConstructor;
|
|
122
|
-
default: () => {};
|
|
123
|
-
};
|
|
124
|
-
clearPatternOnOpenMenu: {
|
|
125
|
-
type: BooleanConstructor;
|
|
126
|
-
default: boolean;
|
|
127
|
-
};
|
|
128
|
-
}>> & {
|
|
129
|
-
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
130
|
-
onClear?: ((...args: any[]) => any) | undefined;
|
|
131
|
-
onSearch?: ((...args: any[]) => any) | undefined;
|
|
132
|
-
onOpenMenu?: ((...args: any[]) => any) | undefined;
|
|
133
|
-
onCloseMenu?: ((...args: any[]) => any) | undefined;
|
|
134
|
-
}, {
|
|
135
|
-
loading: boolean;
|
|
136
|
-
show: boolean;
|
|
137
|
-
placeholder: string;
|
|
138
|
-
clearable: boolean;
|
|
139
|
-
inputProps: Record<string, any>;
|
|
140
|
-
popProps: Record<string, any>;
|
|
141
|
-
clearPatternOnOpenMenu: boolean;
|
|
142
|
-
}>;
|
|
143
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{defineComponent as e,ref as a,computed as t,openBlock as l,createBlock as o,unref as r,mergeProps as n,isRef as u,withCtx as s,createVNode as p,createElementVNode as i,renderSlot as c}from"vue";import{uuidGenerator as v}from"../../../../shared/utils/index.js";import{useDebounceFn as d,onClickOutside as f}from"@vueuse/core";import{NPopover as h,NInput as m,NSpin as g}from"naive-ui";import y from"../../../../_virtual/plugin-vue_export-helper.js";const w=["id"];var _=y(e({__name:"BaseSearch",props:{displayValue:{type:String},valueFormatter:{type:Function},show:{type:Boolean},loading:{type:Boolean},placeholder:{type:String,default:"请输入"},clearable:{type:Boolean,default:!0},inputProps:{type:Object,default:()=>({})},popProps:{type:Object,default:()=>({})},clearPatternOnOpenMenu:{type:Boolean,default:!0}},emits:["update:show","clear","search","openMenu","closeMenu"],setup(e,{expose:y,emit:_}){const b=e,M=v(),P=d(((e="")=>{_("search",e)}),300),B=a(),O=a(b.show),k=t({get:()=>O.value||b.show,set(e){_("update:show",e),O.value=e}}),x=a(),j=a(""),S=t({get:()=>k.value?j.value:b.displayValue,set(e){j.value=e||"",P(e)}});function F(e){var a;"INPUT"===(null==(a=e.target)?void 0:a.tagName)&&U()}function U(){k.value||(k.value=!0,_("openMenu"),b.clearPatternOnOpenMenu&&(j.value=""))}function C(){var e;k.value=!1,null==(e=x.value)||e.blur(),_("closeMenu")}function N(){_("clear")}return f(x,(e=>{var a;if(!k.value)return;const t=e;if(!t.target)return C();!function(e){let a=!1,t=e;for(;t;){if(t.id===M){a=!0;break}t=t.parentElement}return a}(t.target)?C():null==(a=x.value)||a.focus()})),y({setPattern(e){j.value=e},closeMenu:C,openMenu:U}),(a,t)=>(l(),o(r(h),n({trigger:"manual",class:"recommend-search",placement:"bottom-start",show:r(k),"onUpdate:show":t[2]||(t[2]=e=>u(k)?k.value=e:null),"show-arrow":!1,ref_key:"popoverRef",ref:B,width:"trigger"},e.popProps),{trigger:s((()=>[p(r(m),n(e.inputProps,{placeholder:e.placeholder,clearable:e.clearable,onClear:N,onFocus:F,onClick:F,onKeydown:t[0]||(t[0]=e=>a.$emit("keydown",e)),ref_key:"inputRef",ref:x,value:r(S),"onUpdate:value":t[1]||(t[1]=e=>u(S)?S.value=e:null)}),null,16,["placeholder","clearable","value"])])),default:s((()=>[p(r(g),{show:e.loading},{default:s((()=>[i("section",{id:r(M),class:"base-search__menu",style:{"min-height":"100px"}},[c(a.$slots,"menu")],8,w)])),_:3},8,["show"])])),_:3},16,["show"]))}}),[["__file","BaseSearch.vue"]]);export{_ as default};
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
declare const ScaleViewProps: {
|
|
2
|
-
ids: {
|
|
3
|
-
type: ObjectConstructor;
|
|
4
|
-
default: () => {
|
|
5
|
-
guage_id: string;
|
|
6
|
-
db_id: undefined;
|
|
7
|
-
};
|
|
8
|
-
};
|
|
9
|
-
params: {
|
|
10
|
-
default: () => {};
|
|
11
|
-
type: ObjectConstructor;
|
|
12
|
-
};
|
|
13
|
-
guageData: {
|
|
14
|
-
type: ObjectConstructor;
|
|
15
|
-
default: () => {};
|
|
16
|
-
};
|
|
17
|
-
noBtn: {
|
|
18
|
-
type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
|
|
19
|
-
default: boolean;
|
|
20
|
-
};
|
|
21
|
-
hideBtn: {
|
|
22
|
-
type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
|
|
23
|
-
default: boolean;
|
|
24
|
-
};
|
|
25
|
-
source: {
|
|
26
|
-
type: StringConstructor;
|
|
27
|
-
default: string;
|
|
28
|
-
};
|
|
29
|
-
isLock: {
|
|
30
|
-
type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
|
|
31
|
-
default: boolean;
|
|
32
|
-
};
|
|
33
|
-
type: {
|
|
34
|
-
type: StringConstructor;
|
|
35
|
-
default: string;
|
|
36
|
-
};
|
|
37
|
-
styleSetting: {
|
|
38
|
-
type: ObjectConstructor;
|
|
39
|
-
default: () => {};
|
|
40
|
-
};
|
|
41
|
-
fontSizeObj: {
|
|
42
|
-
type: ObjectConstructor;
|
|
43
|
-
default: () => {
|
|
44
|
-
large: number;
|
|
45
|
-
medium: number;
|
|
46
|
-
small: number;
|
|
47
|
-
extrasmall: number;
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
openType: {
|
|
51
|
-
type: StringConstructor;
|
|
52
|
-
default: string;
|
|
53
|
-
};
|
|
54
|
-
scaleApiConfig: {
|
|
55
|
-
type: ObjectConstructor;
|
|
56
|
-
default: () => {};
|
|
57
|
-
};
|
|
58
|
-
getSelectOptions: {
|
|
59
|
-
type: FunctionConstructor;
|
|
60
|
-
default: () => Promise<never[]>;
|
|
61
|
-
};
|
|
62
|
-
getSearchOptions: {
|
|
63
|
-
type: FunctionConstructor;
|
|
64
|
-
default: () => Promise<never[]>;
|
|
65
|
-
};
|
|
66
|
-
getCascadeOptions: {
|
|
67
|
-
type: FunctionConstructor;
|
|
68
|
-
default: () => Promise<never[]>;
|
|
69
|
-
};
|
|
70
|
-
getLabelList: {
|
|
71
|
-
type: FunctionConstructor;
|
|
72
|
-
default: () => Promise<never[]>;
|
|
73
|
-
};
|
|
74
|
-
deleteLabel: {
|
|
75
|
-
type: FunctionConstructor;
|
|
76
|
-
default: () => Promise<{
|
|
77
|
-
status: boolean;
|
|
78
|
-
}>;
|
|
79
|
-
};
|
|
80
|
-
saveLabelItem: {
|
|
81
|
-
type: FunctionConstructor;
|
|
82
|
-
default: () => Promise<{
|
|
83
|
-
status: boolean;
|
|
84
|
-
}>;
|
|
85
|
-
};
|
|
86
|
-
uploadPictureUrl: {
|
|
87
|
-
type: StringConstructor;
|
|
88
|
-
default: string;
|
|
89
|
-
};
|
|
90
|
-
uploadFileUrl: {
|
|
91
|
-
type: StringConstructor;
|
|
92
|
-
default: string;
|
|
93
|
-
};
|
|
94
|
-
ak: {
|
|
95
|
-
type: StringConstructor;
|
|
96
|
-
default: string;
|
|
97
|
-
};
|
|
98
|
-
sourceType: {
|
|
99
|
-
type: StringConstructor;
|
|
100
|
-
default: string;
|
|
101
|
-
};
|
|
102
|
-
getChunkUploadConfig: {
|
|
103
|
-
type: FunctionConstructor;
|
|
104
|
-
default: () => Promise<{
|
|
105
|
-
checkFileMd5Exist: string;
|
|
106
|
-
fileChannel: string;
|
|
107
|
-
md5: string;
|
|
108
|
-
objectName: string;
|
|
109
|
-
partFileMerge: string;
|
|
110
|
-
partFileUpload: string;
|
|
111
|
-
token: string;
|
|
112
|
-
}>;
|
|
113
|
-
};
|
|
114
|
-
};
|
|
115
|
-
export default ScaleViewProps;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e={ids:{type:Object,default:()=>({guage_id:"",db_id:void 0})},params:{default:()=>({}),type:Object},guageData:{type:Object,default:()=>({})},noBtn:{type:[Boolean,String,Number],default:!1},hideBtn:{type:[Boolean,String,Number],default:!1},source:{type:String,default:""},isLock:{type:[Boolean,String,Number],default:!1},type:{type:String,default:""},styleSetting:{type:Object,default:()=>({})},fontSizeObj:{type:Object,default:()=>({large:1.25,medium:1.1,small:1,extrasmall:.9})},openType:{type:String,default:""},scaleApiConfig:{type:Object,default:()=>({})},getSelectOptions:{type:Function,default:()=>Promise.resolve([])},getSearchOptions:{type:Function,default:()=>Promise.resolve([])},getCascadeOptions:{type:Function,default:()=>Promise.resolve([])},getLabelList:{type:Function,default:()=>Promise.resolve([])},deleteLabel:{type:Function,default:()=>Promise.resolve({status:!0})},saveLabelItem:{type:Function,default:()=>Promise.resolve({status:!0})},uploadPictureUrl:{type:String,default:""},uploadFileUrl:{type:String,default:""},ak:{type:String,default:"KP3BZ-OAC3W-PY6RY-OJ6DV-JYKN3-H6F72"},sourceType:{type:String,default:""},getChunkUploadConfig:{type:Function,default:()=>Promise.resolve({checkFileMd5Exist:"http://192.168.1.223:12060/storage/checkFileMd5Exist",fileChannel:"null",md5:"9ed34823e7ef4754819704135b29c9ab",objectName:"0/0/20220602",partFileMerge:"http://192.168.1.223:12060/storage/partFileMerge",partFileUpload:"http://192.168.1.223:12060/storage/partFileUpload",token:"4d0eb8f174994d33adb71766d1ef8ce4"})}};export{e as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './useAdvanced';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./useAdvanced.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const getWidgetTypeInSql: (fieldType: string, mappingConfig?: any) => string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{WidgetTypeEnums as e,FieldTypeEnums as t}from"../types/enums.js";const r=(r,E={mappingMethod:null,mapping:[]})=>{switch(r){case t.NUMBER:return E.mappingMethod?e.SELECT:e.INPUT_NUMBER;case t.TEXT:return E.mappingMethod?e.SELECT:e.INPUT;case t.DATE_TIME:return e.DATE_TIME;case t.DATE:return e.DATE;default:return e.INPUT}};export{r as getWidgetTypeInSql};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{computed as e,onMounted as t,onUnmounted as n}from"vue";import{useDebounceFn as l}from"@vueuse/core";function o(o,c){const u=l((e=>{!function(e){const t=e.target;if(["INPUT"].includes(t.tagName)){const{selectionStart:e=0,selectionEnd:n=0}=t;e===n&&t.select()}}(e)}),200),s=e((()=>{var e;return null==(e=o.value)?void 0:e.$el}));function r(e){const t=e.target;t.value&&Reflect.get(t,"_f_")&&(Reflect.set(t,"_f_",0),a(t,!0)&&(e.preventDefault(),e.stopPropagation()))}function i(e){const{key:t,target:n}=e;/\d/.test(t)&&n?Reflect.set(n,"_f_",1):"Enter"===t&&a(e.target,!1,!0)}function a(e,t,n){const l=e.value;if(!l)return;const o=e.selectionEnd||0,u=l.length;let s=0,r=0,i=0,a="",v=0;for(;s<u;){const e=l[s++];if(/\d/.test(e)&&(a+=e),s===o){i=a.length;const e=l.slice(s).match(/^\d+/);v=e?e[0].length:0}}const d=c.value;let f="",g=0,h=0;for(s=0;s<d.length&&(n||!(r>=a.length));){const e=d[s++];if(/[yMdHms]/.test(e)?f+=a[r++]||"0":f+=e,t&&r===i){i=-1,g=f.length,h=g;let e=d.slice(s).match(/^[yMdHms]+/);e?(v=Math.min(v,e[0].length),v&&(f+=a.slice(r,r+v),r+=v),s+=e[0].length):(e=d.slice(s).match(/^([^yMdHms]+)([yMdHms]*)/),e&&(g+=e[1].length,h=g+e[2].length))}}const m=f!==l;if(m){e.value=f;const t=new InputEvent("input");e.dispatchEvent(t)}return t&&(g=g||f.length+1,h=h||f.length+1,e.setSelectionRange(g,h)),m}return t((()=>{s.value&&(s.value.addEventListener("input",r,!0),s.value.addEventListener("keydown",i,!0),s.value.addEventListener("click",u,!0))})),n((()=>{s.value&&(s.value.removeEventListener("input",r,!0),s.value.removeEventListener("keydown",i,!0),s.value.removeEventListener("click",u,!0))})),{focus:()=>{var e,t;return null==(t=null==(e=o.value)?void 0:e.focus)?void 0:t.call(e)},blur:()=>{var e,t;return null==(t=null==(e=o.value)?void 0:e.blur)?void 0:t.call(e)}}}export{o as useDateTime};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export declare enum LogsType {
|
|
2
|
-
DEFAULT = "default",
|
|
3
|
-
PRIMARY = "primary",
|
|
4
|
-
SUCCESS = "success",
|
|
5
|
-
WARNING = "warning",
|
|
6
|
-
DANGER = "danger"
|
|
7
|
-
}
|
|
8
|
-
declare class Log {
|
|
9
|
-
/**
|
|
10
|
-
* @description 打印一个 [ title | text ] 样式的信息
|
|
11
|
-
* @param {String} title title text
|
|
12
|
-
* @param {String} info info text
|
|
13
|
-
* @param {String} type style
|
|
14
|
-
* @param {any[]} appendInfo
|
|
15
|
-
*/
|
|
16
|
-
capsule(title: string, info: any, type?: LogsType, ...appendInfo: any[]): void;
|
|
17
|
-
/**
|
|
18
|
-
* @description 打印彩色文字
|
|
19
|
-
*/
|
|
20
|
-
colorful(textArr: {
|
|
21
|
-
text: any;
|
|
22
|
-
type: LogsType;
|
|
23
|
-
}[]): void;
|
|
24
|
-
text(text: any): void;
|
|
25
|
-
primary(text: any): void;
|
|
26
|
-
success(text: any): void;
|
|
27
|
-
warning(text: any): void;
|
|
28
|
-
danger(text: any): void;
|
|
29
|
-
}
|
|
30
|
-
declare const log: Log;
|
|
31
|
-
export default log;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var r=(r=>(r.DEFAULT="default",r.PRIMARY="primary",r.SUCCESS="success",r.WARNING="warning",r.DANGER="danger",r))(r||{});function t(r="primary"){return{default:"#f5f5f5",primary:"#409EFF",success:"#67C23A",warning:"#E6A23C",danger:"#F56C6C"}[r]}const e=new class{capsule(r,e,a="primary",...o){console.log(`%c ${r} %c ${e} %c`,"background:#35495E; padding: 1px; border-radius: 3px 0 0 3px; color: #fff;",`background:${t(a)}; padding: 1px; border-radius: 0 3px 3px 0; color: #fff;`,"background:transparent",...o)}colorful(r){console.log(`%c${r.map((r=>r.text||"")).join("%c")}`,...r.map((r=>`color: ${t(r.type)};`)))}text(r){this.colorful([{text:r,type:"default"}])}primary(r){this.colorful([{text:r,type:"primary"}])}success(r){this.colorful([{text:r,type:"success"}])}warning(r){this.colorful([{text:r,type:"warning"}])}danger(r){this.colorful([{text:r,type:"danger"}])}};export{r as LogsType,e as default};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|