cnhis-design-vue 3.1.43-release.2 → 3.1.43
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/base-search/index.d.ts +4 -0
- package/es/components/base-search/src/index.vue.d.ts +4 -0
- package/es/components/base-search/src/index.vue.js +1 -1
- package/es/components/base-search/style/index.css +1 -1
- package/es/components/classification/index.d.ts +3 -1
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +3 -1
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +3 -1
- package/es/components/classification/src/index.vue.d.ts +3 -1
- package/es/components/fabric-chart/src/hooks/useOther.js +1 -1
- package/es/components/fabric-chart/src/hooks/useTemperatureChart.js +1 -1
- package/es/components/form-config/index.d.ts +8 -8
- package/es/components/form-config/src/FormConfig.vue.d.ts +8 -8
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +4 -4
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +4 -4
- package/es/components/form-render/index.d.ts +4 -4
- package/es/components/form-render/src/FormRender.vue.d.ts +4 -4
- package/es/components/form-render/src/FormRender.vue.js +1 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +4 -4
- package/es/components/form-render/src/components/renderer/radio&checkbox.d.ts +6 -0
- package/es/components/form-render/src/components/renderer/radio_checkbox.js +1 -1
- package/es/components/form-render/src/components/renderer/searchCascade.js +1 -1
- package/es/components/form-render/src/components/renderer/select.js +1 -1
- package/es/components/form-render/src/hooks/useAnchor.js +1 -1
- package/es/components/form-render/src/hooks/useNuiThemeOverrides.js +1 -1
- package/es/components/form-render/style/index.css +1 -1
- package/es/components/guide/index.d.ts +2 -0
- package/es/components/guide/index.js +1 -0
- package/es/components/guide/src/renderer.d.ts +37 -0
- package/es/components/guide/src/renderer.js +1 -0
- package/es/components/guide/src/types/index.d.ts +40 -0
- package/es/components/guide/src/useGuide.d.ts +6 -0
- package/es/components/guide/src/useGuide.js +1 -0
- package/es/components/guide/src/utils/index.d.ts +14 -0
- package/es/components/guide/src/utils/index.js +1 -0
- package/es/components/iho-select-label/index.d.ts +352 -0
- package/es/components/iho-select-label/index.js +1 -0
- package/es/components/iho-select-label/src/LabelFormContent.vue.d.ts +141 -0
- package/es/components/iho-select-label/src/LabelFormContent.vue.js +1 -0
- package/es/components/iho-select-label/src/SelectLabel.vue.d.ts +213 -0
- package/es/components/iho-select-label/src/SelectLabel.vue.js +1 -0
- package/es/components/iho-select-label/src/components/label-classify.vue.d.ts +63 -0
- package/es/components/iho-select-label/src/components/label-classify.vue.js +1 -0
- package/es/components/iho-select-label/src/types/index.d.ts +11 -0
- package/es/components/iho-select-label/src/types/index.js +1 -0
- package/es/components/iho-select-label/style/iho-select-label-iconfont.ttf +0 -0
- package/es/components/iho-select-label/style/index.css +1 -0
- package/es/components/iho-table/index.d.ts +1 -0
- package/es/components/iho-table/src/IhoTable.vue.d.ts +1 -0
- package/es/components/iho-table/src/IhoTable.vue.js +1 -1
- package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.d.ts +3 -11
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.js +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/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/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +2 -3
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useAutoFocus.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useSelectOption.d.ts +2 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useSelectOption.js +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/virtualTreePlugin/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 +4 -1
- package/es/components/index.js +1 -1
- package/es/components/info-header/index.d.ts +8 -8
- package/es/components/info-header/src/InfoHeader.vue.d.ts +8 -8
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +4 -4
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +4 -4
- package/es/components/keyboard/src/components/InputNumber.vue.js +1 -1
- package/es/components/quick-search/style/index.css +1 -1
- package/es/components/scale-view/src/components/formitem/standard-modal.d.ts +1 -1
- package/es/components/shortcut-setter/index.d.ts +4 -4
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +4 -4
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +3 -1
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +3 -1
- package/es/components/table-filter/src/components/render-widget/basicData.d.ts +4 -0
- package/es/components/table-filter/src/components/render-widget/basicData.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/Date.vue.d.ts +3 -28
- package/es/components/table-filter/src/components/render-widget/components/Date.vue.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/DateRange.vue.d.ts +118 -0
- package/es/components/table-filter/src/components/render-widget/components/DateRange.vue.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/InputNumberGroup.vue.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/Select.vue.d.ts +0 -1
- package/es/components/table-filter/src/components/render-widget/components/Select.vue.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +2 -1
- package/es/components/table-filter/src/components/render-widget/components/index.js +1 -1
- package/es/components/table-filter/src/components/render-widget/enums.d.ts +17 -0
- package/es/components/table-filter/src/components/render-widget/enums.js +1 -1
- package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.d.ts +5 -0
- package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js +1 -1
- package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -1
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +125 -19
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
- package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
- package/es/components/table-filter/src/hooks/useRenderWidget.js +1 -1
- package/es/components/table-filter/src/types/enums.d.ts +3 -1
- package/es/components/table-filter/src/types/enums.js +1 -1
- package/es/components/table-filter/src/types/index.d.ts +1 -0
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useTriggerEvent.d.ts +0 -0
- /package/es/components/{iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useTriggerEvent.js → guide/src/types/index.js} +0 -0
|
@@ -2588,7 +2588,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2588
2588
|
type: BooleanConstructor;
|
|
2589
2589
|
};
|
|
2590
2590
|
bordered: {
|
|
2591
|
-
type: BooleanConstructor;
|
|
2591
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
2592
2592
|
default: boolean;
|
|
2593
2593
|
};
|
|
2594
2594
|
}, {
|
|
@@ -2720,7 +2720,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2720
2720
|
type: BooleanConstructor;
|
|
2721
2721
|
};
|
|
2722
2722
|
bordered: {
|
|
2723
|
-
type: BooleanConstructor;
|
|
2723
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
2724
2724
|
default: boolean;
|
|
2725
2725
|
};
|
|
2726
2726
|
}>> & {
|
|
@@ -3168,7 +3168,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
3168
3168
|
type: BooleanConstructor;
|
|
3169
3169
|
};
|
|
3170
3170
|
bordered: {
|
|
3171
|
-
type: BooleanConstructor;
|
|
3171
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
3172
3172
|
default: boolean;
|
|
3173
3173
|
};
|
|
3174
3174
|
}>> & {
|
|
@@ -3186,7 +3186,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
3186
3186
|
consumer: boolean;
|
|
3187
3187
|
enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
|
|
3188
3188
|
linebarAutoHidden: boolean;
|
|
3189
|
-
bordered: boolean;
|
|
3189
|
+
bordered: string | boolean;
|
|
3190
3190
|
}>;
|
|
3191
3191
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
|
|
3192
3192
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -3438,7 +3438,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
3438
3438
|
type: BooleanConstructor;
|
|
3439
3439
|
};
|
|
3440
3440
|
bordered: {
|
|
3441
|
-
type: BooleanConstructor;
|
|
3441
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
3442
3442
|
default: boolean;
|
|
3443
3443
|
};
|
|
3444
3444
|
}, {
|
|
@@ -3570,7 +3570,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
3570
3570
|
type: BooleanConstructor;
|
|
3571
3571
|
};
|
|
3572
3572
|
bordered: {
|
|
3573
|
-
type: BooleanConstructor;
|
|
3573
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
3574
3574
|
default: boolean;
|
|
3575
3575
|
};
|
|
3576
3576
|
}>> & {
|
|
@@ -4018,7 +4018,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
4018
4018
|
type: BooleanConstructor;
|
|
4019
4019
|
};
|
|
4020
4020
|
bordered: {
|
|
4021
|
-
type: BooleanConstructor;
|
|
4021
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
4022
4022
|
default: boolean;
|
|
4023
4023
|
};
|
|
4024
4024
|
}>> & {
|
|
@@ -4036,7 +4036,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
4036
4036
|
consumer: boolean;
|
|
4037
4037
|
enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
|
|
4038
4038
|
linebarAutoHidden: boolean;
|
|
4039
|
-
bordered: boolean;
|
|
4039
|
+
bordered: string | boolean;
|
|
4040
4040
|
}>;
|
|
4041
4041
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
|
|
4042
4042
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -2582,7 +2582,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2582
2582
|
type: BooleanConstructor;
|
|
2583
2583
|
};
|
|
2584
2584
|
bordered: {
|
|
2585
|
-
type: BooleanConstructor;
|
|
2585
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
2586
2586
|
default: boolean;
|
|
2587
2587
|
};
|
|
2588
2588
|
}, {
|
|
@@ -2714,7 +2714,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2714
2714
|
type: BooleanConstructor;
|
|
2715
2715
|
};
|
|
2716
2716
|
bordered: {
|
|
2717
|
-
type: BooleanConstructor;
|
|
2717
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
2718
2718
|
default: boolean;
|
|
2719
2719
|
};
|
|
2720
2720
|
}>> & {
|
|
@@ -3162,7 +3162,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3162
3162
|
type: BooleanConstructor;
|
|
3163
3163
|
};
|
|
3164
3164
|
bordered: {
|
|
3165
|
-
type: BooleanConstructor;
|
|
3165
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
3166
3166
|
default: boolean;
|
|
3167
3167
|
};
|
|
3168
3168
|
}>> & {
|
|
@@ -3180,7 +3180,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3180
3180
|
consumer: boolean;
|
|
3181
3181
|
enterToNextWidget: boolean | ((fieldItem: import("../../../../es/components/form-render").FieldItem) => boolean | void);
|
|
3182
3182
|
linebarAutoHidden: boolean;
|
|
3183
|
-
bordered: boolean;
|
|
3183
|
+
bordered: string | boolean;
|
|
3184
3184
|
}>;
|
|
3185
3185
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
|
|
3186
3186
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -3432,7 +3432,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3432
3432
|
type: BooleanConstructor;
|
|
3433
3433
|
};
|
|
3434
3434
|
bordered: {
|
|
3435
|
-
type: BooleanConstructor;
|
|
3435
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
3436
3436
|
default: boolean;
|
|
3437
3437
|
};
|
|
3438
3438
|
}, {
|
|
@@ -3564,7 +3564,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3564
3564
|
type: BooleanConstructor;
|
|
3565
3565
|
};
|
|
3566
3566
|
bordered: {
|
|
3567
|
-
type: BooleanConstructor;
|
|
3567
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
3568
3568
|
default: boolean;
|
|
3569
3569
|
};
|
|
3570
3570
|
}>> & {
|
|
@@ -4012,7 +4012,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4012
4012
|
type: BooleanConstructor;
|
|
4013
4013
|
};
|
|
4014
4014
|
bordered: {
|
|
4015
|
-
type: BooleanConstructor;
|
|
4015
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
4016
4016
|
default: boolean;
|
|
4017
4017
|
};
|
|
4018
4018
|
}>> & {
|
|
@@ -4030,7 +4030,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4030
4030
|
consumer: boolean;
|
|
4031
4031
|
enterToNextWidget: boolean | ((fieldItem: import("../../../../es/components/form-render").FieldItem) => boolean | void);
|
|
4032
4032
|
linebarAutoHidden: boolean;
|
|
4033
|
-
bordered: boolean;
|
|
4033
|
+
bordered: string | boolean;
|
|
4034
4034
|
}>;
|
|
4035
4035
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
|
|
4036
4036
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -2170,7 +2170,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2170
2170
|
type: BooleanConstructor;
|
|
2171
2171
|
};
|
|
2172
2172
|
bordered: {
|
|
2173
|
-
type: BooleanConstructor;
|
|
2173
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
2174
2174
|
default: boolean;
|
|
2175
2175
|
};
|
|
2176
2176
|
}, {
|
|
@@ -2302,7 +2302,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2302
2302
|
type: BooleanConstructor;
|
|
2303
2303
|
};
|
|
2304
2304
|
bordered: {
|
|
2305
|
-
type: BooleanConstructor;
|
|
2305
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
2306
2306
|
default: boolean;
|
|
2307
2307
|
};
|
|
2308
2308
|
}>> & {
|
|
@@ -2750,7 +2750,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2750
2750
|
type: BooleanConstructor;
|
|
2751
2751
|
};
|
|
2752
2752
|
bordered: {
|
|
2753
|
-
type: BooleanConstructor;
|
|
2753
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
2754
2754
|
default: boolean;
|
|
2755
2755
|
};
|
|
2756
2756
|
}>> & {
|
|
@@ -2768,7 +2768,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2768
2768
|
consumer: boolean;
|
|
2769
2769
|
enterToNextWidget: boolean | ((fieldItem: import("../../../../../../es/components/form-render").FieldItem) => boolean | void);
|
|
2770
2770
|
linebarAutoHidden: boolean;
|
|
2771
|
-
bordered: boolean;
|
|
2771
|
+
bordered: string | boolean;
|
|
2772
2772
|
}>;
|
|
2773
2773
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
|
|
2774
2774
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -182,7 +182,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
182
182
|
type: BooleanConstructor;
|
|
183
183
|
};
|
|
184
184
|
bordered: {
|
|
185
|
-
type: BooleanConstructor;
|
|
185
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
186
186
|
default: boolean;
|
|
187
187
|
};
|
|
188
188
|
}, {
|
|
@@ -314,7 +314,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
314
314
|
type: BooleanConstructor;
|
|
315
315
|
};
|
|
316
316
|
bordered: {
|
|
317
|
-
type: BooleanConstructor;
|
|
317
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
318
318
|
default: boolean;
|
|
319
319
|
};
|
|
320
320
|
}>> & {
|
|
@@ -762,7 +762,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
762
762
|
type: BooleanConstructor;
|
|
763
763
|
};
|
|
764
764
|
bordered: {
|
|
765
|
-
type: BooleanConstructor;
|
|
765
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
766
766
|
default: boolean;
|
|
767
767
|
};
|
|
768
768
|
}>> & {
|
|
@@ -780,7 +780,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
780
780
|
consumer: boolean;
|
|
781
781
|
enterToNextWidget: boolean | ((fieldItem: FieldItem) => boolean | void);
|
|
782
782
|
linebarAutoHidden: boolean;
|
|
783
|
-
bordered: boolean;
|
|
783
|
+
bordered: string | boolean;
|
|
784
784
|
}>;
|
|
785
785
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
|
|
786
786
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,ref as t,inject as u,watch as l,openBlock as n,createBlock as o,unref as a,withCtx as s,createVNode as r}from"vue";import{NInput as i,NSpace as p,NIcon as c}from"naive-ui";import{CaretUp as d,CaretDown as m}from"@vicons/ionicons5";import{getNumber as f}from"../utils/index.js";import v from"../../../../_virtual/plugin-vue_export-helper.js";var g=v(e({__name:"InputNumber",props:{modelValue:{type:String,default:""},integer:{type:Boolean,default:!1},status:{type:String,default:"success"}},emits:["update:modelValue","update:status"],setup(e,{expose:v,emit:g}){const _=e,y=t(null),V=u("toSelectInputContent");function x(e){const t="string"==typeof e?e:e.join("");g("update:modelValue",t),g("update:status",t?"success":"error")}function b(e){return _.integer?/(^[1-9]\d*$)/.test(e)||!e:/^\d
|
|
1
|
+
import{defineComponent as e,ref as t,inject as u,watch as l,openBlock as n,createBlock as o,unref as a,withCtx as s,createVNode as r}from"vue";import{NInput as i,NSpace as p,NIcon as c}from"naive-ui";import{CaretUp as d,CaretDown as m}from"@vicons/ionicons5";import{getNumber as f}from"../utils/index.js";import v from"../../../../_virtual/plugin-vue_export-helper.js";var g=v(e({__name:"InputNumber",props:{modelValue:{type:String,default:""},integer:{type:Boolean,default:!1},status:{type:String,default:"success"}},emits:["update:modelValue","update:status"],setup(e,{expose:v,emit:g}){const _=e,y=t(null),V=u("toSelectInputContent");function x(e){const t="string"==typeof e?e:e.join("");g("update:modelValue",t),g("update:status",t?"success":"error")}function b(e){return _.integer?/(^[1-9]\d*$)/.test(e)||!e:/^\d*\.?\d*$/.test(e)||!e}function j(e){const t=f(_.modelValue);let u="+"===e?t+1:t-1;(u<=0||isNaN(u))&&(u=1),g("update:modelValue",u.toString()),g("update:status","success")}return l((()=>V.value),(e=>{var t,u;!_.integer&&(null==(u=null==(t=y.value)?void 0:t.select)||u.call(t))})),v({$childrenRefs:y}),(t,u)=>(n(),o(a(i),{ref_key:"inputRef",ref:y,value:e.modelValue,"onUpdate:value":x,"allow-input":b,placeholder:"",status:e.status,clearable:!e.integer},{suffix:s((()=>[r(a(p),{justify:"center",vertical:""},{default:s((()=>[r(a(c),{size:"13",component:a(d),onClick:u[0]||(u[0]=e=>j("+"))},null,8,["component"]),r(a(c),{size:"13",component:a(m),onClick:u[1]||(u[1]=e=>j("-"))},null,8,["component"])])),_:1})])),_:1},8,["value","status","clearable"]))}}),[["__file","InputNumber.vue"]]);export{g as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.classification-modal-block .n-card-header .svg-wrap .iconfont-table-filter{cursor:pointer;font-size:18px}.classification-modal-block .n-card-header .svg-wrap .iconfont-table-filter:last-child{margin-left:16px}.classification-modal-block .n-card-header .svg-wrap .n-icon{cursor:pointer}.classification-modal-block .n-card__content{overflow-y:auto}.classification-modal-block .n-card__content .table-modal-list .list-title{background-color:#f2f2f4;border:1px solid #e1dfdf;display:flex;height:52px;line-height:52px}.classification-modal-block .n-card__content .table-modal-list .list-title .list-title-item{font-weight:700;width:25%}.classification-modal-block .n-card__content .table-modal-list .list-content{padding:0}.classification-modal-block .n-card__content .table-modal-list .list-content li{display:flex;height:52px;line-height:52px}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-item{align-items:center;display:flex;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap;width:25%}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-item .n-icon{cursor:pointer;margin-right:8px}.classification-modal-block .n-card__content .table-modal-list .list-content li.checked,.classification-modal-block .n-card__content .table-modal-list .list-content li.checked .text{background-color:#f2f2f2}.classification-modal-block .n-card__content .table-modal-list .list-content li .text{background-color:#fff;display:inline-block;padding:0 10px;position:relative}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-line{position:relative;text-align:center;width:75%}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-line:before{border:1px solid #e8e8e8;content:"";left:0;margin-top:20px;position:absolute;width:100%}.classification-modal-block .n-card__content .table-modal-list .list-title-item{margin-left:-1px;padding:0 10px}.classification-modal-block .n-card__content .table-modal-list .list-content-item{border-bottom:1px solid #e1dfdf;margin-left:-1px;margin-top:-1px;padding:0 10px}.classification-modal-block .n-card__content .table-modal-list .list-content-item .ant-switch{height:16px;min-width:28px;width:28px}.classification-modal-block .n-card__content .table-modal-list .list-content-item .ant-switch:after{height:12px;width:12px}.classification-modal-block .n-card__content .table-modal-list .list-content-radio,.classification-modal-block .n-card__content .table-modal-list .list-content-switch{text-align:center}.classification-modal-block .n-card__content .table-modal-list .anticon+.anticon{margin-left:8px}.classification-modal-block .n-card__content .class-filter-content .item-name{display:flex;height:32px;line-height:32px;margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .item-name .label{text-align:right;width:120px}.classification-modal-block .n-card__content .class-filter-content .item-name .addAction{align-items:center;cursor:pointer;display:flex}.classification-modal-block .n-card__content .class-filter-content .item-name .blue{color:#2d7aff;margin-right:8px}.classification-modal-block .n-card__content .class-filter-content .n-form-item-label{width:120px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content{align-items:center;display:flex;flex-wrap:wrap;line-height:32px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .label{display:inline-block;height:32px;line-height:32px;margin-bottom:10px;text-align:right;width:120px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .ant-btn-dashed{border-color:#a6a6a6;color:#a6a6a6}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag{margin-bottom:10px;margin-right:10px;position:relative}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag .anticon-close{color:#2d7aff;cursor:pointer;line-height:36px;position:absolute;right:5px;top:2px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag .s-content{align-items:center;background-color:rgba(45,122,255,.1);border:1px solid #2d7aff;border-radius:3px;box-sizing:border-box;color:#2d7aff;cursor:pointer;display:flex;justify-content:center;opacity:1;padding:0 10px;width:100px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag .s-content span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select .ant-input-disabled,.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select .s-content{background-color:#2d7aff;color:#fff}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select .anticon-close{color:#fff}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .ant-btn{margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list{border-top:1px solid #e6e6e6;margin-bottom:6px;margin-top:16px;padding-top:12px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li{align-items:center;display:flex;list-style:none;margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .index-span{display:inline-block;width:30px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .form-item{margin-right:10px;width:120px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .form-item.n-date-picker{width:auto}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .value-cfg_wrapper{display:flex;flex-wrap:wrap}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .value-cfg_wrapper .form-item{margin-right:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .delete-item-icon{color:red;cursor:pointer;font-size:18px}.classification-modal-block .n-card__footer{padding-top:10px}.classification-modal-block .n-card__footer .flex_between{display:flex;justify-content:space-between}.classification-modal-block .n-card__footer .flex_right{display:flex;justify-content:right}.classification-modal-block .n-card__footer .n-button{margin-left:8px}.render-widget-input-number-group{align-items:center;display:flex}.render-widget-input-number-group .
|
|
1
|
+
.classification-modal-block .n-card-header .svg-wrap .iconfont-table-filter{cursor:pointer;font-size:18px}.classification-modal-block .n-card-header .svg-wrap .iconfont-table-filter:last-child{margin-left:16px}.classification-modal-block .n-card-header .svg-wrap .n-icon{cursor:pointer}.classification-modal-block .n-card__content{overflow-y:auto}.classification-modal-block .n-card__content .table-modal-list .list-title{background-color:#f2f2f4;border:1px solid #e1dfdf;display:flex;height:52px;line-height:52px}.classification-modal-block .n-card__content .table-modal-list .list-title .list-title-item{font-weight:700;width:25%}.classification-modal-block .n-card__content .table-modal-list .list-content{padding:0}.classification-modal-block .n-card__content .table-modal-list .list-content li{display:flex;height:52px;line-height:52px}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-item{align-items:center;display:flex;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap;width:25%}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-item .n-icon{cursor:pointer;margin-right:8px}.classification-modal-block .n-card__content .table-modal-list .list-content li.checked,.classification-modal-block .n-card__content .table-modal-list .list-content li.checked .text{background-color:#f2f2f2}.classification-modal-block .n-card__content .table-modal-list .list-content li .text{background-color:#fff;display:inline-block;padding:0 10px;position:relative}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-line{position:relative;text-align:center;width:75%}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-line:before{border:1px solid #e8e8e8;content:"";left:0;margin-top:20px;position:absolute;width:100%}.classification-modal-block .n-card__content .table-modal-list .list-title-item{margin-left:-1px;padding:0 10px}.classification-modal-block .n-card__content .table-modal-list .list-content-item{border-bottom:1px solid #e1dfdf;margin-left:-1px;margin-top:-1px;padding:0 10px}.classification-modal-block .n-card__content .table-modal-list .list-content-item .ant-switch{height:16px;min-width:28px;width:28px}.classification-modal-block .n-card__content .table-modal-list .list-content-item .ant-switch:after{height:12px;width:12px}.classification-modal-block .n-card__content .table-modal-list .list-content-radio,.classification-modal-block .n-card__content .table-modal-list .list-content-switch{text-align:center}.classification-modal-block .n-card__content .table-modal-list .anticon+.anticon{margin-left:8px}.classification-modal-block .n-card__content .class-filter-content .item-name{display:flex;height:32px;line-height:32px;margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .item-name .label{text-align:right;width:120px}.classification-modal-block .n-card__content .class-filter-content .item-name .addAction{align-items:center;cursor:pointer;display:flex}.classification-modal-block .n-card__content .class-filter-content .item-name .blue{color:#2d7aff;margin-right:8px}.classification-modal-block .n-card__content .class-filter-content .n-form-item-label{width:120px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content{align-items:center;display:flex;flex-wrap:wrap;line-height:32px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .label{display:inline-block;height:32px;line-height:32px;margin-bottom:10px;text-align:right;width:120px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .ant-btn-dashed{border-color:#a6a6a6;color:#a6a6a6}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag{margin-bottom:10px;margin-right:10px;position:relative}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag .anticon-close{color:#2d7aff;cursor:pointer;line-height:36px;position:absolute;right:5px;top:2px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag .s-content{align-items:center;background-color:rgba(45,122,255,.1);border:1px solid #2d7aff;border-radius:3px;box-sizing:border-box;color:#2d7aff;cursor:pointer;display:flex;justify-content:center;opacity:1;padding:0 10px;width:100px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag .s-content span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select .ant-input-disabled,.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select .s-content{background-color:#2d7aff;color:#fff}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select .anticon-close{color:#fff}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .ant-btn{margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list{border-top:1px solid #e6e6e6;margin-bottom:6px;margin-top:16px;padding-top:12px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li{align-items:center;display:flex;list-style:none;margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .index-span{display:inline-block;width:30px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .form-item{margin-right:10px;width:120px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .form-item.n-date-picker{width:auto}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .value-cfg_wrapper{display:flex;flex-wrap:wrap}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .value-cfg_wrapper .form-item{margin-right:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .delete-item-icon{color:red;cursor:pointer;font-size:18px}.classification-modal-block .n-card__footer{padding-top:10px}.classification-modal-block .n-card__footer .flex_between{display:flex;justify-content:space-between}.classification-modal-block .n-card__footer .flex_right{display:flex;justify-content:right}.classification-modal-block .n-card__footer .n-button{margin-left:8px}.render-widget-input-number-group{align-items:center;display:flex}.render-widget-input-number-group .divider{text-align:center;width:24px}.n-base-select-option__content{width:100%}.n-base-select-option__content .select-widget-dynamic-option{display:flex;flex-wrap:nowrap;width:100%}.n-base-select-option__content .select-widget-dynamic-option .select-widget-dynamic-item{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.render-widget-date-range{align-items:center;display:flex;flex-wrap:nowrap;width:100%}.render-widget-date-range .radio-date-group{border:1px solid #d9d9d9;display:flex}.render-widget-date-range .radio-date-group .radio-date-item{border-left:1px solid #d9d9d9;cursor:pointer;height:30px;line-height:30px;padding:0 8px}.render-widget-date-range .radio-date-group .radio-date-item:first-child{border:none}.render-widget-date-range .radio-date-group .radio-date-item.radio-date-item-active{background:#3e65cf;border-color:#3e65cf;color:#fff}.render-widget-date-range .select-date-left{margin-left:16px}.render-widget-date-range .select-date-right{margin-right:16px}.render-widget-date-range .date-detail-range{display:flex;flex-wrap:nowrap}.render-widget-date-range .date-detail-range .divider{text-align:center;width:10px}.quick-search-block .quick-item{margin-bottom:10px;min-width:32px;width:20%}.quick-search-block .quick-item .quick-row{align-items:center;display:flex}.quick-search-block .quick-item .quick-row .quick-item-title{box-sizing:border-box;flex-basis:134px;line-height:32px;min-width:130px;overflow:hidden;padding-left:4px;padding-right:4px;text-align:right;text-overflow:ellipsis;white-space:nowrap}.quick-search-block .quick-item .quick-row .quick-item-col{align-items:center;display:flex;padding:0 4px;width:calc(100% - 134px)}.quick-search-block .quick-item .quick-row .quick-item-title-default{width:25%}.quick-search-block .quick-item .quick-row .quick-item-col-default{width:75%}.quick-search-block.quick-search-table .quick-item{display:inline-block}.quick-search-block.quick-search-table .quick-item.quick-block{display:block;width:100%}
|
|
@@ -1869,7 +1869,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1869
1869
|
type: BooleanConstructor;
|
|
1870
1870
|
};
|
|
1871
1871
|
bordered: {
|
|
1872
|
-
type: BooleanConstructor;
|
|
1872
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
1873
1873
|
default: boolean;
|
|
1874
1874
|
};
|
|
1875
1875
|
}, {
|
|
@@ -2001,7 +2001,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2001
2001
|
type: BooleanConstructor;
|
|
2002
2002
|
};
|
|
2003
2003
|
bordered: {
|
|
2004
|
-
type: BooleanConstructor;
|
|
2004
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
2005
2005
|
default: boolean;
|
|
2006
2006
|
};
|
|
2007
2007
|
}>> & {
|
|
@@ -2449,7 +2449,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2449
2449
|
type: BooleanConstructor;
|
|
2450
2450
|
};
|
|
2451
2451
|
bordered: {
|
|
2452
|
-
type: BooleanConstructor;
|
|
2452
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
2453
2453
|
default: boolean;
|
|
2454
2454
|
};
|
|
2455
2455
|
}>> & {
|
|
@@ -2467,7 +2467,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2467
2467
|
consumer: boolean;
|
|
2468
2468
|
enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
|
|
2469
2469
|
linebarAutoHidden: boolean;
|
|
2470
|
-
bordered: boolean;
|
|
2470
|
+
bordered: string | boolean;
|
|
2471
2471
|
}>;
|
|
2472
2472
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
|
|
2473
2473
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("error" | "update")[], "error" | "update", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -1871,7 +1871,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1871
1871
|
type: BooleanConstructor;
|
|
1872
1872
|
};
|
|
1873
1873
|
bordered: {
|
|
1874
|
-
type: BooleanConstructor;
|
|
1874
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
1875
1875
|
default: boolean;
|
|
1876
1876
|
};
|
|
1877
1877
|
}, {
|
|
@@ -2003,7 +2003,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2003
2003
|
type: BooleanConstructor;
|
|
2004
2004
|
};
|
|
2005
2005
|
bordered: {
|
|
2006
|
-
type: BooleanConstructor;
|
|
2006
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
2007
2007
|
default: boolean;
|
|
2008
2008
|
};
|
|
2009
2009
|
}>> & {
|
|
@@ -2451,7 +2451,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2451
2451
|
type: BooleanConstructor;
|
|
2452
2452
|
};
|
|
2453
2453
|
bordered: {
|
|
2454
|
-
type: BooleanConstructor;
|
|
2454
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
2455
2455
|
default: boolean;
|
|
2456
2456
|
};
|
|
2457
2457
|
}>> & {
|
|
@@ -2469,7 +2469,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2469
2469
|
consumer: boolean;
|
|
2470
2470
|
enterToNextWidget: boolean | ((fieldItem: FieldItem) => boolean | void);
|
|
2471
2471
|
linebarAutoHidden: boolean;
|
|
2472
|
-
bordered: boolean;
|
|
2472
|
+
bordered: string | boolean;
|
|
2473
2473
|
}>;
|
|
2474
2474
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
|
|
2475
2475
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("error" | "update")[], "error" | "update", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -50,7 +50,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
50
50
|
DATE: string;
|
|
51
51
|
DATE_TIME: string;
|
|
52
52
|
CHECKBOX_GROUP: string;
|
|
53
|
-
|
|
53
|
+
INPUTNUMBER_RANGE: string;
|
|
54
|
+
DATE_RANGE: string;
|
|
55
|
+
DATETIME_RANGE: string;
|
|
54
56
|
};
|
|
55
57
|
WidgetValEnums: {
|
|
56
58
|
CUSTOM: string;
|
|
@@ -170,7 +170,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
170
170
|
DATE: string;
|
|
171
171
|
DATE_TIME: string;
|
|
172
172
|
CHECKBOX_GROUP: string;
|
|
173
|
-
|
|
173
|
+
INPUTNUMBER_RANGE: string;
|
|
174
|
+
DATE_RANGE: string;
|
|
175
|
+
DATETIME_RANGE: string;
|
|
174
176
|
};
|
|
175
177
|
WidgetValEnums: {
|
|
176
178
|
CUSTOM: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const l=[{value:"TODAY",label:"今天"},{value:"TOMORROW",label:"明天"},{value:"YESTERDAY",label:"昨天"},{value:"THIS_WEEK",label:"本周"},{value:"NEXT_WEEK",label:"下周"},{value:"PREV_WEEK",label:"上周"},{value:"THIS_MONTH",label:"本月"},{value:"NEXT_MONTH",label:"下月"},{value:"PREV_MONTH",label:"上月"},{value:"THIS_QUATER",label:"本季度"},{value:"NEXT_QUATER",label:"下季度"},{value:"PREV_QUATER",label:"上季度"},{value:"THIS_YEAR",label:"本年"},{value:"NEXT_YEAR",label:"下年"},{value:"PREV_YEAR",label:"上年"}];export{l as DateRangeOptions};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
declare type ITypeDate = 'date' | 'datetime'
|
|
2
|
+
declare type ITypeDate = 'date' | 'datetime';
|
|
3
3
|
declare const _default: import("vue").DefineComponent<{
|
|
4
4
|
type: {
|
|
5
5
|
type: PropType<ITypeDate>;
|
|
@@ -13,14 +13,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
13
13
|
type: StringConstructor;
|
|
14
14
|
default: string;
|
|
15
15
|
};
|
|
16
|
-
startPlaceholder: {
|
|
17
|
-
type: StringConstructor;
|
|
18
|
-
default: string;
|
|
19
|
-
};
|
|
20
|
-
endPlaceholder: {
|
|
21
|
-
type: StringConstructor;
|
|
22
|
-
default: string;
|
|
23
|
-
};
|
|
24
16
|
placeholder: {
|
|
25
17
|
type: StringConstructor;
|
|
26
18
|
default: string;
|
|
@@ -43,14 +35,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
43
35
|
type: StringConstructor;
|
|
44
36
|
default: string;
|
|
45
37
|
};
|
|
46
|
-
startPlaceholder: {
|
|
47
|
-
type: StringConstructor;
|
|
48
|
-
default: string;
|
|
49
|
-
};
|
|
50
|
-
endPlaceholder: {
|
|
51
|
-
type: StringConstructor;
|
|
52
|
-
default: string;
|
|
53
|
-
};
|
|
54
38
|
placeholder: {
|
|
55
39
|
type: StringConstructor;
|
|
56
40
|
default: string;
|
|
@@ -64,7 +48,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
64
48
|
}>>;
|
|
65
49
|
emit: (event: "update:value", ...args: any[]) => void;
|
|
66
50
|
valueCp: import("vue").Ref<any>;
|
|
67
|
-
|
|
51
|
+
dateFormat: import("vue").ComputedRef<string>;
|
|
52
|
+
handleChange: (val: any) => void;
|
|
68
53
|
NDatePicker: any;
|
|
69
54
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
70
55
|
type: {
|
|
@@ -79,14 +64,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
79
64
|
type: StringConstructor;
|
|
80
65
|
default: string;
|
|
81
66
|
};
|
|
82
|
-
startPlaceholder: {
|
|
83
|
-
type: StringConstructor;
|
|
84
|
-
default: string;
|
|
85
|
-
};
|
|
86
|
-
endPlaceholder: {
|
|
87
|
-
type: StringConstructor;
|
|
88
|
-
default: string;
|
|
89
|
-
};
|
|
90
67
|
placeholder: {
|
|
91
68
|
type: StringConstructor;
|
|
92
69
|
default: string;
|
|
@@ -102,8 +79,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
102
79
|
value: string;
|
|
103
80
|
placeholder: string;
|
|
104
81
|
clearable: boolean;
|
|
105
|
-
startPlaceholder: string;
|
|
106
|
-
endPlaceholder: string;
|
|
107
82
|
valueFormat: string;
|
|
108
83
|
}>;
|
|
109
84
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,ref as a,watch as l,openBlock as
|
|
1
|
+
import{defineComponent as e,ref as a,computed as t,watch as l,openBlock as r,createBlock as u,unref as o}from"vue";import{NDatePicker as p}from"naive-ui";import m from"moment";import{isString as v}from"lodash-es";import i from"../../../../../../_virtual/plugin-vue_export-helper.js";var d=i(e({__name:"Date",props:{type:{type:String,default:"date"},clearable:{type:Boolean,default:!1},valueFormat:{type:String,default:"yyyy-MM-dd"},placeholder:{type:String,default:"请输入"},value:{type:String,default:""}},emits:["update:value"],setup(e,{emit:i}){const d=e,n=a(),f=t((()=>{let e="";switch(d.type){case"date":e="YYYY-MM-DD";break;case"datetime":e="YYYY-MM-DD HH:mm:ss"}return e}));function c(e){n.value=e;const a=e?m(e).format(f.value):e;i("update:value",a)}return l((()=>d.value),(e=>{e&&v(e)?n.value=m(e).valueOf():n.value=null}),{immediate:!0}),(a,t)=>(r(),u(o(p),{type:e.type,clearable:e.clearable,valueFormat:e.valueFormat,placeholder:e.placeholder,value:n.value,"onUpdate:value":c},null,8,["type","clearable","valueFormat","placeholder","value"]))}}),[["__file","Date.vue"]]);export{d as default};
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
declare type ITypeDate = 'date' | 'datetime';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
type: {
|
|
5
|
+
type: PropType<ITypeDate>;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
filterExplicit: {
|
|
9
|
+
type: NumberConstructor;
|
|
10
|
+
default: number;
|
|
11
|
+
};
|
|
12
|
+
clearable: {
|
|
13
|
+
type: BooleanConstructor;
|
|
14
|
+
default: boolean;
|
|
15
|
+
};
|
|
16
|
+
valueFormat: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
startPlaceholder: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
default: string;
|
|
23
|
+
};
|
|
24
|
+
endPlaceholder: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
default: string;
|
|
27
|
+
};
|
|
28
|
+
value: {
|
|
29
|
+
type: StringConstructor;
|
|
30
|
+
default: string;
|
|
31
|
+
};
|
|
32
|
+
}, {
|
|
33
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
34
|
+
type: {
|
|
35
|
+
type: PropType<ITypeDate>;
|
|
36
|
+
default: string;
|
|
37
|
+
};
|
|
38
|
+
filterExplicit: {
|
|
39
|
+
type: NumberConstructor;
|
|
40
|
+
default: number;
|
|
41
|
+
};
|
|
42
|
+
clearable: {
|
|
43
|
+
type: BooleanConstructor;
|
|
44
|
+
default: boolean;
|
|
45
|
+
};
|
|
46
|
+
valueFormat: {
|
|
47
|
+
type: StringConstructor;
|
|
48
|
+
default: string;
|
|
49
|
+
};
|
|
50
|
+
startPlaceholder: {
|
|
51
|
+
type: StringConstructor;
|
|
52
|
+
default: string;
|
|
53
|
+
};
|
|
54
|
+
endPlaceholder: {
|
|
55
|
+
type: StringConstructor;
|
|
56
|
+
default: string;
|
|
57
|
+
};
|
|
58
|
+
value: {
|
|
59
|
+
type: StringConstructor;
|
|
60
|
+
default: string;
|
|
61
|
+
};
|
|
62
|
+
}>> & {
|
|
63
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
64
|
+
}>>;
|
|
65
|
+
emit: (event: "update:value", ...args: any[]) => void;
|
|
66
|
+
dateList: import("vue").Ref<any[]>;
|
|
67
|
+
isShow: import("vue").Ref<boolean>;
|
|
68
|
+
radioValue: import("vue").Ref<string>;
|
|
69
|
+
startDate: import("vue").Ref<any>;
|
|
70
|
+
endDate: import("vue").Ref<any>;
|
|
71
|
+
dateFormat: import("vue").ComputedRef<string>;
|
|
72
|
+
showTabStr: import("vue").ComputedRef<string>;
|
|
73
|
+
initData: () => void;
|
|
74
|
+
handleRadioClick: (value: string) => void;
|
|
75
|
+
handleChange: (val: any, type: 'start' | 'end') => void;
|
|
76
|
+
NDatePicker: any;
|
|
77
|
+
NButton: any;
|
|
78
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
79
|
+
type: {
|
|
80
|
+
type: PropType<ITypeDate>;
|
|
81
|
+
default: string;
|
|
82
|
+
};
|
|
83
|
+
filterExplicit: {
|
|
84
|
+
type: NumberConstructor;
|
|
85
|
+
default: number;
|
|
86
|
+
};
|
|
87
|
+
clearable: {
|
|
88
|
+
type: BooleanConstructor;
|
|
89
|
+
default: boolean;
|
|
90
|
+
};
|
|
91
|
+
valueFormat: {
|
|
92
|
+
type: StringConstructor;
|
|
93
|
+
default: string;
|
|
94
|
+
};
|
|
95
|
+
startPlaceholder: {
|
|
96
|
+
type: StringConstructor;
|
|
97
|
+
default: string;
|
|
98
|
+
};
|
|
99
|
+
endPlaceholder: {
|
|
100
|
+
type: StringConstructor;
|
|
101
|
+
default: string;
|
|
102
|
+
};
|
|
103
|
+
value: {
|
|
104
|
+
type: StringConstructor;
|
|
105
|
+
default: string;
|
|
106
|
+
};
|
|
107
|
+
}>> & {
|
|
108
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
109
|
+
}, {
|
|
110
|
+
type: ITypeDate;
|
|
111
|
+
value: string;
|
|
112
|
+
filterExplicit: number;
|
|
113
|
+
clearable: boolean;
|
|
114
|
+
startPlaceholder: string;
|
|
115
|
+
endPlaceholder: string;
|
|
116
|
+
valueFormat: string;
|
|
117
|
+
}>;
|
|
118
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{defineComponent as e,ref as a,computed as l,watch as t,openBlock as u,createElementBlock as r,Fragment as v,renderList as i,normalizeClass as d,toDisplayString as o,createCommentVNode as s,createVNode as n,unref as c,withCtx as p,createTextVNode as m,createElementVNode as f}from"vue";import{NButton as y,NDatePicker as h}from"naive-ui";import g from"moment";import{isString as b}from"lodash-es";import{getAllDateRangeInfo as k}from"../helpers/presetValToTimestamp.js";import Y from"../../../../../../_virtual/plugin-vue_export-helper.js";const F={class:"render-widget-date-range"},_={key:0,class:"radio-date-group"},D=["onClick"],M={key:1,class:"date-detail-range"},S=f("span",{class:"divider"},null,-1);var w=Y(e({__name:"DateRange",props:{type:{type:String,default:"date"},filterExplicit:{type:Number,default:1},clearable:{type:Boolean,default:!1},valueFormat:{type:String,default:"yyyy-MM-dd"},startPlaceholder:{type:String,default:"起始"},endPlaceholder:{type:String,default:"截止"},value:{type:String,default:""}},emits:["update:value"],setup(e,{emit:f}){const Y=e,w=a([]),x=a(!0),P=a(""),C=a(),j=a(),E=l((()=>{let e="";switch(Y.type){case"date":e="YYYY-MM-DD";break;case"datetime":e="YYYY-MM-DD HH:mm:ss"}return e})),H=l((()=>{let e="";switch(Y.type){case"date":e="选择日期";break;case"datetime":e="选择时间"}return e}));function O(e,a){switch(a){case"start":C.value=e;break;case"end":j.value=e}const l=C.value?g(C.value).format(E.value):null,t=j.value?g(j.value).format(E.value):null;f("update:value",l||t?`${null!=l?l:""} ~ ${null!=t?t:""}`:"")}return t((()=>Y.value),(e=>{if(e&&b(e)&&e.includes("~")){const[a,l]=e.split("~");return a.trim()&&(C.value=g(a.trim()).valueOf()),void(l.trim()&&(j.value=g(l.trim()).valueOf()))}C.value=j.value=null,P.value=""}),{immediate:!0}),function(){const e=k(E.value);w.value=e}(),(a,l)=>(u(),r("div",F,[0===e.filterExplicit?(u(),r(v,{key:0},[x.value?s("v-if",!0):(u(),r("div",_,[(u(!0),r(v,null,i(w.value,(e=>(u(),r("span",{key:e.value,class:d(["radio-date-item",P.value===e.value?"radio-date-item-active":""]),onClick:a=>{return l=e.value,P.value===l?P.value="":P.value=l,void(P.value&&f("update:value",P.value));var l}},o(e.label),11,D)))),128))])),n(c(y),{secondary:"",class:d(x.value?"select-date-right":"select-date-left"),onClick:l[0]||(l[0]=e=>x.value=!x.value)},{default:p((()=>[m(o(c(H)),1)])),_:1},8,["class"])],64)):s("v-if",!0),x.value?(u(),r("div",M,[n(c(h),{type:e.type,"default-time":"00:00:00",clearable:e.clearable,valueFormat:e.valueFormat,placeholder:e.startPlaceholder,value:C.value,"onUpdate:value":l[1]||(l[1]=e=>O(e,"start"))},null,8,["type","clearable","valueFormat","placeholder","value"]),S,n(c(h),{type:e.type,"default-time":"23:59:59",clearable:e.clearable,valueFormat:e.valueFormat,placeholder:e.endPlaceholder,value:j.value,"onUpdate:value":l[2]||(l[2]=e=>O(e,"end"))},null,8,["type","clearable","valueFormat","placeholder","value"])])):s("v-if",!0)]))}}),[["__file","DateRange.vue"]]);export{w as default};
|
package/es/components/table-filter/src/components/render-widget/components/InputNumberGroup.vue.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,ref as l,watch as u,openBlock as r,createBlock as
|
|
1
|
+
import{defineComponent as e,ref as l,watch as u,openBlock as r,createBlock as t,unref as a,withCtx as n,createVNode as i,createElementVNode as o}from"vue";import{NInputGroup as p,NInputNumber as d}from"naive-ui";import{isString as m}from"lodash-es";import s from"../../../../../../_virtual/plugin-vue_export-helper.js";const v=o("span",{class:"divider"}," ~ ",-1);var c=s(e({__name:"InputNumberGroup",props:{startPlaceholder:{type:String,default:"请输入"},endPlaceholder:{type:String,default:"请输入"},value:{type:String,default:""}},emits:["update:value"],setup(e,{emit:o}){const s=e,c=l(),f=l();function h(e,l){var u,r;let t="";switch(l){case"startNumber":t=`${null!=e?e:""} ~ ${null!=(u=f.value)?u:""}`;break;case"endNumber":t=`${null!=(r=c.value)?r:""} ~ ${null!=e?e:""}`}const a=t.split(" ~ ").some((e=>e.trim()));o("update:value",a?t:"")}return u((()=>s.value),(e=>{if(c.value=f.value=null,e&&m(e)&&e.includes("~")){const[l,u]=e.split("~");return l.trim()&&(c.value=Number(l.trim())),void(u.trim()&&(f.value=Number(u.trim())))}}),{immediate:!0}),(l,u)=>(r(),t(a(p),{class:"render-widget-input-number-group"},{default:n((()=>[i(a(d),{placeholder:e.startPlaceholder,value:c.value,"onUpdate:value":u[0]||(u[0]=e=>h(e,"startNumber"))},null,8,["placeholder","value"]),v,i(a(d),{placeholder:e.endPlaceholder,value:f.value,"onUpdate:value":u[1]||(u[1]=e=>h(e,"endNumber"))},null,8,["placeholder","value"])])),_:1}))}}),[["__file","InputNumberGroup.vue"]]);export{c as default};
|
|
@@ -27,7 +27,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
27
27
|
isRemote: import("vue").Ref<boolean>;
|
|
28
28
|
isLoading: import("vue").Ref<boolean>;
|
|
29
29
|
valueCp: import("vue").WritableComputedRef<any>;
|
|
30
|
-
maxTagCount: import("vue").ComputedRef<"responsive" | undefined>;
|
|
31
30
|
searchOptions: (keyword: string) => Promise<any>;
|
|
32
31
|
_handleSearch: (query: string) => Promise<void>;
|
|
33
32
|
handleSearch: (query: string) => Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,useAttrs as a,ref as t,computed as n,openBlock as
|
|
1
|
+
import{defineComponent as e,useAttrs as a,ref as t,computed as n,openBlock as l,createBlock as i,unref as o,mergeProps as u,isRef as r,h as s}from"vue";import{NSelect as c,NTag as p}from"naive-ui";import{useDebounceFn as d}from"@vueuse/core";import v from"../../../hooks/useMixins.js";import f from"../../../../../../_virtual/plugin-vue_export-helper.js";var m=f(e({__name:"Select",props:{value:{type:[Array,String,Number]},filterApiConfig:{type:Object}},emits:["update:value","changeInitState"],setup(e,{emit:f}){const m=e,{handleGetConfigApi:y}=v(),g=a(),h=t([]),b=t(!1),w=t(!1),I=n({set(e){f("update:value",e)},get:()=>m.value});async function S(e){try{if(g.dynamicOptionInfo){const{autograph:a,dataSourceId:t,dataSourceType:n,filterKeys:l,showKeys:i,valueKey:o,defaultParams:u=[]}=g.dynamicOptionInfo;let r={};(null==u?void 0:u.length)>0&&u.forEach((e=>{r[e.name]=e.value}));let s={wordbookId:t,autograph:a,wordbookType:n,fieldKeys:l,keyword:e,...r,page:1};w.value=!0;let c=await y(s,"requestDynamicSelect",{},m.filterApiConfig);if(c){const{fieldList:e,rows:a}=c,t=a.map((e=>({...e,label:e[i[0]],value:e[o]})));return h.value=t,t}}}catch(e){console.log(e)}finally{w.value=!1}}const A=d((async e=>{await async function(e){const{manualMapping:a}=g;if(!a){const a=e.trim();await S(a)}}(e)}),300);async function C(){const{manualMapping:e,dynamicOptionInfo:a,valueList:t}=g;if(e&&Array.isArray(t))return b.value=!1,void(h.value=t.map((({value:e,label:a})=>({value:e,label:a}))));Object.keys(a).length>0&&m.filterApiConfig&&(b.value=!0,await S(""))}function O(e){const{manualMapping:a}=g;if(a)return s("div",e.label);const{showKeys:t=[]}=g.dynamicOptionInfo;return g.dynamicOptionInfo&&t.length>0?s("div",{class:"select-widget-dynamic-option"},t.map((a=>s("span",{class:"select-widget-dynamic-item"},e[a])))):s("div",e.label)}function _({option:e,handleClose:a}){const{multiple:t}=g;return t?s(p,{style:{padding:"0 8px"},closable:!0,onClose:e=>{e.stopPropagation(),a()}},{default:()=>s("div",e.label)}):s("div",e.label)}return async function(){const{manualMapping:e,defValue:a,defValueUnit:t,_frontId:n,isInit:l}=g;await C();const i=Array.isArray(m.value)?m.value.length>0:m.value;if(!l&&!i){if(e)return f("update:value",a),void f("changeInitState",n,!0);if(t)switch(t){case"FIRST":{const e=h.value[0];f("update:value",[e.value]),f("changeInitState",n,!0);break}}}}(),(e,a)=>(l(),i(o(c),u(o(g),{value:o(I),"onUpdate:value":a[0]||(a[0]=e=>r(I)?I.value=e:null),loading:w.value,options:h.value,remote:b.value,"render-label":O,"render-tag":_,onSearch:o(A),onClear:C}),null,16,["value","loading","options","remote","onSearch"]))}}),[["__file","Select.vue"]]);export{m as default};
|